Masked Path Modeling for Vision-and-Language Navigation

Zi-Yi Dou, Feng Gao, Nanyun Peng

Abstract

Vision-and-Language Navigation (VLN) requires an embodied agent to navigate through complex environments following natural language instructions. A significant bottleneck in training these agents is the scarcity of human-annotated instruction-path pairs. We present Masked Path Modeling (MPM), a self-supervised pretraining objective designed to leverage unlabeled navigation data. By training an agent to reconstruct a complete navigation path from a partially masked sequence of viewpoints, MPM enables the model to learn environmental layouts and movement logic without explicit linguistic labels. Our approach, built upon a History-Aware Multimodal Transformer (HAMT) with a frozen CLIP-ViT-L/14 encoder, achieves state-of-the-art results across major benchmarks, including Room-to-Room (R2R), Room-for-Room (R4R), and Room-across-Room (RxR), particularly in previously unseen environments.

Introduction

The primary challenge in Vision-and-Language Navigation (VLN) is the "instruction following" gap: agents must map high-level linguistic commands (e.g., "Walk past the kitchen, turn left at the sofa") to low-level visual observations and actions in novel settings. Historically, progress in this field has been constrained by data scarcity. Annotating thousands of trajectories with precise human instructions is expensive and difficult to scale. While synthetic instruction generation (using "speaker models") has been used to augment data, these labels are often noisy and lack the nuance of human speech.

To address this, we propose Masked Path Modeling (MPM). Inspired by the success of Masked Language Modeling (MLM) in natural language processing, MPM allows agents to learn from unlabeled exploration. By filling in the "blanks" of a navigation path, the agent develops a fundamental understanding of spatial transitions and environmental physics, which serves as a robust foundation for subsequent instruction-following tasks.

Methodology

Masked Path Modeling (MPM)

The core of our method is a self-supervised task performed on sequences of visual viewpoints. During pretraining, the agent performs random walks or active exploration within simulated environments to collect unlabeled paths.

  1. Masking Strategy: For a given path, we randomly mask 25% of the viewpoints. This "sweet spot" was determined empirically; masking too little makes the task trivial, while masking more than 50% introduces excessive ambiguity.
  2. Reconstruction Task: The model is tasked with predicting the actions required to bridge the gaps between the visible viewpoints. This forces the agent to internalize how specific actions (e.g., turning or moving forward) transform the visual input.

Architecture and Training

We utilize the History-Aware Multimodal Transformer (HAMT) as our base architecture. To improve visual representation, we integrate a frozen CLIP-ViT-L/14 encoder. This provides rich, pre-aligned visual features that are more robust than standard ImageNet-trained encoders.

The training process follows a dual-stage pipeline:

  • Pretraining: The model is trained on the MPM objective alongside standard auxiliary tasks, such as next-step prediction and image-text matching.
  • Finetuning: The model is refined on specific VLN datasets using a combination of Imitation Learning (IL), Reinforcement Learning (RL), and the MPM objective to maintain the spatial logic learned during pretraining.

Experimental Results

We evaluated our approach on three benchmark datasets: Room-to-Room (R2R), Room-for-Room (R4R), and the multilingual Room-across-Room (RxR).

Performance in Unseen Environments

The most significant gains were observed in "val-unseen" splits, which test the agent's ability to generalize to entirely new homes. The addition of MPM led to consistent improvements in Success Rate (SR):

  • R2R: +1.32%
  • R4R: +2.13%
  • RxR: +1.51%

Path Fidelity and Efficiency

Beyond simply reaching the goal, MPM-trained agents demonstrated higher path fidelity. On long-horizon datasets like R4R and RxR, we observed marked improvements in sDTW (Success weighted by Dynamic Time Warping). This indicates that the agents are not just finding the target by chance but are more accurately following the specific trajectory described in the instructions. Furthermore, the use of a frozen CLIP encoder allowed for more efficient training cycles compared to models that require full vision-encoder finetuning.

Discussion: The Pre-exploration Bonus

A key insight from our study is the benefit of "pre-exploration." When an agent is allowed to explore a new environment using the MPM objective—without any human instructions—immediately prior to a test, its performance increases significantly. This suggests a paradigm where robots can "get the lay of the land" in a new home autonomously, building a spatial mental map before they are tasked with following specific human commands.

Conclusion and Future Work

Masked Path Modeling provides a scalable, self-supervised framework for improving embodied AI. By focusing on action generation and path reconstruction, agents learn the underlying structure of navigation independently of language.

Future research will focus on moving beyond random exploration toward curiosity-driven data collection to capture more diverse and informative trajectories. Additionally, we aim to explore the application of MPM to other embodied tasks, such as robotic manipulation and continuous-space navigation, where the logic of temporal and spatial transitions is equally vital.

Summary updated

BibTeX
@inproceedings{dou2023masked,
  author = {Zi-Yi Dou and Feng Gao and Nanyun Peng},
  title = {{Masked Path Modeling for Vision-and-Language Navigation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.1019},
}
Figure