potentialpaper

Context Value Informed In-Context Reinforcement Learning

Wenhao Zhang, Shao Zhang, Xihuai Wang, Yang Li, Ying Wen

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. In-context reinforcement learning (ICRL) has emerged as an effective paradigm for test time adaptation to unseen tasks without parameter updates. However, existing ICRL methods can exhibit brittle and unstable adaptions, and the mechanisms underlying such adaptions remain poorly understood. We provide a policy-gradient view of ICRL and argue that relying on trajectory-level return feedback can lead to high-variance updates when test time rollout is limited. Motivated by the actor--critic principle, we propose Context Value Informed ICRL (CV-ICRL), which equips the in-context policy with an explicit context value: the expected discounted return conditioned on the current state and accumulated interaction context. CV-ICRL trains a value head and writes its prediction back into the context as a value token, enabling TD-style return targets for lower-variance policy updates. Experiments on the Dark Room, Minigrid, and Procgen testbeds show that CV-ICRL substantially improves the stability of test time adaptation and achieves higher returns across tasks and environments. Code and data are available at https://github.com/Bluixe/CV-ICRL .

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The authors' rebuttal should focus primarily on addressing the following technical comments raised by the reviewers. In addition, please respond carefully to the reviewers’ clarification questions to resolve any misunderstandings about the paper.

Reviewer PwQQ:

  • Provide experiments or theoretical support in terms of to what extent it can be robust to compounding errors in bootstrapped value predictions for longer episodes?
  • Explain if there is any experiment support to use state-dependent value token supervision or a combination of context and state for getting the value token targets?

Reviewer F8Bm:

  • Further clarify the variance reduction argument (property 4.1)
  • The training policy is not value-conditioned while at test time the transformer is unrolled with value conditioning. Explain how this distribution shift affects performance.
  • It seems that the improvement of the proposed method over the baseline AD is marginal on many tasks in terms of Last Episode Return (LER). Explain the reason.

Reviewer EpgT:

  • Clarify the difference from Reinformer, proposed in Zhuang, Z., Peng, D., Liu, J., Zhang, Z., & Wang, D. (2024). Reinformer: Max-return sequence modeling for offline RL. arXiv preprint arXiv:2405.08740.
  • Provide additional baselines, such as S-ICQL, IC-IQL/CQL, and Reinformer
Final justification

The paper provides a policy-gradient interpretation of in-context reinforcement learning (ICRL), arguing that trajectory-level return feedback can induce high-variance and unstable test-time adaptation under limited rollouts. It proposes Context Value Informed ICRL (CV-ICRL), which introduces a context-conditioned value estimate and TD-style targets to stabilize adaptation, achieving higher returns and improved robustness across Dark Room, Minigrid, and Procgen tasks.

The authors’ rebuttal addressed the main issues raised by the reviewers, including clarifying the technical questions and providing the requested additional experiments. Given that these concerns have been satisfactorily resolved, I recommend acceptance.

As a side note, Reviewer F8Bm acknowledged during the rebuttal that the initial concerns had been resolved and indicated an intention to raise the score, but the score was not updated in the system. Therefore, the effective score profile should be 5/4/4, corresponding to an average score of 4.33.

Area Chair mwkj · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The authors' rebuttal should focus primarily on addressing the following technical comments raised by the reviewers. In addition, please respond carefully to the reviewers’ clarification questions to resolve any misunderstandings about the paper.

Reviewer PwQQ:

  • Provide experiments or theoretical support in terms of to what extent it can be robust to compounding errors in bootstrapped value predictions for longer episodes?
  • Explain if there is any experiment support to use state-dependent value token supervision or a combination of context and state for getting the value token targets?

Reviewer F8Bm:

  • Further clarify the variance reduction argument (property 4.1)
  • The training policy is not value-conditioned while at test time the transformer is unrolled with value conditioning. Explain how this distribution shift affects performance.
  • It seems that the improvement of the proposed method over the baseline AD is marginal on many tasks in terms of Last Episode Return (LER). Explain the reason.

Reviewer EpgT:

  • Clarify the difference from Reinformer, proposed in Zhuang, Z., Peng, D., Liu, J., Zhang, Z., & Wang, D. (2024). Reinformer: Max-return sequence modeling for offline RL. arXiv preprint arXiv:2405.08740.
  • Provide additional baselines, such as S-ICQL, IC-IQL/CQL, and Reinformer
Final justification

The paper provides a policy-gradient interpretation of in-context reinforcement learning (ICRL), arguing that trajectory-level return feedback can induce high-variance and unstable test-time adaptation under limited rollouts. It proposes Context Value Informed ICRL (CV-ICRL), which introduces a context-conditioned value estimate and TD-style targets to stabilize adaptation, achieving higher returns and improved robustness across Dark Room, Minigrid, and Procgen tasks.

