Room-to-Room (R2R) is a canonical dataset and benchmark task for Vision-and-Language Navigation (VLN), where an embodied agent must follow a natural language instruction to navigate between two specified rooms within a simulated 3D environment. Introduced in 2018, it established the standard evaluation framework using Matterport3D environments and metrics like Success weighted by Path Length (SPL). Each entry consists of a human-annotated trajectory-instruction pair, providing supervised data for training language-conditioned policies.
Glossary
Room-to-Room (R2R)

What is Room-to-Room (R2R)?
Room-to-Room (R2R) is the foundational benchmark for Vision-and-Language Navigation (VLN).
The benchmark rigorously tests an agent's ability to perform cross-modal alignment, grounding linguistic concepts like "turn left after the kitchen" into the egocentric view of a photo-realistic simulation. It focuses on instruction following rather than exploration, serving as a critical testbed for architectures like the Cross-Modal Transformer. Success on R2R is a prerequisite for more complex embodied tasks like REVERIE or ALFRED, which involve object interaction.
Key Features of the R2R Dataset
The Room-to-Room (R2R) dataset established the foundational benchmark for Vision-and-Language Navigation (VLN). Its design choices directly shaped the field's research trajectory and evaluation standards.
Trajectory-Instruction Pairs
The core of R2R is its collection of human-annotated trajectory-instruction pairs. For each navigable path between two points in a 3D building, annotators wrote a natural language description. This creates a supervised learning signal where the model must learn to associate spatial and visual concepts (e.g., 'turn left after the kitchen') with sequences of actions.
- Data Unit: A single pair consists of a path (sequence of viewpoints) and 1-3 human-written instructions.
- Purpose: Provides ground-truth for training agents via imitation learning or behavior cloning.
Matterport3D Simulator Environment
R2R is built on top of the Matterport3D dataset, which provides photorealistic 3D reconstructions of real-world residential and commercial buildings. This gives the benchmark a crucial degree of visual realism and complexity.
- Environment: 90 distinct building scans, split into training, validation (seen), and test (unseen) sets.
- Simulator: The R2R simulator allows agents to navigate these environments via discrete actions (e.g.,
forward,left,right,stop), receiving egocentric panoramic images at each step. - Impact: Enabled reproducible, large-scale experimentation without physical robots.
Structured Splits for Generalization
A key feature is the dataset's split structure, designed to rigorously test an agent's generalization ability. This prevents models from simply memorizing environment layouts.
- Train Split: Paths and instructions in 61 environments.
- Val Seen Split: New paths in the same 61 training environments. Tests instruction-following on novel routes.
- Val Unseen & Test Splits: Paths in completely new 11 and 18 environments, respectively. This is the primary test for zero-shot navigation—following instructions in a never-before-seen building.
SPL: The Primary Evaluation Metric
R2R introduced Success weighted by Path Length (SPL) as its main quantitative metric, which became the standard for VLN. SPL balances success rate with efficiency.
- Calculation:
SPL = (1/N) * Σ (S_i * (L_i / max(P_i, L_i))) - Components:
S_iis a binary success indicator,L_iis the optimal path length, andP_iis the agent's path length. - Rationale: A successful but meandering path is penalized. This mirrors real-world efficiency needs and prevents agents from exploiting simplistic exploration strategies.
Focus on High-Level Language
Instructions in R2R are high-level and descriptive, not low-level action sequences. They mimic how humans give directions, requiring the agent to perform spatial reasoning and visual grounding.
- Example Instruction: 'Walk down the hallway past the dining room table. Enter the second door on the right, which is the bedroom.'
- Challenge: The agent must infer that 'second door on the right' requires counting doors from a specific reference point, grounding the linguistic concept 'dining room table' in visual pixels, and deciding when 'past' is satisfied.
Foundation for Subsequent Benchmarks
R2R's structure and release catalyzed the development of more complex VLN benchmarks, establishing a clear evolutionary lineage.
- REVERIE: Extends R2R by requiring the agent to locate a specific target object ('find the blue vase on the desk') after navigation, adding a visual referring expression challenge.
- ALFRED: Adds object interaction (pick up, toggle, slice) to navigation, creating long-horizon embodied instruction following tasks.
- CVDN: Introduces dialogue history, where the agent can ask for clarification, moving from single instruction to interactive navigation.
How the R2R Benchmark Works
The Room-to-Room (R2R) benchmark provides a standardized framework for evaluating Vision-and-Language Navigation (VLN) agents by testing their ability to follow human-written instructions in simulated 3D environments.
The Room-to-Room (R2R) benchmark is a foundational dataset and evaluation protocol for Vision-and-Language Navigation (VLN). It requires an embodied agent to follow a single natural language instruction to navigate from a start pose to a goal location within a photo-realistic simulation built from Matterport3D scans. Performance is primarily measured by Success weighted by Path Length (SPL), which balances task completion against efficiency.
Each benchmark instance is a trajectory-instruction pair: a recorded path through a 3D building paired with a human-authored description. Agents receive only egocentric visual observations and must output low-level actions like 'forward' or 'turn left'. The benchmark defines strict train/validation/test splits to evaluate both learned performance and zero-shot navigation generalization to unseen buildings and novel instructions.
R2R vs. Other VLN Benchmarks
A feature comparison of the foundational Room-to-Room (R2R) benchmark against other prominent Vision-and-Language Navigation (VLN) tasks.
| Feature / Metric | Room-to-Room (R2R) | REVERIE | ALFRED | Object Goal Navigation |
|---|---|---|---|---|
Primary Task Objective | Navigate between two described rooms | Navigate to and identify a described remote object | Execute interactive tasks (e.g., pick, place, clean) | Navigate to an instance of an object category |
Instruction Type | Step-by-step route description | High-level referring expression | Hierarchical, procedural instruction | Single object category name (e.g., 'chair') |
Environment Base | Matterport3D Simulator | Matterport3D Simulator | AI2-THOR | Gibson / Habitat |
Agent Action Space | Discrete navigation (e.g., turn, move) | Discrete navigation | Discrete navigation & object interaction | Continuous or discrete navigation |
Requires Object Interaction | ||||
Evaluation Metric (Primary) | Success weighted by Path Length (SPL) | Remote Grounding Success (RGS) | Task Success | Success weighted by Path Length (SPL) |
Trajectory Length | ~5-10 actions | Longer, variable paths | Long-horizon (up to 100+ actions) | Variable, exploration-driven |
Key Challenge Focus | Instruction grounding & path following | Visual referring expression comprehension | Long-horizon task planning & execution | Visual exploration & object search |
Frequently Asked Questions
Room-to-Room (R2R) is the foundational dataset and benchmark for Vision-and-Language Navigation (VLN). These questions address its core purpose, structure, and its critical role in advancing language-guided embodied AI.
The Room-to-Room (R2R) dataset is the first and most widely used benchmark for the Vision-and-Language Navigation (VLN) task, introduced by researchers at Matterport and Virginia Tech in 2018. It consists of 21,567 human-written navigation instructions paired with 7,189 paths through 90 Matterport3D simulated building scans. The core task requires an embodied agent to follow a novel natural language instruction to navigate from a start position to a goal position in an unseen environment, using only egocentric visual observations.
The benchmark established standardized training, validation, and test splits, with the test set instructions held private to prevent overfitting. Its primary evaluation metric is Success weighted by Path Length (SPL), which balances task completion with path efficiency. R2R provided the essential, large-scale data needed to move VLN from a conceptual challenge to a quantifiable field of research, driving the development of cross-modal transformers, language-conditioned policies, and instruction grounding techniques.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The Room-to-Room (R2R) benchmark is a cornerstone of Vision-and-Language Navigation (VLN) research. These related concepts define the ecosystem of datasets, models, metrics, and simulation platforms that enable and evaluate language-guided agents.
Vision-and-Language Navigation (VLN)
Vision-and-Language Navigation (VLN) is the core research problem that R2R benchmarks. It is the task of enabling an embodied agent to follow natural language instructions to navigate through a real or simulated 3D environment using only visual perception as input.
- Embodied Agent: A software or robotic entity that perceives and acts within an environment.
- Primary Inputs: A natural language instruction and a stream of egocentric visual observations.
- Core Challenge: Learning to ground linguistic concepts (e.g., 'turn left after the kitchen') in visual scenes and translate them into a sequence of low-level navigation actions.
Matterport3D
Matterport3D is the large-scale dataset of 3D reconstructions of real-world building interiors that forms the environmental backbone of the R2R benchmark. It provides the photorealistic, geometrically accurate scenes in which navigation agents are trained and evaluated.
- Scale: Contains over 10,800 panoramic views from 194,400 RGB-D images across 90 building-scale scenes.
- Realism: Scans of actual homes, offering diverse layouts and visual clutter crucial for generalization.
- Connectivity: Provides a navigable graph where nodes are viewpoints and edges denote traversable paths, defining the possible agent trajectories for R2R.
Success weighted by Path Length (SPL)
Success weighted by Path Length (SPL) is the primary quantitative metric for evaluating navigation performance in R2R and related benchmarks. It rigorously measures not just if an agent reaches the goal, but the efficiency of its path.
- Calculation:
SPL = (1/N) * Σ (S_i * (L_i / max(P_i, L_i)))whereS_iis success (1/0),L_iis the optimal path length, andP_iis the agent's path length for instructioni. - Interpretation: An SPL of 1.0 indicates perfect, optimal navigation on all trajectories. A successful but meandering path receives a significantly lower score.
- Purpose: Penalizes agents that succeed by exploring randomly or taking unnecessarily long routes, favoring directed, instruction-following behavior.
Trajectory-Instruction Pair
A Trajectory-Instruction Pair is the fundamental atomic unit of data in the R2R dataset and similar benchmarks. It consists of a recorded path through an environment paired with a human-written description of that path.
- Trajectory: A sequence of discrete agent poses (locations and orientations) defining a viable navigation path.
- Instruction: A natural language description (e.g., 'Walk out of the bedroom and wait at the top of the stairs') that corresponds to that specific path.
- Usage: These pairs are used for supervised Behavior Cloning, where a model learns to predict the next action given its current view and the instruction, mimicking the demonstrated path.
Instruction Decomposition
Instruction Decomposition is a critical reasoning technique for handling the long-horizon, multi-step instructions found in R2R. It involves breaking down a complex command into a sequence of simpler, executable sub-goals.
- Challenge: Instructions like 'Go down the hall past the living room to find the bathroom on your left' require planning across multiple rooms and decision points.
- Methods: Can be performed by a separate language model (LLM) or learned end-to-end by the navigation agent.
- Benefit: Transforms a difficult long-term planning problem into a series of more manageable short-term navigation decisions, improving success rates on lengthy R2R trajectories.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us