potentialpaper

Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context RL

Minchan Kwon, Seunghee Koh, Sunghyun Baek, Minsung Bae, Junmo Kim

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.

TL;DR. The reward in direct in-context RL is read but barely matters; what drives improvement is trajectory imitation, just as in ICL.

Abstract. In-context reinforcement learning (ICRL) is often described as inference-time RL in which an LLM improves by accumulating trajectory-reward pairs in its context, with the reward acting as a learning signal. This framing poses a central question: is ICRL genuine inference-time RL, or better understood as a form of in-context learning (ICL)? We investigate this in the context of direct ICRL, where the model directly uses trajectory-reward pairs. Through controlled experiments on three benchmarks across six models, we find that the reward is read, but its effect is small; randomizing or removing the reward leaves the improvement curve almost unchanged. Trajectories drive improvement, but not through their semantic content: shuffled or corrupted trajectories work as well as real ones. These patterns closely mirror those known in ICL, suggesting that direct ICRL is better understood as a special case of ICL than as inference-time RL. This reframing has implications for ICRL memory design: ICL factors such as input distribution and demonstrations may matter more than RL elements such as reward shaping and exploration.

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
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (spotlight)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (spotlight) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

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

The paper investigates the importance of rewards in in-context reinforcement learning (ICRL). Through series of controlled experiments using different tasks and large models, the authors argue that direct ICRL is a form of in-context learning.

Summarizing the main points raised by the reviewers, the strengths and weaknesses are as follows.

Strengths

  • The research direction is important, interesting, and potentially impactful
  • The experiments are quite broad (many settings, many tasks, many models)

Weaknesses

The overall claim may not be completely substantiated by the performed experiments:

  • Evaluation in multi-step RL environments may be insufficient since many tasks actually correspond to one-step RL environments
  • Meta-prompt design should be more carefully investigated.

*** After Rebuttal ***

The authors provided several additional experimental results (e.g., multi-step domains, different models, verbal rewards) that convincingly addressed the main issues raised by the reviewers.

I recommend the paper to be accepted as a spotlight, since it presents a novel experimental observation, which will be useful to anyone interested in ICRL.

Final justification

See above

Area Chair khRC · Meta-reviewOpenReview ↗
Final justification
See above
Read meta-review
Meta-review

The paper investigates the importance of rewards in in-context reinforcement learning (ICRL). Through series of controlled experiments using different tasks and large models, the authors argue that direct ICRL is a form of in-context learning.

Summarizing the main points raised by the reviewers, the strengths and weaknesses are as follows.

Strengths

  • The research direction is important, interesting, and potentially impactful
  • The experiments are quite broad (many settings, many tasks, many models)

Weaknesses

The overall claim may not be completely substantiated by the performed experiments:

  • Evaluation in multi-step RL environments may be insufficient since many tasks actually correspond to one-step RL environments
  • Meta-prompt design should be more carefully investigated.

*** After Rebuttal ***

The authors provided several additional experimental results (e.g., multi-step domains, different models, verbal rewards) that convincingly addressed the main issues raised by the reviewers.

I recommend the paper to be accepted as a spotlight, since it presents a novel experimental observation, which will be useful to anyone interested in ICRL.

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

This paper studies whether direct in-context reinforcement learning (ICRL), where an LLM is prompted with past trajectory-reward pairs, should be understood as inference-time reinforcement learning or as ordinary in-context learning / imitation. Through reward perturbations, fixed-memory experiments, replay analysis, and trajectory perturbations, the authors find that performance gains are largely insensitive to whether rewards are true, flipped, randomized, or removed. They argue that direct ICRL is mainly driven by imitation of task-relevant trajectories rather than by reward semantics.

Strengths and weaknesses

The paper asks an important and timely question. Many LLM-agent methods implicitly treat trajectory-reward memories as a form of inference-time RL, so it is useful to test whether the reward field actually drives behavioral improvement. The paper''s controlled interventions are clean and intuitive. In particular, comparing true, flipped, random, and removed rewards is a strong diagnostic, and the fixed-memory and replay analyses help support the claim that raw trajectories are strong imitation targets while reward labels have only weak direct effects.

However, I think the paper’s empirical scope is too limited for the strength of its conclusion. Two of the three main benchmarks, HumanEval+ and MBPP+, are single-action coding tasks: the model receives a prompt, emits a full program once, and gets a unit-test reward. In this setting, the “trajectory” is essentially a previous code completion for the same problem, so the setup is very close to ordinary few-shot code demonstration. It is therefore not surprising that imitation and surface-form effects dominate reward semantics.