The authors’ rebuttal addressed the main issues raised by the reviewers, including clarifying the technical questions and providing the requested additional experiments. Given that these concerns have been satisfactorily resolved, I recommend acceptance.

As a side note, Reviewer F8Bm acknowledged during the rebuttal that the initial concerns had been resolved and indicated an intention to raise the score, but the score was not updated in the system. Therefore, the effective score profile should be 5/4/4, corresponding to an average score of 4.33.

1 comment
Authors · CommentOpenReview ↗

We thank the Area Chair for summarizing the key technical questions. We address them below; full results and derivations are provided in the cited reviewer responses.

Value supervision and deployment

  • Training and deployment. During supervised pretraining, the Transformer conditions on earlier source-checkpoint value annotations. The source PPO policy generated action labels without those annotations, but the Transformer was trained with them. Deployment keeps the same temporal structure while replacing source annotations and PPO histories with the model's own predictions and interactions. (F8Bm, “The training policy is not value-conditioned”; intervention table)

  • Error propagation. Predicted values remain in the context, so errors can affect later outputs. Each value is recomputed from the current state and retained context rather than numerically accumulated. Across the existing 8,000-step closed-loop evaluations, performance improves over the tested lifetime. This shows stability under the tested protocol, but does not establish robustness for longer episodes. (PwQQ, “compounding errors”)

  • State-dependent targets. We tested Vπk(Ct)(st)V^{\pi_{k(C_t)}}(s_t), where the context identifies the source learning stage and the state determines value within that policy. It improves the two SimpleCrossing results, while the original target is better on the other four tasks. The effect is task-dependent. (PwQQ, “state-dependent value token supervision”; six-task table)

Variance reduction and LER

  • Property 4.1. The property concerns the true conditional value, whereas the implementation uses the checkpoint-level proxy J(πk)J(\pi_k). With estimation error et+1e_{t+1}, the practical target adds γet+1\gamma e_{t+1}, so its bias and variance depend on the error statistics. The ideal result does not establish that the proxy is unbiased or always lower-variance. (F8Bm, “Property 4.1”; derivation)

  • LER. On several near-ceiling MiniGrid tasks, AD and CV-ICRL reach similar final performance. The clearer difference is how quickly and stably that level is reached, as reflected by AER, IF, and the interaction-time curves. Our claim is faster and more stable adaptation, not uniformly higher final performance. (F8Bm, “Last Episode Return”)

Additional comparisons: Reinformer and IC-CQL

  • Relation to Reinformer. Both methods predict a scalar and use it for action conditioning. Reinformer predicts the maximum in-distribution return-to-go for within-episode trajectory stitching in offline RL on a fixed MDP. CV-ICRL instead distills source-policy learning progress and retains predicted context values across episodes for frozen adaptation on unseen tasks and task types. Our contribution is this cross-episode adaptation signal in ICRL, not scalar conditioning itself. (EpgT, [W3/Q3])

  • Results. We compare against Reinformer for max-return sequence modeling and IC-CQL for history-conditioned Q-learning. CV-ICRL has the highest AER on all four evaluated task types; equal-task macro AER is 0.931 for CV-ICRL, 0.696 for Reinformer, and 0.499 for IC-CQL. (EpgT, [W4/Q4]; per-task and aggregate results)

Reviewer EpgTOpenReview ↗
Rating
4/6
Confidence
5/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
1/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper advances in-context reinforcement learning by incorporating explicit, context-based value information into the Algorithm Distillation framework. Adding values to the context allows Context Value-Informed ICRL (CV-ICRL) to model one-step TD errors during in-context updates, providing a lower-variance credit signal than rewards alone. As a result, CV-ICRL achieves lower variance and greater stability compared with AD. This improvement is supported by experiments on the Dark Room, MiniGrid, and Procgen environments, using the Instability Frequency (IF) metric.

Strengths and weaknesses

The paper has a clear motivation and addresses an important problem in existing ICRL methods. This is supported by the experiments, where AD indeed shows much higher variance, and the Instability Frequency (IF) further confirms this issue. However, in its current form, I believe the paper has several substantial weaknesses that should be addressed before it is ready for publication.

[W1]. Clarity: The paper devotes considerable space to a non-rigorous theoretical motivation. In my view, this section does not substantially help the reader, especially since it remains informal. A toy experiment demonstrating the instability frequency of AD would likely communicate the problem more effectively. This space could instead be used for a more detailed description of the method itself, including the inference procedure, data collection process, and value estimation procedure. These details are especially important for ICRL. Currently, some key information is placed in the appendix, which makes the method harder to understand and reproduce.

