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

AdaPonderLM: 带令牌级自适应深度的门控沉思语言模型

AdaPonderLM: Gated Pondering Language Models with Token-Wise Adaptive Depth

LUMIA Lab(LUMIA实验室);School of Artificial Intelligence(人工智能学院);Shanghai Jiao Tong University(上海交通大学);Shanghai AI Laboratory(上海人工智能实验室);Sun Yat-sen University(中山大学);Shanghai Innovation Institute(上海创新研究院)

Shixiang Song, He Li, Zitong Wang, Boyi Zeng, Feichen Song, Yixuan Wang, Zhiqin John Xu, Ziwei He, Zhouhan Lin

AI总结:

AdaPonderLM通过自适应深度和令牌级门控机制,在保持语言建模性能的同时减少推理计算,实现高效自监督训练。

摘要:

在推理过程中通过递归/迭代的Transformer进行测试时扩展,使大型语言模型能够在推理时花费更多计算,但大多数预训练的递归语言模型运行固定次数的迭代,浪费计算在简单的令牌上,并且缺乏令牌级适应性。遵循自适应计算时间(ACT)和提前退出(EE)的核心思想,我们提出了AdaPonderLM,一种自监督的递归语言模型,该模型在预训练过程中学习令牌级的提前退出,而无需手动调整每令牌/每层剪枝比率。AdaPonderLM使用迭代特定的MLP门控,配以单调终止掩码,以决定每个令牌何时停止递归,并引入了一种KV重用机制,该机制重用缓存的键/值状态用于停止的令牌,确保训练-测试一致性并实现实际加速。在Pythia架构上,从70M到410M(预训练)和高达2.8B(持续预训练)的模型中,AdaPonderLM将推理计算减少约10%,同时保持可比的语言建模困惑度和具有竞争力的下游准确性。我们的分析显示,学习到的门控将更多计算分配给高NLL(困难)令牌,表现出在完全自监督设置中具有自适应计算时间行为。同时,在等效FLOPs下,学习到的终止策略始终优于固定剪枝,显示出AdaPonderLM将计算分配给正确的令牌,而不仅仅是减少平均深度。

英文摘要:

Test-time scaling via recurrent/iterative Transformers enables large language models to spend more computation at inference, but most pretrained recurrent LMs run a fixed number of iterations, wasting compute on easy tokens and lacking token-wise adaptivity. Following the core idea of Adaptive Computation Time(ACT) and Early Exit(EE), we propose AdaPonderLM, a self-supervised recurrent language model that learns token-wise early exiting during pretraining without manually tuned per-token/per-layer pruning ratios. AdaPonderLM uses iteration-specific MLP gates with a monotonic halting mask to decide when each token stops recurring, and introduces a KV reuse mechanism that reuses cached key/value states for halted tokens, ensuring train--test consistency and practical acceleration. Across Pythia backbones from 70M to 410M (pretraining) and up to 2.8B (continued pretraining), AdaPonderLM reduces inference compute at about 10% while maintaining comparable language modeling perplexity and competitive downstream accuracy. Our analysis shows the learned gates allocate more computation to high-NLL (hard) tokens, exhibiting adaptive computation time behavior in a fully self-supervised setting. Meanwhile, under iso-FLOPs, the learned halting policy consistently outperforms fixed pruning, showing AdaPonderLM allocates compute to the right tokens rather than just reducing average depth.

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

↑