- Rating
- 4
- Clarity
- 3
- Confidence
- 5
- Originality
- 1
- Quality
- 2
- Significance
- 2
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:
- 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.
- 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).
- Zhuang, Z., Peng, D., Liu, J., Zhang, Z., & Wang, D. (2024). Reinformer: Max-return sequence modeling for offline rl. arXiv preprint arXiv:2405.08740.
- 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.
- 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.
Paper formatting concerns
No issues
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.
We thank the reviewer for the detailed feedback.
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.
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.
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 ± standard deviation over 20 unseen tasks:
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% for CV-ICRL, 0.499/0.382/47.31% for IC-CQL, and 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.
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×500). 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(λ) 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 Ct, the target is Vπk(Ct)(st): 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.
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.