[W2]. Motivation: While the symptoms of AD instability are clearly shown, I am not fully convinced by the authors’ explanation that the main cause is AD’s inability to estimate “bootstrapped one-step TD return in place of the high-variance Monte-Carlo return.” The fact that AD does not explicitly include value estimates in its context does not necessarily mean that it cannot learn to estimate them internally. Moreover, recent papers [1, 2], which are missing from the related work and discussion, suggest that AD can in fact learn such mechanisms. Therefore, the higher variance of AD may also be due to smaller model scale or insufficient pre-training. I believe the paper should reconsider this motivation and incorporate these references into the discussion.

[W3]. Originality: In its current form, the paper appears to have limited originality, since the proposed approach is closely related to Reinformer [3], which also estimates values and writes them into the context. Based on the current evidence in the paper, I am not convinced that the new setting alone sufficiently justifies this level of similarity, especially since the paper does not cite, discuss, or contrast CV-ICRL with Reinformer. Furthermore, explicitly estimating values using Monte Carlo returns may be impractical, particularly in high-variance or difficult stochastic environments. This also significantly increases the requirements for data collection compared with AD, which is not sufficiently discussed in the main sections of the paper. Most existing datasets for AD do not already include estimated values.

[W4]. Significance: The paper lacks several important baselines and mainly compares against vanilla AD and AD-eps, the latter of which changes only the data collection procedure rather than the AD method itself. In particular, the paper should include additional baselines based on value prediction, such as [4, 5]. As discussed above, the explanation that “their estimates are not fed back into the context and thus cannot guide subsequent in-context updates” is not fully convincing and appears to conflict with evidence from existing literature. Given the strong similarity between the proposed method and Reinformer, I also believe Reinformer should be included as a main baseline. Without addressing this comparison, I would find it difficult to recommend acceptance.

References:

  1. Wang, J., Blaser, E., Daneshmand, H., & Zhang, S. (2024). Transformers can learn temporal difference methods for in-context reinforcement learning. arXiv preprint arXiv:2405.13861.
  2. Demircan, C., Saanum, T., Jagadish, A., Binz, M., & Schulz, E. (2025, May). Sparse autoencoders reveal temporal difference learning in large language models. In International Conference on Learning Representations (Vol. 2025, pp. 23743-23768).
  3. Zhuang, Z., Peng, D., Liu, J., Zhang, Z., & Wang, D. (2024). Reinformer: Max-return sequence modeling for offline rl. arXiv preprint arXiv:2405.08740.
  4. Liu, J., Liu, F., Sun, Z., Hao, J., Li, H., Wang, B., ... & Wang, Z. (2025). Scalable in-context Q-learning. arXiv preprint arXiv:2506.01299.
  5. Tarasov, D., Nikulin, A., Zisman, I., Klepach, A., Polubarov, A., Lyubaykin, N., ... & Kurenkov, V. (2025). Yes, Q-learning helps offline in-context RL. arXiv preprint arXiv:2502.17666.
Questions

[Q1]. If the main goal is variance reduction, could the authors clarify why they use Monte Carlo estimates rather than alternatives such as GAE, TD(λ), or Retrace estimates?

[Q2]. How would the proposed method apply in settings where the expected discounted return cannot be reliably estimated through Monte Carlo evaluation? Have the authors considered or experimented with alternative value-estimation approaches based on the information available in learning histories?

[Q3]. Could the authors elaborate on how their method differs from Reinformer and what the key novel contributions are in comparison? This discussion should be incorporated into the paper.

[Q4]. Could the authors provide additional baselines, such as S-ICQL, IC-IQL/CQL, and Reinformer?

Limitations

Mostly yes, but I did not see any discussion about the raised requirements for data collection, which is necessary in my opinion.

Final justification

The authors have substantially addressed my main questions by adding requested comparisons and baselines (Reinformer and IC-CQL) and clarifications regarding the contribution, data collection procedures and value estimation.

Formatting concerns

No issues

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the detailed feedback.

[W1/W2] The theory is informal; method, inference, data collection, and value estimation need clearer description. AD may learn TD internally, and scale or pretraining may explain its variance.

The PG-like view is intended as an interpretation rather than a formal equivalence. We do not claim that AD cannot internally implement TD-like computations. We will cite Wang et al. and Demircan et al., discuss implicit TD mechanisms, and recast our contribution as making an explicit context-value signal available through write-back into the cross-episode context. The AD/CV-ICRL comparisons use the same backbone, parameter scale, data ordering, and training budget, reducing the architecture-scale confound in that comparison. They do not rule out stronger AD results from more pretraining. We will shorten the informal derivation and move the data construction and test-time deployment procedure into the main text.

Concretely, during supervised pretraining, each transition is paired with its source checkpoint's action target and evaluated return. The Transformer learns an action head and a context-value head from this augmented history. At test time on an unseen task, it predicts a context value and an action, observes the next transition, and appends the state, action, reward, and predicted value to the retained context. This loop continues across episode resets while the model parameters remain fixed.

