DictLLM: Post-training Compression of Large Language Model with Dictionary Kernels
Jinho PARK, Se Young Chun, Mingoo Seok
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Low-Rank LLM Quantization Compression · Type: new method · Keywords: post-training compression, dictionary-based compression, LLM on-device, sparse coefficients, Hessian quantization, model compression
Summary
DictLLM introduces a dictionary-based post-training compression that decomposes weight matrices into shared dictionaries and sparse coefficients, achieving high compression ratios on LLMs without additional training.
Explained to a 5-year-old
A big computer brain called a language model is too heavy to fit on a phone. Scientists cut it down by using a shared set of building blocks and only keeping a few special pieces for each part. This makes the phone’s brain smaller but still smart enough to talk. It works without having to retrain the whole model, just by reshaping the old one. The phone can now run the smaller brain faster and use less memory.
Explained to a 5-year-old, longer
Imagine a super-smart robot that can read and write, but its brain is huge and needs a big backpack to carry it. That backpack makes the robot slow and uses a lot of energy. The researchers noticed that many parts of the brain are similar, like repeated patterns in a drawing. They took those similar patterns and made one big shared pattern that all parts can use. Then they looked at each part’s special details and kept only the most important ones, throwing away the rest. They refined the shared pattern based on the kept details and then made the pattern and the details even smaller by using smart math about how important each piece is. The result is a tiny brain that still works well, using far less memory and power. The robot can now fit on a phone and still answer questions quickly.
For a technical reader
DictLLM is a post-training compression scheme that groups layers and extracts a single shared dictionary per group via SVD of input-scaled weights. It then sparsifies layer-specific coefficients using a dictionary-aware Hessian, refines the dictionaries, and applies factor-specific Hessian-based quantization to both components. This yields a compact representation that reduces memory footprint while preserving model performance. The method is fully post-training, requiring no additional fine-tuning. On language modeling and zero-shot reasoning benchmarks, it outperforms existing low-rank compression techniques, achieving up to 5.1× compression on LLaMA-7B with minimal accuracy loss.
Problem
Deploying large language models on resource-constrained mobile devices is challenging due to limited compute and memory, and existing post-training compression methods often provide insufficient compression while degrading performance.
Method
The approach performs a four-step post-training optimization: it extracts shared dictionaries via singular value decomposition of input-scaled weight matrices, sparsifies layer-specific coefficients using a dictionary-aware Hessian, refines the dictionaries, and quantizes both components with factor-specific Hessian information.
Results
The approach compresses the LLaMA-7B model by 5.1× with only a 3.4-point increase in WikiText-2 perplexity and achieves a 3.6× higher compression ratio than the state-of-the-art low-rank method.
Contributions
A dictionary-based post-training compression scheme that shares dictionaries across layers, uses a dictionary-aware Hessian for sparsification and quantization, and yields significantly higher compression ratios while preserving performance.
Practical relevance
Enables on-device deployment of much larger language models within limited memory and compute budgets, facilitating mobile AI applications.
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