The paper includes ScienceWorld as a multi-step environment, which is helpful, but this evaluation is still relatively small and does not fully address the limitation. The paper does not evaluate harder long-horizon agentic tasks such as SWE-bench-style software engineering, WebArena, OSWorld, multi-turn debugging, or tool-use repair tasks. These are the kinds of settings where reward feedback, exploration, and credit assignment might matter more. As a result, the current evidence supports a narrower claim: reward semantics are weak in the tested direct ICRL setups. It does not fully establish that direct ICRL is generally closer to ICL than RL.

I also think the model and prompt coverage is somewhat limited. Some of the deeper mechanistic analyses appear to rely heavily on one main model, and the appendix suggests that verbal rewards can make reward effects stronger. This raises the possibility that the observed reward-insensitivity depends on reward formatting or prompt design, rather than being a fundamental property of direct ICRL.

Questions
  1. Would the same reward-insensitivity hold on harder long-horizon tasks such as SWE-bench, WebArena, OSWorld, multi-turn debugging, or tool-use repair tasks?
  2. Since HumanEval+ and MBPP+ are single-action MDPs, can the authors clarify how much their conclusion depends on tasks where trajectories resemble few-shot demonstrations?
  3. The appendix suggests that verbal rewards can increase reward sensitivity. Does this mean the main conclusion depends on reward rendering or prompt format?
  4. Can the replay and probability-level analyses be repeated across more model families and scales?
  5. Please clarify whether reward can still matter indirectly through memory selection, e.g., top-k trajectory selection, even if reward labels have weak direct influence at inference time.
Limitations

The authors discuss some limitations, but they should more explicitly acknowledge that most of the evidence comes from simple or relatively limited settings. In particular, the paper does not test difficult long-horizon agentic benchmarks requiring exploration, tool use, or credit assignment.

Final justification

Thank you for the detailed responses and additional experiments. The new results are useful and partially address my concerns. However, I do not think they fully resolve my main concern about the empirical scope relative to the strength of the paper’s conclusion. I view the rebuttal as strengthening the evidence within the studied settings, but not as establishing that reward insensitivity generalizes to the broader class of direct ICRL tasks suggested by the paper’s framing. I therefore maintain my original score.

Formatting concerns

no

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer ExTd for their constructive and insightful comments. Below are our responses to each question.

Q1.

Would the same reward-insensitivity hold on harder long-horizon tasks such as SWE-bench, WebArena, OSWorld, multi-turn debugging, or tool-use repair tasks?

A1.

We evaluate this question on SWE-bench Lite using gpt-5-mini with the mini-SWE-agent codebase.

The evaluation covers four nontrivial instances on which gpt-5-mini achieved neither 0% nor 100% accuracy under Random Sampling: mwaskom__seaborn-2848, pylint-dev__pylint-7114, sphinx-doc__sphinx-10325, and sphinx-doc__sphinx-11445. We report the per-episode means and standard deviations over the four instances and three seeds below.

Episode ICRL-True Trajectory-only ICRL-Flipped Random Sampling
1 0.667 ± 0.072 0.833 ± 0.072 0.625 ± 0.125 0.583 ± 0.191
2 0.708 ± 0.072 0.708 ± 0.072 0.828 ± 0.068 0.667 ± 0.191
3 0.750 ± 0.125 0.792 ± 0.144 0.792 ± 0.072 0.750 ± 0.000
4 0.792 ± 0.072 0.871 ± 0.006 0.833 ± 0.072 0.729 ± 0.110
5 0.792 ± 0.072 0.828 ± 0.068 0.833 ± 0.072 0.781 ± 0.136
6 0.698 ± 0.188 0.911 ± 0.077 0.792 ± 0.072 0.829 ± 0.185
7 0.703 ± 0.068 0.911 ± 0.077 0.750 ± 0.125 0.542 ± 0.144
8 0.792 ± 0.072 0.911 ± 0.077 0.833 ± 0.072 0.542 ± 0.260
9 0.750 ± 0.000 0.911 ± 0.077 0.833 ± 0.072 0.869 ± 0.116
10 0.750 ± 0.125 0.911 ± 0.077 0.833 ± 0.072 0.697 ± 0.065

These results show a stronger effect of trajectory accumulation than of reward correctness. ICRL-True and ICRL-Flipped have overlapping standard deviation ranges at the final episode. At the same time, all three accumulated-memory conditions outperform Random Sampling, with Trajectory-only achieving the strongest final performance. Thus, the gain is more closely associated with accumulated trajectories than with correct reward values.

