INCRT:一种能够自主决定自身架构的增量变换器
INCRT: An Incremental Transformer That Determines Its Own Architecture
AI总结:
本文提出INCRT,一种在训练过程中自主调整结构的变换器,通过动态增加和剪枝注意力头来优化模型效率,实验验证其在任务分类和情感分析中的有效性。
摘要:
变换器架构通常通过试错设计:注意力头数量、深度和头大小在训练前固定,缺乏数学原理指导选择。结果是系统性结构冗余——训练后的模型中一半至四分之五的头可以无测量损失移除。本文介绍INCRT(增量变换器),一种在训练过程中自主决定结构的架构。从单个头开始,INCRT在当前配置被证明不足时逐步增加注意力头,并剪枝冗余头。每个增长决策由一个在线可计算的几何量驱动,来源于任务的方向结构,无需单独验证阶段和手动调参计划。两个定理构成理论基础。第一个(稳态收敛)证明系统总能达到有限停止配置,同时最小(无冗余头)和充分(无未捕获的定向能量超过阈值)。第二个(压缩感知类比)提供该配置可包含头数的几何上限,作为任务频谱复杂度的函数。在SARS-CoV-2变种分类和SST-2情感分析实验中证实了两种结果:预测和观测的头数在所有基准内一致度在12%以内,最终架构在分布特定任务中匹配或超过BERT-base,使用三到七倍更少的参数且无需预训练。
英文摘要:
Transformer architectures are designed by trial and error: the number of attention heads, the depth, and the head size are fixed before training begins, with no mathematical principle to guide the choice. The result is systematic structural redundancy -- between half and four-fifths of all heads in a trained model can be removed without measurable loss -- because the architecture allocates capacity without reference to the actual requirements of the task.This paper introduces INCRT (Incremental Transformer), an architecture that determines its own structure during training. Starting from a single head, INCRT adds one attention head at a time whenever its current configuration is provably insufficient, and prunes heads that have become redundant. Each growth decision is driven by a single, online-computable geometric quantity derived from the task's directional structure, requiring no separate validation phase and no hand-tuned schedule. Two theorems form the theoretical backbone. The first (homeostatic convergence) establishes that the system always reaches a finite stopping configuration that is simultaneously minimal (no redundant heads) and sufficient (no uncaptured directional energy above the threshold). The second (compressed-sensing analogy) provides a geometric upper bound on the number of heads that this configuration can contain, as a function of the spectral complexity of the task. Experiments on SARS-CoV-2 variant classification and SST-2 sentiment analysis confirm both results: the predicted and observed head counts agree within 12% across all benchmarks, and the final architectures match or exceed BERT-base on distribution-specific tasks while using between three and seven times fewer parameters and no pre-training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。