Multimodal Transformer with Variable-Length Memory for Vision-and-Language Navigation

Chuang Lin, Yi Jiang, Jianfei Cai, Lizhen Qu, Gholamreza Haffari, Zehuan Yuan

Abstract

Vision-and-Language Navigation (VLN) requires agents to follow complex natural language instructions in 3D environments. Traditional models often compress navigation history into a fixed-length vector, creating an information bottleneck. This paper presents the Multimodal Transformer with Variable-length Memory (MTVM), which utilizes an explicit, expandable memory bank of past cross-modal activations. Combined with a memory-aware consistency loss, MTVM achieves state-of-the-art performance on R2R and CVDN benchmarks by effectively grounding instructions in temporal context.

Introduction

In VLN tasks, an agent must interpret instructions like "Walk past the table, turn left at the fridge, and stop by the sink" to navigate to a goal. This requires a robust temporal understanding of which parts of the instruction have been completed. Most existing models rely on recurrent architectures (e.g., LSTMs) that compress the entire history into a single hidden state. This "bottleneck" approach often fails to capture the long-term dependencies necessary for multi-step navigation and can lead to overfitting on specific keywords rather than true environmental grounding.

Conceptual overview of the MTVM framework, showing the variable-length memory bank and its interaction with the Transformer.

The MTVM Architecture

The authors propose two key innovations to overcome the limitations of fixed-length memory:

1. Variable-length Memory Bank

Instead of a compressed vector, MTVM maintains a memory bank of actual cross-modal Transformer activations from every previous time step. At each step $t$, the model processes the current visual observation and the full instruction alongside all previous action-related tokens ($m_0, m_1, \dots, m_{t-1}$). This "infinite" history allows the attention mechanism to dynamically retrieve relevant past information for the current decision. Unlike visual-only history, these activations contain the "reasoning" the model performed at previous steps.

Detailed architecture of MTVM, illustrating the flow from encoders through the cross-modality encoder to the updated memory bank and action selection.

2. Memory-aware Consistency Loss

To improve robustness and prevent keyword overfitting, the model employs a consistency loss during training. By comparing the model's output for a full instruction against a "masked" version (where random words are removed), the agent is forced to rely more on its internal memory bank and visual context to maintain consistent navigation behavior. This acts as a regularizer, encouraging the model to build a more robust joint representation of the environment and history.

Evaluation and Results

MTVM was evaluated on the Room-to-Room (R2R) and Cooperative Vision-and-Dialog Navigation (CVDN) benchmarks, achieving state-of-the-art results on both:

  • R2R Performance: MTVM improved the Success Rate (SR) and Success rate weighted by Path Length (SPL) by 2% over previous top-performing models like VLN⟳BERT.
  • CVDN Performance: The model reduced the Goal Progress error by 1.5 meters on the test set, demonstrating superior handling of ambiguous, dialogue-based instructions.
  • Efficiency: Despite the expanding memory, MTVM is more memory-efficient than some recurrent models because it reuses existing activations rather than running additional update networks.

Conclusion

The Multimodal Transformer with Variable-length Memory demonstrates that explicitly storing interaction history as activations is more effective than visual-only history or compressed vectors. By leveraging a variable-length memory bank and consistency-based regularization, MTVM sets a new standard for instruction-following agents in complex 3D environments. Future work may address scaling these memory structures for extremely long-horizon tasks and continuous movement spaces.

Summary updated

BibTeX
@inproceedings{lin2022multimodal,
  author = {Chuang Lin and Yi Jiang and Jianfei Cai and Lizhen Qu and Gholamreza Haffari and Zehuan Yuan},
  title = {{Multimodal Transformer with Variable-Length Memory for Vision-and-Language Navigation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20059-5\_22},
}
Figure