重新审视通过因果能量最小化进行Transformer层参数化
Revisiting Transformer Layer Parameterization Through Causal Energy Minimization
AI总结:
本文提出因果能量最小化框架,将Transformer层视为条件能量函数的优化步骤,揭示了权重共享、低秩交互等设计空间,验证了在百万人参数规模下,能量引导的层设计能稳定训练并匹配基线模型。
摘要:
Transformer块通常结合多头注意力(MHA)进行标记混合与门控MLP进行标记级特征转换,但许多参数化选择仍依赖经验。我们引入因果能量最小化(CEM),将Transformer层视为条件能量函数的优化步骤,并显式考虑层参数化。扩展先前基于能量的注意力解释,CEM显示权重共享的MHA可视为交互能量的梯度更新,而具有共享上下投影的门控MLP可通过元素级能量视角解释。这种视角揭示了包含层内权重共享、对角线加低秩交互、轻量预条件器和递归更新的Transformer层设计空间。我们在语言模型实验中评估了CEM导出的层,在百万人参数规模下,尽管参数化受限,这些层仍能稳定训练并匹配相应Transformer基线。总体而言,我们的结果表明CEM为理解Transformer层参数化提供了有用的视角,将Transformer架构与能量模型连接,并激发进一步探索能量引导的层设计。
英文摘要:
Transformer blocks typically combine multi-head attention (MHA) for token mixing with gated MLPs for token-wise feature transformation, yet many choices in their parameterization remain largely empirical. We introduce Causal Energy Minimization (CEM), a framework that recasts Transformer layers as optimization steps on conditional energy functions while explicitly accounting for layer parameterization. Extending prior energy-based interpretations of attention, CEM shows that weight-tied MHA can be derived as a gradient update on an interaction energy, and that a gated MLP with shared up/down projections can be viewed through an element-wise energy. This perspective identifies a design space for Transformer layers that includes within-layer weight sharing, diagonal-plus-low-rank interactions, lightweight preconditioners, and recursive updates. We evaluate CEM-derived layers in language-modeling experiments at the moderate hundred-million-parameter scale. Despite their constrained parameterizations, these layers train stably and can match corresponding Transformer baselines. Overall, our results suggest that CEM provides a useful lens for understanding Transformer layer parameterization, connecting Transformer architectures to energy-based models and motivating further exploration of energy-guided layer designs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。