Ghosted Layers: Unconstrained Activation Alignment for Recovering Layer-Pruned LLMs
Vincent-Daniel, Junhyuk Jo, Sai Praneeth Karimireddy, Sunwoo Lee
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Model Compression for Transformers · Type: new method · Keywords: layer pruning, activation alignment, LLM recovery, training-free, linear operator
Summary
Ghosted Layers is a training-free recovery module that aligns activations after layer pruning using an optimal linear operator, improving LLM performance while preserving pruning efficiency.
Explained to a 5-year-old
When we cut out parts of a big computer brain, the remaining parts get confused because they expect a certain kind of thinking. Ghosted Layers is a trick that helps fix this confusion without needing to retrain the whole brain. It looks at a tiny sample of the brain’s thoughts and finds a simple rule to fill in the missing pieces. This rule makes the brain’s thoughts match what they used to be, so the computer can understand and answer questions better. In the end, the computer stays small and fast, but works almost as well as before.
Explained to a 5-year-old, longer
Big computer programs called language models are like very smart chatbots that can write and understand text. Sometimes people cut away big pieces of these models to make them smaller, which is called pruning. When you cut away a piece, the next piece doesn't get the same kind of information it used to, so it gets confused. This confusion makes the chatbot answer wrong or slower. Ghosted Layers is a clever idea that fixes this confusion without having to teach the whole model again. It works by looking at a tiny example of how the model thinks and finding a simple rule to fill in the missing information. The rule is like a bridge that connects the thoughts before and after the cut piece. Because the rule is simple and works automatically, it doesn't need extra training time. This means you can keep the model small and fast, but it still performs almost as well as the original big model. The method has been tested on many different language models and different ways of cutting them, and it always helps. It improves both how accurate the answers are and how well the model predicts text, while keeping the size benefits. In short, Ghosted Layers lets you shrink a language model safely, so you get a small, cheap version that still works great.
For a technical reader
Ghosted Layers is a training-free module that recovers the performance lost when Transformer decoder blocks are pruned from a language model. It computes a closed-form linear operator from a small calibration set to align the hidden states that would have passed through the removed layers. By solving the unconstrained activation alignment problem, it avoids the limitations of prior constrained recovery methods. The approach can be dropped into existing pruning pipelines, preserving the size and speed benefits while improving accuracy and perplexity. Experiments across multiple LLM backbones and pruning strategies confirm consistent gains over previous training-free baselines.
Problem
When Transformer decoder blocks are pruned from large language models, the hidden states passed to subsequent layers no longer match the distribution they were trained on, causing performance degradation. This mismatch between activation distributions after pruning remains a challenging problem for maintaining model accuracy.
Method
The approach derives a closed-form optimal linear operator from a small calibration set to reconstruct the activation discrepancy caused by pruned layers, solving an unconstrained activation alignment problem. It operates without any training, making it compatible with existing pruning pipelines. Compared to prior constrained solutions, it searches over the full operator space to achieve better alignment.
Results
The approach consistently improves accuracy and perplexity over prior training-free baselines while preserving the efficiency gains of layer pruning.
Contributions
It provides a training-free recovery solution that solves the unconstrained activation alignment problem, deriving a closed-form optimal linear operator for pruned layers. This yields better performance than existing constrained recovery methods across various LLM architectures and pruning strategies.
Practical relevance
It enables efficient deployment of pruned LLMs without sacrificing accuracy, making large models more practical for resource-constrained settings.
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