Skip to main content
QUICK REVIEW

[论文解读] NoiseFormer -- Noise Diffused Symmetric Attention Transformer

Phani Kumar, Nyshadham|arXiv (Cornell University)|Jan 10, 2026
Generative Adversarial Networks and Image SynthesisComputer Science被引用 0
一句话总结

NoiseFormer 将通用注意力建模为对称注意力的带噪声版本,在对称注意力分数中加入可学习的噪声,参数与计算开销极小,并在基于 GPT-2 的 NanoGPT 与 GLUE 基准上进行验证。

ABSTRACT

Transformer architecture has been very successful long runner in the field of Deep Learning (DL) and Large Language Models (LLM) because of its powerful attention-based learning and parallel-natured architecture. As the models grow gigantic in terms of memory footprint, difficulties in fitting the model on a device like a GPU or an AI accelerator give rise to the need for multiple computing devices thereby escalating the computing cost. This increased training/inference cost paved the way for efficient model size reduction/parametric reduction deploying Sparse Attention techniques. In this paper, we start analyzing one of the techniques of Sparse Attention called Symmetric Dot-Product Attention (referred to as Symmetric Attention) and propose a novel unified model architecture called Noise Diffused Symmetric Attention Transformer to enhance the model's performance. While maintaining the memory gains of Symmetric Attention, with minute overhead in terms of model parameters and computational overhead, the proposed model brings in enhanced performance in terms of accuracy and inference-time sampling. The proposed model is validated upon GPT2 base model and the results reflect the performance gains falling between plain Symmetric attention and GPT2 base model on a variety of GLUE benchmark tasks in terms of accuracy, with significant model size reduction with respect to the base model.

研究动机与目标

  • 通过利用稀疏、对称注意力机制来减轻大规模 Transformer 模型的内存与计算成本的动机与解决方案。
  • 提出一个统一的 NoiseFormer 架构,在对称点积注意力中注入可学习的噪声以恢复表达能力。
  • 证明 NoiseFormer 在基于 GPT-2 的模型上对 GLUE 基准具有竞争力的性能,同时显著降低内存占用。

提出的方法

  • 通过将通用注意力重新表述为对称注意力的带噪声版本,形式为 QK^T = QQ^T + noise',其中 noise' 以高斯分布建模。
  • 提出 NoiseFormer 架构,在对称注意力计算后注入加性噪声,噪声可以在跨头共享或按头变体中实现。
  • 通过将序列负对数似然与 KL 散度项结合的全局损失进行训练,以将噪声正则化为标准高斯分布。
  • 在自回归框架内,采用统一的训练目标来同时对噪声建模和通用注意力分数的估计进行优化。
  • 评估内存与计算开销,并在 OpenWebText 预训练的 NanoGPT 基准模型上对 GLUE 任务进行微调。

实验结果

研究问题

  • RQ1是否可以将通用注意力有效近似为带有可学习噪声统计的对称注意力?
  • RQ2在共享噪声与按头噪声对模型性能与参数效率的影响如何?
  • RQ3在 GLUE 基准上,NoiseFormer 相较于原生对称注意力和基线 GPT-2 变体在准确性与内存使用方面的表现如何?

主要发现

  • 相比基线 NanoGPT 模型,NoiseFormer 变体在参数数量上减少约 5.77%,与对称注意力基线相近。
  • 由于噪声在跨头共享或按头结构下的实现,NoiseFormer 相对于对称注意力几乎不增加额外内存并且仅产生极小的计算开销。
  • 在 GLUE 任务上,NoiseFormer 变体通常缩小 base 模型与对称注意力之间的差距,其中 V2 往往优于 V1 并在多项任务上接近基线模型的性能。
  • 按头变体(V2)通常在预训练损失方面优于共享头变体(V1)和对称注意力基线。
  • 在 GLUE 任务中,结果因任务而异,NoiseFormer 在 MRPC 与 QQP 上经常优于基线,在某些情况下也能达到或接近对称注意力的水平。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。