Beyond Adjacent Layers: Graph-Guided Layer Fusion for Compressing Large Language Models
Usama Muhammad, Summer Y Jung
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Efficient LLM Inference · Type: new method · Keywords: graph-guided layer fusion, LLM compression, spectral clustering, CKA similarity, low-rank adapter recovery
Summary
FCM builds a full layer similarity graph, uses spectral community detection to cluster functionally equivalent layers, keeps the most influential layer per cluster, and refines the model with LoRA recovery, achieving superior compression over adjacent-layer methods while preserving LLM performance.
Explained to a 5-year-old
A language model is a computer program that can read words and write sentences. These programs are huge and need a lot of memory to run, which can be slow. Researchers want to make them smaller so they can work on less powerful computers. They discovered that some parts of the program, called layers, are more similar than others. They draw a picture where each part is a dot and lines connect similar parts, then find groups of similar parts and keep only the best one from each group, then fix the missing pieces. This helps the smaller program still understand and answer questions almost as well as the big one.
Explained to a 5-year-old, longer
A language model is a computer program that can read words and write sentences. These programs are huge and need a lot of memory to run, which can be slow. Researchers want to make them smaller so they can work on less powerful computers. They discovered that some parts of the program, called layers, are more similar than others. They draw a picture where each part is a dot and lines connect similar parts, then find groups of similar parts and keep only the best one from each group, then fix the missing pieces. This helps the smaller program still understand and answer questions almost as well as the big one. By grouping layers that are not next to each other, they can remove many unnecessary parts while keeping the important information. This makes the model lighter and faster to run. The new method also works well on different sizes of language models, from a few billion to fourteen billion parameters. It shows that looking at the whole picture of how layers relate can give better results than just looking at nearby layers. The approach also reduces the amount of memory needed during inference, which is great for using the model on devices with limited resources. Overall, the technique helps keep the power of large language models while making them easier to deploy in real-world applications.
For a technical reader
The paper constructs a full pairwise similarity graph of model layers using CKA, then applies spectral clustering to find groups of functionally equivalent layers. It retains the most influential layer per cluster and refines the model with a low-rank adapter to recover performance. Experiments show that this graph-guided fusion outperforms adjacent-layer compression methods across multiple LLMs, achieving lower perplexity, fewer parameters, reduced VRAM, and higher throughput while maintaining downstream reasoning capabilities.
Problem
Depth-compression techniques for large language models typically assume that functionally redundant layers are adjacent, which limits how efficiently models can be compressed without losing accuracy.
Method
The approach constructs a full pairwise layer similarity graph using CKA, applies spectral community detection to identify clusters of equivalent layers, selects the highest-influence layer per cluster, and refines the remaining layers with a low-rank adapter (LoRA) to recover performance.
Results
At 2× compression, the approach lowers mean perplexity below ShortGPT on 12 of 13 models (up to 50% improvement on Qwen3-4B), uses 46% fewer parameters, 42% less peak VRAM, and 84% higher decode throughput on Qwen2.5-7B, while also beating adjacent-pair baselines by 7.8-35.3% on three anchor models and matching/exceeding ShortGPT on 15 of 20 reasoning benchmark cells.
Contributions
The work demonstrates that functional redundancy in LLMs is highly non-local, introduces a graph-based layer clustering method, and shows significant compression gains across model sizes and downstream tasks.
Limitations and assumptions
The method underperforms on Mistral-7B, where perplexity increases by 14.3%, indicating that the approach does not universally improve all architectures.
Practical relevance
Enables more efficient deployment of LLMs on limited hardware by drastically reducing memory usage and latency while preserving performance.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction