Introduction
Vision and Language Navigation (VLN) is a challenging task that requires an autonomous agent to navigate through complex 3D environments based on natural language instructions. To succeed, an agent must bridge the gap between linguistic commands (e.g., "walk past the kitchen table") and visual perceptions of cluttered indoor scenes. Current state-of-the-art models often struggle with two primary issues: the domain gap between general web-scraped pretraining data and specific indoor environments, and the difficulty of sequential reasoning, where agents fail to align a sequence of sub-instructions with the corresponding visual path.
To address these challenges, we introduce PANDA (Prompt-bAsed coNtext- and inDoor-Aware), a two-stage pretraining framework designed to enhance an agent's spatial and sequential understanding through efficient prompting strategies.
Methodology
PANDA utilizes a dual-prompting approach to inject domain-specific knowledge and temporal structure into a pretrained backbone without the need for exhaustive fine-tuning.
Stage 1: Indoor-aware Pretraining with Deep Visual Prompts
Foundation models are typically pretrained on massive internet datasets containing images of celebrities, landscapes, and common objects that differ significantly from the visual statistics of indoor residential spaces. PANDA bridges this domain gap using Deep Visual Prompts.
Instead of retraining the entire visual backbone (e.g., PREVALENT), the model parameters are frozen. A small set of learnable vectors—visual prompts—are inserted into the input space of the visual encoding layers. To train these prompts, CLIP is employed as an automated "teacher" to generate text labels for images from the Matterport3D dataset. The agent learns to classify these indoor scenes and objects using only the visual prompts and a lightweight MLP head, effectively "injecting" indoor-specific visual knowledge into the frozen model in a parameter-efficient manner.
Stage 2: Context-aware Pretraining with Hard Context Prompts
Navigation instructions are inherently sequential. To improve the agent's ability to relate adjacent actions, PANDA introduces Hard Context Prompts. These are manually designed text templates that frame navigation as a series of logically connected events rather than isolated commands.
As shown in the architecture above, four types of hard prompts are utilized:
- Count Prompts: Explicitly state the number of actions (e.g., "This instruction contains four actions").
- Sequential Prompts: Identify the ordinal position of an action (e.g., "This is the first action").
- Individual Prompts: Pair specific sub-instructions with their sequence (e.g., "Firstly, perform the action walk to the rug").
- Overall Prompts: Concatenate individual prompts to represent the entire navigation path.
These prompts are optimized using contrastive learning, which forces the model to align the linguistic representation of a sub-instruction with the specific visual "sub-path" the agent traverses.
Experimental Results
The PANDA framework was evaluated on the R2R (Room-to-Room) and REVERIE benchmarks, using the Matterport3D dataset for indoor-aware training.
Performance on R2R
On the R2R "Validation Unseen" split—which tests the agent's ability to generalize to entirely new environments—PANDA achieved a 66% Success Rate (SR) and a 60% Success weighted by Path Length (SPL). This represents a significant 3% improvement over the strong RecBERT baseline, demonstrating the effectiveness of the prompting strategy in unfamiliar settings.
Performance on REVERIE
In the REVERIE task, which requires both navigation and object identification (e.g., "Bring me the book on the nightstand"), PANDA showed superior performance. The indoor-aware visual prompts notably improved the agent's ability to recognize and locate specific household items, suggesting that the domain-specific pretraining successfully enhanced object-level perception.
Discussion and Conclusion
PANDA demonstrates that parameter-efficient prompting is a powerful alternative to full-model fine-tuning for specialized tasks like VLN. By using deep visual prompts, the model gains indoor-specific knowledge with minimal computational overhead. Simultaneously, hard context prompts act as the "glue" that helps the model understand the temporal relationships between actions in a sequence.
While PANDA sets a new state-of-the-art, future work may address the tendency of agents to "wander" during complex searches by refining path-planning logic. Additionally, exploring "soft" learnable text prompts could further automate the context-aware stage, potentially extending this framework to broader multimodal domains such as robotic manipulation and video activity recognition.
Summary updated