3.1. Overall
The overall architecture of SR-VLN is illustrated in
Figure 1. The core of SR-VLN comprises three key modules: pyramidal hierarchical history, perceptual compression, and a training paradigm for implicit spatial reasoning. Given a language instruction
and a visual observation
, the model maintains a history
of previous observations and actions. The navigation objective is to predict the next action
that progresses toward the target location.
The overall framework operates in three stages. First, the perceptual compression module processes the historical context through VAR encoding, reducing token count while preserving spatial structure. Second, the pyramid history system performs bidirectional retrieval to extract relevant historical information at multiple granularities. Finally, the implicit reasoning module processes the compressed representations through learnable S-Tokens to generate action predictions.
MM-CoT (Multimodal Chain-of-Thought): This is formulated as a native combination of textual CoT (T-CoT) and compressed visual CoT (CompV-CoT). The agent is required to generate paired textual–visual reasoning steps, denoted as a multimodal reasoning trace , which jointly encodes semantic plans and imagined future observations to guide subsequent action prediction.
Local vs. Global AP (Action Prediction): Following the convention of topological-graph-based VLN baselines (e.g., DUET), each action predictor is implemented as a two-layer feed-forward network (FFN). To capture subtle layout differences, we increase the number of local action predictors and employ a mixture-of-experts (MoE) selection mechanism, whereas the global action predictor maintains macro-level trajectory navigation over long ranges.
Uni-Encoder (Unified Cross-Modal Encoder): A multimodal backbone that serves as the central projection layer. It concurrently ingests heterogeneous inputs—including language instructions, prior spatial knowledge, visual observations, and pyramidal histories—and projects them into a shared, unified latent semantic space to facilitate seamless multimodal fusion.
3.2. Pyramidal Hierarchical History
Traditional VLN models typically represent historical context through sequential lists (1D) or flat topological maps (2D), which either suffer from history overload or insufficient structural depth. We propose a three-tier pyramidal architecture that organizes trajectory information across distinct semantic scales, as depicted in
Figure 2. This structure facilitates both local reactivity and global planning by segregating information based on its cognitive utility. Specifically, the pyramidal hierarchical history consists of three interconnected history levels, each serving a distinct cognitive purpose during navigation:
Interaction Level (Short-term History): This level records fine-grained temporal sequences of observations and actions, , enabling the agent to perform immediate backtracking based on recent environmental feedback. Two nodes are merged if their cosine similarity exceeds and their geodesic distance is below m. We additionally enforce a minimum cluster size and a per-episode capacity of nodes. All values are obtained by grid search on R2R val-seen; sensitivity is mild ( SR within ).
Cognitive Level (Mid-term History): A topological graph is constructed, where nodes denote visited viewpoints and edges represent spatial connectivity. This abstraction captures the environmental topology, allowing the agent to reason about path efficiency and spatial relationships.
Insight Level (Long-range History): A high-level insight graph stores generalized spatial motifs and transferable navigation strategies. Concretely, after each episode, we extract the induced subgraph of visited by the agent, normalize it to a canonical form (degree-ordered adjacency with discretized turning angles), and embed it using a graph neural network encoder. Recurrent motifs are discovered by cosine clustering in this embedding space, and each insight node stores the motif template together with statistics over entry/exit viewpoints and empirical success rates of local strategies. This level enables meta-reasoning across diverse environments, distilling recurring navigation patterns into actionable priors.
The construction of this pyramidal structure relies on a progressive abstraction process. At each timestep, new observations are continuously appended to the interaction level. Periodically, the system applies spatial clustering to these fine-grained memories to generate cognitive-level nodes. At the highest tier, insight-level patterns emerge through the analysis of recurring topological structures across multiple episodes, ultimately enabling transfer learning across diverse environments.
To effectively exploit this hierarchical history during active navigation, we introduce a Bidirectional Retrieval Protocol that bridges abstract strategy with grounded execution. For any given query derived from the current instruction and observation, the protocol initiates two complementary pathways. It begins with a Bottom-up Semantic Traversal, which projects query features to the insight level to retrieve relevant navigation priors:
where
represents the expanded query set and
denotes the refined semantic history. This upward projection extracts high-level navigation principles to guide the overall trajectory planning. Following this, a Top-down Contextual Traversal samples specific observations from the cognitive graph based on the retrieved insights. This downward phase enforces fine-grained spatial grounding, successfully translating abstract navigation principles into concrete actions suitable for the immediate context.
To seamlessly integrate these dual pathways, the retrieval framework employs an adaptive attention mechanism. This mechanism evaluates the relevance of different history levels to the current task, dynamically adjusting the model’s reliance on specific tiers based on environmental complexity. By structuring history access hierarchically rather than sequentially, our approach reduces retrieval computational complexity from
to
while fully preserving multi-scale spatial information. We summarize the SR-VLN retrieval process in
Appendix A.
3.3. Perceptual Compression
Visual observations contain rich spatial details but contribute significantly to token overhead. Perceptual compression employs visual autoregressive (VAR) encoding, which processes images as multi-scale pyramids while preserving spatial structure. The encoder consists of multiple resolution levels, each processing features at different scales and passing information between levels through learned gating mechanisms.
The compression process operates in two stages. First, a visual encoder extracts multi-scale features from the input image. Second, a vector quantization layer maps these features to a compact codebook representation. The decoder then reconstructs the compressed features through a series of transposed convolutions, with skip connections from the encoder preserving high-frequency details important for navigation. Concretely, the perceptual compression module adopts a multi-scale VQVAE tokenizer, which employs a shared codebook with size
across all scales, a spatial downsampling ratio of
, and multi-scale quantization with K additional convolution layers (adding only 0.03 M parameters). The VAR is trained using AdamW with a decay of
, following the recipe of [
33].
We also implement adaptive compression rates based on scene complexity. In visually rich environments with many objects, the model maintains higher fidelity compression, while in simpler scenes, more aggressive compression is applied. This adaptive mechanism ensures that computational resources are allocated efficiently across different navigation scenarios.
3.4. Implicit Spatial Reasoning
3.4.1. Spatial Token
We define learnable implicit spatial tokens (S-Tokens) with fixed length K to encode spatial reasoning information. These tokens are modality-agnostic parameters initialized randomly and optimized to capture cross-modal spatial relationships. Each token represents a learned basis vector in the reasoning space. During inference, the model composes these basis vectors through attention mechanisms to represent complex spatial relationships and navigation strategies.
The deployment of S-Tokens offers several structural advantages over conventional explicit chain-of-thought (CoT) approaches. First, by operating in a continuous latent space rather than forcing all modalities into verbose textual representations, S-Tokens inherently prevent the information loss typically encountered during cross-modal generation. Second, the fixed length K naturally restricts token proliferation in long-horizon tasks. While explicit CoT can generate hundreds of tokens for complex reasoning, S-Tokens guarantee a constant computational footprint regardless of task complexity. Finally, their discrete representation fundamentally avoids the error accumulation inherent to autoregressive generation, while simultaneously facilitating parallel processing and hardware-level batch optimization.
To regulate the interaction among these tokens, the S-Token architecture incorporates a learned gating mechanism. This design controls the information flow between tokens, permitting the model to selectively update specific spatial reasoning components while preserving others. Consequently, the mechanism dynamically adapts to diverse and evolving navigation scenarios.
3.4.2. Training Strategy
Traditional supervised fine-tuning (SFT) enforces rigid reasoning patterns, frequently leading to overfitting. To mitigate this, we propose a three-stage training paradigm that progressively transitions from unconstrained exploration to reinforced reasoning, concluding with comprehensive knowledge distillation.
The first stage employs Sparse-Supervision Pre-training to loosen reasoning constraints. Initializing with an SFT-pretrained model, we replace explicit CoT supervision with implicit S-Token representations. In this phase, only the final action prediction receives direct supervision:
where
is the target action and
represents the compressed historical context. This sparse supervision encourages the model to explore diverse internal reasoning pathways without overfitting to specific textual trajectories. An auxiliary contrastive loss is also incorporated to maintain semantically stable S-Token representations across timesteps, pulling together similar navigation contexts while pushing apart dissimilar ones.
Building upon these flexible representations, the second stage utilizes reinforcement learning to establish strict causality between S-Tokens
and actions
. We adopt GRPO [
34], defining the reward as the cosine similarity between predicted and target actions:
Based on this reward, GRPO samples
G trajectories
to compute group-relative advantages:
Following the standard GRPO framework, we compute relative advantages for a group of
G sampled trajectories
without a critic network:
where
is the cumulative return of trajectory
, and
. A trajectory is parameterized as
, constrained by a maximum rollout horizon of
steps. The total return
combines the step-wise dense cosine reward and the sparse terminal success reward:
where
indicates whether the agent successfully stops within 3 m of the target, and we set
,
to balance step-by-step guidance and global objective completion.
This gradient signal propagates directly through the S-Tokens, reinforcing trajectories with rigorous spatial computation while penalizing shortcut paths. A curiosity-driven exploration bonus is further integrated to prevent premature convergence to suboptimal reasoning patterns. Combining these first two stages ensures the model simultaneously learns useful latent representations and optimizes them for accurate navigation, avoiding the pitfalls of skipping either exploration or reinforcement.
The final stage leverages knowledge distillation to transfer reasoning capabilities from a high-capacity teacher model (Qwen2.5-VL-32B) to the target student model (Qwen2.5-VL-7B). This process compensates for potential information loss during history compression. The core distillation loss aligns the logits of the S-Token:
where
and
denote the teacher and student tokens, respectively. Beyond basic representation matching, this stage implements a progressive, curriculum-based distillation that aligns both intermediate features and attention patterns, ensuring the student accurately replicates the teacher’s spatial focus. The complete student objective combines this distillation with direct action prediction:
Supported by a supplementary consistency loss on unlabeled episodes, this semi-supervised approach leverages the teacher’s generalization capabilities to produce a highly robust student model capable of excelling in out-of-distribution scenarios.