betaFeedback

WorksComputer Science

Provable Transformer Context Compression for In-Context Reinforcement Learning

Abstract

Transformers can perform in-context reinforcement learning without parameter updates. However, existing theoretical constructions often require context sizes that grow with the number of sampled transitions, leading to increasing memory costs in large-scale problems. This raises a fundamental scalability question: how much context is intrinsically necessary to carry out such learning? We answer this question for fixed-policy TD evaluation. We show that, with a shared linear decoder, the minimum context dimension required to exactly reproduce the first LL TD iterates is the Krylov dimension induced by the sampled transitions. When the available context dimension mm falls below this threshold, exact reproduction is no longer possible. In this regime, we characterize the optimal approximation error and show that it decays as Θ(γmmax⁡{1,1/(m(1−γ))})Θ(γ^m\max\{1,1/(m(1-γ))\}) where γγ is the discounting factor. Moving from representation complexity to actual memory cost, we characterize the optimal retained memory for exact continuous representations as Θ(nkL)Θ(nk_L) and show experimentally that on a sampled task whose exact rank is full but whose numerical rank is small, a context accurate to 10−210^{-2} is 88.7%88.7\% smaller than the sparse sufficient statistics of TD. Finally, we establish the learnability of the shared executor through pretraining by proving global convergence of an auxiliary objective over effective attention parameters under suitable task diversity. Experiments across diverse TD evaluation problems validate parameter recovery and the predicted context–accuracy tradeoff.

Introduction

Reinforcement learning (RL) studies how an agent learns to make decisions through interaction with an environment to maximize cumulative reward [40]. In conventional RL, this adaptation typically involves updating the parameters of a policy or value network from collected experience. More recently, with the growing ability of sequence models to use long interaction histories, in-context reinforcement learning (ICRL) has emerged as a different mode of adaptation: a pretrained agent can improve on a new task by conditioning on its interaction history while keeping its model parameters fixed [29]. In-context RL has demonstrated strong empirical success across a range of domains including navigation, continuous-control tasks, and open-ended embodied environments [8, 3, 28, 13].

The empirical success naturally raises the question of why ICRL can adapt to unseen tasks using context. Recent theoretical work interprets ICRL as the Transformer forward pass executing an implicit RL algorithm, and can be divided into supervised pretraining and reinforcement pretraining. Under supervised pretraining, theoretical results show that Transformers can implement a range of classical RL algorithms [22, 23, 27, 25, 6]. Under reinforcement pretraining, both linear and softmax Transformers can provably implement TD-style updates, with the corresponding computation emerging from policy-evaluation pretraining (Wang et al., 2025a,b; Xie et al., 2026b,a).

However, identifying the algorithm implemented in context does not reveal how much information must be retained to reproduce its update process. Existing in-context RL theory typically retains the full interaction history in the prompt. In several representative theoretical constructions, states or state–action pairs along a trajectory are represented using either one-hot embeddings in tabular settings [27, 44], or more general dd-dimensional feature maps, such as ϕ:S→Rd\phi:\mathcal{S}\to\mathbb{R}^{d} [43, 25, 48]. Consequently, for a trajectory of NN transitions {(st,at,rt,st+1)}t=1N\{(s_t,a_t,r_t,s_{t+1})\}_{t=1}^{N}, the task-specific memory of these constructions scales as Θ(dN)\Theta(dN). Such linear growth with the interaction horizon can become a substantial bottleneck in long-horizon or high-dimensional RL problems, as storing and processing an ever-growing context incurs increasing inference-time memory and computational costs. Existing constructions therefore establish that retaining the full interaction history is sufficient, but leave open whether it is necessary. Taking TD learning for policy evaluation as a canonical example, this raises two natural questions:

(Q1) Necessary context requirement: What is the minimum context dimension, and the corresponding memory requirement, needed to exactly reproduce the TD iterates?

(Q2) Approximation with limited context: When the available context dimension falls below this threshold, what is the best achievable approximation error?