Notably, ICRL-Flipped outperforms ICRL-True, and Trajectory-only outperforms both reward-labeled conditions. One possible explanation is the extreme length imbalance between trajectories and rewards in SWE-bench Lite. SWE-bench trajectories contain extensive interaction feedback, including error messages and tool outputs. The ratio of reward length to trajectory length is 19.4% in ScienceWorld, 23.7% in MBPP+, and 36.1% in HumanEval+, but only 0.13% in SWE-bench Lite. This imbalance may further reduce the relative influence of the reward.

Also, we want to emphasize that this experiment uses gpt-5-mini. This extends our finding beyond Qwen-3.5-9B in Figure 2 to a commercial model from a different model family. We will include these results and the corresponding figure in the revised version.

Q2.

Since HumanEval+ and MBPP+ are single-action MDPs, can the authors clarify how much their conclusion depends on tasks where trajectories resemble few-shot demonstrations?

A2.

Our conclusion is not based solely on single-action MDPs. Our experiments generally cover both single-action and multi-action MDPs. The only exceptions are the analyses in Tables 2 and 3 of Section 5, which are restricted to coding tasks.

To address this concern directly, we repeated the key controls from Table 2 on ScienceWorld. ScienceWorld is a multi-action MDP whose trajectories contain sequential action-observation transitions rather than single code completions. The results are reported below.

Condition ΔLOO(τ−)\Delta\mathrm{LOO}(\tau^-) ΔLOO(τ+)\Delta\mathrm{LOO}(\tau^+) Target Replay Rate, τ−\tau^- (%) Target Replay Rate, τ+\tau^+ (%)
Problem-only — — 17.3 6.1
Trajectory-only 0.008 −0.005 24.3 52.4
ICRL 0.007 0.006 24.3 53.2
Specific-flip 0.014 0.004 25.0 52.9

These results reproduce the qualitative pattern observed in Table 2. Adding the trajectory raises the Target Replay Rate from 17.3% to 24.3% for τ−\tau^- and from 6.1% to 52.4% for τ+\tau^+. Adding the true reward changes these rates only to 24.3% and 53.2%, while flipping the target reward changes them to 25.0% and 52.9%.

This pattern persists when trajectories are multi-step interaction histories rather than few-shot-like code solutions. We will include the full ScienceWorld analysis in the revised version.

Q3.

The appendix suggests that verbal rewards can increase reward sensitivity. Does this mean the main conclusion depends on reward rendering or prompt format?

A3.

Reward rendering can increase reward sensitivity, but our main conclusion remains unchanged. In Figure 5, verbal rewards widen the gap between the True and Flipped conditions. However, Verbal Random remains close to Verbal True, and Verbal Flip still outperforms Random Sampling. Most of the performance gain therefore persists even when verbal rewards are randomized or flipped.

Section 5 shows the same pattern under fixed memory. Verbal Reward yields ΔLOO\Delta\mathrm{LOO} values of 0.404/0.151, close to True Reward at 0.360/0.173 and Random Reward at 0.417/0.153. Its Memory Replay Rate also remains near 30%, similar to the other reward variants. Even with verbalization, the reward-induced shift is only about 14% of the trajectory-presence effect. This shows that verbalization does not make the reward signal dominant over trajectory exposure.

However, reward rendering is an important open question. One broader goal of our work is to shift the focus of direct ICRL research from “What reward should be provided?” to “How should reward-derived feedback be represented in context?” The former connects to directions such as LLM-as-a-judge evaluation, world modeling, and on-policy distillation, while the latter includes verbalization and abstraction-based methods. Our results show that the models are not making full use of reward information. The increased sensitivity under verbalization suggests that better reward representations may turn rewards into a stronger learning signal.

Q4.

Can the replay and probability-level analyses be repeated across more model families and scales?

A4.

Below, we report Qwen3-14B results for a selected set of key conditions from Table 2. The overall trend is consistent with Table 2. Rewards shift the probabilities in the expected direction, but their effect remains marginal compared with the effect of the trajectory itself. We will include the Qwen3-14B results for the full set of conditions in Table 2 in the revised version.

Condition ΔLOO(τ−)\Delta\mathrm{LOO}(\tau^-) ΔLOO(τ+)\Delta\mathrm{LOO}(\tau^+) Target Replay Rate, τ−\tau^- (%) Target Replay Rate, τ+\tau^+ (%)
Problem-only — — 0.0 6.0
Trajectory-only 0.365 0.269 2.0 17.0
ICRL 0.345 0.315 1.0 24.0
Specific-flip 0.433 0.279 3.0 13.0

Q5.

Please clarify whether reward can still matter indirectly through memory selection, e.g., top-k trajectory selection, even if reward labels have weak direct influence at inference time.

A5.

Rewards can affect performance through memory selection even when reward labels have only a limited direct effect in context. We therefore separate two roles of reward in our experimental design: (i) selecting which trajectories enter memory and (ii) presenting reward labels alongside a fixed set of trajectories. The controlled reward-perturbation experiments in the main paper focus on (ii).

Figure 7 analyzes (i), showing a clear performance difference between top-kk and bottom-kk selection. This confirms that even if the model does not effectively utilize reward labels within the context, reward can still be useful as a selection criterion for memory construction. However, the gaps among Top-kk, Random (ICRL-True), and Bottom-kk differ between MBPP+ and HumanEval+. This indicates that memory selection is highly task-dependent, and that designing an effective memory selection rule remains an important challenge for ICRL tasks.

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

In-context reinforcement learning (ICRL), putting previous rewarded trajectories in the context of a model, has been theoretically demonstrated to be implementing inference-time RL, when applied to transformers trained to do so, or by construction. This paper studies ICLR for general-purpose pre-trained LLMs which can be triggered in-context to improve by seeing trajectories with rewards as well, and further focuses on the setting where only the raw trajectory is put in the context, termed direct ICRL. The papers asks the important question whether direct ICLR also implement inference-time RL (properly boosting/suppressing high/low reward trajectories), or just a form of in-context learning (ICL). Through controlled experiments (tempering with rewards and trajectories in the context), the authors observe that rewards have little impact on the induced policy, compared to the observed trajectories, and claim that direct ICLR works by imitation rather than by reward-based policy improvement. With this conclusion, the paper raises the point that direct ICLR design choices (e.g. memory design) should therefore be guided by findings in ICL (e.g., input distribution) rather that RL (e.g., filtering by rewards).

Strengths and weaknesses

Quality.

  • (+) The choice of controlled experiments (flipping, randomizing, removing rewards) and analysis (measuring the impact on the policy probabilities) is sound and accurately answers whether ICLR induces inference-time RL.
  • (+) The use of 3 benchmarks in two domains (single-turn coding, multi-turn agentic science), and six models of difference sizes with different pre-trainings (Qwen, Llama, Gemini, GPT) makes the generalization of the results convincing.
  • (+) Complete and concise related-work section.

Clarity.

  • (+) The paper is very well-written. Thank you! The experiment details concisely explain in the main body.

Significance.

  • (-) The results are important, complete to the restricted domain of direct ICLR, and will likely raise initial discussions in the field, whence by borderline accept rating. However, I believe that this restricted scope, with no meta-prompt to encourage an RL updates, fairly limits the significance of the paper. A lasting impression of the work and pressing open question is that perhaps simply without "asking" the model to perform "inference-RL", the default adaptation will be primarily explained by ICL. I therefore think that performing the same experiments but in the setting of [19] with Exploration or Exploitation Instructions would provide a much more compelling argument, and perhaps reveal a more complete picture.
  • (-) This also makes the conclusion of paper asking to pay more attention to ICL design rather than RL design choices for ICRL unwarranted.

[19] Kefan Song, Amir Moeini, Peng Wang, Lei Gong, Rohan Chandra, Shangtong Zhang, and Yanjun Qi. Reward is enough: Llms are in-context reinforcement learners. arXiv preprint399arXiv:2506.06303, 2025.400

Questions

In Figure 2a. If you keep random trajectories in the context, why would the model learn anything? if it's imitation, it should imitate it's own behavior and not change? I assume it's the benefits if ICL, the model has awareness of the environment in its context. If that's the case, I would not mention "imitation" in the title, it seems misleading?

In Figure 2b, ICLR-true seems to be significantly better than ICRL flipped, and better than trajectory-only and ICRL-random which coincide. This seems to contradict your conclusion?

Similarly in 2c, ICLR-true ~ ICRL random > ICRL flipped. What should one understand? I also see some minimal deterioration for ICLR-flipped in 2c.

In Table 1, Qwen-3-4B-Instruct having (83.3%) No imp. seems to contradict Figure 2. Any explanation?

Why use a length-normalized trajectory probability? Does this help aggregation? What are the results without?

Limitations

The authors are explicit about their limitations, which is appreciated. However I raised some of these as important weaknesses to discuss above.

Final justification

The authors' answers addressed all my initial concerns and the concerns raised later in the discussion. I recommend a confident accept despite the remaining concerns of the other reviewers: I believe improving the scale of experiments would strengthen the paper and qualify it for awards, however I have no doubt that the paper would raise important discussions at the conference with enough supporting evidence and orient future research on ICRL. I would strongly recommend the authors to run the HumanEval+ experiment for 200+ episodes to see if the flipped reward eventually becomes lower than random sampling. I would also recommend to clarify the presentation around the Reflexion experiments and how it gives a more complete picture about ICRL when ICL is controlled, for example Figure 6 shows Reflexion performing on par with ICRL suggesting that the reward is clearly playing a role, but this figure is not discussed in the paper.

Formatting concerns

No

7 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer Sx7n for their constructive and insightful comments. Below are our responses to each question.

W1.


The results are important, complete to the restricted domain of direct ICLR, and will likely raise initial discussions in the field, whence by borderline accept rating. However, I believe that this restricted scope, with no meta-prompt to encourage an RL updates, fairly limits the significance of the paper. A lasting impression of the work and pressing open question is that perhaps simply without "asking" the model to perform "inference-RL", the default adaptation will be primarily explained by ICL. I therefore think that performing the same experiments but in the setting of [19] with Exploration or Exploitation Instructions would provide a much more compelling argument, and perhaps reveal a more complete picture.

This also makes the conclusion of paper asking to pay more attention to ICL design rather than RL design choices for ICRL unwarranted.

A1.


To test whether meta-prompt choice affects reward sensitivity, we conducted an additional controlled experiment with three meta-prompt variants.

The Preset setting alternates between exploration and exploitation prompts. The Autonomous setting lets the model choose between the two. Both settings follow [19]. The Reasoning setting explicitly asks the model to reason over previous trajectories and rewards to derive a better strategy.

Under each meta-prompt, we evaluated three reward conditions (True Reward, Flipped Reward, and Random Reward) in the same ScienceWorld setting as Figure 2(a).

We report the numerical results below.

Instruction Reward ep1 ep3 ep5 ep7 ep10
Ours True -74.51 ± 2.07 -56.55 ± 0.00 -44.43 ± 8.91 -41.88 ± 16.16 -37.69 ± 2.00
Ours Flip -73.50 ± 5.23 -51.54 ± 3.24 -44.91 ± 5.32 -44.56 ± 2.17 -34.34 ± 15.01
Ours Random -70.98 ± 5.09 -49.65 ± 9.44 -44.80 ± 1.59 -39.54 ± 2.32 -33.86 ± 10.34
Reasoning True -72.40 ± 7.01 -49.53 ± 6.95 -48.49 ± 3.26 -47.37 ± 5.38 -43.02 ± 8.52
Reasoning Flip -75.12 ± 4.54 -54.77 ± 8.98 -48.53 ± 0.78 -49.19 ± 7.66 -49.50 ± 5.43
Reasoning Random -70.95 ± 3.95 -54.97 ± 9.83 -54.61 ± 5.83 -51.55 ± 2.52 -45.24 ± 8.82
Preset True -71.73 ± 3.15 -51.69 ± 6.43 -48.78 ± 10.01 -45.83 ± 10.26 -42.69 ± 10.77
Preset Flip -73.43 ± 4.12 -52.06 ± 4.07 -45.28 ± 6.94 -47.93 ± 1.25 -43.11 ± 7.76
Preset Random -71.68 ± 6.66 -57.56 ± 8.10 -50.97 ± 4.66 -51.66 ± 3.28 -45.24 ± 5.85
Autonomous True -72.66 ± 2.73 -50.75 ± 9.91 -49.93 ± 1.79 -39.14 ± 1.67 -41.41 ± 4.26
Autonomous Flip -73.22 ± 4.20 -52.97 ± 9.49 -49.42 ± 7.85 -47.23 ± 8.25 -46.20 ± 2.65
Autonomous Random -71.53 ± 6.04 -50.93 ± 9.11 -51.69 ± 6.18 -47.06 ± 10.10 -45.83 ± 2.18

The results support our original conclusion. At episode 10, True Reward achieves the highest mean performance under each of the three inference-RL prompts. However, the gaps between True Reward and the other reward conditions remain small relative to the reported standard deviations. Moreover, all reward conditions improve substantially across episodes, and even Flipped Reward remains above the Random Sampling baseline of approximately -70.

