Skip to content

Menu

WorksComputer Science

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

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_xwk8d2d4. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

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.

Introduction

In-context learning (ICL) is a central way in which language models adapt at inference time: information in the prompt changes subsequent predictions while the model parameters remain fixed. This has motivated a learning algorithm view of ICL, which asks what estimator, update rule, or other learning computation a Transformer (Vaswani et al., [36]) implements through its forward passes over an externally supplied prompt ([42, 13, 1, 37, 5, 40]).

Modern language-model agents routinely operate in an analogous but closed-loop regime. An agent can browse the web, call tools, edit code, or run experiments, then use the returned results to choose later actions ([44, 33, 47, 27]). A search query determines which page is read, a code edit determines the next test result, and an experiment determines the next measurement. The agent therefore does not merely learn from a supplied context: through its actions, it helps determine the context from which it will learn next.

We call this execution regime Agentic In-Context Learning (Agentic ICL). Starting from an initial prompt or task description, a fixed-parameter model chooses an action, receives feedback, and incorporates that feedback into its next decision. Its context grows through interaction with the environment. The returned feedback can be a search result, compiler error, measurement, critique, or reward. This motivates extending the learning algorithm view of ICL to interactive computations in which decisions shape subsequent evidence. The central question is:

What interactive algorithms can Transformers learn in context, and how do training objectives shape their behavior?

In-context reinforcement learning (ICRL) provides the closest precedent ([20, 22, 26, 38, 24]), but requires scalar rewards to be included in the interaction history. However, an agent usually receives non-reward feedback: a search result, compiler diagnostic, or measurement can guide the next action. We therefore develop Agentic ICL allowing agents to learn from non-reward feedback. This also separates the evidence used for in-context adaptation from the objective used for training and evaluation. Agentic ICL includes ICRL as a special case. Figure 1 illustrates this relationship.

Figure 1. Illustrative comparison of Agentic ICL, ICL and ICRL. Agentic ICL studies how agents solve general agentic tasks.

Task performance alone does not reveal the interactive algorithm. Answering these questions requires both a construction showing what Transformers can execute and experiments examining what they learn under different objectives. Our contributions are fourfold:

  • Closed-loop framework (Section 3). We factor an interactive learner into a sufficient state, a feedback update, and a decision rule. The same interface covers active learning, bandits, and online RL.

  • Transformer realization (Section 4). We give a constructive proof that compiles regular finite-horizon recursions into causal Transformers. The construction realizes their action choices and yields a bound on autonomous return loss.

  • Training objectives and diagnosis (Section 5). We theoretically characterize when process supervision preserves outcome-optimal behavior, then develop behavioral diagnostics for trained Transformers.

  • What training learns (Section 6). Supervised distillation tests learned execution of supplied interactive recursions. RL without oracle action shows how outcome and process rewards lead to different decisions, and how those decisions change with controllable reward intervention.

Related Work

Learning algorithm views of ICL and ICRL. ICL has been characterized as implicit Bayesian inference, regression, gradient descent, algorithm selection, and data-dependent learning-to-learn [42, 13, 1, 37, 5, 40]. Constructive, behavioral, and mechanistic studies identify familiar estimators inside Transformers [1, 37, 5]; we extend this standard to closed-loop recursions whose decisions determine subsequent in-context data. ICRL extends this perspective to RL updates and control, including pretraining on stored state-action-reward trajectories with source-policy or oracle actions [20, 22, 26]. These models can nevertheless generate their own interaction histories at deployment. Prior work implements posterior sampling, bandit, TD, SARSA, or policy-improvement computations and distinguishes model-free from model-based strategies [38, 11, 24]. Our interface permits both reward-hidden and history-dependent feedback. Rewards used for training and evaluation need not be revealed in the agent’s transcript, and individual returned records need not be Markov states: the feedback law may depend on the full interaction history, from which the learner constructs its sufficient state. Agentic ICL unifies active learning, bandits, online RL, and tool use. The primary discovery experiments provide neither oracle actions nor sufficient-state targets.

Tool agents and interactive language feedback. Tool agents append search results, test outputs, or other feedback to the context [44, 33, 47, 27], but are usually evaluated by success or transfer. Work on language feedback instead studies when language feedback is informative enough to enable efficient online learning [43] or how to incorporate teacher-selected critique [19]. We treat language as one possible returned record and compare candidate descriptions of the model’s state, update rule, and decision rule, separating compilation from behavior learned with terminal outcome reward. “Agentic in-context learning” has also named a stance-aggregation method [21]; we use the term for the interaction regime in Definition 3.1.

