Manuscript Offprint

arXiv:2611.08082

DictLLM: Post-training Compression of Large Language Model with Dictionary Kernels

Jinho Park, Se Young Chun, Mingoo Seok

Abstract

Efficient deployment of large language models (LLMs) on mobile devices requires balancing performance with compute and memory constraints. Post-training compression is an effective approach to managing this trade-off, while requiring much less computation than in-training counterparts. We propose DictLLM, a dictionary-based compression scheme in which weight matrices within grouped layers are decomposed into a shared dictionary and layer-specific sparse coefficients, directly obtained from a pre-trained model without further training. Specifically, we cast DictLLM as a four-step post-training optimization. First, we obtain shared dictionaries via singular value decomposition (SVD) of input-scaled weight matrices, amortizing rank across grouped layers; second, we sparsify the layer-specific coefficients to the target compression ratio using a dictionary-aware Hessian; and third, we refine the dictionaries given the resulting sparse coefficients. Finally, we aggressively quantize both components using factor-specific Hessian information: input covariance for the dictionaries and the dictionary-aware Hessian for the coefficients. The resulting representation reduces memory footprint by storing a single shared dictionary per layer group, along with sparse layer-specific coefficients. On language modeling and zero-shot reasoning benchmarks, DictLLM consistently outperforms existing post-training low-rank compression methods and pushes the Pareto frontier between model size and performance. DictLLM compresses the original LLaMA-7B model by 5.1× with only a 2.9-point increase in WikiText-2 perplexity, achieving a 3.6× higher compression ratio than the state-of-the-art low-rank method.

1 Introduction

Deploying large language models (LLMs) on mobile hardware is fundamentally limited by memory, not computation [1–3]. Their billions of parameters exceed device capacity and dominate energy cost through repeated weight memory transfers. Mobile devices do not have enough memory to store these models, and loading parameters to and from memory consumes significantly more energy than computations required for attention and feedforward (FFN) operations [1].

In light of this, LLM compression has emerged as a promising approach for deploying LLMs on mobile graphics processing units (GPUs) with limited memory. In particular, post-training compression has attracted significant research attention, as it requires far fewer computational resources than its in-training counterparts. Model compression offers two key benefits: (1) it enables deployment of state-of-the-art LLMs on a mobile device, and (2) it alleviates memory-bandwidth bottlenecks, as characterized by the roofline model [3, 4]. While compression also reduces the number of multiply-accumulate (MAC) operations, the dominant performance gains typically arise from reduced memory traffic rather than decreased computation [4, 5].

Preprint.

Figure

Figure 1: DictLLM: Dictionary-based compression method. DictLLM resolves the weight memory bottleneck by compressing transformer weights into a shareable dictionary. It compounds four compression steps. ① The first step factorizes input-scaled weight matrices of grouped layers into a shared dictionary and layer-specific coefficients. ② We then prune the layer-specific coefficients using a dictionary-aware Hessian. ③ We refit the shared dictionary to the resulting sparse coefficients. ④ We quantize both the dictionary and the coefficients into NVFP4 using input statistics for the dictionary and dictionary-aware Hessians for the coefficients. The resulting compressed representation enables efficient projections by transferring a small set of shared dictionaries.

Post-training model compression methods have sought to reduce model footprint along three independent axes: low-rank approximation shrinks matrix dimensions, pruning removes individual connections, and quantization lowers per-element bit width. Low-rank approximation uses singular value decomposition (SVD) [6] to factorize weight matrices into smaller ones [7–12]. However, meaningful compression requires the retained rank to be substantially smaller than the original matrix dimensions. Since non-negligible spectral components can remain outside the retained subspace, aggressive low-rank approximation often degrades performance. On the other hand, pruning [13] allows sparsification of weight matrices while preserving their shape [14, 15]. Since neural processing units (NPUs) and GPUs support sparse matrix-matrix multiplication, pruned models can benefit from improved energy efficiency. Orthogonal to these methods, quantization [16–23] reduces the bit width of each element while keeping the number of model parameters constant.

Parameter sharing [24–27] takes a different approach by reusing attention and feedforward weights across layers, enabling deeper models without additional parameters. On the other hand, dictionary-based transformers relax strict sharing by representing weights as combinations of shared atoms and layer-specific coefficients [25, 28]. This idea is closely related to classical dictionary learning, where algorithms such as the Method of Optimal Directions (MOD) [29] and k-SVD [30] reconstruct signals such as images from an overcomplete dictionary and sparse representation coefficients. Although parameter sharing approaches can greatly reduce the number of parameters and memory traffic, they often require training the shared representation from scratch. This in-training requirement of the method makes it difficult to apply directly as a post-training compressor for billion-scale LLMs.

Existing post-training methods [7–12, 14–21] and sharing-based architectures [24–26] therefore exploit complementary axes of redundancy, but they are typically applied in isolation. A more effective post-training compressor should combine these benefits by sharing a reusable structure across layers while preserving layer-specific adaptation. However, stacking these methods is nontrivial since each compression stage changes the weight and activation statistics used by the next stage, and a naïve composition can severely degrade performance.

