arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.08864cs.CLcs.AIcs.LG
收藏

理解递归变换器中的动态计算分配

Understanding Dynamic Compute Allocation in Recurrent Transformers

Pennsylvania State University(宾夕法尼亚州立大学);Mitsubishi Electric Research Laboratories(三菱电机研究实验室)

Ibraheem Muhammad Moosa, Suhas Lohit, Ye Wang, Moitreya Chatterjee, Wenpeng Yin

AI总结:

本研究提出ANIRA框架,通过受控复杂度评估范式,分析令牌级自适应计算在对齐复杂性、泛化和决策时间方面的表现,发现计算分配与任务复杂性一致并不等同于算法泛化。

摘要:

令牌级自适应计算旨在通过将更多计算分配给困难的令牌和较少分配给容易的令牌来减少推理成本。然而,先前的工作主要在自然语言基准上使用任务级指标进行评估,其中令牌级难度是不可观测的,并且与架构因素混淆,使不清楚计算分配是否真正与底层复杂性一致。我们通过三个贡献来填补这一空白。首先,我们引入了一种受控复杂度的评估范式,使用算法和合成语言任务,具有参数化的难度,从而能够直接测试令牌级计算分配。其次,我们提出了ANIRA,一个统一的递归变换器框架,支持每个令牌的可变深度计算,同时将计算分配决策与其他模型因素隔离。第三,我们使用此框架对令牌级自适应计算在对齐复杂性、泛化和决策时间方面的系统分析进行了研究。我们的结果表明,与任务复杂性一致的计算分配可以在没有显式难度监督的情况下出现,但这种一致性并不意味着算法泛化:模型在分配额外计算的情况下未能扩展到未见过的输入规模。我们进一步发现,早期的计算决策依赖于静态结构线索,而在线终止更紧密地跟踪算法执行状态。

英文摘要:

Token-level adaptive computation seeks to reduce inference cost by allocating more computation to harder tokens and less to easier ones. However, prior work is primarily evaluated on natural-language benchmarks using task-level metrics, where token-level difficulty is unobservable and confounded with architectural factors, making it unclear whether compute allocation truly aligns with underlying complexity. We address this gap through three contributions. First, we introduce a complexity-controlled evaluation paradigm using algorithmic and synthetic language tasks with parameterized difficulty, enabling direct testing of token-level compute allocation. Second, we propose ANIRA, a unified recurrent Transformer framework that supports per-token variable-depth computation while isolating compute allocation decisions from other model factors. Third, we use this framework to conduct a systematic analysis of token-level adaptive computation across alignment with complexity, generalization, and decision timing. Our results show that compute allocation aligned with task complexity can emerge without explicit difficulty supervision, but such alignment does not imply algorithmic generalization: models fail to extrapolate to unseen input sizes despite allocating additional computation. We further find that early compute decisions rely on static structural cues, whereas online halting more closely tracks algorithmic execution state.

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

↑