Closed-loop learning settings and algorithms. We focus on learning settings in which the learner’s input history is generated online through interaction: its actions affect which observations enter context, rather than merely processing a dataset fixed in advance. This includes adaptive data collection, where decisions determine which labels, measurements, rewards, or state transitions arrive next. In active learning, previously observed labels guide the choice of subsequent queries to improve downstream predictions [32]; bandits reveal selected-arm rewards [2, 23, 31, 30]; and online RL also controls persistent state and long-horizon return [35, 46]. We instantiate BALD for active learning; Thompson sampling, UCB, LinUCB, and EXP3 for bandits; and Q-learning, SARSA, actor-critic, and learned-model planning for online RL, alongside VOI and KG for adaptive query selection [12, 3, 39, 4]. Bayesian updating, optimism, and planning recur across these settings.

Transformer expressivity for recursive algorithms. Universal approximation and recurrent-depth Transformers establish broad expressivity [45, 10]. Recent work establishes universality using softmax attention [17] and soft-prompt tuning [15]. Fixed-weight Transformers can also emulate prompt-specified computations [18] and compose them through one-pass and multi-pass execution [16]. For iterative learning, Wu et al. [41] construct in-context gradient descent for nonlinear networks, while Chen et al. [7] use a growing chain-of-thought workspace for successive updates. Our construction exposes a sufficient-state wavefront, shares parameters across turns, and converts per-action approximation into an autonomous return bound.

Process supervision and reward shaping. Process supervision scores intermediate steps, but shaping can change the optimal policy unless action-value ordering is preserved [25, 9, 8, 28]. We use potential-based shaping to construct an outcome-preserving process-reward control.

Agentic ICL: A Closed-Loop Learning Framework

Consider an LLM agent asked to solve a coding task. It searches for documentation, executes code, and uses the returned pages or errors to decide what to try next. Each action changes its future evidence. We separate this process into the interaction that generates the transcript and the learner computation that updates evidence and selects actions.

Interaction with the Environment

We first specify how the agent’s actions determine the observations added to its context. Let x0x_0 be the initial prompt, containing the task description and any public information available before interaction. Fix a task MM, which contains the task parameters and any fixed episode-level latent state, with environment kernel KMK_M, a finite action space, and horizon HH. Write πθ\pi_\theta for the action policy induced by the frozen causal Transformer TθT_\theta. Define h0=x0h_0 = x_0 and ht=(ht−1,at,xt)h_t = (h_{t-1}, a_t, x_t), where ata_t is the tt-th action and xtx_t its returned record. Before action tt, the model receives ht−1h_{t-1}.

Definition 3.1 (Agentic in-context learning). An Agentic ICL episode is the closed loop

at∼πθ(⋅∣ht−1),xt∼KM(⋅∣ht−1,at),t=1,…,H,(1)a_t \sim\pi_\theta(\cdot\mid h_{t-1}), \qquad x_t \sim K_M(\cdot\mid h_{t-1}, a_t), \qquad t = 1,\ldots,H, \tag*{(1)}

This is called Agentic ICL as the parameters θ\theta remain fixed during deployment, and learning in context occurs through the dependence of πθ\pi_\theta on the growing transcript ht−1h_{t-1}.

This definition specifies the execution regime. For an LLM agent, πθ\pi_\theta is typically a Transformer.

Interactive Learning Algorithm

In the coding example, the agent maintains an information state, updates it after each tool result, and uses it to select the next search or code execution. Thus an interactive learner can be described by a sufficient state sts_t before action tt, an update UtU_t, a decision rule GtG_t, and legal actions Lt(st)\mathcal{L}_t(s_t). Coupled to the environment step in Definition 3.1, its learner’s recursion is

s1=U0(x0),at∼Gt(⋅∣st),st+1=Ut(st,at,xt),t=1,…,H.(2)s_1 = U_0(x_0),\quad a_t \sim G_t(\cdot\mid s_t),\quad s_{t+1} = U_t(s_t,a_t,x_t),\quad t=1,\ldots,H. \tag*{(2)}

The induced history policy is Gt(⋅∣st(ht−1))G_t(\cdot\mid s_t(h_{t-1})). The environment KMK_M supplies feedback, while the learner maps (Ut,Gt)(U_t,G_t) incorporate it and select the next action.

