2025-02-19 · 进阶 · 自然语言处理 · 机器学习

You Do Not Fully Utilize Transformer's Representation Capacity

这篇论文提出了LIMe,一种扩展了Transformer模型表示容量的方法,通过允许模型访问早期层的隐藏状态,从而提高性能和避免表示崩溃。

更新于 2025-02-19。作者:Gleb Gerasimov、Yaroslav Aksenov、Nikita Balagansky、Viacheslav Sinii、Daniil Gavrilov。

中文摘要

与将先前标记压缩为单个隐藏状态的RNNs不同,Transformer可以直接关注所有先前的标记。然而,标准Transformer仅使用立即先前层的表示。在本文中,我们表明这种设计选择导致表示坍缩,并导致性能次优。为了解决这个问题,我们引入了层集成内存(LIMe),这是一种简单但强大的方法,它通过允许访问早期层的隐藏状态,在保持模型整体内存足迹的同时,扩大了其表示能力。通过在多种架构和不同的查找机制上进行广泛的实验,我们在各种任务上展示了持续的性能提升。此外,我们对学习到的表示动态的分析以及我们对深度电路的探索揭示了LIMe如何在层间集成信息,为未来的研究指明了有希望的方向。

英文摘要

In contrast to RNNs, which compress previous tokens into a single hidden state, Transformers can attend to all previous tokens directly. However, standard Transformers only use representations from the immediately preceding layer. In this paper, we show that this design choice causes representation collapse and leads to suboptimal performance. To address this issue, we introduce Layer-Integrated Memory (LIMe), a simple yet powerful approach that preserves the model's overall memory footprint while expanding its representational capacity by allowing access to hidden states from earlier layers. Through extensive experiments across various architectures and different lookup mechanisms, we demonstrate consistent performance improvements on a wide range of tasks. Moreover, our analysis of the learned representation dynamics and our exploration of depthwise circuits reveal how LIMe integrates information across layers, pointing to promising directions for future research.

解读

一句话总结

这篇论文提出了LIMe,一种扩展了Transformer模型表示容量的方法,通过允许模型访问早期层的隐藏状态,从而提高性能和避免表示崩溃。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源