arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.39223cs.LGcs.AIstat.ML
收藏

位置为何重要:Transformer中基于分析的分层旋转位置嵌入(RoPE)分配

Where Position Matters: Profiling-Guided Layer-Wise RoPE Allocation in Transformers

Zhiwei Liu, Boao Kong, Bing Liu

AI总结:

该研究针对Transformer中RoPE均匀分配的问题,提出基于分析的分层RoPE分配方法,通过归一化深度映射实现模型间分析传递,实验验证其可降低验证损失,为MLA提供有利的质量-存储-计算权衡。

摘要:

旋转位置嵌入(RoPE)通常在Transformer各层中均匀使用,尽管各层的位置需求存在异质性。相位干预实验显示出非均匀的、特定模型的旋转相位依赖性,而覆盖度干预则将其与覆盖度提升的益处相关联。我们提出基于分析的分层RoPE分配方法,利用早期覆盖度-益处分析,在固定预算下为各层分配高/低覆盖度。该框架支持多头潜在注意力(MLA)中的固定宽度查询/键表示及物理旋转维度分配。归一化深度映射可在模型家族内传递分析结果,使小模型测量能在预训练前指导大模型的分配。简要分析将选择与传递与分数校准及层间交互相关联。从零开始的实验表明,与预算匹配的基线相比,验证损失有所改善,而分析资源核算则为物理MLA确定了有利的质量-存储-计算权衡。这些结果将位置需求与可转移的高效架构设计相关联。

英文摘要:

Rotary Position Embedding (RoPE) typically uses uniform coverage across Transformer layers despite heterogeneous positional requirements. Phase-off interventions reveal non-uniform, model-specific rotary-phase dependence, while coverage interventions relate it to coverage-upgrade benefits. We propose profiling-guided layer-wise RoPE allocation, assigning high/low coverage under a fixed budget using early coverage-benefit profiles. The framework supports fixed-width query/key representations and physical rotary-dimension allocation in Multi-head Latent Attention (MLA). Normalized-depth mapping transfers profiles within model families, enabling small-model measurements to guide larger-model allocations before pretraining. A brief analysis relates selection and transfer to score calibration and inter-layer interactions. From-scratch experiments demonstrate validation-loss improvements over available budget-matched baselines, while analytical resource accounting identifies favorable quality--storage--compute trade-offs for physical MLA. These results connect positional demand to transferable, efficient architecture design.

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

↑