对比现代循环模型与Transformer在联想记忆任务中的表现差异
Revisiting associative recall in modern recurrent models
- 通过调整学习率发现循环模型性能受训练稳定性影响显著
- 单层注意力模型无法解决联想记忆,而宽模型优于深模型
- 1层Transformer虽差但具诱导头形成动态,适合研究训练机制
尽管现代循环深度学习模型(如状态空间模型SSMs)具有次二次复杂度优势,但近期研究指出其在推理和记忆任务上相较Transformer存在不足。本文深入考察了联想记忆(AR)这一与语言建模性能高度相关的基准任务,详细分析了近期提出的标记混合策略在规模扩展与优化方面的问题。首先表明,与标准Transformer不同,学习率选择对现代循环模型性能至关重要,这一问题可能严重影响先前研究的报告结果,提示需进一步研究以稳定训练。其次,发现循环模型与基于注意力的模型在宽度与深度扩展时表现出相反优势:注意力模型在单层情况下无法解决AR任务。随后,对1层Transformer的进一步分析揭示,尽管性能不佳,其训练动态却意外呈现诱导头形成现象,此前仅在2层模型中观察到。最后,通过架构消融实验,研究了组件对Transformer与Mamba性能及优化稳定性的影响。
原文摘要 · Abstract (English)
Despite the advantageous subquadratic complexity of modern recurrent deep learning models -- such as state-space models (SSMs) -- recent studies have highlighted their potential shortcomings compared to transformers on reasoning and memorization tasks. In this paper, we dive deeper into one of such benchmarks: associative recall (AR), which has been shown to correlate well with language modeling performance, and inspect in detail the effects of scaling and optimization issues in recently proposed token mixing strategies. We first demonstrate that, unlike standard transformers, the choice of learning rate plays a critical role in the performance of modern recurrent models: an issue that can severely affect reported performance in previous works and suggests further research is needed to stabilize training. Next, we show that recurrent and attention-based models exhibit contrasting benefits when scaling in width as opposed to depth, with attention being notably unable to solve AR when limited to a single layer. We then further inspect 1-layer transformers, revealing that despite their poor performance, their training dynamics surprisingly resemble the formation of induction heads, a phenomenon previously observed only in their 2-layer counterparts. Finally, through architectural ablations, we study how components affects Transformer and Mamba's performance and optimization stability.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。