Remember What Changes the Odds: Critic-Gated Event Memory for Long-Horizon Manipulation
In long-horizon manipulation, a robot may need to take different actions under identical observations, depending on task progress and the outcomes of earlier attempts. We refer to this ambiguity as decision aliasing.
From the abstract. Our summary is in progress.
Full paper
Remember What Changes the Odds: Critic-Gated Event Memory for Long-Horizon Manipulation
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.16386 (PDF).
Abstract
In long-horizon manipulation, a robot may need to take different actions under identical observations, depending on task progress and the outcomes of earlier attempts. We refer to this ambiguity as decision aliasing. Resolving it requires the policy to maintain memory of its execution history. To reduce the cost of processing full observation histories, recent methods build compact event memories using perceptual, semantic, or kinematic cues. However, these criteria may miss events that matter for task success. We instead propose an outcome-grounded principle: remember events that substantially change the predicted probability of eventual success. Following this principle, we introduce CGEM, a critic-gated event memory that uses a critic to select events with large estimated changes in success probability. Positive and negative changes are encoded as progress and failure records, respectively. Failure records are discarded once the corresponding subtask is completed. In a ten-subtask diagnostic environment with exactly computed success probabilities, CGEM achieves 88.0\% success, compared with 0.0\% for both a 36-step observation window and a kinematic event memory. Removing failure records reduces success to 1.7\%.
1 Introduction
Consider a robot at its home pose beside a button (Fig. 1a). The current observation may look the same before a press, after a recoverable failure, and after a successful press. Yet these situations call for different action strategies: attempt the press, retry, or advance to the next subtask. We call this ambiguity decision aliasing. Reactive policies based on robot foundation models [4, 3] generate actions from current observations and language instructions. When these inputs are identical, the policy cannot distinguish whether an interaction remains untried, has failed, or has succeeded.
Resolving decision aliasing therefore requires the policy to maintain a memory of its execution history. To reduce the cost of processing full observation histories, recent methods build compact memories around key events selected using perceptual, semantic, or kinematic cues [14, 10, 12, 13]. However, these cues may miss events that matter for task success. A large arm motion may be easy to detect without changing what the robot should do next. A failed contact may leave no lasting visual trace but require a different retry strategy. Selecting events for memory therefore requires more than detecting changes in appearance or motion.
To decide what to remember, we seek a signal that reflects what each event reveals about the likelihood of completing the task. Learned value estimates provide information about task progress or expected return [5, 6, 2]. We use a critic’s prediction of eventual success to obtain such a signal for memory selection. A substantial change in this prediction indicates that an event has provided new information about the estimated chance of task success. This leads to our outcome-grounded principle: remember events that substantially change the predicted probability of eventual success.
Following this principle, we introduce CGEM (Critic-Gated Event Memory), which uses a critic to select events with large estimated changes in success probability (Fig. 1b). Positive and negative changes are stored as progress and failure records, respectively. These records track which subtasks have been completed and which strategies have failed. Retaining failure records allows the policy to distinguish an untried subtask from a failed attempt and adjust its retry strategy. After subtask completion, obsolete failure records are discarded. Theoretically, under a fixed reference policy and threshold, we establish a horizon-independent bound on the expected number of large changes in conditional success probability, motivating sparse event selection. We also characterize when event records preserve the information needed for subsequent decisions.
We evaluate this mechanism in an exact-value diagnostic that isolates the effects of event selection, failure records, and consolidation. We also analyze whether learned critics on real robot data provide reliable event-detection signals and outline a proposed integration with \pi_{0.5} (Fig. 1b).
Contributions. (i) Theoretically, we show that the expected number of large changes in success probability has a bound independent of task length, motivating sparse event memory. (ii) We introduce CGEM, a critic-gated memory of progress and failure events, and propose an architecture that integrates it with \pi_{0.5}. (iii) We evaluate CGEM and its ablations in an exact-value diagnostic and assess learned critics for event detection on real robot data.
2 Problem Formulation
Task and memory. We consider a long-horizon manipulation task with observations o_{t}, actions a_{t}, a language instruction l, and a terminal outcome Z\in\{0,1\} that indicates task success. The execution history up to step t is h_{t}=(o_{0},a_{0},\dots,o_{t}). A policy \pi_{\theta}(a_{t}\mid o_{t},m_{t},l) selects actions from the current observation and an event memory m_{t} that holds at most K records. Decision aliasing arises when two histories produce the same input (o_{t},m_{t},l) but require different actions.
Critic change as an event score. Whether a task succeeds depends on how the robot will act in the future, so we define success with respect to a fixed reference policy \pi. Let V_{t}=\mathbb{P}_{\pi}(Z=1\mid h_{t}) denote the probability of eventual success given the history, and let a critic \hat{V}_{t} estimate it from data. We score each transition by how much it changes this estimate:
\Delta\hat{V}_{t}=\hat{V}_{t+1}-\hat{V}_{t},\qquad\hat{\kappa}_{t}=|\Delta\hat{V}_{t}|.A large score marks a substantial change in the estimated probability of task success.
Problem. Given training trajectories from \pi and a memory capacity K, we seek a causal memory rule that allows the policy to reproduce a history-aware expert’s decisions using only (o_{t},m_{t},l). This requires histories with different expert actions to remain distinguishable through the policy input. The memory rule must determine (i) when to write, by selecting events using critic changes, (ii) what to record, including each selected event’s outcome and the subtask or strategy it concerns, and (iii) when to delete, by identifying records that are no longer needed for subsequent decisions. All updates use only information available at the current step and maintain |m_{t}|\leq K. We characterize when this goal is achievable in Section 3 and specify three components of the memory rule in Section 4.
3 Theory: Sparse and Sufficient Event Memory
We now justify the three decisions of Section 2. We analyze why changes in success probability support sparse event selection and when the resulting records preserve expert decisions. Detailed assumptions and proofs are provided in Appendix A.
Sparse event selection. Under a fixed reference policy \pi, the exact conditional success probability V_{t} forms a bounded martingale [11]. Its expected sum of squared changes is at most 1/4, which bounds the number of changes above a fixed threshold.
Proposition 1 (Horizon-independent event bound).
Let \Delta V_{t}=V_{t+1}-V_{t}. For any fixed threshold \delta>0 and any horizon T,
\mathbb{E}_{\pi}\bigl|\{t<T:|\Delta V_{t}|\geq\delta\}\bigr|\leq\frac{1}{4\delta^{2}}.For a fixed threshold, the expected number of selected events is bounded independently of the horizon. This supports sparse event selection in long-horizon tasks.
Records that preserve decisions. Sparse selection alone does not ensure that the retained events preserve all information needed for decisions. Let a task register summarize the relevant history, including completed subtasks and failed strategies, so that the register, current observation, and instruction determine the expert action.
Our sufficiency result assumes that register updates coincide with substantial changes in success probability, so that the event-selection rule detects every update, and that each record encodes the corresponding update. Starting from a known initial register, the memory then allows its reconstruction if all required records fit within capacity K and remain available. Once the relevant events have been confirmed, the expert action can be recovered from (o_{t},m_{t},l) (Theorem 1).
4 CGEM: Critic-Gated Event Memory
CGEM selects events, records their outcomes and context, and removes obsolete records. Figure 1b shows a proposed integration with \pi_{0.5} [3].
When to write. A candidate event is written when its estimated change in success probability satisfies \hat{\kappa}_{t}\geq\delta. For a success-probability critic, this score is |\hat{V}_{t+1}-\hat{V}_{t}|, with predictions evaluated before and after an action chunk. The proposed architecture obtains candidates from critic-score peaks, force/torque changepoints detected by BOCPD [1], and gripper transitions. Force provides evidence for contact-only outcomes that may not appear in the image or gripper state.
What to record. Positive and negative estimated changes are encoded as progress and failure records. Each record also identifies the subtask or attempted strategy. In ASC, records contain the station, sign, and attempted variant. The proposed VLA representation combines SigLIP [15] event-frame tokens with the sign and subtask or action metadata.
When to delete. Failure records remain available while they can affect a retry decision. Once the corresponding subtask is confirmed complete, its failure records are removed. If the bank still exceeds capacity K, the oldest record is evicted. The sufficiency result applies when all records needed to reconstruct the task register remain available.
Reading the memory. The proposed policy reads memory tokens through gated cross-attention, X\leftarrow X+\sigma(g)X^{\prime}, where X^{\prime} is the attention output and g is a learned gate. The critic reads the same memory to account for earlier events. Training details are given in Appendix D. The real-data analysis in Appendix E separately evaluates chunk-level TD residuals from return critics as event signals.
5 Experiments: An Exact-Value Diagnostic
N, with the failure-blind ceiling \rho^{N} from Proposition 2. (b) The top 1\% of steps carry 79\% to 96\% of the squared value changes, measured on 3000 reference-policy episodes per N.We evaluate CGEM on the Aliased Stage Chain (ASC), where the robot completes N ordered subtasks with repeated station visits and returns to an identical home-pose observation after each attempt. Exact success values supervise an event-score lookup fitted from local sensor features. All policies use tabular behavior cloning with DAgger [9]. We report success rate (SR) and stage completion (SC) over 500 episodes per seed and three seeds, with capacity K=N. Task and training details are in Appendix B.
Baselines. We compare observation windows (12 or 36 steps), uniform keyframes, kinematic events selected by gripper and visual cues [14], and an unsigned union of gripper and force events. Ablations remove failure records, force information, or consolidation. An oracle stores the task register.
- Memory
- SR
- SC
- SR
- SC
- None
- 0.0
- 11.6
- 0.0
- 5.6
- Window 12
- 0.0
- 14.5
- 0.0
- 13.8
- Window 36
- 60.0\pm 3.6
- 80.6
- 0.0
- 44.6
- Uniform
- 0.0
- 16.9
- 0.0
- 10.2
- Kinematic
- 0.0
- 11.4
- 0.0
- 5.6
- Heuristic union
- 10.0\pm 0.8
- 27.7
- 0.9\pm 0.5
- 17.3
- Without failure records
- 8.9\pm 5.6
- 29.6
- 1.7\pm 1.5
- 16.6
- Without force
- 38.3\pm 2.1
- 46.9
- 14.2\pm 0.6
- 32.6
- Without consolidation
- 91.5\pm 0.6
- 96.2
- 47.7\pm 1.1
- 80.2
- CGEM
- \mathbf{91.6}\pm 1.7
- 96.3
- \mathbf{88.0}\pm 0.9
- 93.6
- Oracle register
- 95.4\pm 0.4
- 99.0
- 97.3\pm 0.3
- 99.4
Main findings. CGEM maintains high success as task length increases (Fig. 2a). At N=10, it achieves 88.0\% SR, while the observation windows, kinematic memory, and uniform memory all reach 0.0\% (Table 1).
The ablations show that event selection, outcome records, and consolidation play complementary roles. Removing failure records reduces SR to 1.7\% at N=10. Without force information, sign accuracy falls despite a similar share of retained squared value changes (Table 2), highlighting the need to identify event outcomes. Removing obsolete failure records raises SR from 47.7\% to 88.0\% at N=10, supporting consolidation under limited capacity.
Squared value changes concentrate in a small fraction of steps (Fig. 2b), consistent with sparse event selection. Appendix C provides additional diagnostics, and Appendix E evaluates event signals from learned critics on real robot data.
References
Appendix A Formal Statements and Proofs
A.1 Energy identity and event-count bound
Fix the reference policy \pi and instruction l, and let \mathcal{F}_{t}=\sigma(h_{t},l). Since V_{t}=\mathbb{E}[Z\mid\mathcal{F}_{t}] and Z\in\{0,1\}, (V_{t}) is a bounded martingale. Its increments are orthogonal in expectation. For a finite horizon T,
\mathbb{E}\sum_{t<T}\Delta V_{t}^{2}=\mathbb{E}[V_{T}^{2}]-\mathbb{E}[V_{0}^{2}]\leq\mathbb{E}[V_{0}(1-V_{0})]\leq\frac{1}{4}.The same bound holds for a bounded stopping time by applying this identity to the stopped process. When the terminal outcome has been observed, V_{T}=Z, the first inequality is an equality. With a fixed initial value V_{0}=p, this gives \mathbb{E}\sum_{t<T}\Delta V_{t}^{2}=p(1-p).
Proof of Proposition 1.
Since \delta^{2}\mathbb{1}\{|\Delta V_{t}|\geq\delta\}\leq\Delta V_{t}^{2}, summing over the episode and taking expectations gives
\mathbb{E}\bigl|\{t<T:|\Delta V_{t}|\geq\delta\}\bigr|\leq\frac{1}{\delta^{2}}\mathbb{E}\sum_{t<T}\Delta V_{t}^{2}\leq\frac{1}{4\delta^{2}}.∎
A.2 Records that preserve expert decisions
Theorem 1 (Conditional sufficiency of event records).
Suppose a task register s_{t} has a known initial value s_{0}(l) and determines the expert action through a_{t}^{\star}=\mu(s_{t},o_{t},l). Every register change is detected and encoded in a record e with a fixed update map s_{t+1}=U(s_{t},e). Records are available after confirmation and retain their event order. If all records needed for reconstruction fit within capacity K and are retained, then, at times with no pending updates, a fixed decoder recovers s_{t}=D(m_{t},l). The expert action is therefore a function of (o_{t},m_{t},l). A record can be deleted if doing so leaves the decoded register unchanged.
Proof.
Starting from s_{0}(l), apply U to the confirmed records in event order. Each record reproduces its register update, and the register is unchanged between events. Induction reconstructs the current register once all relevant updates have been confirmed. Retaining the required records and deleting only records that leave the decoded register unchanged preserve this reconstruction. Substituting D(m_{t},l) into \mu recovers the expert action. ∎
For critic-based selection, detecting every required update is an additional condition. One sufficient case is that all register updates occur at candidate steps with |\Delta V_{t}|\geq\delta, while other candidates remain below the threshold. Records must encode the outcome and strategy information needed for the update. If subtask completion resets the register’s failure history, its completion record permits those failure records to be deleted.
A.3 Failure-blind success ceiling
Proposition 2 (Failure-blind ceiling).
Consider N sequential subtasks with independent latent correct strategies b_{i}\in\{A,B\} and \max_{b}\mathbb{P}(b_{i}=b)=\rho. Before its first attempt, the policy has no information about b_{i} beyond this prior. Only the correct strategy can complete the subtask. If a failed attempt leaves the entire input at the next strategy decision unchanged, a deterministic policy acting on that input succeeds with probability at most \rho^{N}.
Proof.
The unchanged decision input makes the policy repeat its initial strategy \hat{b}_{i} on every retry. Completing subtask i therefore requires \hat{b}_{i}=b_{i}, which has conditional probability at most \rho, by independence and the prior assumption. Multiplying across subtasks gives \mathbb{P}(\mathrm{success})\leq\rho^{N}. Slips or a finite time budget can further reduce success. ∎
Appendix B The Aliased Stage Chain
Task. There are three stations \{1,2,3\} of types P, G, and G. The plan is the length-N prefix of (1,2,1,3,2,1,3,1,2,3), so stations repeat and progress must be counted. Each attempt has four phases. (i) At home, the robot chooses a station, and choosing a wrong station is an irrecoverable ordering error. (ii) Outbound: the robot makes L=6 moves, each of which stalls with probability 0.2, and chooses a variant on arrival. (iii) Interaction: after D=3 steps, the attempt succeeds with probability 1-q, where q=0.1, if the variant equals the latent b_{i}, where \mathbb{P}(b_{i}\!=\!A)=\rho=0.7, and fails otherwise. (iv) Return: the robot makes L moves back to home. The time limit is 40N steps.
Observations. Phase, position, and current station are always observed, and the home observation is identical across visits. Force is \mathcal{N}(0,0.1^{2}) while moving and \mathcal{N}(0.6,0.15^{2}) or \mathcal{N}(0.3,0.1^{2}) during P or G interaction. At the outcome step, a P success gives \mathcal{N}(2.5,0.3^{2}) and a P failure \mathcal{N}(1.2,0.3^{2}). A G success gives \mathcal{N}(0.9,0.2^{2}) with the gripper opening and the visual cue “placed”, and a G failure gives \mathcal{N}(0.05,0.1^{2}) with the gripper opening and the cue “dropped”. Force is discretized into five bins.
Exact V_{t}. The reference policy is the history-aware Bayes expert. It chooses the correct station with probability 1-\varepsilon_{h} (\varepsilon_{h}=0.02) and the posterior-MAP variant with probability 1-\varepsilon_{v} (\varepsilon_{v}=0.05), where \mathbb{P}(b_{i}\!=\!A\mid n_{A},n_{B})=\rho q^{n_{A}}/\big(\rho q^{n_{A}}+(1-\rho)q^{n_{B}}\big) and n_{A} and n_{B} count failed attempts with each variant. The finite diagnostic value computation caps failure counts at 3 and computes V_{t} by backward induction on a sparse transition matrix.
Learning. The keyness head is a lookup table of \mathbb{E}|\Delta V_{t}| and \mathbb{E}\Delta V_{t} given local features (station, phase, gripper event, visual cue, and force bin), fitted on 1500 reference rollouts. A record is written when \hat{\kappa}_{t}\geq\delta=0.01, with a refractory period of 2 steps. Records are (station, sign, own variant). When a progress record is written, all failure records are deleted, and otherwise the bank is FIFO with capacity K. Policies use tabular behavior cloning with four DAgger rounds (mixing coefficients 1,.5,.25,0 and 300 episodes per round). Their keys are the ordered records at home and the station together with the last three records on arrival, and unseen keys back off to the per-station majority action.
Appendix C Additional Results
Detector diagnostics. Table 2 reports the energy retained by each detector and the accuracy of its event signs. Figure 3 illustrates the signed records along a reference-policy episode.
- Uniform
- 3.6
- –
- Kinematic
- 12.1
- 100
- Heuristic union
- 60.3
- n/a
- Without failure records
- 28.4
- 99.4
- Without force
- 85.8
- 68.3
- Without consolidation
- 85.8
- 99.3
- CGEM
- 85.8
- 99.3
V_{t} jumps at progress and failure outcomes, while the home-pose observation (shaded) never changes. CGEM writes the signed outcome jumps and skips the small changes when the robot leaves home. It keeps failure records until the subtask succeeds, which allows the switch to variant B at t\!=\!105, and then deletes them.Energy identity. The empirical energy estimates agree with p(1-p) within two standard errors over mean episode lengths from 47 to 243 steps (Figs. 4 and 3). Changes larger than 0.05 occur 1.2 to 3.1 times per episode over this range.
p(1-p) and the points show estimates of \mathbb{E}\sum_{t}\Delta V_{t}^{2} from 3000 reference-policy episodes per N, with error bars of \pm 2 standard errors.- 2
- 47.3
- .1399
- .1379\pm.0039
- 2.49
- 4
- 102.5
- .1522
- .1498\pm.0045
- 3.13
- 6
- 152.4
- .1686
- .1667\pm.0051
- 2.32
- 8
- 199.9
- .1873
- .1959\pm.0055
- 1.87
- 10
- 243.2
- .2047
- .2065\pm.0056
- 1.23
Capacity. At N=6, CGEM reaches 82.7\% SR with K=2 and 91.6\% with K=6, compared with 58.0\% and 91.5\% without consolidation. All three tested memory variants have zero SR with K=1 (Table 3).
Appendix D Proposed VLA Integration
The proposed architecture (Fig. 1) would replay the causal memory rule over demonstrations and robot rollouts to construct inputs for flow-matching fine-tuning. Subtask annotations and episode outcomes would supervise the critic, with outcome labels restricted to autonomous segments at intervention boundaries [6].
An optional extension weights imitation by w_{t}=1+\lambda|\hat{A}_{t}|, where \hat{A}_{t} estimates action advantage. This extension is separate from the memory mechanism evaluated in ASC. Planned evaluation on LIBERO-Long and real-robot tasks would compare task success and repeated unsuccessful retries against the base policy, observation windows, and event-memory baselines.
Appendix E Event Detection by Learned Critics on Real Bimanual Data
We evaluate five learned critics as failure-event detectors on a real dual-arm task (AgiBot charging: pick the left charger head, insert it, pick the right one, and insert it), recorded at 30 fps with \gamma=0.999 per frame and action chunks of H=50 frames. The critics are DINOv2-based [8] twin-Q/V networks trained by Monte Carlo regression (MC) or IQL [7] under three rewards.
- Mode A: outcome only, with
+1on the success frame. - Mode 7: milestones and a regression penalty predicted by a VLM reward model, plus a time cost, with no human failure labels.
- Mode 9: human-annotated milestones plus
-0.25at the start of every human-annotated failure window.
Evaluation uses all 87 held-out test episodes, none of which were seen during training or checkpoint selection. They comprise 75 expert episodes and 12 suboptimal episodes with 42 annotated recoverable failures (16 failed insertions, 15 empty grasps, and 11 bad grasp poses). All episodes end in success, so failures are evaluated as windows within episodes.
Score. These critics estimate discounted returns under their respective rewards. We evaluate the chunk-level TD residual d_{t}=\sum_{k<H}\gamma^{k}r_{t+k}+\gamma^{H}\hat{V}_{t+H}-\hat{V}_{t}, smoothed with a seven-point moving average. Its value-only part \gamma^{H}\hat{V}_{t+H}-\hat{V}_{t} excludes the in-chunk reward.
Metrics. \kappa_{0} is the 99th percentile of |d_{t}| over all expert steps (26,846 steps, 74.6 min). \kappa_{\min} is the 10th percentile, over failure windows, of the peak of -d_{t} within each window extended by \pm 1 s. A window counts as detected if d_{t}\leq-\theta somewhere inside it, for a threshold \theta. False writes are threshold crossings on expert episodes, with crossings within 0.3 s merged.
- Critic
- in reward
- \kappa_{0}
- \kappa_{\min}
- d_{t}
- value only
- AUROC
- recall
- FP/min
- MC Mode A @1k
- no
- .066
- .015
- -.051
- -.051
- .71
- .12
- .07
- MC Mode 7 @2k
- no
- .098
- .081
- -.017
- -.076
- .83
- .74
- .43
- IQL Mode 7 @6.5k
- no
- .084
- .087
- +.003
- -.079
- .86
- .76
- .12
- MC Mode 9 @2k
- yes
- .080
- .191
- +.111
- -.071
- .74
- 1.00
- .01
- IQL Mode 9 @7k
- yes
- .066
- .221
- +.155
- -.071
- .72
- 1.00
- .04
Results. IQL Mode 7 achieves the highest AUROC (0.86) and 76\% recall at 0.12 false alarms per minute. Both Mode 9 critics detect all 42 failure windows, with their residuals including the annotated failure penalty. Figures 6 and 6 show the recall–false-alarm tradeoff and example value trajectories.
d_{t}. Solid lines show the full TD residual, and dashed lines show its value-only component. Figure 6: Value predictions \hat{V}_{t} from the five critics on one expert episode (top) and one suboptimal episode (bottom). Shading marks annotated failure windows. Each example is one of the two episodes closest to the median length in its group.