arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20004cs.LGcs.AI

可证明的Transformer上下文压缩用于上下文强化学习

Provable Transformer Context Compression for In-Context Reinforcement Learning

Southern University of Science and Technology(南方科技大学);University of Electronic Science and Technology of China(电子科技大学);Harbin Institute of Technology(哈尔滨工业大学)

Yajie Zhao, Yingjun Mo, Zhiyong Wang, Bo Tang, Chao Xu, Fang Kong

AI总结:

本研究针对上下文强化学习的可扩展性问题,提出基于Transformer的上下文压缩方法,推导了TD评估中所需最小上下文维度与近似误差衰减规律,验证了该方法可大幅降低内存成本并实现参数恢复与预期的精度权衡。

摘要:

Transformer无需参数更新即可执行上下文强化学习,但现有理论构造通常要求上下文大小随采样转移的数量增长,导致大规模问题中的内存成本不断增加,这引发了一个根本性的可扩展性问题:执行此类学习本质上需要多少上下文?我们针对固定策略TD评估回答了该问题。我们表明,使用共享线性解码器时,精确重现前L次TD迭代所需的最小上下文维度是由采样转移诱导的Krylov维度。当可用上下文维度m低于该阈值时,无法进行精确重现。在该 regime 中,我们表征了最优近似误差,证明其衰减为Θ(γ^m max{1,1/(m(1−γ))}),其中γ为折扣因子。从表示复杂度转向实际内存成本,我们将精确连续表示的最优保留内存表征为Θ(nk_L),并在实验中表明,在一个采样任务中,其精确秩为满秩但数值秩较小,精度达10^-2的上下文比TD的稀疏充分统计量小88.7%。最后,我们通过证明在合适的任务多样性下,有效注意力参数上的辅助目标的全局收敛性,确立了共享执行器通过预训练的可学习性。针对不同TD评估问题的实验验证了参数恢复和预测的上下文-精度权衡。

英文摘要:

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 $L$ TD iterates is the Krylov dimension induced by the sampled transitions. When the available context dimension $m$ 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 $Θ(γ^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 $Θ(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^{-2}$ is $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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