mlsanityData to 24 Nov 2026

Where Should LLM Agents Adapt at Test Time? In Context, in Weights, or Both

arXiv 2611.19700 ↗Submitted 15 Nov 2026cs.LG cs.AI cs.CLcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code also fits: Reinforcement learning for reasoning

also in 1 more
Abstract (arXiv)

LLM agents operating repeatedly in the same environment, such as a code repository, a database, or an application suite, encounter tasks that share latent structure. Experience can reveal this structure, allowing agents to reuse environment knowledge and learn from environmental feedback. Agents can adapt at test-time using this experience through two channels: retaining it in context and updating their weights. These channels are usually studied separately, leaving unclear what each contributes and when they complement each other. We compare in-context learning (ICL), reinforcement learning with verifiable rewards using GRPO, and self-distillation using SDPO, alone and in combination, using a shared online protocol and modular framework. Agents encounter matched task streams, are evaluated on each task before adapting to it, and learn only from their own attempts and environment feedback. We evaluate 14 adaptation mechanisms and a stateless baseline with Qwen3.5-9B on 109 tasks from four environments drawn from SWE-bench Verified, AppWorld, ScienceWorld, and BIRD-Critic-SQLite, using five task orders per environment. ICL provides the largest standalone gain: its best policy raises mean success across environments from 28.8% to 49.4%. Adding GRPO to this policy achieves the highest mean success, 51.6%. While adding GRPO improves the overall mean under every ICL policy, SDPO has mixed effects. Trace analyses show fewer lookups and shorter attempts under ICL, consistent with reusing knowledge of the shared structure. However, ICL also frequently skips inspection and verification for the current task. Adding GRPO to ICL helps restore these behaviors while preserving its reduced environment lookups. These observations suggest that reinforcement learning with verifiable rewards can refine how agents use retained experience, motivating the joint study of context management and weight updates.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 51 of its 58 references that are in the map. Submitted 15 Nov 2026.

Builds on

51 of 58 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory29 Sep
  2. 2025Agent Lightning: Train ANY AI Agents with Reinforcement Learning5 Aug

Other references · 49

  1. 2017Proximal Policy Optimization Algorithmscited by 16,156
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  5. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,841
  6. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,483
  7. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,255
  8. 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 709
  9. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 699
  10. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 530
  11. 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agentscited by 510
  12. 2024Agent Workflow Memorycited by 482
37 more
  1. 2024AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agentscited by 400
  2. 2026Reinforcement Learning via Self-Distillationcited by 398
  3. 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 370
  4. 2025TTRL: Test-Time Reinforcement Learningcited by 303
  5. 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 262
  6. 2026On-Policy Context Distillation for Language Modelscited by 228
  7. 2025Evo-Memory: Benchmarking LLM Agent Test-time Learning with Self-Evolving Memorycited by 154
  8. 2025EvolveR: Self-Evolving LLM Agents through an Experience-Driven Lifecyclecited by 150
  9. 2025Memento: Fine-tuning LLM Agents without Fine-tuning LLMscited by 140
  10. 2026Learning to Discover at Test Timecited by 134
  11. 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learningcited by 106
  12. 2026MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Taskscited by 104
  13. 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 96
  14. 2025End-to-End Test-Time Training for Long Contextcited by 78
  15. 2017Dynamic Evaluation of Neural Sequence Modelscited by 59
  16. 2025Test-Time Learning for Large Language Modelscited by 55
  17. 2024StreamBench: Towards Benchmarking Continuous Improvement of Language Agentscited by 51
  18. 2024Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Togethercited by 48
  19. 2025On the generalization of language models from in-context learning and finetuning: a controlled studycited by 47
  20. 2026SIA: Self Improving AI with Harness & Weight Updatescited by 40
  21. 2026Online Experiential Learning for Language Modelscited by 36
  22. 2025Self-Improving LLM Agents at Test-Timecited by 31
  23. 2026Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environmentscited by 30
  24. 2026WHALE: A Simple Recipe for Joint Harness-Weight Optimizationcited by 23
  25. 2026Exploratory Memory-Augmented LLM Agent via Hybrid On- and Off-Policy Optimizationcited by 22
  26. 2026When Continual Learning Moves to Memory: A Study of Experience Reuse in LLM Agentscited by 22
  27. 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 18
  28. 2026Experiential Reflective Learning for Self-Improving LLM Agentscited by 18
  29. 2025Learning on the Job: Test-Time Curricula for Targeted Reinforcement Learningcited by 14
  30. 2026Learning, Fast and Slow: Towards LLMs That Adapt Continuallycited by 12
  31. 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 10
  32. 2026When Does Continual Learning Require Learningcited by 9
  33. 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Modelscited by 7
  34. 2026Learning While Acting: A Skill-Enhanced Test-Time Co-Evolution Framework for Online Lifelong Learning Agentscited by 7
  35. 2026EasyOPD: An Easy-to-use On-Policy Distillation Framework for Large Language Modelscited by 4
  36. 2026CLaaS: Continual learning as a service for sample efficient online learningcited by 2
  37. 2026ASCENT: Online Test-Time Training of Long-Horizon Agents via Self-Distillation of Verified Experiencecited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Test-Time Adaptation for LLM Agents via Environment Interaction
  2. 2026Unified Context Evolution for LLM Agents
  3. 2026Decocted Experience Improves Test-Time Inference in LLM Agents
  4. 2026Skills on the Fly: Test-Time Adaptive Skill Synthesis for LLM Agents
  5. 2026From Task Solving to Robust Real-World Adaptation in LLM Agents
  6. 2026ContinualSkillBench: Can LLM Agents Truly Evolve Their Capabilities?
  7. 2026When Successful Strategies Fail: Adaptation to Environmental Novelty in Terminal Agents
  8. 2026No Time Like the Present: Agentic Test-Time Training for LLM Agents