FlattenGPT: Depth Compression for Transformer with Layer Flattening
Not on the map. Why?
Abstract (arXiv)
Recent works have indicated redundancy across transformer blocks, prompting the research of depth compression to prune less crucial blocks. However, current ways of entire-block pruning suffer from risks of discarding meaningful cues learned in those blocks, leading to substantial performance degradation. As another line of model compression, channel pruning can better preserve performance, while it cannot reduce model depth and is challenged by inconsistent pruning ratios for individual layers. To pursue better model compression and acceleration, this paper proposes FlattenGPT, a novel way to detect and reduce depth-wise redundancies. By flatting two adjacent blocks into one, it compresses the network depth, meanwhile enables more effective parameter redundancy detection and removal. FlattenGPT allows to preserve the knowledge learned in all blocks, and remains consistent with the original transformer architecture. Extensive experiments demonstrate that FlattenGPT enhances model efficiency with a decent trade-off to performance. It outperforms existing pruning methods in both zero-shot accuracies and WikiText-2 perplexity across various model types and parameter sizes. On LLaMA-2/3 and Qwen-1.5 models, FlattenGPT retains 90-96% of zero-shot performance with a compression ratio of 20%. It also outperforms other pruning methods in accelerating LLM inference, making it promising for enhancing the efficiency of transformers.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 42 of its 53 references that are in the map. First posted on arXiv 9 Feb 2026.
Builds on
42 of 53 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023Qwen Technical Reportcited by 3,344
30 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023A Survey of Large Language Modelscited by 2,576
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 800
- 2023Baichuan 2: Open Large-scale Language Modelscited by 670
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2024Large Language Models: A Surveycited by 525
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 385
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
- 2022Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruningcited by 322
- 2023A Survey on Model Compression for Large Language Modelscited by 269
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
- 2017Learning to Prune Deep Neural Networks via Layer-wise Optimal Brain Surgeoncited by 221
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 178
- 2024LaCo: Large Language Model Pruning via Layer Collapsecited by 126
- 2023Fluctuation-based Adaptive Structured Pruning for Large Language Modelscited by 111
- 2024SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blockscited by 97
- 2024Shortened LLaMA: Depth Pruning for Large Language Models with Comparison of Retraining Methodscited by 82
- 2013Revisiting the Nystrom Method for Improved Large-Scale Machine Learningcited by 77
- 2020Compression of Deep Learning Models for Text: A Surveycited by 64
- 2025The Curse of Depth in Large Language Modelscited by 62
- 2023Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMscited by 61
- 2024Transformer Layers as Painterscited by 54
- 2024MoDeGPT: Modular Decomposition for Large Language Model Compressioncited by 48
- 2023The LLM Surgeoncited by 38
- 2024Streamlining Redundant Layers to Compress Large Language Modelscited by 35
- 2023Weight subcloning: direct initialization of transformers using larger pretrained onescited by 30
- 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Modelscited by 27
- 2024Pruning via Merging: Compressing LLMs via Manifold Alignment Based Layer Mergingcited by 19
Built on by
Citing papers per year: 2026: 2.
2 papers.