mlsanityData to 24 Nov 2026

Agentic In-Context Learning: What Algorithms Can Transformers Learn in Closed-Loop Interaction?

arXiv 2610.23051 ↗Submitted 16 Oct 2026cs.AIcited by 0

On the map: LLM agents and tool use → Reinforcement learning for LLM agents

Abstract (arXiv)

The learning algorithm view of in-context learning (ICL) studies how fixed-parameter Transformers learn from supplied examples. Language model agents extend this setting through interaction: their actions determine what evidence enters context next. We call this regime Agentic In-Context Learning (Agentic ICL). Existing studies largely depend on externally supplied contexts or reward-bearing interaction histories, while work on general tool-using agents lacks a learning algorithm view. We represent an interactive learner by its state, update, and decision rule, covering active learning, bandits, and online reinforcement learning (RL). For expressivity, we construct causal Transformers that approximate these algorithms over a finite horizon, and bound the resulting loss in return. For training, we characterize when optimizing process rewards preserves behavior that maximizes the final outcome. Distillation experiments show that Transformers can learn to execute three representative recursions. We then train models from outcome or process rewards without oracle action or state targets, as in RL post-training. Different rewards yield distinct decision policies. Improving the alignment of process supervision with outcome-optimal action preferences shifts learned decisions accordingly. Such behavioral differences persist in a pretrained language model across textual paraphrases.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 29 of its 41 references that are in the map. Submitted 16 Oct 2026.

Builds on

29 of 41 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023Reflexion: Language Agents with Verbal Reinforcement Learning20 Mar

Other references · 28

  1. 2017Attention Is All You Needcited by 62,125
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  3. 2024Qwen2.5 Technical Reportcited by 5,525
  4. 2023Let's Verify Step by Stepcited by 4,259
  5. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 1,067
  6. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 989
  7. 2018Universal Transformerscited by 769
  8. 2022Transformers learn in-context by gradient descentcited by 763
  9. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 754
  10. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 729
  11. 2025Process Reinforcement through Implicit Rewardscited by 534
  12. 2017Minimax Regret Bounds for Reinforcement Learningcited by 515
16 more
  1. 2017A Tutorial on Thompson Samplingcited by 449
  2. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 431
  3. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 313
  4. 2022In-context Reinforcement Learning with Algorithm Distillationcited by 205
  5. 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 149
  6. 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 92
  7. 2025Stop Summation: Min-Form Credit Assignment Is All Process Reward Model Needs for Reasoningcited by 59
  8. 2024Transformers Can Learn Temporal Difference Methods for In-Context Reinforcement Learningcited by 27
  9. 2024WILBUR: Adaptive In-Context Learning for Robust and Accurate Web Agentscited by 23
  10. 2025Formalizing Learning from Language Feedback with Provable Guaranteescited by 16
  11. 2019Problem Dependent Reinforcement Learning Bounds Which Can Identify Bandit Structure in MDPscited by 7
  12. 2025In-Context Learning for Pure Explorationcited by 7
  13. 2026Improving Interactive In-Context Learning from Natural Language Feedbackcited by 7
  14. 2026Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvementcited by 5
  15. 2025From Memories to Maps: Mechanisms of In-Context Reinforcement Learning in Transformerscited by 2
  16. 2025Journalism-Guided Agentic In-Context Learning for News Stance Detectioncited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
  2. 2025Towards Provable Emergence of In-Context Reinforcement Learning
  3. 2025Leveraging In-Context Learning for Language Model Agents
  4. 2026Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context Reinforcement Learning
  5. 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Survey
  6. 2025In-Context Reinforcement Learning via Communicative World Models
  7. 2025Vintix: Action Model via In-Context Reinforcement Learning
  8. 2024LLMs Are In-Context Bandit Reinforcement Learners