[W3/Q3] CV-ICRL is closely related to Reinformer. What is the difference and key novelty?

We will cite Reinformer and make the shared scalar-prediction and action-conditioning mechanism explicit. Reinformer is an offline RL method for a fixed MDP. It uses expectile regression to predict the maximum return-to-go attainable within the offline data distribution, conditions the current action on that prediction, and repeats this procedure within an episode to support trajectory stitching.

CV-ICRL instead addresses adaptation to unseen tasks in ICRL. It distills an online RL learning process, uses evaluated source-checkpoint returns as practical supervision for a context-value head, and retains interaction history across episodes. At test time, the model's own context-value predictions remain in the evolving context and affect later decisions while its parameters stay frozen. Our contribution is the actor-critic-style use of context-value prediction and write-back for cross-episode adaptation on unseen tasks.

[W4/Q4] Please add representative value-prediction and Q-learning baselines.

We implemented two representative baselines in our Minigrid setting. Reinformer represents max-return sequence modeling, while IC-CQL represents history-conditioned Q-learning with twin Q-functions.

The following results are reported as mean ±\pm standard deviation over 20 unseen tasks:

Task type (AER) CV-ICRL IC-CQL Reinformer
SimpleCrossingS9N3 0.945±0.015 0.883±0.014 0.886±0.020
SimpleCrossingS11N5 0.902±0.076 0.303±0.192 0.864±0.225
LavaCrossingS9N3 0.921±0.051 0.616±0.420 0.094±0.160
BlockedUnlockPickup 0.955±0.010 0.195±0.262 0.942±0.021

Both baselines use a fixed checkpoint rule across all four task types, with no task-type-specific checkpoint selection. On mean AER, CV-ICRL achieves the highest result on all four task types.

The equal-task macro AER/LER/IF values are 0.931/0.943/5.46%0.931/0.943/5.46\% for CV-ICRL, 0.499/0.382/47.31%0.499/0.382/47.31\% for IC-CQL, and 0.696/0.669/29.61%0.696/0.669/29.61\% for Reinformer. Reinformer is close to CV-ICRL on three task types but drops sharply on LavaCrossingS9N3, whereas IC-CQL is substantially weaker on SimpleCrossingS11N5 and BlockedUnlockPickup. Thus neither max-return sequence modeling nor history-conditioned Q-learning alone matches CV-ICRL's overall performance in this Minigrid comparison.

[W3/Q1/Q2] Why use Monte Carlo rather than GAE, TD(λ\lambda), or Retrace? Is it practical when returns are unreliable, and what is the added data cost?

We use a checkpoint-level Monte-Carlo estimate because it directly measures the expected discounted return of each source policy and does not require an additional state-value target or off-policy correction. It is not estimated by branching from every visited state. For each of the 40 selected PPO checkpoints, we evaluate 20 environments for 500 steps each and pool the completed episodes. This requires 10,000 transitions per checkpoint and 400,000 transitions per task type (40×20×50040\times20\times500). Pooling completed episodes reduces sampling variance but does not guarantee an accurate estimate in arbitrarily stochastic settings. The same checkpoint estimate supervises every transition collected under that source policy, so this evaluation cost scales with the number of checkpoints rather than the number of state-context pairs.

Retrofitting a legacy AD dataset requires the source checkpoints and their mapping to the collected trajectories. If checkpoint-return estimates were not retained, the 400,000-transition evaluation must be performed. GAE and TD(λ\lambda) require a state-value estimator, while Retrace additionally requires Q/value estimates and behavior/target policy information for off-policy correction.

We tested the directly available source PPO state value. For context CtC_t, the target is Vπk(Ct)(st)V^{\pi_{k(C_t)}}(s_t): the history identifies the source policy, while the current state determines value within that policy. This target uses information already present in the source learning process and does not require branched rollouts from each visited state.

Task type (AER) CV-ICRL PPO-state target
SimpleCrossingS9N3 0.945±0.015 0.949±0.001
SimpleCrossingS11N5 0.902±0.076 0.916±0.067
BlockedUnlockPickup 0.955±0.010 0.922±0.041
Unlock 0.966±0.008 0.948±0.015
LavaCrossingS9N3 0.921±0.051 0.914±0.011
LavaCrossingS9N2 0.943±0.015 0.933±0.052

The PPO-state target improves the two SimpleCrossing results but is lower on the other four task types. These mixed results show that a context-indexed, state-dependent target is viable, but neither target is uniformly superior.

Reviewer EpgT · CommentOpenReview ↗

Thank you for the detailed rebuttal and the additional experiments. The authors have substantially addressed my main questions. I raised the score.

