Layer as Puzzle Pieces: Compressing Large Language Models through Layer Concatenation

Fei Wang, Li Shen, Liang Ding, Chao Xue, Ye Liu, Changxing Ding

Introduction

As Large Language Models (LLMs) continue to scale, the computational and storage requirements for their deployment have become significant barriers. Structured layer pruning—the removal of entire blocks of a model—is a common strategy to mitigate these costs. However, traditional pruning methods often suffer from significant performance degradation. This paper introduces CoMe (Concatenation-based Merging), a framework that treats neural channels as "puzzle pieces" to create compact, high-performance models without the information loss typical of standard pruning.

The Challenges of Existing Pruning Methods

The authors identify two primary failures in current state-of-the-art pruning techniques:

  1. The Redundancy Myth: Direct Layer Pruning (DLP) assumes that certain layers are redundant and can be safely removed. However, importance rankings are inconsistent across benchmarks; a layer deemed "useless" for one task may be critical for another. Deleting these layers leads to irreversible loss of specialized knowledge.
  2. The Averaging Trap: Weighted Sum-based Layer Pruning (WSLP) attempts to merge layers by averaging their weights. While this can work for some modules, it is ineffective for Feed-Forward Networks (FFNs). Because FFNs lack explicit feature correspondence, averaging their weights results in "over-smoothing," essentially blurring the model's internal representations.

The CoMe Framework

To overcome these issues, CoMe employs a three-stage process that focuses on fine-grained channel selection and structural preservation.

The three-stage CoMe framework: Channel Importance, Concatenation-based Merging, and Hierarchical Distillation.

1. Channel Sensitivity Metric

Instead of evaluating entire layers, CoMe assesses individual channels. It calculates a sensitivity score based on both weight magnitude and activation intensity. This allows the model to identify the most critical "puzzle pieces" within each layer.

2. Concatenation-based Merging

This is the core innovation of CoMe. Rather than averaging weights from adjacent layers, the framework selects the most important channels from both and concatenates them into a new, slimmer layer. This approach preserves the distinct mapping functions of the original layers, avoiding the "blurring" effect of linear aggregation.

Visualizing the channel importance calculation and the subsequent concatenation of selected channels into a merged weight matrix.

3. Hierarchical Distillation

Following the merge, the model undergoes a recovery phase. Because CoMe maintains a map of which original channels were retained, it can perform highly efficient Knowledge Distillation. The original model acts as a teacher, guiding the student model to align its features layer-by-layer based on these structural priors.

Key Results and Insights

The researchers evaluated CoMe across various models, including LLaMA-2, LLaMA-3, and Qwen, using a suite of seven standard NLP benchmarks (e.g., MMLU, HellaSwag, ARC).

  • Performance Retention: When reducing LLaMA-2-7b's parameters by 30%, CoMe retained 83% of its original average accuracy, significantly outperforming baselines like ShortGPT and SLEB.
  • Sharpness vs. Blurring: By using concatenation instead of averaging, CoMe improved average accuracy by over 2% and reduced perplexity by 4.7 points compared to linear weight aggregation.
  • FFN Sensitivity: The study confirmed that FFNs are particularly sensitive to position, explaining why simple averaging fails and why CoMe's channel-wise concatenation is superior.

Conclusion

CoMe represents a significant step forward in LLM compression. By moving away from the "all-or-nothing" approach of layer pruning and the "blurring" of weight averaging, it demonstrates that LLMs can be effectively compressed by carefully rearranging their most vital components. Future work will explore adaptive merging ratios and extending the framework to Mixture-of-Experts (MoE) architectures.

Summary updated

BibTeX
@inproceedings{wang2025layer,
  author = {Fei Wang and Li Shen and Liang Ding and Chao Xue and Ye Liu and Changxing Ding},
  title = {{Layer as Puzzle Pieces: Compressing Large Language Models through Layer Concatenation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=enhFXzKii4},
}
Figure