NeurIPS 2026, poster

Beyond Adjacent Layers Graph-Guided Layer Fusion for Compressing Large Language Models

Muhammad Usama and Yeoreum Jung

Braindeck Inc., Seoul

Paper on arXiv PDF Code Slides Cite

Most depth-compression methods for LLMs judge layers one at a time, or only merge layers that sit next to each other. We measured the similarity between every pair of layers in thirteen models and found that most pairs of highly similar layers are not neighbours. FCM (Fusion via Community Mining) treats the layers as a graph, splits it into communities of similar layers, and keeps one layer from each. At half the depth it gives lower perplexity than ShortGPT on twelve of the thirteen models.

FCM pipeline in three panels: a layer similarity matrix, layers grouped into communities that include non-adjacent layers, and one kept layer per community followed by LoRA recovery.
The FCM pipeline. Profile the similarity between all pairs of layers, find communities in that graph (a community can span distant layers), keep the highest Block Influence layer of each community, and recover with LoRA.

Most similar layer pairs are not neighbours

Pick a model from the list. The matrix shows linear CKA between the mean-pooled outputs of every pair of decoder blocks, measured on 512 C4 samples. The cells just off the diagonal are adjacent pairs, which is all that adjacent-merging methods look at. Everything else is a non-adjacent pair. Move the threshold to see how the two counts change (the paper uses 0.80), and tick the box to fade the pairs below it.

Ratio of non-adjacent to adjacent pairs

Counts are recomputed in your browser from the released similarity matrices and match Table 2 of the paper at 0.80. The two 14B models are in the paper's table but their matrices are not part of this page, so their rows cannot be opened.

The structure is easiest to see in Qwen2.5-7B. Layers 0 to 2 have a CKA of about 0.7 with the last layers of the network and about 0.1 with layer 5. The model works in phases (an early embedding phase, a long middle block, and an output phase that drifts back toward the embedding subspace), and those phases are not contiguous ranges of depth. A method that only compares neighbours never sees this, and a method that groups contiguous segments cannot represent it.

How FCM works

  1. Profile. Run 512 calibration samples through the model and build the full L×L similarity matrix. FCM uses cosine similarity by default and switches to CKA when the cosine partition is degenerate (one community swallowing most layers, or very unbalanced sizes). That rule uses only calibration data, with thresholds fixed in advance.
  2. Group. Treat the matrix as a weighted graph and split it into K communities with spectral clustering. K comes from the target ratio (K = L/2 at 2×), so there is no similarity cutoff to tune. A community may contain layers from opposite ends of the network.
  3. Keep one per community. Within each community, keep the layer with the highest Block Influence (the layer that changes its input the most) with its original weights, and drop the others. Then heal the model with LoRA (rank 16, 500 steps), the same recovery every baseline in our comparison receives.

The choice in step 3 matters more than it looks. Keeping the most central layer of each community, the one most similar to its peers, sounds reasonable but keeps exactly the most redundant layer. On LLaMA-3.1-8B that variant reaches a perplexity of 449.88; keeping the highest Block Influence layer of the same communities gives 35.25.

Profiling adds about 11.5 seconds on Qwen2.5-7B, roughly 1.4% of the full offline pipeline, which is dominated by LoRA recovery.

Results at 2× compression

All methods below get the same 512 calibration samples and the same LoRA recovery, so the comparison isolates which layers each method keeps. Values are WikiText-2 perplexity, mean over three seeds; lower is better. Hover a row for the exact numbers.

Show as a table
FlattenGPT and SWM diverge on Mistral-7B (4962 and 471.5), so those two points are drawn at the right edge. The Mistral FCM point uses mean-pooled CKA, as in the paper's headline result.

FCM has the lowest perplexity on ten of the thirteen models, and each of those ten wins is significant against every baseline (Welch's t-test with Holm–Bonferroni correction). On LLaMA-3.2-3B and SmolLM3-3B it still has the lowest mean, but the margin is within seed noise. Its mean rank across the suite is 1.15, against 2.15 for DeltaLLM, the strongest baseline. Against ShortGPT alone, FCM is lower on twelve of thirteen models, significantly so on ten, with the largest reduction on Qwen3-4B (116.20 to 58.15).

The compressed models are smaller and faster in practice. Halving Qwen2.5-7B removes 46% of its parameters, lowers peak VRAM by 42%, and raises decode throughput by 84% on a single A100.

Beyond 2×

At 1.5× every method keeps about two thirds of the layers, there is plenty of redundancy to remove, and DeltaLLM or ShortGPT edges out FCM by at most 0.6 perplexity. From 2× onward the baselines degrade much faster, and the gap keeps growing up to 3× on all three models we swept.

Show as a table
WikiText-2 perplexity against compression ratio, log scale, mean over three seeds.

Downstream tasks

The perplexity gains carry over to accuracy. On five zero-shot reasoning benchmarks (ARC-Easy, ARC-Challenge, HellaSwag, WinoGrande, PIQA), FCM beats ShortGPT on all fifteen benchmark results for the Qwen and LLaMA models. Mistral-7B goes the other way, as it does for perplexity.

Mean zero-shot accuracy (%) over the five benchmarks at 2× compression.
ModelUncompressedShortGPTFCM
Qwen2.5-7B72.9449.3455.54
LLaMA-3.1-8B74.5852.1854.92
Qwen2.5-14B78.3458.6663.22
Mistral-7B73.7253.7651.10

FCM also improves 5-shot MMLU by 6.2 to 10.6 points over ShortGPT. On Qwen2.5-7B it halves LAMBADA generative perplexity (8.65 against 18.42) and raises HumanEval pass@1 from 18.5% to 29.8%.

Where it does not win

Mistral-7B is the one clear loss, where FCM is 13.4% worse than ShortGPT. Mistral uses sliding-window attention, so how similar two layers are depends on token position, and mean pooling over positions throws that signal away. On Mistral, 68.4% of the cross-position activation variance sits in the top 5% of positions, against 14 to 16% on the other models. Computing CKA over all tokens instead of mean-pooled ones narrows the gap to 5.3% but does not close it.

We have only tested decoder-only models, and long-context behaviour beyond 2048 tokens and mathematical reasoning were not measured. The paper's limitations section lists the remaining gaps, including baselines we could not run under matched recovery.

Citation

@inproceedings{usama2026beyond,
  title     = {Beyond Adjacent Layers: Graph-Guided Layer Fusion for Compressing Large Language Models},
  author    = {Usama, Muhammad and Jung, Yeoreum},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}