Thus, explicitly encouraging exploration, exploitation, or reward-based reasoning does not change our main finding: the model reads the reward, but its influence on performance remains limited. We will add these results and the corresponding learning curves to the revised version.

Q1-1.


In Figure 2a. If you keep random trajectories in the context, why would the model learn anything?

A1-1.


We first clarify that ICRL-Random uses random rewards, not random trajectories. The trajectories are still generated by the model on the target task. Only the reward values attached to them are randomized.

Random Sampling does not store any trajectory in memory. It repeatedly samples from an empty context. Therefore, Figure 2(a) does not contain a condition that places random trajectories in the context.

The closest conditions are Cross-Task and Random Valid Action in Table 4. Cross-Task uses trajectories collected from other tasks. Random Valid Action uses trajectories composed of randomly selected actions. Both conditions substantially reduce performance. This supports our conclusion that the model is strongly affected by the trajectories in memory.

Q1-2.


If it's imitation, it should imitate it's own behavior and not change? I assume it's the benefits if ICL, the model has awareness of the environment in its context. If that's the case, I would not mention "imitation" in the title, it seems misleading?

A1-2.


We agree that the term “imitation” may be understood as reproducing an entire trajectory without modification. Here, it refers to reusing and recombining local actions, fragments, and surface patterns, not reproducing an entire trajectory. Such reuse can still produce a different trajectory.

We used the term “imitation” to describe the pattern observed in the trajectory perturbation results in Table 4. Shuffle and Crossover disrupt the ordering and semantic coherence of trajectories while preserving their local actions and surface form. Yet these perturbed trajectories perform comparably to the original ICRL history. These results suggest that the model benefits from local trajectory patterns even when they no longer form a coherent solution.

We will revise the terminology. We will replace “imitation” with the less ambiguous term “trajectory reuse","recombination" or "interpolation" and clarify that it refers to local pattern reuse and recombination rather than exact reproduction. We thank the reviewer for this helpful suggestion.

Q2.


In Figure 2b, ICLR-true seems to be significantly better than ICRL flipped, and better than trajectory-only and ICRL-random which coincide. This seems to contradict your conclusion?

Similarly in 2c, ICLR-true ~ ICRL random > ICRL flipped. What should one understand? I also see some minimal deterioration for ICLR-flipped in 2c.

A2.


The curves show how rewards affect performance. The gap between ICRL-True and ICRL-Flipped indicates that the model reads the reward. However, ICRL-Random and Trajectory-only remain close to ICRL-True, suggesting that informative rewards explain only a limited part of the improvement.

The Flipped condition is the key control. It gives high rewards to incorrect solutions and low rewards to correct ones. If rewards drove the improvement, this reversal should eliminate the gain or reduce performance to Random Sampling level. Instead, ICRL-Flipped shows only a small performance drop relative to ICRL-True and remains above Random Sampling on every benchmark. This suggests that the performance gain is not primarily driven by rewards.

Section 5 quantifies this difference directly: the largest reward-induced shift is about 14% of the trajectory-presence effect.

Q3.


In Table 1, Qwen-3-4B-Instruct having (83.3%) No imp. seems to contradict Figure 2. Any explanation?

A3.


We first clarify that Figure 2 and Table 1 use different memory-update policies. The two results are therefore not contradictory. Figure 2 uses accumulating memory, where each new trajectory–reward pair is added across episodes. Table 1 uses fixed memory and measures the effect of a fixed context without accumulation. The evaluated models also differ: Figure 2 reports results from Qwen-3.5-9B, whereas the cited row in Table 1 reports results from Qwen-3-4B-Instruct.

The 83.3% No Improvement rate in Table 1 means that most tasks did not improve under the fixed-memory setting. It does not imply that performance cannot improve as memory accumulates across episodes.

Q4.


Why use a length-normalized trajectory probability? Does this help aggregation? What are the results without?

A4.


To give each trajectory equal weight during aggregation, we normalize its log probability by length. Without normalization, the sequence log probability is the sum of token log probabilities and therefore scales with trajectory length. For each target trajectory, both log probabilities are computed over the same rollout. Therefore, length normalization does not change the sign of ΔLOO\Delta\mathrm{LOO}. It only changes how much each trajectory contributes to the aggregated result.

We also computed ΔLOO\Delta\mathrm{LOO} without length normalization. The unnormalized values use the summed token log probabilities, whereas the normalized values use their per-token average.