To answer these questions, we consider a trajectory DN={(st,at,rt,st+1)}t=1ND_N=\{(s_t,a_t,r_t,s_{t+1})\}_{t=1}^{N} collected under a fixed policy, and nn is the state number. Then we study the exact context required to preserve these iterates and the approximation error when the available context is limited. Our main contributions are as follows.

  1. Context complexity. We characterize the intrinsic context dimension required for in-context TD learning. With a shared linear decoder, we show that the minimum context dimension required to exactly reproduce LL empirical TD iterates is the Krylov dimension kLk_L [38]. When the available context dimension mm falls below this threshold, we further characterize the best achievable approximation and establish matching upper and lower error bounds of order Θ(γmmax⁡{1,1/(m(1−γ))})\Theta(\gamma^m\max\{1,1/(m(1-\gamma))\}).

  1. Memory complexity. We distinguish context dimension, peak memory, and retained task memory. For representations with encoders continuous in empirical model, we characterize the minimum retained memory required to answer all state–depth TD queries exactly as Θ(nkL)\Theta(nk_L) real registers2^2. On a sampled task of full exact rank but small numerical rank, a context accurate to 10−210^{-2} retains 88.7% less memory than the sparse TD statistics. We further show that the optimal retained memory for answering all state–depth queries within error ϵ\epsilon is Θγ(nmin⁡{n,L,log⁡(1/ϵ)}log⁡(1/ϵ))\Theta_{\gamma}(n\min\{n,L,\log(1/\epsilon)\}\log(1/\epsilon)) bits.

  1. Learnability and experiment. Finally, we study whether the compressed TD computation can be learned through pretraining. Under suitable task diversity, we show that an auxiliary objective is globally strongly convex in the effective attention parameters and provide provable global convergence to the target TD update. Extensive experiments further validate parameter recovery, the predicted context–accuracy tradeoff, and substantial memory savings.

To the best of our knowledge, we are the first to characterize the context and memory requirements for preserving an in-context RL computation, as well as the approximation error below the exact-representation threshold. We require recovery across all TD depths, rather than only the terminal output, because our goal is to reproduce the algorithmic computation itself rather than merely its final result. Unlike classical compression methods, we realize the compression end-to-end within a fixed-parameter linear-attention network operating directly on raw transitions. Table 1 compares our work with existing ICRL constructions.

WorkProblem settingRetained objectRetained memoryBuffer (KiB)
Wang et al. [43]TD(0), linear features, sampled trajectoryNN transition tokens (ϕt,γϕt+1,Rt+1)(\phi_t, \gamma\phi_{t+1}, R_{t+1})Θ(Nd)\Theta(Nd)383.00
Wang et al. [44]tabular TD, known dynamicsnn state tokens with rows of γP\gamma P and rrΘ(n2)\Theta(n^2)4.79
Xie et al. [48]softmax (kernel) TD, sampled trajectoryNN state tokens (xt,Rt+1)(x_t, R_{t+1})Θ(Nd)\Theta(Nd)211.04
Xie et al. [47]TD(0) with chain of thought, linear featuresNN transition tokens and LL iterate tokensΘ((N+L)d)\Theta((N+L)d)579.15
Ourstabular TD (Thm. 4.3) or linear features (Thm. 4.4), sampled trajectorykLk_L Krylov tokens (B,Y,g)(B,Y,g)O(nkL+n)\mathbf{O}(nk_L+n)2.49

Table 1. Constructions that execute TD policy evaluation in the forward pass. N,n,d,LN,n,d,L denote transitions, states, feature dimension, and TD depth; kL=dim⁡KL(P^,r^)k_L = \dim\mathcal{K}_L(\widehat{P},\hat{r}). Theory counts task scalars; buffers are float32 array bytes/1024 over 100 encodings at N=2000N=2000, n=d=24n=d=24, L=30L=30, kL=12k_L=12, excluding parameters and forward scratch. Constructions for other in-context RL problems ([27, 6, 25]) retain different objects and are listed in Appendix § 16 as not comparable.

Related Work

Theoretical Mechanisms of In-Context Reinforcement Learning. Recent theory studies ICRL by viewing the Transformer forward pass as implementing an RL algorithm. Under supervised pre-training, Lin et al. [27] construct Transformers that approximate classical online decision-making algorithms, while Liang & Lai [25] extend this perspective to SARSA and actor–critic, and Chen et al. [6] analyze strategies for non-stationary RL. Without explicitly supervising the internal update rule, Wang et al. [43] show that linear-attention Transformers can implement TD updates, and Wang et al. [44] characterize parameters realizing such computations as global minimizers of a pretraining objective. Xie et al. [48] extend the mechanism to standard softmax attention, whereas Xie et al. [47] interpret chain-of-thought generation as repeated TD computation.