Authors · CommentOpenReview ↗

We would like to thank you for reconsidering our submission and for confirming that our rebuttal and additional results addressed your concerns. We will address the points you raised in the revision.

Reviewer F8BmOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies the problem of in-context RL. The authors propose a method called Context Value Informed ICRL (CV-ICRL). It learns a value head in addition to the policy head so that the model can condition on the value as part of the context to predict the next action. It is claimed that this mechanism enables lower-variance policy updates. Experiments are conducted on simulated environments (Dark Room Minigrid, and Procgen) and show better performance over baselines such as Algorithm Distillation (AD).

Strengths and weaknesses

Strengths:

  • The presentation is clear overall.
  • Detailed proofs are provided for the theoretical claims. Source code is also provided to reproduce the results.

Weaknesses:

  • The method (or the presentation) lacks soundness in the value supervision part. In pretraining, each transition is annotated with vt=J(π(k))v_t = J(\pi^{(k)}). This is the Monte-Carlo performance of the checkpoint policy, a single scalar that is identical for every timestep generated by checkpoint k. It is a policy-level competence number, not a state value.
  • The variance reduction argument (property 4.1) is under the true context value, but the context value is approximated by vθv_{\theta}. Replacing GtG_t ​ with rt+γvθ(st+1)r_t + \gamma v_\theta(s_{t+1}) then buys variance reduction at the cost of bias equal to γ(vθ−V)\gamma(v_\theta - V) propagated through the backup.
  • The training policy is not value-conditioned while at test time the transformer is unrolled with value conditioning. It is not clear how this distribution shift affects performance.
  • The improvement of the proposed method over the baseline AD seems marginal on many tasks in terms of Last Episode Return (LER).
Questions
  • How are the policy checkpoints chosen? What’s the interval between consecutive checkpoints?
  • In practice, the context window of a transformer is of limited length. How does this affect the theoretical derivation and the performance in practice?
  • From Figure 7 it seems simply using a fixed timestep function in place of the value token also achieves reasonably results, and AD-DT has much worse performance compared to AD. How should we interpret these results?
Limitations

The practical limitation of finite context length is not discussed.

Formatting concerns

None

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading.

“It is a policy-level competence number, not a state value.”
“The variance reduction argument (Property 4.1) is under the true context value, whereas the practical approximation introduces bias.”

Each transition from source checkpoint kk receives the same evaluated performance J(πk)J(\pi_k). Because each training context is associated with kk, the target contains information about the source checkpoint's position in online RL training progress, but it averages away state variation. The implemented token is therefore a checkpoint-level return proxy associated with the context, not an exact Vπ(s,C)V^\pi(s,C). Property 4.1 applies to the true conditional value. Replacing that value with an estimate can introduce bias and alter variance. More explicitly, if V^t+1=Vt+1+et+1\widehat V_{t+1}=V_{t+1}+e_{t+1}, the practical one-step target is G~t+γet+1\widetilde G_t+\gamma e_{t+1}, where G~t=rt+γVt+1\widetilde G_t=r_t+\gamma V_{t+1}. Under the same conditioning information, its bias relative to G~t\widetilde G_t is γE[et+1]\gamma\mathbb{E}[e_{t+1}], and its variance changes by $\gamma^2\operatorname{Var}(e_{t+1}) +2\gamma\operatorname{Cov}(\widetilde G_t,e_{t+1})$. Lower variance therefore requires the error terms to be sufficiently controlled; it is not automatic. Property 4.1 does not prove that our proxy is unbiased or always lower-variance.

We also tested state-dependent supervision. For each training context CtC_t, we select the source PPO checkpoint k(Ct)k(C_t) and use yPPO(st,Ct)=Vπk(Ct)(st)y_{\rm PPO}(s_t,C_t)=V^{\pi_{k(C_t)}}(s_t). Thus the context identifies the source checkpoint and the state determines value within that policy, although the source critic itself does not consume CtC_t.

The following results are reported as mean ±\pm standard deviation over 20 unseen tasks:

Task type (AER) CV-ICRL PPO-state target
SimpleCrossingS9N3 0.945±0.015 0.949±0.001
SimpleCrossingS11N5 0.902±0.076 0.916±0.067
BlockedUnlockPickup 0.955±0.010 0.922±0.041
Unlock 0.966±0.008 0.948±0.015
LavaCrossingS9N3 0.921±0.051 0.914±0.011
LavaCrossingS9N2 0.943±0.015 0.933±0.052

The PPO-state target improves the two SimpleCrossing results but is lower on the other four task types. This shows that context-indexed, state-dependent supervision is feasible, but finer state resolution is not uniformly better and the target remains a source-critic estimate rather than the deployed policy's exact V(s,C)V(s,C). We will separate the PG-like and actor-critic-style interpretation, the ideal conditional-value result, and the empirical proxy.