Condition Unnormalized ΔLOO(τ−)\Delta\mathrm{LOO}(\tau^-) Unnormalized ΔLOO(τ+)\Delta\mathrm{LOO}(\tau^+) Normalized ΔLOO(τ−)\Delta\mathrm{LOO}(\tau^-) Normalized ΔLOO(τ+)\Delta\mathrm{LOO}(\tau^+)
Problem-only — — — —
Trajectory-only 141.94 25.19 0.490 0.137
ICRL 136.30 25.74 0.476 0.138
Specific-flip 138.43 24.31 0.475 0.124
Order-first 143.20 28.96 0.518 0.172
Order-last 138.16 28.95 0.478 0.181

The qualitative trend is unchanged. Relative to ICRL, Specific-flip changes the unnormalized values by only +2.13+2.13 for τ−\tau^- and −1.43-1.43 for τ+\tau^+. In contrast, Order-first produces shifts of up to +6.90+6.90 and +3.22+3.22, respectively. Structural changes therefore remain more influential than reward-value changes. We will clarify the role of length normalization and include the unnormalized results in the paper.

Reviewer SX7n · CommentOpenReview ↗

I thank the authors for their clear replies. This addresses most of my concerns.

I have one remaining concern, which would help me increase my support for the paper. I'm starting to suspect that there would be two phases during the ICRL learning: one where the model does better first, thanks to knowing about the environment (ICL part), and then starts to adapt to reward values (ICRL part). Would it be possible to run Figure 2 for 200 episodes on each of the environments, or do you already have an experiment that would test the same thing?

I am also interested in Q2 raised by Reviewer p83t, and I'm not entirely satisfied with the answer given. I agree that reflection summaries reduce replay for the main agent, but I don't think that answers the question "could the authors explain if it is possible to suppress the effect of ICL on the experiments of ICRL?". To me reflection already applied the policy improvement operation where it's more ICL or ICLR (which is the question we're after), and its output given to the main agent without reward only triggers ICL for the main agent. Can the authors elaborate on this experiment and how it answers the question?

Authors · CommentOpenReview ↗

Q1.

I'm starting to suspect that there would be two phases during the ICRL learning: one where the model does better first, thanks to knowing about the environment (ICL part), and then starts to adapt to reward values (ICRL part). Would it be possible to run Figure 2 for 200 episodes on each of the environments?

Given the time constraints, we ran the 200-episode experiment on MBPP+, the lightest of our benchmarks to execute.

We first note that the experiments in Figure 2 fix the maximum memory size at 10. Under that setting, extending the run to 200 episodes does not change the character of the curve, and we observe no pattern corresponding to the reviewer's two-phase hypothesis. However, since that setting does not let memory accumulate fully in the context, we additionally ran a 200-episode experiment with the memory cap removed, which addresses the reviewer's question more directly. The experiment was run on a single MBPP+ task using two A100 80GB GPUs, and we report the mean over five seeds.

unit-test accuracy on MBPP+/16 over 200 episodes (mean ± std across 5 seeds). Empty-memory baseline: 0.087.

Memory Method 1–25 26–50 51–100 101–150 151–200
Unlimited ICRL-True 0.642 ± 0.318 0.626 ± 0.325 0.437 ± 0.310 0.349 ± 0.303 0.274 ± 0.224
Unlimited ICRL-Flipped 0.445 ± 0.278 0.569 ± 0.318 0.362 ± 0.188 0.254 ± 0.124 0.207 ± 0.070
Cap 10 (random, paper) ICRL-True 0.649 ± 0.330 0.586 ± 0.260 0.636 ± 0.173 0.549 ± 0.169 0.575 ± 0.173
Cap 10 (random, paper) ICRL-Flipped 0.394 ± 0.302 0.551 ± 0.275 0.497 ± 0.278 0.446 ± 0.266 0.441 ± 0.269

With unlimited memory, performance degrades as episodes accumulate. This is precisely why we imposed a memory cap when designing the experiments in the first place. As memory grows, the context drifts further from the original problem, and the model becomes more likely to converge on a single repeated answer or to produce degenerate output. Syntax errors in particular become much more frequent.

We do not think this decline can be used as evidence for either position, since context degradation is the dominant confound here. We have run similar experiments before, and it is clear that in long-horizon settings this degradation makes analysis of ICRL itself difficult.

