arXiv study compares how LLM agents adapt at test time through context or weights
Researchers report that in-context learning gives the largest standalone gain for agents working in repeated environments, while reinforcement learning on top of it reaches the highest mean success.
In plain words
Large language model agents can improve on tasks by keeping notes in their context window or by updating their internal weights. A new arXiv paper tests both approaches, alone and combined, on the same tasks. In-context learning helped most on its own, and adding reinforcement learning on top produced the best overall results.
What was announced
The paper, a cross-listed arXiv abstract, examines agents that operate repeatedly in the same environment, such as a code repository, database, or application suite, where tasks share hidden structure. The authors compare in-context learning, reinforcement learning with verifiable rewards using GRPO, and self-distillation using SDPO, alone and in combination, under a shared protocol where agents are evaluated on each task before adapting to it and learn only from their own attempts and environment feedback.
Testing 14 adaptation mechanisms plus a stateless baseline with Qwen3.5-9B across 109 tasks from SWE-bench Verified, AppWorld, ScienceWorld, and BIRD-Critic-SQLite, the authors report that the best in-context policy raised mean success from 28.8% to 49.4%, and adding GRPO reached 51.6%. GRPO improved the overall mean under every in-context policy, while SDPO showed mixed effects. Trace analysis found in-context learning sometimes skipped inspection and verification, which adding GRPO helped restore.
What it does not show
- The evidence is an abstract only; full methodology, statistical significance, and additional results are not available in the supplied passages.
- Results are reported for one model, Qwen3.5-9B, and four environments, so generalization to other models or settings is not established by this evidence.
- The abstract reports the authors' own measurements; no independent confirmation is included in the supplied material.
For security and IT teams
- Scope
- The findings cover test-time adaptation of LLM agents across 109 tasks in four benchmark environments using a single 9B-parameter model, per the abstract.
Sources
Source-support review completed 28 Nov 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 28 Nov 2026
New to the subject? AI from the Ground Up starts from the beginning.