Contrastive Instruction-Trajectory Learning for Vision-Language Navigation

Xiwen Liang, Fengda Zhu, Yi Zhu, Bingqian Lin, Bing Wang, Xiaodan Liang

Abstract

Vision-Language Navigation (VLN) requires agents to execute natural language instructions in complex 3D environments. A primary hurdle in this field is generalization to unseen environments. We present the Contrastive Instruction-Trajectory Learning (CITL) framework, which enhances existing VLN backbones by teaching agents to differentiate between similar and dissimilar instruction-path pairs. CITL utilizes coarse-grained and fine-grained contrastive objectives alongside a pairwise sample-reweighting mechanism. Our approach achieves state-of-the-art results on major benchmarks, significantly improving navigation efficiency and success rates in novel settings.

Introduction

Vision-Language Navigation (VLN) tasks an autonomous agent with navigating a 3D environment based on natural language instructions, such as "Walk past the kitchen, turn left at the sofa, and stop by the fireplace." The core challenge lies in generalization; most existing models learn to follow instructions step-by-step but struggle when placed in a new, "unseen" house. These models often treat each instruction-trajectory pair in isolation, failing to learn from the subtle differences between a correct path and a slightly incorrect one. Furthermore, they frequently ignore the temporal continuity of instructions, leading to brittle navigation policies that break if the agent loses its place in the sequence.

Methodology

The CITL framework is designed to be integrated into existing VLN backbones (e.g., RecBERT or EnvDrop). It introduces three primary components to address the limitations of standard supervised learning in VLN:

  1. Coarse-grained Contrastive Learning: This module focuses on the relationship between full instructions and full trajectories. To create "positive" samples, the authors use data augmentation, such as back-translating instructions and generating slightly sub-optimal but valid paths. "Negative" samples are either completely different pairs or trajectories that deviate significantly from the goal.
  2. Fine-grained Contrastive Learning: This addresses temporal continuity by breaking instructions into smaller "sub-instructions." A contrastive loss ensures that sub-instructions that are neighbors in time have similar embeddings, while non-neighbors are pushed apart in the embedding space.
  3. Pairwise Sample-Reweighting Mechanism: To focus on the most informative data, CITL uses a pair-mining strategy to identify "hard" samples. It employs Circle Loss to dynamically adjust the weights of different pairs during training, preventing the gradient from being dominated by easy, repetitive samples.

To handle the large number of negative samples required for effective contrastive learning without excessive computational cost, the framework implements a Memory Bank to store and reuse representations from previous training batches.

Overview of the CITL framework, illustrating the transition from standard VLN to coarse-grained and fine-grained contrastive learning objectives.

Experimental Results

The model was evaluated on three major VLN benchmarks: R2R (Room-to-Room), R4R (Room-for-Room), and RxR (Room-Across-Room). CITL demonstrated consistent improvements across all benchmarks, particularly in narrowing the performance gap between "seen" and "unseen" environments.

On the R2R benchmark, CITL-enhanced models improved the Success weighted by Path Length (SPL)—a metric balancing accuracy and efficiency—by 2% to 4%. In semi-supervised experiments, CITL-enhanced models trained on only 10% of the data performed nearly as well as baseline models trained on 100% of the data, highlighting the framework's data efficiency.

Performance comparison on the R2R benchmark across Val Seen, Val Unseen, and Test Unseen splits, showing CITL's improvements over various baselines.

Conclusion

CITL provides a robust framework for improving VLN generalization by explicitly contrasting optimal trajectories with sub-optimal ones and maintaining temporal awareness through sub-instruction learning. While the quality of contrastive learning is dependent on the data augmentation strategy, the results indicate that learning general navigation principles through contrastive objectives is a powerful alternative to simple imitation. Future work may explore adversarial approaches to generate harder negative samples and the application of these principles to continuous, physics-based environments.

Summary updated

BibTeX
@inproceedings{liang2022contrastive,
  author = {Xiwen Liang and Fengda Zhu and Yi Zhu and Bingqian Lin and Bing Wang and Xiaodan Liang},
  title = {{Contrastive Instruction-Trajectory Learning for Vision-Language Navigation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20050},
}
Figure