Merging Feed-Forward Sublayers for Compressed Transformers
Not on the map. Why?
Abstract (arXiv)
With the rise and ubiquity of larger deep learning models, the need for high-quality compression techniques is growing in order to deploy these models widely. The sheer parameter count of these models makes it difficult to fit them into the memory constraints of different hardware. In this work, we present a novel approach to model compression by merging similar parameter groups within a model, rather than pruning away less important parameters. Specifically, we select, align, and merge separate feed-forward sublayers in Transformer models, and test our method on language modeling, image classification, and machine translation. With our method, we demonstrate performance comparable to the original models while combining more than a third of model feed-forward sublayers, and demonstrate improved performance over a strong layer-pruning baseline. For instance, we can remove over 21% of total parameters from a Vision Transformer, while maintaining 99% of its original performance. Additionally, we observe that some groups of feed-forward sublayers exhibit high activation similarity, which may help explain their surprising mergeability.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 49 of its 63 references that are in the map. First posted on arXiv 10 Jan 2025.
Builds on
49 of 63 references.
References · 49
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2020GLU Variants Improve Transformercited by 1,724
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
37 more
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2018Universal Transformerscited by 613
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 460
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
- 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 285
- 2016Using the Output Embedding to Improve Language Modelscited by 266
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunitiescited by 247
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 216
- 2015Convergent Learning: Do different neural networks learn the same representations?cited by 215
- 2024Arcee's MergeKit: A Toolkit for Merging Large Language Modelscited by 189
- 2021Block Pruning For Faster Transformerscited by 176
- 2020The Tatoeba Translation Challenge -- Realistic Data Sets for Low Resource and Multilingual MTcited by 127
- 2024LaCo: Large Language Model Pruning via Layer Collapsecited by 124
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 121
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2023Merge, Then Compress: Demystify Efficient SMoE with Hints from Its Routing Policycited by 104
- 2016Tying Word Vectors and Word Classifiers: A Loss Framework for Language Modelingcited by 87
- 2020Optimizing Mode Connectivity via Neuron Alignmentcited by 85
- 2021Lessons on Parameter Sharing across Layers in Transformerscited by 85
- 2021Subformer: Exploring Weight Sharing for Parameter Efficiency in Generative Transformerscited by 42
- 2020Training Large Neural Networks with Constant Memory using a New Execution Algorithmcited by 34
- 2023Analyzing Feed-Forward Blocks in Transformers through the Lens of Attention Mapscited by 33
- 2024Merging Text Transformer Models from Different Initializationscited by 16
- 2023One Wide Feedforward is All You Needcited by 15
- 2024Dynamic Layer Tying for Parameter-Efficient Transformerscited by 10
- 2024Towards Meta-Pruning via Optimal Transportcited by 8
- 2023Diffused Redundancy in Pre-trained Representationscited by 5
- 2024PyMarian: Fast Neural Machine Translation and Evaluation in Pythoncited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026LoopQ: Quantization for Recursive Transformerscited by 4
- 2026LoopQ: Quantization for Recursive Transformers8 May 2026