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

Transformer学习低敏感度函数:研究与启示

Transformers Learn Low Sensitivity Functions: Investigations and Implications

University of Southern California(南加州大学)

Bhavya Vasudeva, Deqing Fu, Tianyi Zhou, Elliott Kau, Youqi Huang, Vatsal Sharan

AI总结:

本研究将输入逐token随机扰动的敏感度作为统一指标,揭示Transformer的低敏感度归纳偏置及其在鲁棒性、损失景观和平坦性、grokking进度衡量中的启示,并通过理论与实验验证其优于MLP、CNN等架构。

摘要:

Transformer在众多任务中实现了最先进的准确率和鲁棒性,但对其归纳偏置以及这些偏置与其他神经网络架构的差异的理解仍不明确。在本研究中,我们将模型对输入中逐token随机扰动的敏感度确定为统一指标,该指标可解释Transformer在不同数据模态下的归纳偏置,并将其与其他架构区分开来。我们发现,在视觉和语言任务中,Transformer的敏感度低于MLP、CNN、ConvMixer和LSTM。我们还表明这种低敏感度偏置具有重要启示:i) 低敏感度与鲁棒性提升相关,也可作为进一步提高Transformer鲁棒性的有效干预手段;ii) 它对应损失景观中更平坦的最小值;iii) 它可作为“grokking”(顿悟式泛化)的进度衡量标准。我们通过理论结果支持这些发现,包括Transformer在神经切线核(NTK)机制下的(弱)谱偏置,以及低敏感度带来的鲁棒性提升。代码可在https://github.com/estija/sensitivity获取。

英文摘要:

Transformers achieve state-of-the-art accuracy and robustness across many tasks, but an understanding of their inductive biases and how those biases differ from other neural network architectures remains elusive. In this work, we identify the sensitivity of the model to token-wise random perturbations in the input as a unified metric which explains the inductive bias of transformers across different data modalities and distinguishes them from other architectures. We show that transformers have lower sensitivity than MLPs, CNNs, ConvMixers and LSTMs, across both vision and language tasks. We also show that this low-sensitivity bias has important implications: i) lower sensitivity correlates with improved robustness; it can also be used as an efficient intervention to further improve the robustness of transformers; ii) it corresponds to flatter minima in the loss landscape; and iii) it can serve as a progress measure for grokking. We support these findings with theoretical results showing (weak) spectral bias of transformers in the NTK regime, and improved robustness due to the lower sensitivity. The code is available at https://github.com/estija/sensitivity.

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

↑