GlanceNav: Efficient Vision-and-Language Navigation with Streaming Memory and Counterfactual Rewind
Multimodal large language models (MLLMs) have become strong policies for vision-and-language navigation (VLN). However, most of them encode a sample of past frames again at every decision and are trained on isolated decisions, so computation is redundant and the usable history is short.
From the abstract. Our summary is in progress.
Full paper
GlanceNav: Efficient Vision-and-Language Navigation with Streaming Memory and Counterfactual Rewind
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.30900 (PDF).
GlanceNav: Efficient Vision-and-Language Navigation with Streaming Memory and Counterfactual Rewind
Anh Dao1,2 Quan-Dung Pham2 Danh Vinh Le2 Tuyen Pham Le2 Quan Nguyen2,3 Yuzhang Shang1
1University of Central Florida 2VinMotion 3University of Southern California
+1B denotes an additional geometry encoder.1 Introduction
Vision-and-language navigation in continuous environments (VLN-CE) [3, 18, 20] asks an agent to follow a natural-language instruction through an unseen building, using only its egocentric observations. Multimodal large language models (MLLMs) now power most strong VLN-CE agents [50, 49, 5, 40, 48]. Many of them treat navigation as video question answering (Fig. 1a): at every step, they sample a fixed number of past frames, typically eight, and encode them again together with the current view.
This design has two problems. The first is the memory: each frame is processed once for every later decision that samples it, the policy cannot see what falls outside the sample, and every decision is trained as a separate sample. Streaming navigators avoid re-encoding by caching the key-value (KV) states of past observations [40, 56]. A full cache, however, grows linearly with the episode, so these methods bound it with sliding windows and pruned or compressed memories. Bounding the cache fixes the cost but not the memory: eviction is final, and whatever leaves the cache is invisible to every later decision. The second problem is how the agent learns from its own mistakes. Beyond DAgger [27], recent navigators are fine-tuned with outcome-based reinforcement learning (RL) such as GRPO [30, 55], which gives one scalar to all of the roughly one hundred decisions of a rollout and learns mostly from instructions on which some rollouts succeed and others fail, which become rarer as the policy improves. We therefore ask: can a navigator encode each frame only once, at a constant cost per step, and still remember what matters and learn efficiently from its own mistakes?
Hybrid MLLMs [45, 11, 26] remove the need to choose between cost and memory. Most of their layers are Gated DeltaNet (GDN) layers, which fold every token into a fixed-size recurrent state, and only a few are softmax attention. The whole episode is therefore always summarized in the state. The summary is lossy, so the few attention layers still need exact tokens, but only as a complement. The memory question thus changes from which part of the history to keep to which few frames should also be kept exactly.
GlanceNav (Fig. 1b) answers this question with the state itself. Its attention layers see a window of the most recent observations and a small bank of older keyframes, selected by a state-change score: the relative change that a frame causes in the recurrent state of the GDN layer below. A frame that the state already predicts changes it little, whereas a frame with new content, such as a new room, changes it more and is kept. The score has no parameters. Two properties follow. The memory has a constant size: each frame is encoded once, and a step costs the same throughout an episode. It is also causal: keyframes are selected from the past only, so the memory of every step can be built inside one forward pass over an episode, and GlanceNav is trained on whole episodes with its test-time memory instead of on isolated decisions.
The constant size also addresses the second problem: a snapshot of the agent’s entire memory takes 136 MiB and 1.4 ms to copy, at any step, so a rollout can be rewound to any earlier decision. Our Counterfactual Rewind (CoRe) detects when a rollout starts to move away from the goal, restores the simulator and the agent’s memory at the rollout’s closest approach to the goal, lets a shortest-path expert redo a few actions, and lets the policy finish. The difference in outcome between this branch and the original rollout then credits the policy’s continuation, and the expert’s actions only when the branch did better. A drifting rollout thus yields a contrast between two outcomes from the same state, instead of one scalar for the whole episode.
We train GlanceNav in three stages, using only the R2R-CE and RxR-CE training splits: episode-level supervised fine-tuning (SFT), DAgger, and CoRe on 1,000 instructions. With a 4B backbone, GlanceNav reaches 71.9% success rate (SR) on R2R-CE val-unseen and 73.6% on RxR-CE (Fig. 1c, Tab. 1). On R2R-CE, this is 9.1 points above the best previous single-RGB method trained without external data, and among all single-RGB methods that we compare with, only an 8B model trained with additional data scores higher. GlanceNav runs at 104 ms per step, less than half the step time of a step-wise navigator with a backbone of the same size (Tab. 3).
Our contributions are:
- We propose a constant-size streaming memory for hybrid MLLM navigators, which keeps keyframes selected by a parameter-free state-change score, and an episode-level training scheme that matches deployment and encodes
8.6\timesfewer frames than step-wise training. - We propose Counterfactual Rewind, an RL method that branches from a rollout’s closest approach to the goal using an
\mathcal{O}(1)memory snapshot, and credits the expert’s corrections and the policy’s continuation by their counterfactual outcome. One pass over 1,000 instructions adds 8.2 SR to the DAgger-trained policy, against 3.1 for GRPO on the same instructions (Sec. 4.4). - With a 4B backbone and no external training data, GlanceNav reaches 71.9% and 73.6% SR on R2R-CE and RxR-CE val-unseen at a constant 104 ms per step.
2 Related Work
Vision-language models for navigation. Early VLN-CE agents rely on panoramas, depth and waypoint predictors [18, 19, 13, 37]. Video MLLMs made navigation from a single RGB camera competitive [50, 49, 5]. Later work scales the training data [51, 52], or adds self-correction data [47], dual-system planners [39, 43], geometry encoders [48, 53, 25], auxiliary objectives [57, 7, 34], agentic decomposition [42] or stereo input [35]. Most of these methods build each decision from a resampled set of frames, and their best results use external data such as ScaleVLN [36], VQA or web video. GlanceNav keeps one persistent stream and uses no external data.
Streaming and selective memory. StreamVLN [40] keeps a sliding window of dialogue turns and a pruned memory of older ones. JanusVLN [48] keeps the KV caches of the initial and the most recent frames from a semantic and a geometry encoder [31]. Efficient-VLN [56] reuses the KV cache as well and packs several decisions of a trajectory into one training sequence. In LLMs and video models, KV-eviction methods keep tokens by recency, attention mass or query relevance [41, 54, 23]. Linear-attention and state-space layers replace the cache with a fixed-size state [29, 10, 8, 44, 45], and hybrid models interleave them with a few attention layers [17, 26]. Two recent works read the delta rule to decide which exact tokens to keep: HOLA [6] keeps tokens with a large committed write, and the concurrent DeltaS [21] evicts video chunks by their state drift without training. Our state-change score belongs to this family. Unlike these works, which target language and video understanding, we train a navigation policy end to end with the resulting memory and evaluate it in closed-loop control.
Learning from policy errors. DAgger [27] labels the states visited by the learner and is widely used by MLLM navigators [40, 48, 56]. ActiveVLN [55] trains an MLLM navigator with multi-turn GRPO [30], which we adopt as our RL baseline. Recent methods make its sparse outcome reward more informative: SACA [22] resamples from a divergence point found by an auditor, SeekVLN [38] contrasts counterfactual branches at evidence-seeking steps, and BudVLN [12] rectifies failures from the farthest progress along the reference path. Branching from intermediate states is also used in LLM reasoning [15], exploration [9] and test-time backtracking for VLN [16]. CoRe branches at the closest approach to the goal, restores the full streaming memory there in \mathcal{O}(1), and imitates the expert only when its branch outperforms the original rollout, a Q-filter [24] estimated by a rollout instead of a learned critic.
3 Method
3.1 Preliminaries
Task Formulation. Given a natural-language instruction I, the agent navigates using egocentric RGB observations o_{t} received at each time step t. It selects an action a_{t} from \mathcal{A}=\{\texttt{FORWARD},\texttt{LEFT},\texttt{RIGHT},\texttt{STOP}\} according to a policy \pi_{\theta}(a_{t}\mid I,o_{1:t},a_{1:t-1}). Navigation succeeds when the agent issues STOP within a predefined radius of the goal. We consider an RGB-only setting without access to depth, odometry, or panoramic observations.
\mathcal{P}, recent steps, and selected keyframes within a fixed memory budget. (b) Frames are scored once by their relative recurrent-state change \delta_{s} (Eq. 2). On leaving the recent window, they compete for a layer-specific top-F bank. (c) CoRe (training only). After the main rollout ends, CoRe restores the pose and full memory at k^{\star}, the closest checkpoint before the first drift trigger t^{\dagger}. An expert supplies at most H corrective actions before the policy resumes. The branch–main return difference, R_{b}-R_{m}, determines positive-only expert credit and signed policy credit.Backbone. We build on a hybrid MLLM [26]. A frozen vision encoder maps each frame to N_{v} visual tokens. The language model stacks N blocks, each made of several GDN layers [45] followed by one softmax-attention layer, so every attention layer sits directly above a GDN layer. Each GDN head keeps a matrix state S\in\mathbb{R}^{d_{k}\times d_{v}} and updates it at every token i with the gated delta rule
S_{i}=\alpha_{i}S_{i-1}+\beta_{i}\,k_{i}e_{i}^{\top},\qquad e_{i}=v_{i}-\alpha_{i}S_{i-1}^{\top}k_{i},where \alpha_{i}\in(0,1) is a data-dependent decay, \beta_{i}\in(0,1) a write strength, k_{i} a normalized key, and e_{i} the part of the value v_{i} that the decayed state does not predict.
Token stream. An episode is one token stream x=[\mathcal{P};\mathcal{G}_{1};\mathcal{G}_{2};\dots]. The prefix \mathcal{P} holds the system prompt and the instruction. The step group \mathcal{G}_{t} holds the visual tokens of o_{t} and the response r_{t}, i.e. the action as text. At test time, r_{t} is decoded greedily and appended to the stream, so the agent sees its own past actions.
3.2 Streaming memory
At step t, only the tokens of \mathcal{G}_{t} pass through the model. What they can see is defined by a memory with three parts (Fig. 2a).
Recurrent state. The GDN states are carried through the whole episode and are never evicted. They summarize every observation in a fixed-size state, whatever the episode length.
Recent window. Each attention layer keeps the exact KV rows of \mathcal{P} and of the W most recent groups, with their visual and action tokens.
Keyframe bank. When a group leaves the window, its action tokens are dropped and its N_{v} visual rows become a candidate for the bank \mathcal{B}^{(\ell)} of each attention layer \ell, which holds at most F frames. We rank frames by how much they changed the recurrent state of the GDN layer directly below \ell (Fig. 2b). Let [b_{s},e_{s}] be the token span of observation s and S_{i} the state of that GDN layer (all heads) after token i. The state-change score of frame s is
\delta^{(\ell)}_{s}=\frac{\left\lVert S_{e_{s}}-S_{b_{s}-1}\right\rVert_{F}}{\max\big(\left\lVert S_{b_{s}-1}\right\rVert_{F},\ \varepsilon_{\ell}\big)},where \varepsilon_{\ell} is a small constant that only matters for the first frames, when the state is still small. The score is computed once, when the frame is encoded. The bank keeps the F frames of \mathcal{B}^{(\ell)}\cup\{s\} with the highest scores, and the other frame is deleted. Kept rows retain their original positions, so nothing is re-encoded. A query of step t in attention layer \ell attends to
\mathcal{V}^{(\ell)}_{t}=\mathcal{P}\,\cup\,\mathcal{B}^{(\ell)}_{t}\,\cup\,\mathcal{G}_{t-W+1}\cup\dots\cup\mathcal{G}_{t},causally within \mathcal{G}_{t}. Each attention layer has its own bank, because useful frames may differ across depth.
What the score measures. Unrolling Eq. 1 over a frame gives, for each head,
S_{e}-S_{b-1}=\underbrace{(A-1)\,S_{b-1}}_{\text{forgetting}}+\underbrace{\textstyle\sum_{i=b}^{e}\bar{\alpha}_{i}\,\beta_{i}\,k_{i}e_{i}^{\top}}_{\text{new writes}},with A=\prod_{i=b}^{e}\alpha_{i} and \bar{\alpha}_{i}=\prod_{j=i+1}^{e}\alpha_{j}. A frame scores high if the state could not predict it (large residuals e_{i} are written) or if it makes the state forget, as at a room transition. A frame that the state already explains scores low. The score measures the net effect of both terms, a heuristic for how much new content a frame carries.
Constant cost. Each step processes only the tokens of one group. Attention reads at most |\mathcal{P}|+FN_{v}+W\,g_{\max} rows per layer, where g_{\max} is the size of the largest group, and the GDN state has a fixed size. The cost per step therefore does not grow with t (Tab. 3).
Inference. Algorithm 1 summarizes one decision of GlanceNav.
t3.3 Training
Episode-level training. The scores of a frame depend only on tokens up to that frame, and the bank is a deterministic function of past scores. The visible sets \mathcal{V}^{(\ell)}_{t} of all steps can therefore be computed before attention layer \ell runs. We serialize a full expert episode with teacher-forced responses r_{t}^{\star} and run a single forward pass. A detached side pass computes the scores and the bank of every step, and each attention layer applies the block-sparse mask M_{ij}=\mathbf{1}[j\in\mathcal{V}^{(\ell)}_{t(i)}\wedge j\leq i], where t(i) is the step of token i (). The loss averages the cross-entropy of the T responses:
\mathcal{L}_{\mathrm{SFT}}=-\frac{1}{T}\sum_{t=1}^{T}\frac{1}{|r^{\star}_{t}|}\sum_{j=1}^{|r^{\star}_{t}|}\log\pi_{\theta}\big(r^{\star}_{t,j}\mid x_{<(t,j)};M\big).Gradients flow through every GDN recurrence and through attention over the selected rows. Only the discrete selection is not differentiated. Unlike step-wise training, which builds one sample per decision and re-encodes its sampled history, one forward pass supervises every decision of an episode and encodes each frame once (Tab. 3).
DAgger. To expose the policy to its own mistakes, we follow common practice [40, 48] and collect on-policy data with the Stage-1 policy. A shortest-path expert takes over after clear failures. We keep the executed actions in the input stream, so that the memory is that of the rollout, but label every visited state with the expert’s action and train on these episodes together with the expert demonstrations (Sec. 4.3).
3.4 Counterfactual Rewind
Base algorithm. We follow the multi-turn GRPO recipe of ActiveVLN [55]. For each instruction, the policy samples G main rollouts \tau^{1:G}. Rollout \tau^{g} receives a terminal reward R^{g}, which is zero unless the agent stops within the success radius and otherwise decreases linearly with its final distance to the goal. All its decisions share the advantage \hat{A}^{g}=(R^{g}-\mathrm{mean}\,R)/(\mathrm{std}\,R+\epsilon) within the group. In navigation, this signal is coarse, since one scalar covers every decision of a long episode. It also vanishes when all rollouts of a group fail, and merely ranks their stop distances when all succeed; such groups become common as the policy improves (Sec. 4.4).
Closest approach. Let d_{k} be the geodesic distance to the goal before decision k, which the simulator provides, as for the reward. A main rollout is triggered at the first decision at which it is a margin \eta farther from the goal than its best so far (Fig. 2c):
\displaystyle t^{\dagger} \\ \displaystyle=\min\{t:\ d_{t}\geq\min_{k<t}d_{k}+\eta\}, \\ \displaystyle k^{\star} \\ \displaystyle=\argmin_{k<t^{\dagger}}d_{k}.Decision k^{\star} is the rollout’s closest approach to the goal.
Counterfactual branch. While a main rollout runs, we copy the agent’s memory whenever d_{k} reaches a new minimum, until the rollout is triggered. Because the memory has a constant size, a copy is cheap and costs the same at every step. If the rollout is triggered, we restore the simulator pose and the memory at k^{\star} after it ends. A shortest-path expert then takes at most H actions, which are written into the agent’s own memory as its responses, and the policy continues with fresh samples for as many decisions as the main rollout had left at k^{\star}. Let R_{b} be the return of branch b and R_{m} that of its main rollout.
Counterfactual credit. The branch is scored against its main rollout, \Delta_{b}=(R_{b}-R_{m})/s, where s=\max(\sigma_{R},s_{\min}), \sigma_{R} is the standard deviation of the main returns in the batch, and the floor s_{\min} prevents division by a vanishing spread. Each response token (t,j) then receives a weight w_{t,j}. Tokens of a main rollout \tau^{g} keep its advantage \hat{A}^{g}. In a branch, the policy’s continuation receives \Delta_{b}, and the expert’s actions receive [\Delta_{b}]_{+}=\max(0,\Delta_{b}), so a correction is imitated only if its branch obtained a higher return than the main rollout, a counterfactual Q-filter [24]. The prefix that the branch shares with its main rollout receives w_{t,j}=0. \Delta_{b} contrasts two outcomes from the same state: it credits the correction and the continuation as a whole, not each action. The objective is
\mathcal{L}_{\mathrm{CoRe}}=-\frac{1}{Z}\sum_{(t,j)}w_{t,j}\,\log\pi_{\theta}\big(y_{t,j}\mid x_{<(t,j)}\big),where y_{t,j} is response token j at decision t, conditioned on the full stream x_{<(t,j)} before it, and Z is the number of response tokens of the main rollouts, as in the baseline. We optimize it with the clipped surrogate of the GRPO baseline and one on-policy update per batch, so that the importance ratio is one and the gradient equals that of Eq. 7. Equation 7 thus combines a policy gradient on sampled tokens with outcome-filtered imitation of the expert’s. Each triggered rollout has one branch. If no rollout is triggered, Eq. 7 is the GRPO objective, so CoRe changes training only where a rollout drifts. Algorithm 2 summarizes one CoRe update.
Validity of the credit. The return of the main rollout does not depend on the actions sampled in the branch, so R_{m} is a valid baseline for the policy’s continuation. The expert’s tokens are not samples of the policy, so their term is imitation, weighted by the outcome of the branch. The weight [\Delta_{b}]_{+} is shared by the whole correction: a helpful correction is not credited if the continuation fails by chance, and each of its actions is credited when the branch as a whole does better.
Why the closest approach? At the trigger t^{\dagger}, the agent is already lost, and most expert actions there are turns toward a goal that the agent cannot see. At k^{\star}, the expert instead redoes the moves with which the agent left its best position (Sec. 4.4). Distances and expert actions are used only during training; the policy needs neither at test time.
4 Experiments
4.1 Experimental Setup
Benchmarks and metrics. We evaluate on the val-unseen splits of R2R-CE [18] (1,839 episodes) and RxR-CE [20] (3,669 English episodes) in Habitat [28] with Matterport3D scenes [4]. The agent observes 480{\times}640 RGB images, moves forward 0.25 m or turns 15^{\circ} per action, and succeeds if it stops within 3 m of the goal. Following standard practice, we report navigation error (NE), oracle success (OS), success rate (SR) and success weighted by path length (SPL) [2], and on RxR-CE also normalized dynamic time warping (nDTW) [14].
Model. We instantiate GlanceNav with Qwen3.5-4B [26], whose language model has N{=}8 blocks of three GDN layers and one attention layer. The frozen vision encoder maps each frame to N_{v}{=}300 tokens. The memory keeps W{=}4 recent steps and F{=}4 keyframes per attention layer, so attention reads at most 4,784 KV rows per layer, and the recurrent state occupies 48 MiB.
Training. All three stages use only the R2R-CE and English RxR-CE training splits (30,815 episodes with 3.13M actions). Stage 1 trains for one epoch, which takes 13.5 h on four H100 GPUs. Stage 2 collects DAgger episodes with the Stage-1 policy on the same instructions and trains for one more epoch with the same recipe. Stage 3 runs CoRe on 1,000 training instructions, 500 from R2R-CE and 500 from RxR-CE. Each update uses G{=}4 rollouts per instruction, and one pass over the 1,000 instructions takes 125 updates, or 12.5 h on two RTX PRO 6000 GPUs. CoRe uses a trigger margin \eta{=}1 m and at most H{=}16 expert actions. Full hyperparameters and data-collection settings will be released with the code.
Compared methods. We report published results, and group the methods by their training data (Tab. 1). Most methods add data from other sources, such as ScaleVLN [36], VQA or web video. The others use only the R2R-CE and RxR-CE training splits, either as demonstrations or, like GlanceNav, also for DAgger or RL.
4.2 Comparison with the State of the Art
Navigation performance. GlanceNav reaches 71.9 SR and 63.7 SPL on R2R-CE val-unseen (Tab. 1). Among single-RGB methods that use only the R2R-CE and RxR-CE training splits, the best previous SR that we are aware of is 62.8 (ReflectVLN [32], which runs two 3B models and trains on recovery data), and the best SR from demonstrations alone is 56.3 (StageVLN [7]). GlanceNav improves on them by 9.1 and 15.6 points with a 4B backbone. Among all single-RGB methods of Tab. 1, only Efficient-VLN [56], an 8B model trained with ScaleVLN data, has a higher SR (73.2), and GlanceNav has the highest OS (78.6). On RxR-CE, GlanceNav reaches 73.6 SR, 7.6 points above ReflectVLN, and again only Efficient-VLN is higher (75.6).
Inference cost. Table 3 follows the protocol of StageVLN [7]. On an RTX PRO 6000, GlanceNav takes 103.9 ms and 8.68 GiB per step, about half the time and memory of StreamVLN and less than half the time of StageVLN, which re-encodes eight frames with a backbone of the same size. Because the memory has a constant size, the step time stays flat along an episode. With a full KV cache instead, the same backbone slows from 93.6 to 152.8 ms per step over 500 steps, while an eight-step window stays at 84 ms (Tab. 4). For the same reason, a snapshot of the full memory, as used by CoRe, takes 136 MiB and 1.4 ms at any step.
Latency breakdown. In an instrumented run on the RTX PRO 6000, a step spends 8.7 ms in the vision encoder, 35.5 ms appending the observation, and 55.4 ms decoding the response. Window-only models (W{=}4 to 9) run at 84–87 ms per step and bank models at 103–106 ms, for every bank size we measured. A randomly filled bank of the same size runs at 89.1 ms, so about 15 ms go to our unfused scoring code, which could be fused into the GDN kernel.
Memory snapshot. A snapshot holds the recurrent and convolution states of the 24 GDN layers (49.5 MiB in FP32), the KV rows of prefix, bank and window of the 8 attention layers, the bank scores and the step counter: 135.7 MiB in total, cloned on the GPU in 1.4 ms. These numbers are measured on training episodes, whose instruction prefixes are far shorter than the maximum prefix length. A full-history KV cache of the same layers would need at least 914 MiB at t{=}100 and 3,502 MiB at t{=}400, and a re-encoding policy would have to re-encode its history after each rewind.
Training cost. Table 3 compares episode-level training with the step-wise training used by most MLLM navigators, on the same backbone and data. The step-wise model encodes, for every decision, the current frame and up to eight sampled history frames, 27.0M frames per epoch. The episode-level model encodes each of the 3.13M frames once, 8.6\times fewer, and supervises about 100 decisions per forward pass, so one epoch takes 13.5 h instead of 42.6 h. It also reaches a higher SR (52.4 vs. 46.5), although the step-wise model comes from a separate code base, so this compares two systems and does not isolate the training scheme.
Agreement of training and inference. We replay real episodes of 64 and 128 steps with the same actions through the training pass and through the streaming path of the Stage-1 model. The two paths agree on the most likely response token in 99.5 to 100% of the cases and on 99.4 to 99.7% of the bank rows, and their logits differ by a root mean square of 0.03. The remaining differences are consistent with the different numerical kernels that the two paths use for the GDN recurrence.
4.3 Ablation Study
W{=}4. A bank holds the visual rows of four frames (B{=}1{,}200 rows) per attention layer: token rules keep the 1,200 highest-scoring visual rows, frame rules keep four whole frames. e, v, \beta: residual, value and write strength of Eq. 1, averaged over heads unless noted. Cosine error: one minus the cosine between v_{i} and its prediction by the state. Bottom: learned rankers.B: bank rows per attention layer.Streaming memory. Table 5 trains a Stage-1 model for each memory. Adding a bank of four keyframes to the four-step window raises SR from 48.7 to 52.4. The gain depends on what the bank holds. Averaging the token scores of a frame gives 49.3, close to the window alone, and under an earlier training schedule, a bank of randomly chosen tokens did not help at all, whereas a scored bank of the same size raised SR from 46.3 to 49.3 (Tab. 7). Among the better scores, the differences are small. Keeping tokens by their committed write, as in HOLA [6], or by a learned ranker gives 51.7, and our frame-level score is not significantly better (p{=}0.59, exact McNemar test). We use \delta_{s} because it keeps whole frames, has no parameters, and has the clear reading of Eq. 4.
Scoring rule. Table 5 compares ten parameter-free scores read from the GDN layer below each attention layer, and two learned rankers trained to predict a token’s future attention mass. The frame-level state-change score of Eq. 2 gives the highest SR. However, the SR of the ten GDN-derived scores has a standard deviation of only 1.1 points (49.0 to 52.4). Neither learned ranker improves on the parameter-free scores. Averaging the committed write over a frame is the worst frame-level rule, so the result is not explained by frame granularity alone.
Random bank. Under an earlier schedule (the epoch-1 checkpoint of a two-epoch run), we compared random and scored banks directly (Tab. 7). A bank of random old tokens does not help (-0.2 against the window alone, p{=}0.90), whereas a bank of the same size filled by the committed write raises SR from 46.3 to 49.3 (p{=}0.023) and beats the random bank by 3.2 points (p{=}0.018). Moving budget from the window to the bank helps further, and a ninth recent step, which costs about as much as a one-frame bank, lowers SR. The policy also relies on its bank: serving the committed-write model of Tab. 5 without its bank costs 1.7 points (p{=}0.12).
Memory budget. Table 7 trains a model for each budget. With eight visible frames, a window of four steps and four keyframes outperforms a window of eight steps by 3.4 SR on R2R-CE and 1.3 on RxR-CE, and a window alone needs twelve frames to come close (51.2 and 56.7). On R2R-CE, a larger bank or window does not help further (51.3 and 51.0). On RxR-CE, the banks with W{=}4 lie within 1.7 points of each other, and two keyframes score highest. We keep W{=}4 and F{=}4, the best budget on R2R-CE. Table 5 plots the eight models of Tab. 7 against the number of frames visible to an attention layer. Starting from the four-step window, the next frames help more as keyframes than as recent steps on both benchmarks: with six or eight visible frames, every model with a bank outperforms the window-only models, and a window alone needs twelve frames to be on par. The split matters as well. A window of two steps with four keyframes is 3.2 points below W{=}4 on R2R-CE (0.4 on RxR-CE), and a window of eight steps does not improve on W{=}4 either.
DAgger labels and data. We follow the recovery protocol of JanusVLN [48]: the Stage-1 policy drives greedily on the training instructions, and a shortest-path expert takes over after clear failures and returns control to the policy at the next waypoint. Because the memory of GlanceNav contains its own responses, a takeover restores the memory snapshot taken after the observation and appends the expert’s response instead of the learner’s. Inputs, recurrent state and bank are therefore those of the executed trajectory. We keep episodes that end at the goal and contain a detour, which gives 14,195 episodes with 1.61M steps. In 31% of the collected steps, the executed action is a mistake of the learner made before a takeover, so supervising the executed actions imitates these mistakes. We therefore keep the input stream bit-exact, so that recurrent state and bank match the rollout, and replace only the targets by the expert’s action at every visited state (oracle relabeling). During collection, the expert also overrides the learner’s STOP proposals until the agent is very close to the goal, so near the goal both labels say “keep moving”. We truncate each episode at the learner’s first STOP proposal near the goal and label that step STOP (STOP correction). We train for one epoch from the Stage-1 weights on the DAgger episodes together with the expert demonstrations of the 16,620 training instructions for which no DAgger episode was kept, so that every instruction appears once (30,815 episodes in total).
Table 8 shows that both the labels and the demonstrations matter. Supervising executed actions does not improve SR, although the agent reaches the goal area far more often (OS 58.0\to70.3), because it also learns the learner’s mistakes and the expert’s refusals to stop. Oracle relabeling adds 6.8 points with the same inputs. DAgger episodes alone lead to long paths (15.1 m). Adding demonstrations restores path efficiency and gives the best model.
4.4 Analysis of Counterfactual Rewind
Setup. Every RL run starts from the Stage-2 model and makes one pass over 1,000 instructions. GRPO and CoRe see the same instructions in the same order, with the same seed: the first 500 of the R2R-CE list and of the RxR-CE list released with ActiveVLN [55], without any selection. This is 3% of our training instructions and an eighth of those that ActiveVLN uses. GRPO follows the recipe of ActiveVLN, and CoRe adds its branches to it. We report one training run per setting.
Training stages. Table 9 shows that every stage helps. DAgger raises SR from 52.4 to 63.7. This requires labeling every visited state with the expert’s action; supervising the executed actions instead leaves SR unchanged (Tab. 8). CoRe then adds 8.2 points in 12.5 h on two GPUs. RxR-CE improves with every stage as well, from 56.6 to 67.2 and 73.6 SR.
\eta and expert horizons H.CoRe vs. GRPO. From the same instructions, CoRe gains more than GRPO in both settings that we ran: 71.9 against 66.8 SR with the mixed instructions (Tab. 9), and 68.7 against 64.3 with R2R-CE instructions only (Tab. 10). On the full RxR-CE val-unseen split, GRPO and CoRe reach 72.4 and 73.6 SR, 59.6 and 59.6 SPL, and 70.3 and 70.7 nDTW. Both improve the Stage-2 model (67.2 SR, 54.8 SPL, 65.7 nDTW) by more than five points of SR, and CoRe is 1.2 points ahead of GRPO. This margin is smaller than on R2R-CE. A likely reason is that the trigger of CoRe measures the distance to the goal and its expert follows the shortest path, whereas RxR-CE routes are not shortest paths: a branch can start on a correct detour and teach a shortcut.
Why CoRe learns more from the same instructions. GRPO learns from the contrast between the rollouts of an instruction, and as the policy improves, fewer groups contain both a success and a failure: 64% in the first quarter of training, 36% in the last (Tab. 9a). All-fail groups carry no signal. In all-success groups, half of all groups, returns differ only through a stop distance that varies by 0.23 m, yet group normalization gives them half of the total advantage. A branch contrasts two outcomes from the same state. CoRe keeps about 60% of the groups informative, 75% of its branches succeed, and they rescue 53% of the failed main rollouts.
Where the gain comes from. In Tab. 9b, the Stage-2 model stops without ever coming within 3 m of the goal in 27.0% of the episodes. CoRe lowers this share to 17.5% and GRPO to 20.3%, while 6 to 8% of the episodes still reach the goal area and leave it. CoRe thus mainly helps the agent reach the goal area, and does not change how reliably it stops.
Design of CoRe. Table 10 varies one design choice at a time, with 1,000 R2R-CE instructions. Its entries are single runs, and runs of one configuration differ by about two points. GRPO with a fifth rollout per instruction matches the training time of CoRe and is 2.2 points worse, so the gain does not come from the additional rollouts. Where a branch starts matters: at the trigger, 80% of the expert’s actions are turns (57% at k^{\star}), the policy learns to spin, its paths grow from 11.2 to 13.0 m, and SR is 2.0 points lower. Who acts matters less: if the policy resamples from k^{\star} itself, SR is 1.4 points lower. The credit on the expert’s corrections carries most of the gain: without it, SR falls by 3.8 points, close to GRPO, and imitating every correction regardless of its outcome costs 1.7 points. Among the trigger margins, \eta{=}1 m is best. A shorter expert horizon changes little (69.1 for H{=}4), whereas H{=}32 costs 2.2 points.
Design study. Table 10a counts the instruction groups that carry a training signal in the runs of Tab. 10. As GRPO improves, more groups become all-success or all-failure: over the whole run, about half of its groups have no outcome contrast. In the first 30 updates of CoRe, 30% of the main rollouts trigger a branch and 72.8% of the branches succeed, rescuing 170 of 338 failed rollouts. Self-rewind keeps almost as many groups informative as CoRe, but its branches succeed less often (44.5%) and rescue 101 of 343 failed rollouts: the expert adds successful corrections, not more contrast. In Tab. 10b, the share of episodes that reached the goal area and then left stays at 7–8% for all models, so CoRe does not change how reliably the agent stops once it is near the goal.
Where to branch. Imitating expert turn-arounds can make the policy spin in place. When a branch starts at the trigger t^{\dagger}, 80% of the expert’s actions are turns. Rewinding to k^{\star} lowers this share to 57% (62% with the mixed instructions). In a probe on 16 failed rollouts of the Stage-1 model, branching at k^{\star} with the expert rescued 12 of them, and branching at t^{\dagger} only 6 (p{=}0.07). With the mixed instructions and the same seed, rewinding to the farthest progress along the reference path, as in BudVLN [12], gives 69.7 SR, against 71.9 for the closest approach to the goal.
4.5 Real-World Experiments
We deploy GlanceNav on a Unitree G1 humanoid robot equipped with a chest-mounted ZED X Mini camera, using only the left RGB stream. A workstation with an RTX 5090 runs the navigation policy and receives observations over Wi-Fi. All real-world experiments are conducted without fine-tuning on real-world data.
The instructions fall into two categories: (i) T1 (Moderate-length Navigation), which requires the robot to distinguish visually similar objects and use their spatial or sequential relationships to identify the correct stopping location; and (ii) T2 (Long-range Navigation), which requires landmark recognition and navigation decisions at multiple points along the route.
Figure 7 shows one successful episode of each category, in which the robot recognizes the landmarks and stops at the described location. More real-world results are in App. A.
5 Conclusion
We presented GlanceNav, a VLN agent that encodes each frame once and keeps a constant-size streaming memory: the recurrent state of a hybrid MLLM, a short window of recent observations, and a bank of keyframes that changed the state the most. Because the memory is causal and bounded, GlanceNav is trained on whole episodes with its deployment memory, runs at a constant cost per step, and can copy its full memory in \mathcal{O}(1). Counterfactual Rewind uses these copies to correct drifting rollouts at their closest approach to the goal and to give counterfactual credit to corrections and continuations. Using only the R2R-CE and RxR-CE training splits and 1,000 RL instructions, a 4B GlanceNav reaches 71.9 SR on R2R-CE val-unseen and 73.6 on RxR-CE at 104 ms per step.
References
Appendix A Additional Real-World Experiments
We provide additional real-world navigation episodes to complement the experimental results presented in the main paper. These episodes cover both T1 (moderate-length navigation) and T2 (long-range navigation) tasks, further illustrating the ability of GlanceNav to follow natural language instructions and navigate to the specified target locations in real-world environments.
A.1 T1: Moderate-length Navigation
Figure 8 presents additional T1 navigation episodes, where the robot must distinguish visually similar objects and identify the correct stopping location based on their spatial or sequential relationships.
A.2 T2: Long-range Navigation
Figure 9 presents additional T2 navigation episodes involving longer trajectories, landmark recognition, and multiple navigation decisions along the route.