Google 的 DeepCrossAttention 在模型质量相当的情况下,速度最高提升 3 倍。
Google's DeepCrossAttention achieves comparable model quality up to 3x faster

原始链接: https://research.google/blog/supercharging-transformer-residual-connections/

深度神经网络在信号经过多层传播时会遭受梯度消失。Transformer通过残差连接将一层的输入加到其输出来缓解这一问题,但等权相加会稀释早期细节。DeepCrossAttention通过让每一层动态选择并路由来自前几层的特征,将残差连接一般化,在提升或匹配学习效果的同时,将参数量最多减少30–40%。

Hacker News 新 | 过往 | 评论 | 提问 | 展示 | 工作 | 提交 登录 Google 的 DeepCrossAttention 实现可比的模型质量,速度最高提升 3 倍 (research.google) 19 分,由 ComputedCamp995 发布于 1 小时前 | 过往 | 收藏 | 1 条评论 帮助 gnabgib 30 分钟前 [–] 标题:Supercharging Transformer Residual Connections 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Think of a traditional deep learning model like a giant game of "Telephone": data passes through layer after layer, with each layer changing the information slightly. If a network has dozens or hundreds of layers, the original learning signal can become severely degraded or lost by the time it reaches all layers, which is known as the vanishing gradient problem in AI.

To overcome this challenge and enable the training of networks with dozens or hundreds of layers, transformers rely heavily on residual connections, also known as “skip” connections, which act like an information highway or a shortcut. Instead of forcing the data to pass exclusively through the complicated layer, a duplicate copy of the original input skips right past this layer and is added directly to its output. This ensures that the model always has the original raw data to refer back to.

The standard residual connection implements a simple operation: point-wise summation of a layer's output with its input. While computationally efficient, this simple process has a key limitation: it treats all prior representations with equal weight, leading to information dilution in deep networks. As features propagate through many layers, specific, high-resolution details from earlier layers can be averaged out or distorted, making it difficult for the network to selectively retrieve them. This forces the network to recompute them, reducing learning efficiency.

In our ICML 2025 paper, "DeepCrossAttention: Supercharging Transformer Residual Connections," we studied the shortcomings of the traditional residual architecture and introduced DeepCrossAttention (DCA), which generalizes residual connections by allowing each layer to dynamically select and route features from the history of preceding layers. By allowing the model to dynamically choose which previous layers are most important at any given moment, DCA achieves comparable or improved learning, while reducing the number of parameters needed by up to 30-40%.

联系我们 contact @ memedata.com