This factorization separates how evidence is incorporated from how actions are selected. Consider three representative and widely studied settings of learning problems: active learning selects queries and receives labels to improve downstream predictions; bandits select an arm and reveal its outcome for cumulative reward or regret; and online RL controls both immediate feedback and future states for long-horizon return or regret. They are all included in this framework and distinguished by how actions shape future context. At the interface level, any finite-horizon policy can be expressed in this recursive form by taking st=ht−1s_t = h_{t-1}. Importantly, the feedback need not itself be the task reward, separating the records used for in-context adaptation from the task objective. Appendix A gives instantiations.

Compiling Interactive Learning Algorithms into Transformers

The framework expresses an interactive algorithm through its state, update, and decision rule. We now construct a frozen causal Transformer that executes (2) by serializing the transcript, routing the state between turns, incorporating feedback, and producing the next action distribution.

Assume fixed-width encoders ExE_x and EaE_a for public records and actions. We serialize the prompt and extend it recursively, for 1≤t<H1 \le t < H:

Prompt⁡(h0)=[Ex(x0),SUM,ACT],Prompt⁡(ht)=[Prompt⁡(ht−1),Ea(at),Ex(xt),SUM,ACT].(3)\begin{aligned} \operatorname{Prompt}(h_0) &= [E_x(x_0),\mathrm{SUM},\mathrm{ACT}],\\ \operatorname{Prompt}(h_t) &= [\operatorname{Prompt}(h_{t-1}),E_a(a_t),E_x(x_t),\mathrm{SUM},\mathrm{ACT}]. \tag*{(3)} \end{aligned}

Each field occupies one vector token. The SUM token provides workspace for the learner state; the final ACT token emits the next action. The action and its returned record are then appended to form the next prompt. This encoding makes the learner’s computation explicit. It is a non-exclusive abstraction of LLM agents’ data flow, not a lossless encoding of arbitrary natural-language records.

Given this serialization, the following theorem states that a frozen causal Transformer can uniformly realize the policy of any regular finite-horizon recursion with arbitrarily small error. Appendix D gives the proof.

Theorem 4.1 (Interactive-algorithm compilation). Fix HH and a learner of the form in (2). Assume compact fixed-width encodings of records, actions, and learner states; uniformly Lipschitz initialization, updates, and finite decision logits admitting feed-forward approximation; and a finite action vocabulary with a public-history legality mask. Let each decision kernel be the masked softmax of these logits. For every ϵ>0\epsilon> 0, there is a frozen causal Transformer of depth at most O(H)O(H) satisfying

max⁡1≤t≤H sup⁡ht−1 TV⁡(πθ(⋅∣Prompt⁡(ht−1)),Gt(⋅∣st(ht−1)))≤ϵ.\max_{1 \le t \le H}\ \sup_{h_{t-1}}\ \operatorname{TV}\left(\pi_\theta(\cdot\mid\operatorname{Prompt}(h_{t-1})),G_t(\cdot\mid s_t(h_{t-1}))\right) \le\epsilon.

Table 1 illustrates how representative learners instantiate the state-update-decision interface. Both the settings and the algorithms within each setting are illustrative rather than exhaustive. Details are provided in Appendix A.

SettingState sts_tUpdate UtU_tDecision GtG_t / examples
Active learningLabeled set, query pool, posteriorAdd queried label, update posteriorBALD, value-of-information query selection
BanditsPosterior or reward statisticsPosterior or statistical updateThompson sampling, UCB
Online RLValues, policy parameters, or learned modelTD, policy-gradient, or model updateQ-learning, SARSA, actor-critic, learned-model planning

Table 1. Illustrative settings and algorithms covered by Theorem 4.1.

Training Objectives and Behavioral Diagnosis

Section 4 establishes that Transformers can represent these interactive policies. We next characterize which decisions different training objectives favor, and introduce diagnostics for examining the policies beyond task performance alone. We first define task value to evaluate their autonomous performance.

Let M∼ρM \sim\rho be a task drawn from the training or evaluation distribution, and let RM(hH)∈[0,B]R_M(h_H) \in[0,B] score the final trajectory. For any policy π\pi, its expected task value is

VM(π)=EhH∼(π,KM)RM(hH).(4)V_M(\pi) = \mathbb{E}_{h_H \sim(\pi,K_M)} R_M(h_H). \tag*{(4)}

The return RM(hH)R_M(h_H) is trainer-side information and need not be revealed in xtx_t.

Theorem 4.1 also controls this task value: if policies agree within ϵ\epsilon at every legal history, autonomous return differs by at most BHϵBH\epsilon (Proposition F.1, Appendix § 14).

What is the optimal behavior under a specific supervision objective?

We consider outcome reward and process reward, which are commonly used in RL post-training of language model agents. We characterize when maximizing cumulative process reward preserves the actions that maximize the final outcome. For a supervision objective SS, let RS,t(hH)R_{S,t}(h_H) be its trainer-side return from decision tt onward and μ\mu a continuation policy. Define

QS,t∗(h,a)=sup⁡μEμ[RS,t(HH)∣Ht−1=h,At=a],AS,t∗(h)=arg⁡max⁡a legalQS,t∗(h,a).(5)Q^*_{S,t}(h,a) = \sup_{\mu} \mathbb{E}^{\mu}[R_{S,t}(H_H) \mid H_{t-1}=h,A_t=a], \qquad A^*_{S,t}(h) = \mathop{\arg\max}_{a\ \mathrm{legal}} Q^*_{S,t}(h,a). \tag*{(5)}

A policy is SS-optimal at hh when its support lies in AS,t∗(h)A^*_{S,t}(h). This defines objective-optimal behavior, not a unique implementation or a finite-sample convergence guarantee.

Terminal outcome reward provides the simplest instance. With terminal task return RM(hH)R_M(h_H), set Rout,t(hH)=RM(hH)R_{\mathrm{out},t}(h_H) = R_M(h_H) and write Qout,t∗(h,a)=sup⁡μEμ[RM(HH)∣Ht−1=h,At=a]Q^*_{\mathrm{out},t}(h,a) = \sup_{\mu} \mathbb{E}^{\mu}[R_M(H_H) \mid H_{t-1}=h,A_t=a], Aout,t∗(h)=arg⁡max⁡a legalQout,t∗(h,a)A^*_{\mathrm{out},t}(h) = \mathop{\arg\max}_{a\ \mathrm{legal}} Q^*_{\mathrm{out},t}(h,a). Then Aout,t∗(h)A^*_{\mathrm{out},t}(h) is the set of terminal-outcome-optimal actions at hh. For process supervision with step rewards rtSr_t^S and discount β\beta, set RS,t(hH)=∑u=tHβu−truSR_{S,t}(h_H) = \sum_{u=t}^{H} \beta^{u-t}r_u^S, QS,t∗(h,a)=sup⁡μEμ[RS,t(HH)∣Ht−1=h,At=a]Q^*_{S,t}(h,a) = \sup_{\mu} \mathbb{E}^{\mu}[R_{S,t}(H_H) \mid H_{t-1}=h,A_t=a]. Process-optimal behavior is determined by cumulative action values, not isolated step scores. To provide dense supervision while preserving outcome-optimal behavior, the process reward must satisfy the ordering condition below.

