arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.05928cs.CLcs.AIcs.ITcs.LGmath.GNmath.IT
收藏

学习的形状:基于Transformer模型中的各向异性与内在维度

The Shape of Learning: Anisotropy and Intrinsic Dimensions in Transformer-Based Models

Skoltech(斯科尔科沃科技学院);AIRI(人工智能研究所);Lomonosov Moscow State University(罗蒙诺索夫莫斯科国立大学);HSE University(高等经济大学);SberAI(萨伯人工智能公司);Samara National Research University(萨马拉国立研究大学)

Anton Razzhigaev, Matvey Mikhalchuk, Elizaveta Goncharova, Ivan Oseledets, Denis Dimitrov, Andrey Kuznetsov

AI总结:

本文研究Transformer编码器与解码器中嵌入的各向异性和内在维度变化,发现解码器各向异性呈钟形分布且集中于中间层,而内在维度在训练中先扩张后压缩,为理解两类架构的表示特性提供了新见解。

摘要:

在本研究中,我们对Transformer架构中嵌入的各向异性动态和内在维度进行了考察,重点关注编码器与解码器之间的二分差异。我们的发现表明,Transformer解码器中的各向异性分布呈现出一条明显的钟形曲线,各向异性浓度在中间层达到最高。这一模式与编码器中观察到的更均匀分布的各向异性有所不同。此外,我们发现嵌入的内在维度在训练初期阶段会增加,表明其向更高维空间扩展。随后在训练接近结束时进入一个压缩阶段,维度下降,表明其被精炼为更紧凑的表示。我们的结果为理解编码器和解码器的嵌入特性提供了新的见解。

英文摘要:

In this study, we present an investigation into the anisotropy dynamics and intrinsic dimension of embeddings in transformer architectures, focusing on the dichotomy between encoders and decoders. Our findings reveal that the anisotropy profile in transformer decoders exhibits a distinct bell-shaped curve, with the highest anisotropy concentrations in the middle layers. This pattern diverges from the more uniformly distributed anisotropy observed in encoders. In addition, we found that the intrinsic dimension of embeddings increases in the initial phases of training, indicating an expansion into higher-dimensional space. Which is then followed by a compression phase towards the end of training with dimensionality decrease, suggesting a refinement into more compact representations. Our results provide fresh insights to the understanding of encoders and decoders embedding properties.

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

↑