“The training policy is not value-conditioned while at test time the transformer is unrolled with value conditioning.”

We first clarify that the Transformer is value-conditioned during supervised pretraining. Each transition ii is generated by a source PPO checkpoint π(ki)\pi^{(k_i)} and annotated with the evaluated return J^(ki)\hat J^{(k_i)} of that same checkpoint. The Transformer receives the augmented history Cˉt=((si,ai,ri,J^(ki)))i<t\bar C_t=((s_i,a_i,r_i,\hat J^{(k_i)}))_{i<t}, predicts ata_t from this value-augmented context, and jointly predicts the current value target J^(kt)\hat J^{(k_t)}. Training and deployment therefore use the same temporal input structure: the action at step tt conditions on earlier value tokens, while the value predicted at step tt is written back for subsequent decisions.

The source PPO checkpoint that generated the action labels did not itself consume the added value annotation, but it is the data generator rather than the deployed Transformer. The relevant train--test difference is that supervised training uses source-checkpoint value annotations, whereas deployment uses the Transformer's own previous value predictions and interaction history. We tested this closed-loop value-write-back procedure for 8,000 interaction steps across many episodes:

Condition (AER) SimpleCrossingS9N3 BlockedUnlockPickup
Normal 0.942 0.936
Zero token 0.090 0.096
Frozen token 0.286 0.240

Zeroing tests whether actions use token content; freezing tests whether continued value-token write-back matters. Normal CV-ICRL maintains high AER under closed-loop deployment, while both interventions cause large drops. This shows that model-predicted value tokens and their continued write-back materially affect deployment performance.

“The improvement ... seems marginal on many tasks in terms of Last Episode Return (LER).”

LER gains are modest on several Minigrid task types where both AD and CV-ICRL approach near-ceiling endpoint performance. The main difference is therefore the path to that endpoint: CV-ICRL reaches high returns earlier within the same interaction budget and has lower Instability Frequency on most task types. This is reflected more clearly by the interaction-time curves, AER, and IF than by a single final episode. We will therefore limit our claim to faster and more stable adaptation, rather than uniformly better asymptotic performance.

“How are the policy checkpoints chosen? What’s the interval between consecutive checkpoints?”

We select 40 PPO checkpoint models from each training process. PPO checkpoints are saved every 64k environment steps during Minigrid pretraining and every 16k steps during fine-tuning. We will clarify these details in the appendix.

“How does [finite context] affect the theoretical derivation and performance in practice?”

The conditional-value statement remains valid when CtC_t is defined as the visible truncated history, but it cannot recover information discarded beyond that window. In a matched retraining comparison, reducing the context length from H=400H=400 to H=200H=200 changes AER from 0.924 to 0.919 on LavaCrossingS9N3, but from 0.946 to 0.041 on SimpleCrossingS9N3. These two task types show that finite context can be a material, task-dependent architectural constraint; they do not characterize every task or context length. The deployment context is retained across episode resets as a FIFO window, with the oldest transition removed once the window is full. Therefore, cross-episode adaptation is limited to the information preserved in that window.

“From Figure 7 it seems simply using a fixed timestep function ... achieves reasonable results, and AD-DT has much worse performance compared to AD. How should we interpret these results?”

The context-agnostic timestep token exposes interaction progress, so its reasonable performance shows that progress information alone can be useful. This is expected because the source trajectories are organized by online RL learning progress, making timestep correlated with source-policy competence. However, it cannot distinguish histories at the same interaction step, and full CV-ICRL performs better on all task types in Figure 7. This supports using a context-dependent value signal rather than a predetermined progress token.

AD-DT is not uniformly poor: it is competitive on LavaCrossingS9N2 but much worse on the two SimpleCrossing task types. In Minigrid the desired return is G∗=1G^*=1, rewards are zero until sparse terminal success, and the standard update is Gt+1=Gt−rtG_{t+1}=G_t-r_t. Thus the RTG token remains nearly constant before termination and provides little graded feedback for distinguishing histories before success. This explains the task-dependent result in our setting; it does not imply that Decision Transformers generally fail.

Authors · CommentOpenReview ↗

Additional clarification on the practical context-value target

We would like to clarify why J(πk)J(\pi_k) is a principled practical target and how the theory and experiments support this choice.

Why the proxy is meaningful. In our distillation data, each supervised context CC is associated with the source checkpoint k(C)k(C) that supplies its action target. The corresponding J(πk(C))J(\pi_{k(C)}) is a Monte Carlo estimate of the expected long-horizon return of that same policy, obtained from multiple evaluation rollouts. It preserves between-checkpoint differences in learning progress and policy competence while averaging within-checkpoint state and trajectory variation. It is therefore a context-aligned approximation to the long-horizon competence component of Vπ(s,C)V^\pi(s,C), rather than an arbitrary scalar.

