NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Interactive In-Context Learning from Natural Language Feedback

Martin Klissarov, Jonathan Cook, Diego Antognini, Hao Sun, Jingling Li, Natasha Jaques, Claudiu Musat, Edward GrefenstettearXiv 2026

TL;DR

Current large language models are excellent at absorbing static knowledge but struggle to adapt dynamically to real-time human feedback. This paper introduces Reinforcement Learning with Language Feedback ($RL^2F$), a framework that treats interactive in-context learning as a distinct, trainable skill via teacher-student self-play driven by information asymmetry. The approach allows smaller models to nearly match the performance of models an order of magnitude larger, generalizes robustly across domains, and provides a direct pathway to autonomous self-correction.

What Problem Does This Paper Address?

When a large language model (LLM) fails at a complex task, AI engineers typically intervene by manually curating new datasets or engineering intricate prompts. This is because modern LLMs lack in-context plasticity—the ability to fluidly adjust their reasoning based on real-time, conversational feedback.

Even frontier models like GPT-5 and Gemini 2.5 Pro struggle to effectively utilize multi-turn natural language critiques on hard reasoning tasks. Instead of correcting their mistakes when given a hint, baseline models frequently suffer from behavioral rigidity, stubbornly repeating their initial incorrect answers or abandoning their internal reasoning chains entirely.

Baseline models often fail to adapt to simple interactive instructions compared to more plastic models.

Methods

The authors propose a framework called Reinforcement Learning with Language Feedback ($RL^2F$) to turn interactive learning into an explicit optimization objective.

The core training loop relies on two key components:

  1. Information Asymmetry (Teacher-Student Self-Play): Rather than using a massive, expensive model as a teacher, the framework pairs a student and a teacher instantiated from the exact same base model. However, the teacher is granted "privileged information" (e.g., the ground-truth solution or unit test outputs). The teacher is prompted to pinpoint the student's mistakes and provide natural language hints without revealing the final answer.
  2. Multi-Turn RL Fine-Tuning: The student model attempts a problem over multiple turns. An automatic verifier checks the student's answer. If correct, the student receives a sparse reward ($R = +1$) and the interaction ends. If incorrect, the teacher provides language feedback, and the student must use it to refine its solution.
The $RL^2F$ framework transforms single-turn tasks into multi-turn didactic interactions optimized via reinforcement learning.

Towards Self-Improvement (The Autodidact Agent)

To eliminate the need for an external teacher at inference time, the authors introduce an auxiliary world-modeling objective: they train the student model to also predict the teacher's critiques based solely on the context of its own errors. This allows a single model to internalize the entire feedback loop, acting as its own teacher to self-critique and self-correct.

Datasets

The framework was evaluated across several challenging, verifiable benchmarks:

  • Mathematics: Omni MATH (olympiad-level math) used for fine-tuning non-thinking models (Gemma 3 12b), and HardMath2 (advanced applied mathematics) used for testing frontier thinking models.
  • Coding: LiveCodeBench and Codeforces (competitive programming).
  • Abstract Logic & Puzzles: ARC-AGI and BIG-Bench Extra Hard (Linguini).
  • Agentic Environments: 10 diverse multi-turn environments including Maze Navigation, Poker, Wordle, and Twenty Questions.

Key Insights and Ideas

  • Information Asymmetry > Model Scale: High-quality didactic feedback does not require a fundamentally smarter model; it simply requires a model with access to the answer sheet.
  • Unlocking In-Context Plasticity: Qualitative analysis reveals that $RL^2F$ mitigates the "stubbornness" of standard LLMs. Instead of using thinking tokens to justify a prior wrong answer, fine-tuned models use their thinking traces to critically re-evaluate external hints.
  • Cross-Domain Meta-Learning: Remarkably, models trained exclusively on math interactions showed substantial performance gains in completely unrelated domains like coding, spatial maze navigation, and word games. This suggests that learning from language feedback is a foundational cognitive capability that transcends specific subject matter.
A comparison of thinking traces shows the $RL^2F$ model actively integrating teacher feedback, whereas the baseline model stubbornly repeats its exact code.

Key Results

  • Bridging the Scale Gap: Fine-tuning the smaller Gemini 2.5 Flash model with $RL^2F$ on multi-turn math interactions allowed it to nearly match the performance of the much larger Gemini 2.5 Pro on the HardMath2 dataset.
  • Out-of-Distribution Generalization: On out-of-domain tasks (ARC-AGI, Codeforces, Linguini), $RL^2F$ achieved an average performance boost of 7% over single-turn RL and baseline models.
  • Agentic Success: When evaluated across 10 general multi-turn environments without an explicit teacher, the math-trained $RL^2F$ model outperformed baselines on 7 out of 10 tasks, yielding a 5% average performance boost.
  • Superior Self-Correction: The "autodidact" model trained to predict teacher feedback significantly outperformed standard self-correction baselines, avoiding the degenerate loops typical of biased self-feedback.
Gemini 2.5 Flash trained with $RL^2F$ dramatically improves across interaction turns, nearly reaching the performance of Gemini 2.5 Pro.

Limitations and Future Work

  • Transient vs. Permanent Adaptation: While $RL^2F$ drastically improves short-term in-context adaptation during a conversation, it does not address how to consolidate these transient signals into long-term permanent weight updates.
  • Lack of Curriculum Design: In the current setup, the teacher does not actively select or sequence problems based on the student's specific weaknesses. Integrating unsupervised environment design or curriculum learning remains an open frontier.
  • Safety and Alignment Risks: Training models to be highly responsive to feedback could inadvertently incentivize undesirable behaviors like sycophancy (where a model changes a correct answer just to agree with a user's mistaken critique).
  • Cooperative Limitation: The current framework is strictly cooperative. Future work is needed to explore mixed-motive settings like multi-agent debate or negotiation.

Summary updated

BibTeX
@misc{klissarov2026improving,
  author = {Martin Klissarov and Jonathan Cook and Diego Antognini and Hao Sun and Jingling Li and Natasha Jaques and Claudiu Musat and Edward Grefenstette},
  title = {{Improving Interactive In-Context Learning from Natural Language Feedback}},
  year = {2026},
  eprint = {2602.16066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.16066},
}
Figure