Papers
Topics
Authors
Recent
Search
2000 character limit reached

Provable Transformer Context Compression for In-Context Reinforcement Learning

Published 14 Oct 2026 in cs.LG and cs.AI | (2610.20004v1)

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 Θ(γ<sup>mmax⁡1,1/(m(1−γ)))Θ(γ<sup>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<sup>−210<sup>{-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.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.