What the approximation changes. Let G~t=rt+γVt+1\widetilde G_t=r_t+\gamma V_{t+1} be the ideal Rao-Blackwellized target and let et+1e_{t+1} be the proxy error, so that the practical target is G^tTD=G~t+γet+1\widehat G_t^{\mathrm{TD}}=\widetilde G_t+\gamma e_{t+1}. The practical target remains lower variance than the Monte Carlo return GtG_t whenever γ2Var⁡(et+1)+2γCov⁡(G~t,et+1)<Var⁡(Gt)−Var⁡(G~t)\gamma^2\operatorname{Var}(e_{t+1})+2\gamma\operatorname{Cov}(\widetilde G_t,e_{t+1})<\operatorname{Var}(G_t)-\operatorname{Var}(\widetilde G_t).

A nonzero mean error may introduce bias, but controlled approximation error can still preserve the Rao-Blackwell variance gain. Thus, “not automatic” means that the guarantee depends on proxy quality, not that the variance-reduction mechanism disappears.

Empirical support. CV-ICRL has lower Instability Frequency than AD on five of the six MiniGrid task types, and the interaction-time curves show earlier and more stable adaptation. IF does not directly measure target or gradient variance, but the observed deployment stability is consistent with the proposed mechanism.

The matched PPO-state target adds finer within-checkpoint state resolution. It improves the two SimpleCrossing task types, whereas the checkpoint-return target is better on the other four. Zeroing or freezing the predicted value tokens also causes large AER drops, confirming that the deployed policy uses both the signal and its continued write-back. Together, these results support the checkpoint-level target as a meaningful tradeoff between state resolution and a stable long-horizon competence signal.

We hope the reviewer will reconsider the assessment in light of this clarification and the added evidence.

Reviewer F8Bm · CommentOpenReview ↗

Rebuttal Acknowledgement

I would like to thank the authors for the detailed rebuttal and additional experimental results. My concerns have been sufficiently addressed, and I will raise my score.

Authors · CommentOpenReview ↗

We would like to thank you for reconsidering our submission and for confirming that our rebuttal and additional results addressed your concerns. We will address the points you raised in the revision. We noticed that the current rating remains unchanged. We would be grateful if you could check whether the update was successfully recorded.

Reviewer PwQQOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary
  • The authors try to address the problem of unstable test-time behavior - degrading with additional interactions - in data scarce regime (limited rollouts).
  • The paper provides a PG PoV (for credit assignment) for ICRL test-time adaptation. Actions leading to higher returns and reinforced in upcoming predictions.
  • The authors propose value/critic guidance to reduce variance and to help inference-time adaptation:
    • present CV-ICRL actor-critic framework for ICRL that provides an explicit context-value signal instead of letting the model infer the test-time returns from the interactions.
    • the predicted context-value, once predicted during the environment rollouts, is augmented to the existing context to guide test-time policy improvement.
  • The framework achieve higher overall return, reduced variance and robust adaptation in OOD observations.
  • The authors were explicit in mentioning that this PG-like correspondence suffices to diagnose the variance bottleneck of return-only ICRL training and motivate the actor-critic remedy.

ICRL in general has broader applications ranging from LLMs to robotics. Any ideas leading incremental improvements in this domain can help the research move forward for those applications.

Given the comments related to weaknesses and limitations, I can have the rating as 5. Flexible to move this during or after rebuttal.

Strengths and weaknesses
  • Supports intuitive claims with thorough analysis.
  • Formalized the variance reduction achieved via bootstrapped value signal as the Rao–Blackwellization of the Monte-Carlo return.
  • The value-token target (J(πC​)) being distilled is considered as a competence estimator as they try to supervise the value targets from different policy checkpoints during the RL run.
  • This seems to act as a context-conditioned signal in determining how good is the policy implied by this history/context?
  • The results and the plots are present with relevant details and information aligned with their case studies. .
  • The ablations to understand the importance of writing back context and information contained in the value token seem to support the CV-ICRL framework.

For weaknesses refer to the "Questions" section.

Questions
  1. L273: Can we please have a more elaborate description of “learn to learn” with some more examples or experiments?
  2. How relevant is the value token to be in case of long-horizon environmental interactions?
  3. Can there be any experiments or theoretical support in terms of to what extent it can be robust to compounding errors in bootstrapped value predictions for longer episodes?
  4. Were there any experiments to use state-dependent value token supervision or a combination of context and state for getting the value token targets?
  5. As the training trajectories were collected from a different trained PPO checkpoint to train the policy and the value head, can be comment on the possible distribution shifts at the inference time and value function over-estimation.

Suggestion:

