面向非平稳注意力的基于流的谱核学习 Flow-based Spectral Kernel Learning for Nonstationary Attention 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-21
⬇️ 6 次下载
👁️ 预览文献
💡 AI 中文简介
现有核化注意力大多依赖固定或平稳核,难以适应复杂的词元交互。本文提出FSKA框架,用归一化流参数化双变量谱密度来学习非平稳注意力核,同时保持线性注意力的可扩展计算。作者还发现,核足够表达后可以去掉查询-键投影、固定正交值投影,从而更省参数。在分类、消融和扩展性实验中,FSKA性能有竞争力甚至更好,投影相关可训练参数比多数基线减少约40%-47%,内存仍随序列长度线性增长。
领域深度学习 / 注意力机制与核方法
适合谁读需要一定专业背景(熟悉注意力机制与核方法)
核心贡献1. 提出FSKA,用归一化流参数化双变量谱密度,实现可学习、可正则化的非平稳注意力核,并兼容线性注意力的高效计算;2. 表明强表达核可支撑简化注意力设计——去掉查询-键投影、固定正交值投影,显著减少参数量。
关键数据投影相关可训练参数比多数基线减少约40%-47%;保持线性注意力的内存扩展性;分类等任务上性能有竞争力或更优。
推荐理由想用更少参数做出更强注意力?这篇把核学习与归一化流结合,还顺手砍掉投影层,值得一读。
关键词["核化注意力", "非平稳核", "谱密度学习", "归一化流", "线性注意力", "参数高效架构"]

原文摘要

查看英文原文摘要

Kernelized attention provides a useful perspective for understanding self-attention as a similarity-based aggregation mechanism, but existing approaches often rely on fixed or stationary kernels, limiting their ability to adapt the similarity structure to complex token interactions. In this paper, we propose flow-based spectral kernel attention (FSKA), a framework for learning expressive nonstationary attention kernels. FSKA formulates kernelized attention through spectral density learning and parameterizes the resulting bivariate spectral density with normalizing flows. This design enables flexible and regularizable kernel learning while remaining compatible with scalable linear-attention computation. We further show that expressive kernel learning enables a simplified attention design with removed query--key projections and fixed orthogonal value projections, resulting in a more parameter-efficient architecture. Controlled experiments on classification, ablation, and scalability profiling show that FSKA achieves competitive or improved performance over existing attention mechanisms, while reducing projection-related trainable parameters by approximately $40\%$--$47\%$ compared with most baselines and maintaining favorable linear-attention memory scaling. Code Available: https://github.com/ziyang18/FSKA.