References

  1. [1]Ekin Akyürek, Dale Schuurmans, Jacob Andreas, Tengyu Ma, and Denny Zhou. What learning algorithm is in-context learning? investigations with linear models. In International Conference on Learning Representations, 2023.arxiv.org/abs/2211.15661
  2. [2]Peter Auer, Nicolò Cesa-Bianchi, and Paul Fischer. Finite-time analysis of the multiarmed bandit problem. Machine Learning, 2002a.DOI
  3. [3]Peter Auer, Nicolò Cesa-Bianchi, Yoav Freund, and Robert E. Schapire. The nonstochastic multiarmed bandit problem. SIAM Journal on Computing, 2002b.DOI
  4. [4]Mohammad Gheshlaghi Azar, Ian Osband, and Rémi Munos. Minimax regret bounds for reinforcement learning. In International Conference on Machine Learning, 2017.arxiv.org/abs/1703.05449
  5. [5]Yu Bai, Fan Chen, Huan Wang, Caiming Xiong, and Song Mei. Transformers as statisticians: Provable in-context learning with in-context algorithm selection. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2306.04637
  6. [6]Kathryn Chaloner and Isabella Verdinelli. Bayesian experimental design: A review. Statistical Science, 1995.DOI
  7. [7]Hong-Yu Chen, Venkat Sripad Ganti, Hude Liu, Jerry Yao-Chieh Hu, and Han Liu. Chain-of-thought gradient descent. In International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pp. 14232–14278. PMLR, 2026. URL https://proceedings.mlr.press/v306/chen26ae.html.
  8. [8]Jie Cheng, Gang Xiong, Ruixi Qiao, Lijun Li, Chao Guo, Junle Wang, Yisheng Lv, and Fei-Yue Wang. Stop summation: Min-form credit assignment is all process reward model needs for reasoning. In Advances in Neural Information Processing Systems, 2025.arxiv.org/abs/2504.15275
  9. [9]Ganqu Cui, Lifan Yuan, Zefan Wang, Hanbin Wang, Yuchen Zhang, Jiacheng Chen, Wendi Li, Bingxiang He, Yuchen Fan, Tianyu Yu, et al. Process reinforcement through implicit rewards. arXiv preprint arXiv:2502.01456, 2025.arxiv.org/abs/2502.01456
  10. [10]Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations, 2019.arxiv.org/abs/1807.03819
  11. [11]Ching Fang and Kanaka Rajan. From memories to maps: Mechanisms of in-context reinforcement learning in transformers. arXiv preprint arXiv:2506.19686, 2025.arxiv.org/abs/2506.19686
  12. [12]Peter I. Frazier, Warren B. Powell, and Savas Dayanik. A knowledge-gradient policy for sequential information collection. SIAM Journal on Control and Optimization, 2008.DOI
  13. [13]Shivam Garg, Dimitris Tsipras, Percy Liang, and Gregory Valiant. What can transformers learn in-context? a case study of simple function classes. In Advances in Neural Information Processing Systems, 2022.arxiv.org/abs/2208.01066
  14. [14]Neil Houlsby, Ferenc Huszár, Zoubin Ghahramani, and Máté Lengyel. Bayesian active learning for classification and preference learning. arXiv preprint arXiv:1112.5745, 2011.arxiv.org/abs/1112.5745
  15. [15]Jerry Yao-Chieh Hu, Wei-Po Wang, Ammar Gilani, Chenyang Li, Zhao Song, and Han Liu. Fundamental limits of prompt tuning transformers: Universality, capacity and efficiency. In International Conference on Learning Representations, pp. 29634–29686, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/48dfc84964034e2d58df0b5bb78c33b–Abstract–Conference.html.arxiv.org/abs/2411.16525
  16. [16]Jerry Yao-Chieh Hu, Hong-Yu Chen, Po-Chiao Lin, Maojiang Su, and Han Liu. In-context universal approximation, compositional generalization, and algorithm emulation. In International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pp. 44705–44798. PMLR, 2026a. URL https://proceedings.mlr.press/v306/hu26h.html.
  17. [17]Jerry Yao-Chieh Hu, Hude Liu, Hong-Yu Chen, Weimin Wu, and Han Liu. Universal approximation with softmax attention. In International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pp. 45312–45391. PMLR, 2026b. URL https://proceedings.mlr.press/v306/hu26af.html.arxiv.org/abs/2504.15956
  18. [18]Jerry Yao-Chieh Hu, Hude Liu, Jennifer Zhang, and Han Liu. In-context algorithm emulation in fixed-weight transformers. In International Conference on Learning Representations, pp. 7573–7656, 2026c. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/0d18ab3b5fabfa6fe47c62e711af02f0–Abstract–Conference.html.arxiv.org/abs/2508.17550
  19. [19]Martin Klissarov, Jonathan Cook, Diego Antonini, Hao Sun, Jingling Li, Natasha Jaques, Claudiu Musat, and Edward Grefenstette. Improving interactive in-context learning from natural language feedback. arXiv preprint arXiv:2602.16066, 2026.arxiv.org/abs/2602.16066
  20. [20]Michael Laskin, Luyu Wang, Junhyuk Oh, Emilio Parisotto, Stephen Spencer, Richie Steigerwald, DJ Strouse, Steven Hansen, Angelos Filos, Ethan Brooks, Maxime Gazeau, Himanshu Sahni, Satinder Singh, and Volodymyr Mnih. In-context reinforcement learning with algorithm distillation. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.14215
  21. [21]Dahyun Lee, Jonghyeon Choi, Jiyoung Han, and Kunwoo Park. Journalism-guided agentic in-context learning for news stance detection. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 2025.arxiv.org/abs/2507.11049
  22. [22]Jonathan N. Lee, Annie Xie, Aldo Pacchiano, Yash Chandak, Chelsea Finn, Ofir Nachum, and Emma Brunskill. Supervised pretraining can learn in-context reinforcement learning. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2306.14892
  23. [23]Lihong Li, Wei Chu, John Langford, and Robert E. Schapire. A contextual-bandit approach to personalized news article recommendation. In International Conference on World Wide Web, 2010.DOI
  24. [24]Haodong Liang and Lifeng Lai. Transformers probably implement in-context reinforcement learning with policy improvement. arXiv preprint arXiv:2605.05755, 2026.arxiv.org/abs/2605.05755
  25. [25]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. arXiv preprint arXiv:2305.20050, 2023.arxiv.org/abs/2305.20050
  26. [26]Licong Lin, Yu Bai, and Song Mei. Transformers as decision makers: Provable in-context reinforcement learning via supervised pretraining. In International Conference on Learning Representations, 2024.arxiv.org/abs/2310.08566
  27. [27]Michael Lutz, Arth Bohra, Manvel Saroyan, Artem Harutyunyan, and Giovanni Campagna. WILBUR: Adaptive in-context learning for robust and accurate web agents. arXiv preprint arXiv:2404.05902, 2024.arxiv.org/abs/2404.05902
  28. [28]Andrew Y. Ng, Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In International Conference on Machine Learning, 1999.
  29. [29]Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, et al. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115, 2025.
  30. [30]Alessio Russo, Ryan Welch, and Aldo Pacchiano. In-context learning for pure exploration. In International Conference on Learning Representations, volume 2026, pp. 14493–14509, 2026.arxiv.org/abs/2506.01876
  31. [31]Daniel Russo, Benjamin Van Roy, Abbas Kazerouni, Ian Osband, and Zheng Wen. A tutorial on thompson sampling. Foundations and Trends in Machine Learning, 2018.
  32. [32]Burr Settles. Active learning literature survey. Technical report, University of Wisconsin–Madison, 2009.
  33. [33]Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2303.11366
  34. [34]Richard S. Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In International Conference on Machine Learning, 1990.DOI
  35. [35]Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2018.
  36. [36]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1706.03762
  37. [37]Johannes von Oswald, Eyvind Niklasson, Ettore Randazzo, João Sacramento, Alexander Mordvintsev, Andrey Zhmoginov, and Max Vladymyrov. Transformers learn in-context by gradient descent. In International Conference on Machine Learning, 2023.arxiv.org/abs/2212.07677
  38. [38]Jiuqi Wang, Ethan Blaser, Hadi Daneshmand, and Shangtong Zhang. Transformers can learn temporal difference methods for in-context reinforcement learning. In International Conference on Learning Representations, 2025.arxiv.org/abs/2405.13861
  39. [39]Christopher J. C. H. Watkins and Peter Dayan. Q-learning. Machine Learning, 1992.DOI
  40. [40]Shiguang Wu, Yaqing Wang, and Quanming Yao. Why in-context learning models are good few-shot learners? In International Conference on Learning Representations, 2025a.
  41. [41]Weimin Wu, Maojiang Su, Jerry Yao-Chieh Hu, Zhao Song, and Han Liu. In-context deep learning via transformer models. In International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 67670–67718. PMLR, 2025b. URL https://proceedings.mlr.press/v267/wu25aa.html.arxiv.org/abs/2411.16549
  42. [42]Sang Michael Xie, Aditi Raghunathan, Percy Liang, and Tengyu Ma. An explanation of in-context learning as implicit Bayesian inference. In International Conference on Learning Representations, 2022.arxiv.org/abs/2111.02080
  43. [43]Wanqiao Xu, Allen Nie, Ruijie Zheng, Aditya Modi, Adith Swaminathan, and Ching-An Cheng. Formalizing learning from language feedback with provable guarantees. In International Conference on Machine Learning, 2026.arxiv.org/abs/2506.10341
  44. [44]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.03629
  45. [45]Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi, and Sanjiv Kumar. Are transformers universal approximators of sequence-to-sequence functions? In International Conference on Learning Representations, 2020.arxiv.org/abs/1912.10077
  46. [46]Andrea Zanette and Emma Brunskill. Problem dependent reinforcement learning bounds which can identify bandit structure in MDPs. In International Conference on Machine Learning, 2018.arxiv.org/abs/1911.00954
  47. [47]Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. Expel: LLM agents are experiential learners. In AAAI Conference on Artificial Intelligence, 2024.arxiv.org/abs/2308.10144

AI tools statement

This work lists 1 AI tool.

  • generative AI tools · AI tool

    Roles
    ConceptualizationData curationMethodologySoftwareWriting — original draft
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Table 1

1 / 25

Pick where to look, or just type