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

层次核变换:具有信息论近似分析的多尺度注意力

Hierarchical Kernel Transformer: Multi-Scale Attention with an Information-Theoretic Approximation Analysis

Laboratoire LTI, Université de Picardie Jules Verne(LTI实验室,皮卡第儒勒·凡尔纳大学)

Giansalvo Cirrincione

AI总结:

本文提出层次核变换(HKT),通过可训练因果下采样在多尺度处理序列,结合学习的凸权重整合层级特定得分矩阵,实现计算成本降低,理论分析证明其在正定核、对称与反称分解、误差分解及包含标准注意力等方面的优势。

摘要:

层次核变换(HKT)是一种多尺度注意力机制,通过可训练因果下采样在L个分辨率层级处理序列,结合学习的凸权重整合层级特定得分矩阵,实现计算成本降低,理论分析证明其在正定核、对称与反称分解、误差分解及包含标准注意力等方面的优势。总计算成本被证明为标准注意力的4/3倍,当L=3时达到1.3125倍。四个理论结果得以建立。(i) 层级得分矩阵在对称双线性形式的充分条件下定义为正定核(命题3.1)。(ii) 非对称得分矩阵唯一分解为控制互惠注意力的对称部分和控制方向性注意力的反称部分;HKT在不同尺度提供L个独立的此类配对,每个分辨率层级一个(命题3.5-3.6)。(iii) 近似误差分解为三个可解释的组成部分,包含显式的非高斯修正和L的几何衰减界(定理4.3,命题4.4)。(iv) HKT严格包含单头标准注意力和因果卷积(命题3.4)。实验显示在三个随机种子下,HKT在重训练的标准注意力基线上表现一致:在合成ListOps上提升4.77个百分点(55.10±0.29% vs 50.33±0.12%,T=512),在顺序CIFAR-10上提升1.44个百分点(35.45±0.09% vs 34.01±0.19%,T=1,024),在IMDB字符级情感上提升7.47个百分点(70.19±0.57% vs 62.72±0.40%,T=1,024),所有在1.31倍的开销下实现。

英文摘要:

The Hierarchical Kernel Transformer (HKT) is a multi-scale attention mechanism that processes sequences at L resolution levels via trainable causal downsampling, combining level-specific score matrices through learned convex weights. The total computational cost is bounded by 4/3 times that of standard attention, reaching 1.3125x for L = 3. Four theoretical results are established. (i) The hierarchical score matrix defines a positive semidefinite kernel under a sufficient condition on the symmetrised bilinear form (Proposition 3.1). (ii) The asymmetric score matrix decomposes uniquely into a symmetric part controlling reciprocal attention and an antisymmetric part controlling directional attention; HKT provides L independent such pairs across scales, one per resolution level (Propositions 3.5-3.6). (iii) The approximation error decomposes into three interpretable components with an explicit non-Gaussian correction and a geometric decay bound in L (Theorem 4.3, Proposition 4.4). (iv) HKT strictly subsumes single-head standard attention and causal convolution (Proposition 3.4). Experiments over 3 random seeds show consistent gains over retrained standard attention baselines: +4.77pp on synthetic ListOps (55.10+-0.29% vs 50.33+-0.12%, T = 512), +1.44pp on sequential CIFAR-10 (35.45+-0.09% vs 34.01+-0.19%, T = 1,024), and +7.47pp on IMDB character-level sentiment (70.19+-0.57% vs 62.72+-0.40%, T = 1,024), all at 1.31x overhead.

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

↑