LayerDecompose: Exploring weight sharing for Large Language Model Compression

Ivan Sedykh, Nikita Sorokin, Valentin MalykhOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

LayerDecompose is a new compression framework that slashes the size of Large Language Models (LLMs) by sharing a single "base" weight matrix across groups of transformer layers. By combining this shared core with lightweight, layer-specific adapters and a clever "permutation alignment" trick, the authors achieved a 30% reduction in model size while retaining 89% of the original performance, consistently outperforming standard pruning and SVD-based methods.

What Problem Does This Paper Address?

As LLMs scale to hundreds of billions of parameters, they become increasingly difficult to deploy on consumer hardware due to massive memory and computational requirements. While techniques like quantization (lowering bit-precision) and pruning (removing weights) are popular, they often require specialized hardware or complex software kernels to see real-world speedups.

The authors point out that weight sharing—an old-school technique where multiple layers use the same parameters—has been largely ignored in the modern LLM era. Naively forcing layers to share weights usually tanks performance because, while layers are similar, they aren't identical. LayerDecompose aims to bridge this gap: how can we exploit the redundancy between layers without losing the unique "expressive power" each layer contributes to the model?

Methods

The core of LayerDecompose is a hybrid approach that represents a group of $m$ linear layers using a single shared matrix $W$, augmented by layer-specific "fine-tuning" components.

  1. Layer Decomposition: For a group of layers, the original weights are replaced by:
  2. A Shared Base Weight ($W$): One large matrix used by all layers in the group.
  3. Scaling Vectors ($a, b$): Per-channel scaling to handle magnitude differences.
  4. Low-Rank Adapters ($A, B$): Small, unique matrices (similar to LoRA) that capture the specific differences of that layer.
  5. Permutation Alignment: This is the paper's most novel contribution. Neural network layers are "permutation invariant"—you can swap the order of neurons or attention heads without changing the output, as long as you swap the corresponding weights in the next layer. The authors use an assignment solver (LSAP) to reorder the channels and heads of different layers so they are as mathematically similar as possible before they are forced to share a base matrix.
  6. Two-Stage Optimization: The model is initialized using a closed-form SVD (Singular Value Decomposition) to find the best starting weights, followed by a joint refinement using the Adam optimizer.
  7. Healing with Distillation: After compression, the model undergoes a "healing" phase where it is trained to mimic the original "teacher" model’s outputs and internal hidden states.

Datasets

The authors evaluated their method across a diverse set of models and tasks:

  • Models: LLaMA-7B, LLaMA-2-13B, Qwen-7B, DeepSeek-7B, and OLMo-7B.
  • Evaluation Benchmarks: Seven standard NLP tasks including OpenBookQA, PIQA, HellaSwag, WinoGrande, ARC-Easy, ARC-Challenge, and MathQA.
  • Healing Dataset: The C4 (Colossal Clean Crawled Corpus) training set was used for the distillation phase.

Key Insights and Ideas

  • Adjacent Layers are Siblings: By measuring "functional similarity" (how similarly layers react to the same input), the authors found that adjacent layers are much more alike than distant ones. This justifies grouping consecutive layers for sharing.
  • Alignment is Essential: The "Permuted" configuration (aligning weights before sharing) significantly lowered reconstruction loss compared to a "Baseline" sharing approach. Essentially, layers speak the same language but often use different "dialects"; alignment translates them into a common tongue.
  • The "Milder is Better" Rule: Through exhaustive hyperparameter searches, the authors found it is better to apply mild compression (higher rank adapters) across many layers than to aggressively crush a small subset of layers.
  • Redundancy Scales: The 13B parameter model retained more performance (94.6% at 20% compression) than the 7B model. This suggests that as models get larger, they contain even more internal redundancy that weight sharing can exploit.

Key Results

  • Superiority over Baselines: At a 30% size reduction, LayerDecompose retained 88.9% of LLaMA-7B's performance. In comparison, SVD-LLM (a top-tier SVD method) dropped to 66.7%, and LLM-Pruner dropped to 82.7%.
  • Efficiency: The method reduces parameters from $mn^2$ to roughly $n^2 + 2m(nr)$, where $m$ is the group size and $r$ is the small adapter rank.
  • Generalization: The performance gains held steady across different model architectures like Qwen and DeepSeek, proving the method isn't just "overfitting" to LLaMA's specific structure.

Limitations and Future Work

  • Inference Overhead: While the model is smaller in memory, the low-rank adapters ($A$ and $B$) add a small amount of extra computation during the forward pass. The authors note this is "minimal," but it is a trade-off compared to pure pruning.
  • Healing Time: The distillation process took approximately 14 hours on two A100 GPUs for a 7B model. While this is a one-time cost, it is more intensive than "post-training" methods that require no fine-tuning.
  • Future Directions: The authors suggest exploring non-consecutive layer grouping (e.g., sharing weight between layer 5 and layer 20 if they happen to be similar) and adaptive rank allocation, where more important layers get larger adapters.

Summary updated

BibTeX
@misc{sedykh2026layerdecompose,
  author = {Ivan Sedykh and Nikita Sorokin and Valentin Malykh},
  title = {{LayerDecompose: Exploring weight sharing for Large Language Model Compression}},
  year = {2026},
  url = {https://openreview.net/forum?id=0IWZjbMmry},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure