ROCKET: Rapid Optimization via Calibration-guided Knapsack Enhanced Truncation for Efficient Model Compression

Ammar Ali, Baher Mohammad, Denis Makhov, Dmitriy Shopkhoev, Magauiya Zhussip, Stamatios Lefkimmiatis

TL;DR

ROCKET is a training-free model compression method that slashes the size of Large Language Models (LLMs) by 20–50% while maintaining exceptional accuracy. By framing layer-wise budget allocation as a knapsack optimization problem and introducing a lightning-fast, single-step sparse matrix factorization, ROCKET bypasses expensive iterative training and backpropagation entirely.

What Problem Does This Paper Address?

Deploying massive LLMs on edge devices or in latency-sensitive applications is a massive hurdle due to their immense computational and memory footprints. To make these models smaller, researchers often turn to post-training weight compression via low-rank matrix factorization (like truncated SVD). However, classical SVD forces all weight columns into a single, rigid low-dimensional subspace, which severely degrades model accuracy at higher compression rates.

More flexible approaches, like dictionary learning, allow weights to exist in a "union of subspaces," preserving much more of the original model's nuances. Unfortunately, traditional dictionary learning relies on slow, iterative optimization algorithms (like K-SVD and Orthogonal Matching Pursuit) that scale terribly and are prohibitively expensive for billion-parameter models. ROCKET bridges this gap by delivering the representational flexibility of dictionary learning with the speed of a single-step spectral method.

Methods

ROCKET introduces two key algorithmic innovations to achieve high-fidelity, high-speed compression:

  1. Single-Step Sparse Matrix Factorization: Instead of alternating back-and-forth through expensive iterations, ROCKET uses a data-aware activation whitening step followed by a single Eigenvalue Decomposition (EVD) to construct a low-rank basis. It then applies a unique calibration-guided importance metric that fuses whitened-space coefficient magnitudes with original-space directional sensitivity to sparsify the matrix in one shot. Finally, it relaxes the rigid orthogonality constraints by updating the dictionary in closed form via ridge-regularized least squares.
  2. Constrained Multi-Choice Knapsack Budget Allocation: Rather than compressing every layer uniformly, ROCKET profiles each layer across various rank and sparsity configurations. It formulates global parameter distribution as a Multi-Choice Knapsack Problem (MCKP). Using dynamic programming, it finds the mathematically optimal compression level for each layer to minimize total reconstruction error under a strict global size budget, while enforcing local error caps to prevent any single layer from being catastrophically damaged.

An overview of this entire pipeline is illustrated in Figure 1.

Figure 1. Overview of the proposed method. Left: Budget allocation formulated as a shortest-path problem on a directed graph, where nodes represent compression options and edges encode cost (reconstruction error), solved via DP algorithm to find the optimal sequence of operations. Right: The selected optimal path determines per-layer compression parameters (rank Ki and sparsity Si), which are then applied to each layer via Eigen value decomposition (EVD) followed by structured hard thresholding sparsification (T (.)) of coefficients.

Datasets

The authors evaluated ROCKET across a diverse array of models and modalities using several datasets:

  • Calibration Data: 256 randomly sampled sequences from the RefinedWeb dataset (with additional robustness testing on PTB, WikiText, and Alpaca).
  • Core Text Benchmarks: PIQA, HellaSwag, OpenAI LAMBADA, ARC-Easy, ARC-Challenge, SciQ, RACE, MMLU, and WikiText (for perplexity).
  • Advanced Text Benchmarks: Rigorous evaluation on IFEVal, BBH, MATH, GPQA, MuSR, and MMLU-Pro.
  • Multimodal & Speech: MathVista/MathVerse for vision-language calibration, evaluated on MMBench, MMMU, MMStar, OCRBench, and RealWorldQA. The mls_eng_10k dataset was used for speech generation models.
  • Post-Compression Healing: 30 million tokens from the AllenAI C4 dataset.

Key Insights and Ideas

  • Subspace Flexibility on a Budget: Weights themselves aren't inherently low-rank, but their activations are. By sparsifying the coefficient matrix column-by-column, different output dimensions can activate distinct subsets of basis vectors. This mimics dictionary learning without the iterative computational overhead.
  • Dual-Space Importance Scoring: Mapping errors from a whitened activation space back to the original weight space involves a non-orthogonal inverse transform that distorts error magnitudes. ROCKET elegantly solves this by geometrically interpolating whitened-space magnitude and original-space distortion, ensuring stable weight reconstruction.
  • MLP Layers are Compression Sponges: The knapsack optimizer naturally allocates more aggressive compression (higher sparsity, lower rank) to MLP layers (gate and up projections) than to attention layers. MLP matrices are massive, and their calibration-aware reconstruction error increases much more slowly under sparsification, making them ideal targets for parameter savings.

Key Results

  • Outperforming the Baselines: ROCKET consistently beats state-of-the-art training-free methods like SVD-LLM and CoSpaDi. For example, on Qwen3-8B at an aggressive 50% compression ratio, ROCKET achieves 51.3% average accuracy, compared to 38.1% for SVD-LLM and 42.0% for CoSpaDi (see Table 1 in the paper, or the scaling curves in Figure 2).
Figure 2. Comparison of Accuracy and Inverse Log Perplexity for Llama3-8B and Llama3.2-1B.
  • Lightweight Healing: When compressing a large Qwen3-14B model down to an 8B size and "healing" it with a quick fine-tuning phase on just 30 million tokens, it reached an average accuracy of 67.96%—nearly matching the native, scratch-trained Qwen3-8B (70.46%).
  • Cross-Modal Success: ROCKET isn't just for text. When applied to the Qwen3-4B-VL vision-language model and the VibeVoice speech model, it retained over 90% of original performance at 20% compression without any fine-tuning.
  • Massive Environmental Gains: Because it avoids iterative loops, ROCKET is incredibly green. Compared to CoSpaDi, it compresses models 96 times faster, consumes over 100 times less energy, and cuts CO2 emissions by a factor of 23.

Limitations and Future Work

While highly effective, the authors note a couple of limitations:

  • Scaling to Mixture-of-Experts (MoE): The dynamic programming solution faces a combinatorial explosion of options when applied to modern MoE architectures that feature a massive number of experts (e.g., 128+ experts per block). Finding scalable alternatives for MoEs remains future work.
  • Fixed Sparsity Patterns: During the post-compression healing phase, the sparsity pattern remains completely fixed based on the initial training-free compression step. Jointly learning and adapting sparsity patterns during fine-tuning could unlock even higher accuracy recovery.

Summary updated

BibTeX
@inproceedings{ali2026rocket,
  author = {Ammar Ali and Baher Mohammad and Denis Makhov and Dmitriy Shopkhoev and Magauiya Zhussip and Stamatios Lefkimmiatis},
  title = {{ROCKET: Rapid Optimization via Calibration-guided Knapsack Enhanced Truncation for Efficient Model Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BiaBywmZp3},
}
Figure