Reproduce “Layer as Puzzle Pieces: Compressing Large Language Models through Layer Concatenation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

A structured compression framework called CoMe reduces large language models' computational and storage demands through progressive layer pruning, concatenation-based merging, and hierarchical distillation. This approach retains up to 83% of the original average accuracy for LLaMA-2-7b while reducing parameters by 30%.

Key insights

  • All layers in Large Language Models likely contribute uniquely to their complex functions, challenging the simplistic notion of 'redundant' layers that can be removed without significant performance loss.
  • Concatenating the most sensitive channels from adjacent layers is a demonstrably superior merging strategy compared to linearly aggregating weights, which often proves ineffective or even detrimental to model performance.
  • Leveraging structural priors established during the pruning phase through an integrated, hierarchical distillation strategy significantly accelerates and enhances knowledge transfer to the compressed model, particularly with global optimization.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.