Your Transformer is Secretly Linear
Anton Razzhigaev, Matvey Mikhalchuk, Elizaveta Goncharova, Nikolai Gerasimenko, Ivan V. Oseledets, Denis Dimitrov, Andrey Kuznetsov
摘要
This paper reveals a novel linear characteristic exclusive to transformer decoders, including models such as GPT, LLaMA, OPT, BLOOM and others. We analyze embedding transformations between sequential layers, uncovering a near-perfect linear relationship (Procrustes similarity score of 0.99). However, linearity decreases when the residual component is removed due to a consistently low output norm of the transformer layer. Our experiments show that removing or linearly approximating some of the most linear blocks of transformers does not affect significantly the loss or model performance. Moreover, in our pretraining experiments on smaller models we introduce a cosine-similarity-based regularization, aimed at reducing layer linearity. This regularization improves performance metrics on benchmarks like Tiny Stories and SuperGLUE and as well successfully decreases the linearity of the models. This study challenges the existing understanding of transformer architectures, suggesting that their operation may be more linear than previously assumed. 1
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- A Simple and Effective Pruning Approach for Large Language Models 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- A Simple and Effective Pruning Approach for Large Language Models 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
- SliceGPT: Compress Large Language Models by Deleting Rows and Columns 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- SliceGPT: Compress Large Language Models by Deleting Rows and Columns 引用了 A Simple and Effective Pruning Approach for Large Language Models
- SliceGPT: Compress Large Language Models by Deleting Rows and Columns 引用了 LLM-Pruner: On the Structural Pruning of Large Language Models
- SliceGPT: Compress Large Language Models by Deleting Rows and Columns 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
- ReplaceMe: Network Simplification via Depth Pruning and Transformer Block Linearization 引用了 A Simple and Effective Pruning Approach for Large Language Models
- ReplaceMe: Network Simplification via Depth Pruning and Transformer Block Linearization 引用了 LLM-Pruner: On the Structural Pruning of Large Language Models
- ReplaceMe: Network Simplification via Depth Pruning and Transformer Block Linearization 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
- LLM-Pruner: On the Structural Pruning of Large Language Models 引用了 LoRA: Low-Rank Adaptation of Large Language Models
引用它的顶会 Paper7
- Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same CoinEnrique Queipo-de-Llano, Alvaro Arroyo, Federico Barbero, Xiaowen Dong 等ICLR 2026 · 56 次引用
- AdaptAgent: Adapting Multimodal Web Agents with Few-Shot Learning from Human DemonstrationsGaurav Verma, Rachneet Kaur, Nishan Srishankar, Zhen Zeng 等ACL 2025 · 19 次引用
- ReplaceMe: Network Simplification via Depth Pruning and Transformer Block LinearizationDmitriy Shopkhoev, Ammar Ali, Magauiya Zhussip, Valentin Malykh 等NeurIPS 2025 · 10 次引用
- ACE-Merging: Data-Free Model Merging with Adaptive Covariance EstimationBo Xu, Haotian Wu, Hehai Lin, Weiquan Huang 等CVPR 2026 · 5 次引用
- Cache Me If You Must: Adaptive Key-Value Quantization for Large Language ModelsAlina Shutova, Vladimir Malinovskii, Vage Egiazarian, Denis Kuznedelev 等ICML 2025
它引用的 Paper8
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 次引用
- LLM-Pruner: On the Structural Pruning of Large Language ModelsXinyin Ma, Gongfan Fang, Xinchao WangNeurIPS 2023 · 994 次引用
- A Simple and Effective Pruning Approach for Large Language ModelsMingjie Sun, Zhuang Liu, Anna Bair, J. Zico KolterICLR 2024 · 794 次引用
- SliceGPT: Compress Large Language Models by Deleting Rows and ColumnsSaleh Ashkboos, Maximilian L. Croci, Marcelo Gennari Do Nascimento, Torsten Hoefler 等ICLR 2024 · 346 次引用
相关 Paper
- BERT Busters: Outlier Dimensions that Disrupt TransformersOlga Kovaleva, Saurabh Kulshreshtha, Anna Rogers, Anna RumshiskyACL Findings 2021 · 39 次引用
- The Structure of Relation Decoding Linear Operators in Large Language ModelsMiranda Anna Christ, Adrián Csiszárik, Gergely Becsó, Dániel VargaNeurIPS 2025 · 1 次引用
- Rethinking Layer Relevance in Large Language Models Beyond Cosine SimilarityCristian Hinostroza, Rodrigo Toro Icarte, Christ Devia, Andres Carvallo 等ICLR 2026 · 4 次引用
- Scaling Laws for Linear Complexity Language ModelsXuyang Shen, Dong Li, Ruitao Leng, Zhen Qin 等EMNLP 2024 · 2 次引用
- Incorporating Residual and Normalization Layers into Analysis of Masked Language ModelsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2021 · 28 次引用