With respect to the reviewer's hypothesis, we were not able to obtain a clean test in the later episodes. The two-phase account predicts a rise in the later part of the run once the model begins adapting to reward values. What we observe under unlimited memory is that both ICRL-True and ICRL-Flipped decline monotonically after an early peak, and neither recovers. By that point the context degradation described above is severe enough that it dominates whatever reward-driven adaptation might be present, so the late-episode regime does not allow us to separate the two. We will extend and consolidate these results across multiple tasks and include them in the paper.

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

Excellent discovery that helps readers understand the weight of RL during in-context learning. Demonstrates with experiments that imitation dominates reward feedback during in-context learning. Good suggestions and implications for ICL memory design.

Strengths and weaknesses

Strengths: Comprehensive experiments, novel idea, and practical guidance for memory design in ICL. Weakness:

  1. Reward signal is inherently weaker than imitation learning signals, which makes the result seems a bit obvious. Could the authors explain more about the significance of this finding beyond intuitive understanding?

  2. The authors claim that in-context learning dominates in-context RL. However, could the authors explain if it is possible to suppress the effect of ICL on the experiments of ICRL? The authors also show that even a wrong reward does not significantly harm ICRL's performance, which seems absurd to me. Do the authors have ideas regarding if that is the problem of experiment setup or truly reflect the uselessness of reward in in-context learning?

Questions

Reward signal is inherently weaker than imitation learning signals, especially considering longer context, which makes the result seems a bit obvious. Could the authors explain more about the significance of this finding beyond intuitive understanding? The authors claim that in-context learning dominates in-context RL. However, could the authors explain if it is possible to suppress the effect of ICL on the experiments of ICRL? The authors also show that even a wrong reward does not significantly harm ICRL's performance, which seems absurd to me. Do the authors have ideas regarding if that is the problem of experiment setup or truly reflect the uselessness of reward in in-context learning?

Limitations

Please see questions.

Final justification

After the author's clarifications I revise my judgement on the contribution type to negative results. I appreciate the authors's explaning their goal of this work, which help clarify my doubts.

Formatting concerns

None spotted.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer p83t for their constructive and insightful comments. Below are our responses to each question.

Q1.


Reward signal is inherently weaker than imitation learning signals, especially considering longer context, which makes the result seems a bit obvious. Could the authors explain more about the significance of this finding beyond intuitive understanding?

A1.


Our goal is to identify what drives performance gains in direct ICRL. Comparing the effects of trajectories and rewards is one part of this broader analysis.

This question matters because recent direct ICRL studies interpret performance gains from accumulating trajectory–reward pairs as evidence of inference-time RL. However, this causal interpretation has not been sufficiently tested under controlled conditions.

We directly test this interpretation through controlled interventions. Our results show that improvement is driven primarily by trajectory exposure and largely persists when rewards are flipped, randomized, or removed.

The significance of our work lies in empirically distinguishing ICRL performance gains from reward-based learning. Performance improvement alone is insufficient to conclude that inference-time RL is occurring. Future direct ICRL studies should test not only whether performance improves, but also whether that improvement actually depends on reward semantics.

Q2.


The authors claim that in-context learning dominates in-context RL. However, could the authors explain if it is possible to suppress the effect of ICL on the experiments of ICRL?

A2.


Table 7 presents a Reflexion-based experiment. Instead of placing raw trajectories directly in memory, Reflexion summarizes them using an external LLM and stores only the summary.

This substantially reduces the replay rate. It therefore provides one possible way to reduce the direct ICL effect of raw trajectories while preserving information useful for ICRL.

However, Reflexion showed high variance in our experiments. Its average performance was therefore not consistently better. Exploring more stable Reflexion-style summaries and other forms of trajectory abstraction would be a promising direction for future work.

Q3.


The authors also show that even a wrong reward does not significantly harm ICRL's performance, which seems absurd to me. Do the authors have ideas regarding if that is the problem of experiment setup or truly reflect the uselessness of reward in in-context learning?

A3.


Our reward-control experiments reveal a limitation of direct ICRL. Rewards are read, but they explain only a limited part of the improvement.

The Flipped condition in Figure 2 demonstrates this limited influence. It assigns higher rewards to worse trajectories and lower rewards to better ones. Yet ICRL-Flipped remains above Random Sampling on every benchmark. If improvement were reward-driven, reversing the reward values should eliminate the gain or push performance below Random Sampling. Instead, the improvement persists despite reward reversal, which is inconsistent with a reward-driven explanation.

As discussed in Section 7, this weak reward dependence limits the applicability of direct ICRL. When the target behavior conflicts with the model’s pretrained preferences, reward labels alone may not reliably override its preference for particular trajectories.

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

Missing a submission?

Loading the discussion…