arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.37814cs.CLcs.CV
收藏

修正循环Transformer内部的潜在动态

Rectifying Latent Dynamics inside Looped Transformers

PengCheng Laboratory(鹏城实验室);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));University of Chinese Academy of Sciences(中国科学院大学)

Jizhihui Liu, Mingyue Guo, Jinpeng Wang, Lu Wang, Yaowei Wang

AI总结:

本研究针对循环Transformer的过度思考问题,提出RLD方法,通过三个组件修正潜在动态,在18个基准上大幅提升了模型在推理深度扩展时的性能。

摘要:

循环Transformer在隐空间中迭代式地优化token表示,为潜在推理提供了有前景的途径。然而,循环Transformer的测试时扩展受困于过度思考问题:性能随循环迭代次数增长先达到峰值后下降。我们分析了其潜在动态,识别出该现象的两个潜在原因:1)第一个循环中的更新过大,直接将token推入错误空间;2)后期持续且随机的漂移将token从正确状态推向错误状态。为解决这些问题,我们提出了潜在动态修正(RLD),一种包含三个组件的显式调控方法:1)循环深度调制器,用于注入循环深度信号,并根据token难度和循环迭代动态控制更新幅度;2)潜在残差修正器,用于捕捉演化的更新方向并修正失真轨迹,使轨迹更平滑、更连贯;3)更新裁剪,用于约束并减缓过度的潜在更新,逐步凸显推理潜力。RLD的可训练参数少于500万,易于部署,且能很好地泛化到多个任务和未见过的循环深度。我们在语言和视觉-语言模型的18个基准上评估了RLD。具体而言,当推理深度为默认深度的2倍时,原始LoopVL模型在ChartQA上的性能下降80.7%,而RLD在默认深度下保留了原始模型95.2%的分数;对于循环语言模型,当深度超过训练深度时,标准SFT在GSM8k上下降77.2%,而RLD在该设置下仅损失最高分数的0.8%。

英文摘要:

Looped transformers iteratively refine token representations in the hidden space, providing a promising way for latent reasoning. However, the test-time scaling of looped transformers is limited by the overthinking issue: the performance first peaks and then drops with the growth of loop iterations. We analyse the latent dynamics and identify two potential causes for this phenomenon: 1) an excessively large update in the first loop directly leads tokens into the wrong space; 2) the persistent and stochastic late-stage drift pushes the tokens from right to wrong. To address these issues, we propose Rectifying Latent Dynamics (RLD), an explicit regulation approach comprising three components: 1) Recurrent Depth Modulator to inject recurrence depth signal and dynamically control the update magnitude according to token difficulty and loop iteration; 2) Latent Residual Rectifier to capture evolving update directions and rectify distorted traces, making the trace smoother and more coherent; 3) Update Clipping to constrain and slow down excessive latent updates and underscore step-by-step reasoning potential. With fewer than 5M trainable parameters, RLD is easy to deploy and generalizes well to multiple tasks and unseen recurrence depths. We evaluate RLD on both language and vision-language models across 18 benchmarks. Specifically, the vanilla LoopVL model suffers an 80.7% performance degradation on ChartQA when the inference depth is $2\times$ the default depth, while RLD preserves 95.2% of the vanilla model score at default depth. For looped language models, standard SFT faces a 77.2% drop on GSM8k when the depth exceeds the training depth, while RLD only loses 0.8% of the highest score under this setting.

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

↑