cs.LGFeb 27, 2026

GRAIL: Post-hoc Compensation by Linear Reconstruction for Compressed Networks

Authors: Wenwu Tang, Dong Wang, Lothar Thiele, Olga Saukh

Organizations: Graz University of Technology · ETH Zurich, Switzerland · Complexity Science Hub, Austria

Abstract

Structured deep model compression methods are hardware-friendly and substantially reduce memory and inference costs. However, under aggressive compression, the resulting accuracy degradation often necessitates post-compression finetuning, which can be impractical due to missing labeled data or high training cost. We propose post-hoc blockwise compensation, called GRAIL, a simple zero-finetuning step applied after model compression that restores each block's input-output behavior using a small calibration set. The method summarizes hidden activations via a Gram matrix and applies ridge regression to linearly reconstruct the original hidden representation from the reduced one. The resulting reconstruction map is absorbed into the downstream projection weights, while the upstream layer is compressed. The approach is selector-agnostic (Magnitude, Wanda, Gram-based selection, or folding), data-aware (requiring only a few forward passes without gradients or labels), and recovers classic pruning or folding when the Gram matrix is near identity, indicating weak inter-channel correlations. Across ResNets, ViTs, and decoder-only LLMs, GRAIL consistently improves accuracy or perplexity over data-free and data-aware pruning or folding baselines in practical compression regimes, with manageable overhead and no backpropagation. The code is available at https://github.com/TWWinde/GRAIL_Compensation.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Cut Less, Fold More: Model Compression through the Lens of Projection Geometry

    Feb 20, 2026Olga Saukh, Dong Wang, Haris Šikić +2Model CompressionNeural Network Compression

  2. IrekoGPT: Turning Structured Pruning into Post-Hoc Slimmable LLMs

    Sep 30, 2026Pietro Moriello, Pietro Buzzega, Angelo Porrello +1LLM CompressionLLM Inference Acceleration

  3. Two For The Price Of One: Curvature-Aware Pruning Preserves Influence Functions Too

    Oct 13, 2026Mehdi Makni, Natalia Ponomareva, Rahul MazumderLLM PruningNeural Network Pruning