Some analysis and proofs can be made available in the main text.

Limitations

Yes. Some covered in the “Questions” section.

Final justification
  • The authors have addressed the queries related to value prediction for long-horizons and state-dependent value token representations.
  • It would be better to include the relevant portions of this rebuttal to have more clarity about the strengths and limitations of the paper.

I think the paper holds a good significance in the robotics community and other fields that can be benefitted by some form of continual learning methods. With the answers provided in the rebuttal, I think the expressive quality of the paper will be better. I will go with the same score as before.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the constructive questions.

“Can we please have a more elaborate description of ‘learn to learn’ with some more examples or experiments?”

By “learn-to-learn,” we mean that pretraining produces a frozen ICRL policy that can use its evolving interaction context to adapt across episodes on previously unseen task types. Pretraining distills online RL training progress represented by source PPO checkpoints and their trajectories. At deployment, the augmented context records states, actions, rewards, and model-predicted context-value tokens; its evolution drives adaptation while model parameters remain fixed.

The relevant evidence is improvement during deployment, not only a higher aggregate score. In Figure 6, the same frozen model's episode reward rises from early to later interaction on all four unseen task types. To illustrate the mechanism, the context can record that a DoorKey attempt reached the door without the key, or that a route led into lava, and later episodes can condition on that record. We will therefore describe the result as frozen-parameter adaptation through test-time context.

“How relevant is the value token ... in long-horizon environmental interactions?”
“To what extent can it be robust to compounding errors in bootstrapped value predictions for longer episodes?”
“Comment on possible distribution shifts at inference time and value function over-estimation.”

There are two deployment shifts: contexts generated by source PPO checkpoints versus contexts produced by the frozen Transformer on unseen tasks, and source-checkpoint value annotations versus the model's own value predictions. Because each predicted token enters the conditioning history, prediction errors can affect both later value predictions and later actions. We do not assume a contraction property that would prevent such propagation. We therefore evaluated the realized closed-loop behavior for 8,000 interaction steps across many episodes, with the token either zeroed or prevented from updating:

Condition (AER) SimpleCrossingS9N3 BlockedUnlockPickup
Normal 0.942 0.936
Zero token 0.090 0.096
Frozen token 0.286 0.240

Zeroing the token tests whether actions depend on its content. Freezing it tests whether changing the token during deployment matters. The large drops show that the deployed policy relies on both value-token content and continued write-back of newly predicted value tokens.

Normal performance remains high over the tested 8,000-step deployment across multiple episodes. These interventions establish behavioral reliance, not value calibration or long-horizon robustness: they do not measure over-estimation, isolate prediction-error accumulation, or test a longer per-episode horizon.

“Were there any experiments to use state-dependent value token supervision or a combination of context and state for getting the value token targets?”

Yes. In AD-like ICRL, each training context CtC_t is associated with the source checkpoint k(Ct)k(C_t) that provides the current action target. We select that checkpoint's PPO critic and define yPPO(st,Ct)=Vπk(Ct)(st)y_{\rm PPO}(s_t,C_t)=V^{\pi_{k(C_t)}}(s_t). The context identifies the source checkpoint and its position in online RL training progress, while the state determines continuation value within that policy. The target is therefore context-indexed and state-dependent, although no single source critic directly consumes CtC_t.

The following results are reported as mean ±\pm standard deviation over 20 unseen tasks:

Task type (AER) CV-ICRL PPO-state target
SimpleCrossingS9N3 0.945±0.015 0.949±0.001
SimpleCrossingS11N5 0.902±0.076 0.916±0.067
BlockedUnlockPickup 0.955±0.010 0.922±0.041
Unlock 0.966±0.008 0.948±0.015
LavaCrossingS9N3 0.921±0.051 0.914±0.011
LavaCrossingS9N2 0.943±0.015 0.933±0.052

The PPO-state target improves the two SimpleCrossing results, while the original target performs better on the other four task types. Thus, finer state resolution has a task-dependent effect rather than a uniform advantage.

“Some analysis and proofs can be made available in the main text.”

We will move the method and deployment loop into the main text while keeping full implementation details in the appendix.

Authors · CommentOpenReview ↗

We would like to thank you again for your careful review and helpful comments. We hope our rebuttal and additional results have provided further clarification on the points you raised, and we will address your suggestions in the revision.

Reviewer PwQQ · CommentOpenReview ↗

Response to authors

Thank you for the elaborate response and clarifications. I have the following pointers/suggestions:

  • The authors have addressed the queries related to value prediction for long-horizons and state-dependent value token representations.
  • It would be better to include the relevant portions of this rebuttal to have more clarity about the strengths and limitations of the paper.

With the answers provided in the rebuttal, I think the expressive quality of the paper will be better. I will go with the same score as before.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…