Reinforcement Learning and Traditional Compression. Reinforcement learning studies sequential decision making through interaction with an environment, with classical methods including temporal-difference learning, Q-learning, and policy-gradient methods ([39, 45, 46]). For TD policy evaluation, classical compression replaces raw trajectories with sufficient statistics, as in LSTD and iLSTD ([5, 4, 11, 19]), and Krylov subspaces also arise in value approximation and model reduction ([32, 33, 34]). Classical model-reduction methods provide a variety of low-dimensional representations for dynamical and Markov systems ([15, 9, 1, 20, 12]). Unlike classical compression methods, we characterize the context needed for TD evaluation and realize the compression end-to-end within a fixed-parameter linear-attention network operating directly on raw transitions.

Context Compression. Context compression has been widely studied to reduce the computational and memory costs of models. Existing approaches either compress long contexts into compact learned representations ([37, 30, 7, 10] (Zhang et al. 2025)), or reduce the input through token/segment selection and retrieval compression ([24, 17, 18, 31, 49]). In contrast, we characterize the memory–accuracy limits of in-context TD compression and realize them directly from raw transitions with fixed-parameter attention.

Preliminaries

Reinforcement Learning Setting. We consider an infinite-horizon discounted Markov decision process (MDP) with finite4 state space S=[n]S=[n], action space AA, transition kernel PMDP(s′∣s,a)P_{\mathrm{MDP}}(s' \mid s,a), reward function rMDP(s,a)r_{\mathrm{MDP}}(s,a), and discount factor γ∈[0,1)\gamma\in[0,1) ([36]). For a fixed policy π\pi, the MDP induces a Markov reward process (MRP) with transition matrix Pπ∈Rn×nP^\pi\in\mathbb{R}^{n \times n} and expected one-step reward vector rπ∈Rnr^\pi\in\mathbb{R}^n, where Pijπ:=∑a∈Aπ(a∣i)PMDP(j∣i,a)P^\pi_{ij}:=\sum_{a\in A}\pi(a\mid i)P_{\mathrm{MDP}}(j\mid i,a) and riπ:=∑a∈Aπ(a∣i)rMDP(i,a)r^\pi_i:=\sum_{a\in A}\pi(a\mid i)r_{\mathrm{MDP}}(i,a). The policy-evaluation problem is to estimate the value function vπ(i):=Eπ[∑t=0∞γtRt+1∣S0=i]v^\pi(i) := \mathbb{E}_\pi\left[\sum_{t=0}^{\infty}\gamma^t R_{t+1}\mid S_0=i\right]. Temporal-difference (TD) learning estimates this value function by bootstrapping from consecutive transitions [39, 40]. In general, a single TD(0) update takes the form vt+1=vt+αt(Rt+1+γvt(St+1)−vt(St))∇vtvt(St)v_{t+1}=v_t+\alpha_t\left(R_{t+1}+\gamma v_t(S_{t+1})-v_t(S_t)\right)\nabla_{v_t}v_t(S_t). In the remainder of the paper, we therefore work directly with the induced MRP and focus on the corresponding TD-learning dynamics for fixed-policy evaluation. Let DN={(St,At,Rt+1,St+1)}t=0N−1D_N=\{(S_t,A_t,R_{t+1},S_{t+1})\}_{t=0}^{N-1} contain NN transitions collected under π\pi. We define Ni:=∑t=0N−11{St=i}N_i:=\sum_{t=0}^{N-1}\mathbf{1}\{S_t=i\} and Nij:=∑t=0N−11{St=i,St+1=j}N_{ij}:=\sum_{t=0}^{N-1}\mathbf{1}\{S_t=i,S_{t+1}=j\}, then assume full state coverage, i.e., Ni>0N_i>0 for all i∈[n]i\in[n]. Appendix A.1 discusses the rationale for this assumption. The empirical transition and reward estimates are P^ij:=NijNi\widehat{P}_{ij}:=\frac{N_{ij}}{N_i} and r^i:=1Ni∑t:St=iRt+1\widehat{r}_i:=\frac{1}{N_i}\sum_{t:S_t=i}R_{t+1}. For a value vector v∈Rnv\in\mathbb{R}^n, define the empirical TD error δ^t(v):=Rt+1+γv(St+1)−v(St)\widehat{\delta}_t(v):=R_{t+1}+\gamma v(S_{t+1})-v(S_t) and the empirical state-visitation matrix D^N:=diag⁡(N1N,…,NnN)\widehat{D}_N:=\operatorname{diag}\left(\frac{N_1}{N},\ldots,\frac{N_n}{N}\right). Starting from v^0=0\widehat{v}_0=0, let v^ℓ∈Rn\widehat{v}_\ell\in\mathbb{R}^n denote the empirical value estimate after ℓ\ell iterations of visitation-normalized batch TD(0) [52]:

References

  1. [1]Athanasios C. Antoulas. Approximation of Large-Scale Dynamical Systems. Society for Industrial and Applied Mathematics, 2005.DOI
  2. [2]Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. Deep equilibrium models. In Advances in Neural Information Processing Systems, volume 32, 2019. URL https://papers.neurips.cc/paper_files/paper/2019/hash/0138b6d6d8e091c2ab4c7c7de644d37b-Abstract.html.arxiv.org/abs/1909.01377
  3. [3]Jakob Bauer, Kate Baumli, Feryal Behbahani, Avishkar Bhoopchand, Nathalie Bradley-Schmieg, Michael Chang, Natalie Clay, Adrian Collister, Vibhavari Dasagi, Lucy Gonzalez, Karol Gregor, Edward Hughes, Sheleem Kashem, Maria Loks-Thompson, Hannah Openshaw, Jack Parker-Holder, Shreya Pathak, Nicolas Perez-Nieves, Nemanja Rakicevic, Tim Rocktäschel, Yannick Schroecker, Satinder Singh, Jakub Sygnowski, Karl Tuyls, Sarah York, Alexander Zacherl, and Lei M. Zhang. Human-timescale adaptation in an open-ended task space. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 1887–1935. PMLR, 2023. URL https://proceedings.mlr.press/v202/bauer23a.html.arxiv.org/abs/2301.07608
  4. [4]Justin A. Boyan. Technical update: Least-squares temporal difference learning. Machine Learning, 49:233–246, 2002.DOI
  5. [5]Steven J. Bradtke and Andrew G. Barto. Linear least-squares algorithms for temporal difference learning. Machine Learning, 22:33–57, 1996.
  6. [6]Baiyuan Chen, Shinji Ito, and Masaaki Imaizumi. Optimal dynamic regret by transformers for non-stationary reinforcement learning. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/25c592c5ae46736181075d3f3730709e-Abstract-Conference.html.arxiv.org/abs/2508.16027
  7. [7]Alexis Chevalier, Alexander Wettig, Anirudh Ajith, and Danqi Chen. Adapting language models to compress contexts. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 3829–3846. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.232.
  8. [8]Yan Duan, John Schulman, Xi Chen, Peter L. Bartlett, Ilya Sutskever, and Pieter Abbeel. Rl^2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016. URL https://arxiv.org/abs/1611.02779.
  9. [9]Roland W. Freund. Model reduction methods based on Krylov subspaces. Acta Numerica, 12: 267–319, 2003.
  10. [10]Tao Ge, Jing Hu, Lei Wang, Xun Wang, Si-Qing Chen, and Furu Wei. In-context autoencoder for context compression in a large language model. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=uREj4ZuGUE.arxiv.org/abs/2307.06945
  11. [11]Alborz Geramifard, Michael Bowling, and Richard S. Sutton. Incremental least-squares temporal difference learning. In Proceedings of the 21st National Conference on Artificial Intelligence, pp. 356–361, 2006.DOI
  12. [12]Robert Givan, Thomas Dean, and Matthew Greig. Equivalence notions and model minimization in Markov decision processes. Artificial Intelligence, 147(1–2):163–223, 2003.DOI
  13. [13]Jake Grigsby, Linxi Fan, and Yuke Zhu. AMAGO: Scalable in-context reinforcement learning for adaptive agents. In International Conference on Learning Representations, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/hash/7204443dcb9383a154dc1e97e58ea9c-Abstract-Conference.html.arxiv.org/abs/2310.09971
  14. [14]Allen Hatcher. Algebraic Topology. Cambridge University Press, 2002.
  15. [15]B. L. Ho and Rudolf E. Kalman. Effective construction of linear state-variable models from input/output functions. Regelungstechnik, 14:545–548, 1966.
  16. [16]Andrew Jaegle, Felix Gimeno, Andy Brock, Oriol Vinyals, Andrew Zisserman, and Joao Carreira. Perceiver: General perception with iterative attention. In International Conference on Machine Learning, 2021.arxiv.org/abs/2103.03206
  17. [17]Huiqiang Jiang, Qianhui Wu, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. LLMLingua: Compressing prompts for accelerated inference of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 13358–13376. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.825. URL https://aclanthology.org/2023.emnlp-main.825/.DOI
  18. [18]Huiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. LongLLMLingua: Accelerating and enhancing LLMs in long context scenarios via prompt compression. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, pp. 1658–1677. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.acl-long.91. URL https://aclanthology.org/2024.acl-long.91/.DOI
  19. [19]Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are RNNs: Fast autoregressive transformers with linear attention. In Proceedings of the 37th International Conference on Machine Learning, pp. 5156–5165, 2020.arxiv.org/abs/2006.16236
  20. [20]John G. Kemeny and J. Laurie Snell. Finite Markov Chains. Undergraduate Texts in Mathematics. Springer-Verlag, New York, 1976. ISBN 978-0-387-90192-3.
  21. [21]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.arxiv.org/abs/1412.6980
  22. [22]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. URL https://openreview.net/forum?id=hyOa5MMPUv.arxiv.org/abs/2210.14215
  23. [23]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, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/8644b61a9bc87bf7844750a015efb60-Abstract-Conference.html.arxiv.org/abs/2306.14892
  24. [24]Yucheng Li, Bo Dong, Frank Guerin, and Chenghua Lin. Compressing context to enhance inference efficiency of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 6342–6353. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.391.DOI
  25. [25]Haodong Liang and Lifeng Lai. Transformers probably implement in-context reinforcement learning with policy improvement, 2026. URL https://arxiv.org/abs/2605.05755.
  26. [26]Jörg Liesen and Zdeněk Strakoš. Krylov Subspace Methods: Principles and Analysis. Oxford University Press, Oxford, 2013. ISBN 9780199655410. doi: 10.1093/acprof:oso/9780199655410.001.0001.DOI
  27. [27]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. URL https://openreview.net/forum?id=yN4Wv17ss3.arxiv.org/abs/2310.08566
  28. [28]Chris Lu, Yannick Schroecker, Albert Gu, Emilio Parisotto, Jakob N. Foerster, Satinder P. Singh, and Feryal Behbahani. Structured state space models for in-context reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, pp. 47016–47031, 2023. URL https://papers.neurips.cc/paper_files/paper/2023/hash/92d3d2a9801211ca3693ccb2faa1316f-Abstract-Conference.html.arxiv.org/abs/2303.03982
  29. [29]Amir Moeini, Jiuqi Wang, Jacob Beck, Ethan Blaser, Shimon Whiteson, Rohan Chandra, and Shangtong Zhang. A survey of in-context reinforcement learning, 2025. URL https://arxiv.org/abs/2502.07978.
  30. [30]Jesse Mu, Xiang Li, and Noah Goodman. Learning to compress prompts with gist tokens. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/3d77c6dcc7f143aa2154e7f4d5e22d68-Abstract-Conference.html.arxiv.org/abs/2304.08467
  31. [31]Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Menglin Xia, Xufang Luo, Jue Zhang, Qingwei Lin, Victor Rühle, Yuqing Yang, Chin-Yew Lin, H. Vicky Zhao, Lili Qiu, and Dongmei Zhang. LLMLingua-2: Data distillation for efficient and faithful task-agnostic prompt compression. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 963–981. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.findings-acl.57.DOI
  32. [32]Ronald Parr, Christopher Painter-Wakefield, Lihong Li, and Michael L. Littman. Analyzing feature generation for value-function approximation. In Proceedings of the 24th International Conference on Machine Learning, pp. 737–744, 2007.DOI
  33. [33]Ronald Parr, Lihong Li, Gavin Taylor, Christopher Painter-Wakefield, and Michael L. Littman. An analysis of linear models, linear value-function approximation, and feature selection for reinforcement learning. In Proceedings of the 25th International Conference on Machine Learning, pp. 752–759, 2008.DOI
  34. [34]Marek Petrik. An analysis of laplacian methods for value function approximation in mdps. In Proceedings of the 20th International Joint Conference on Artificial Intelligence, pp. 2574–2579, 2007.
  35. [35]Allan Pinkus. n-Widths in Approximation Theory. Springer, 1985.
  36. [36]Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, New York, 1994.
  37. [37]Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier, and Timothy P. Lillicrap. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SylKisSYDH.arxiv.org/abs/1911.05507
  38. [38]Yousef Saad. Iterative Methods for Sparse Linear Systems. Society for Industrial and Applied Mathematics, Philadelphia, PA, 2 edition, 2003. doi: 10.1137/1.9780898718003.DOI
  39. [39]Richard S. Sutton. Learning to predict by the methods of temporal differences. Machine Learning, 3(1):9–44, 1988. doi: 10.1007/BF00115009.DOI
  40. [40]Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, second edition, 2018. ISBN 9780262039246. URL https://mitpress.mit.edu/9780262039246/reinforcement-learning/.
  41. [41]Lloyd N. Trefethen. Approximation Theory and Approximation Practice. Society for Industrial and Applied Mathematics, 2013.
  42. [42]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 Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 35151–35174. PMLR, 2023. URL https://proceedings.mlr.press/v202/von-oswald23a.html.arxiv.org/abs/2212.07677
  43. [43]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, 2025a. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/2e3435554b430bd8fe92a60c509929a0-Abstract-Conference.html.
  44. [44]Jiuqi Wang, Rohan Chandra, and Shangtong Zhang. Towards provable emergence of in-context reinforcement learning. Advances in Neural Information Processing Systems, volume 38, 2025b. URL https://arxiv.org/abs/2509.18389.
  45. [45]Christopher J. C. H. Watkins and Peter Dayan. Q-learning. Machine Learning, 8:279–292, 1992. doi: 10.1007/BF00992698.DOI
  46. [46]Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8:229–256, 1992. doi: 10.1007/BF00992696.
  47. [47]Zixuan Xie, Xinyu Liu, Rohan Chandra, and Shangtong Zhang. Convergence and emergence of in-context reinforcement learning with chain of thought, 2026a. URL https://arxiv.org/abs/2605.07123.
  48. [48]Zixuan Xie, Xinyu Liu, Claire Chen, Shuze Daniel Liu, Rohan Chandra, and Shangtong Zhang. Beyond linear attention: Softmax transformers implement in-context reinforcement learning, 2026b. URL https://arxiv.org/abs/2605.07333.
  49. [49]Fangyuan Xu, Weijia Shi, and Eunsol Choi. RECOMP: Improving retrieval-augmented Ims with context compression and selective augmentation. In International Conference on Learning Representations, 2024.
  50. [50]Kevin Xu and Issei Sato. On expressive power of looped transformers: Theoretical analysis and enhancement via timestep encoding. In Proceedings of the 42nd International Conference on Machine Learning, pp. 69613–69646, 2025.
  51. [51]Liu Yang, Kangwook Lee, Robert D. Nowak, and Dimitris Papailiopoulos. Looped transformers are better at learning learning algorithms. In International Conference on Learning Representations, 2024.
  52. [52]Hengshuai Yao and Zhi-Qiang Liu. Preconditioned temporal difference learning. In Proceedings of the 25th International Conference on Machine Learning, pp. 1208–1215. ACM, 2008. doi: 10.1145/1390156.1390308.DOI

Paper details

vlnc:W_keh5gqwm
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT Astra, Claude Fable 5.1 (bare)

View statement
Looking for related papers…
Contents