We propose DictLLM, a post-training compression method that jointly achieves layer sharing, Hessian-aware sparsification, and 4-bit block floating-point (FP4) quantization via a single shared dictionary and sparse layer-specific coefficients within grouped layers (Fig. 1). We develop a 3+1 approach that shows shared dictionary-based compression can be constructed via a three-step post-training process: input-scaled factorization, dictionary-aware Hessian coefficient pruning, and dictionary refitting. This distinguishes our approach from prior work that constructs dictionary-based compression from scratch [25] or requires principal component-based analysis and fine-tuning [31]. In the last step, we show that the compressed model remains amenable to FP4 [16] quantization.

We highlight our contributions as follows:

  • We propose dictionary-based parameter sharing, which decomposes large weight matrices into shared dictionary kernels and layer-wise sparse representation coefficients. Our zero-shot post-training compression method enables compression of a billion-parameter LLM.

  • We combine activation-aware dictionary factorization and dictionary-induced Hessian pruning of the coefficients, then refit the shared dictionary to the sparse representation coefficients, improving reconstruction without changing sparsity or model size.

  • We perform Hessian-aware FP4 quantization using the input covariance for the dictionary and the dictionary-based saliency for the coefficients.

  • DictLLM reduces the original LLaMA-7B size by 5.1x with only a 2.9-point increase in WikiText-2 perplexity, improving over the state-of-the-art low-rank method by 3.6x.

References (55)

  • Eyeriss: An Energy-Efficient Reconfigurable Accelerator for Deep Convolutional Neural Networks
  • Roofline: An Insightful Visual Performance Model for Multicore Architectures
  • Link bit-error-rate requirement analysis for deep neural network accelerators
  • The Approximation of One Matrix by Another of Lower Rank
  • BLAST: Block-Level Adaptive Structured Matrices for Efficient Deep Neural Network Inference
  • SVD-LLM: Truncation-aware Singular Value Decomposition for Large Language Model Compression
  • Basis Sharing: Cross-Layer Parameter Sharing for Large Language Model Compression
  • Dobi-SVD: Differentiable SVD for LLM Compression and Some New Perspectives
  • ASVD: Activation-aware Singular Value Decomposition for Compressing Large Language Models (opens arXiv in a new tab)
  • SkipCat: Rank-Maximized Low-Rank Compression of Large Language Models via Shared Projection and Block Skipping
  • Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding (opens arXiv in a new tab)
  • SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
  • A Simple and Effective Pruning Approach for Large Language Models
  • Proceedings of the International Conference on Learning Representations, 2026
  • QuIP: 2-Bit Quantization of Large Language Models With Guarantees
  • GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
  • SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
  • QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs
  • Bin-Specific Quantization in Spectral-Domain Convolutional Neural Network Accelerators
  • PersASR: A 2.3-μJ/frame 96.8%-accurate TinyML Automatic Speech Recognition Processor with Data Augmentation-Driven Personalization in 16-nm FinFET
  • ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • DictFormer: Tiny Transformer with Shared Dictionary
  • Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRA
  • Dynamic Layer Tying for Parameter-Efficient Transformers
  • T-REX: A 68-to-567μs/Token 0.41-to-3.95 μJ/Token Transformer Accelerator with Reduced External Memory Access and Enhanced Hardware Utilization in 16nm FinFET
  • Method of optimal directions for frame design
  • K-SVD: An algorithm for designing overcomplete dictionaries for sparse representation
  • Share Your Attention: Transformer Weight Sharing via Matrix-based Dictionary Learning
  • Optimal Brain Damage
  • The Unseen Frontier: Pushing the Limits of LLM Sparsity with Surrogate-Free ADMM. In The Fourteenth International Conference on Learning Representations, 2026
  • AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration
  • Deep Equilibrium Models
  • Compress Large Language Models via Collaboration Between Learning and Matrix Approximation
  • Large Language Model Compression with Global Rank and Sparsity Optimization
  • Pivoting Factorization: A Compact Meta Low-Rank Representation of Sparsity for Efficient Inference in Large Language Models
  • LeSTD: LLM Compression via Learning-based Sparse Tensor Decomposition
  • CoSpaDi: Compressing LLMs via Calibration-Guided Sparse Dictionary Learning (opens arXiv in a new tab)
  • LLaMA: Open and Efficient Foundation Language Models
  • OPT: Open Pre-trained Transformer Language Models
  • Mistral 7B
  • Pointer Sentinel Mixture Models
  • Building a Large Annotated Corpus of English: The Penn Treebank
  • Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
  • Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answering
  • WinoGrande: An Adversarial Winograd Schema Challenge at Scale
  • HellaSwag: Can a Machine Really Finish Your Sentence? In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 4791–4800, 2019
  • Reasoning about Physical Common-sense in Natural Language
  • MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms
  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • The Language Model Evaluation Harness, 07 2024
  • Castro and Dan Alistarh
  • Low-Rank Adaptation of Large Language Models
  • SVD-LLM V2: Optimizing Singular Value Truncation for Large Language Model Compression
  • MACKO: Sparse Matrix-Vector Multiplication for Low Sparsity
  • Qwen3 Technical Report