arXiv:2610.18516cs.LGOct 2026

Manuscript Offprint

arXiv:2610.18516

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

Mehdi Makni, Natalia Ponomareva, Rahul Mazumder

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Post-training pruning enables efficient deployment, but conventional methods do not explicitly preserve internal-gradient alignment between sparse and dense models. We study novel connections between downstream performance of compressed models and the ability to retain gradient information via influence-function preservation. Central to this connection is a curvature-aware objective that accounts for both layer activations and backpropagated gradients. Despite its promise, this objective remains underexplored in pruning due to a lack of efficient solvers. We introduce CACTUS, a novel ADMM-based optimizer supporting both pruning and sparse-plus-low-rank decompositions of pre-trained weights. Compared to LLM-Surgeon which targets the same objective, CACTUS can achieve over an order-of-magnitude speedup. At 50% pruning of Qwen3-4B, CACTUS reduces the C4 perplexity gap to the dense model by 45%, improves compressed-to-dense per-sample gradient cosine similarity on WikiText-2 from 0.670 to 0.755, and runs over 28× faster than LLM-Surgeon on substantially weaker hardware. By preserving influence functions, CACTUS supports effective data selection. On Llama-3.2-3B, fine-tuning a fresh dense model on the 5% of data selected by CACTUS achieves 49.44% accuracy on BIG-Bench Hard, compared with 47.22% using ALPS and 49.54% using dense-model selection. Finally, integrating CACTUS with LoGRA, a recent gradient-projection strategy, on Qwen3-4B with MLP layers pruned to 2:4 sparsity and a rank-64 correction retains a 0.711 cosine alignment with dense LoGRA-projected C4 gradients.

1 INTRODUCTION

Large Language Models (LLMs) (Achiam et al., 2023; Dubey et al., 2024; Google, 2023) have driven advances in reasoning, code, and mathematics, but their sheer size, often measured in billions of parameters, makes both deployment and downstream inference expensive. These costs have motivated two parallel research threads that have advanced largely independently.

The first thread is post-training pruning. Methods such as SparseGPT (Frantar and Alistarh, 2023), WANDA (Sun et al., 2024), and ALPS (Meng et al., 2024) use a small calibration dataset to minimize the layerwise-reconstruction error ∥XW−XW^∥F2\|\mathbf{X}\mathbf{W} - \mathbf{X}\widehat{\mathbf{W}}\|_{F}^{2} subject to a structural constraint, where X\mathbf{X} contains input activations and W\mathbf{W} and W^\widehat{\mathbf{W}} are the dense and compressed weights, and ∥⋅∥F\|\cdot\|_{F} is the Frobenius norm. Pruning (pure sparsity) zeroes out the weights in an unstructured pattern or in hardware-friendly n:mn:m patterns that keep nn nonzeros in each contiguous block of mm weights; the common 2:4 case is natively accelerated by recent NVIDIA sparse Tensor Cores (Zhou et al., 2021). Sparse-plus-low-rank (SLR) compression, denoted in this paper by (S+L)(\mathbf{S} + \mathbf{L}), combines a sparse backbone S\mathbf{S} with a low-rank correction L\mathbf{L} under the same framework, improving compression-utility tradeoffs over either component alone (Zhang and Papyan, 2025; Makni et al., 2025; 2026).

The layerwise-reconstruction procedure above matches each layer's outputs given its input activations and is therefore gradient-blind to the LLM loss (see Figure 1). LLM-Surgeon (van der Ouderaa et al., 2024) (pruning) and YAQA (Tseng et al., 2026) (quantization) additionally incorporate downstream gradients from the calibration dataset. This curvature-aware objective improves model quality, but its optimization can require multiple GPU hours per model (LLM-Surgeon in Table 2),

*Corresponding author: mmakni@mit.edu limiting its adoption. Our solver minimizes the curvature-aware loss function more than an order of magnitude faster than LLM-Surgeon while improving perplexity (Table 2). It also extends beyond pure pruning to curvature-aware (S + L) compression. Figure 3 studies Llama-3-8B with 2:4 sparsity and a rank-256 correction, matching the (S + L) configuration with serving speed and memory gains reported by Mozaffari et al. (2024).

The second thread is efficient influence function (IF) estimation. Influence functions, with early roots in robust statistics (Hampel, 1974), estimate the counterfactual effect of a training example via I(z,z′)=∇ℓ(z′)⊤H−1∇ℓ(z)\mathcal{I}(z, z') = \nabla \ell(z')^\top \mathcal{H}^{-1} \nabla \ell(z), where zz and z′z' are training and query examples, ∇ℓ\nabla \ell is the per-example parameter gradient, and H\mathcal{H} is the training-loss Hessian. Applications include data attribution (Pruthi et al., 2020; Park et al., 2023), training-data selection (Xia et al., 2024), model debugging and provenance (Grosse et al., 2023), and machine unlearning. At LLM scale, evaluating this expression is prohibitively expensive. Existing methods reduce the cost on two fronts: (i) inverse-Hessian approximations (Kronecker-Factored Approximate Curvature (KFAC) (Martens and Grosse, 2015; Grosse et al., 2023), its eigenvalue-corrected variant (EK-FAC), identity-Hessian as in TracIn (Pruthi et al., 2020), Adam-style preconditioners), and (ii) on the gradient side: random or architecture-aware gradient sketches (TRAK (Park et al., 2023), Low-rank Gradient Approximation (LoGRA) (Choe et al., 2025)); see Section 4. These methods still require per-sample gradient computations, which remain costly for large models and datasets.

IProX (Chen et al., 2026) introduced compressed-model proxies: with the idea of computing influence estimates using a smaller surrogate model whose gradients mimic those of the dense model. They show that minimizing the curvature-aware objective, also used by LLM-Surgeon, helps preserve per-sample gradients. IProX instantiates this idea using low-rank proxies with a two-stage pipeline: (i) each weight matrix is approximated by a product of two smaller matrices, obtained through a closed-form weighted singular value decomposition (SVD), termed influence-preserving SVD (IPSVD); and (ii) gradient-alignment distillation further adapts the low-rank proxy.

In this paper, we study the connection between these two different research threads for pruning. The bridge is the curvature-aware objective in Equation (1), and the enabler is a single algorithm that makes it practical for both high-quality pruning and influence-preserving sparse proxies. Here, influence preservation means retaining the dense model's gradient-based influence estimates after compression. This is the sense in which the paper offers “Two for the Price of One.”

Our main contributions can be summarized as follows.

  1. Efficient Curvature-Aware Compression. We introduce CACTUS 1^{1}, a highly-efficient algorithm tailored for Equation (1) with convergence guarantees. It handles both pure pruning (CACTUS-prune) and sparse-plus-low-rank (CACTUS-SLR) constraints, and runs over an order of magnitude faster than LLM-Surgeon on substantially weaker hardware on Qwen3-4B. The updates are derived in Section 2. With this new unifying algorithm, we make contributions in model compression on two fronts: preserving downstream utility and influence function preservation.

  2. Compression Quality. On Llama-3.2-1B at 50% compression, CACTUS reduces the C4 perplexity gap to the dense model by 25% for pure pruning and 28% for (S+L)(\mathbf{S} + \mathbf{L}) decompositions relative to the strongest corresponding baseline. Additionally, it maintains its advantage at different compression ratios, architectures, and model sizes (see Tables 2, 9 and 11 to 13). In particular, we show in Table 14 that CACTUS reduces the C4 perplexity gap to dense by over 25% compared to SparseGPT under 2:4 sparsity for Qwen3.8-27B.

  3. Influence Preservation. On Llama-3.2-1B at 50% pruning, CACTUS improves the cosine similarity between compressed and dense per-example gradients on WikiText-2 from 0.445 (LLM-Surgeon) to 0.512 (Table 7). We then use pruned models with 50% sparsity to select 5% of data from an instruction-tuning mixture for fine-tuning a fresh Llama-3.2-3B model. CACTUS selected subset overlaps the dense model's selection by 54.13%, compared with 52.24% for ALPS, and yields 49.44% versus 47.22% BBH accuracy (Table 3). On Qwen3-4B, compressing MLP layers to 2:4 sparsity with a rank-64 correction retains a cosine similarity of 0.711 between compressed and dense per-example gradients on C4, measured using the same LoGRA projection.

1^{1}Curvature-Aware Compression with Tractable Updates via Sylvester Steps: Our method uses iterative closed-form updates to find high-quality solutions for Equation (1). One key update (smooth subproblem in ADMM) solves a Sylvester equation HSG+ρ2S=RHS\mathbf{HSG} + \frac{\rho}{2}\mathbf{S} = \text{RHS} in closed-form at matmul cost, hence the name of the algorithm—see more details in Section 2.2.

The same W to be compressed – 3 levels of data-awareness.

Figure

Figure 1: Each panel is a layer-level reconstruction problem centered on the same weight matrix W\mathbf{W}. Input activations from the previously compressed layer are represented by X∈RNcal×din\mathbf{X} \in \mathbb{R}^{N_{\text{cal}} \times d_{\text{in}}}, the downstream gradients incoming from the next layer are represented by A∈RNcal×dout\mathbf{A} \in \mathbb{R}^{N_{\text{cal}} \times d_{\text{out}}}. (Left) Data-free. Neither X\mathbf{X} nor A\mathbf{A} is available; both sides reduce to parallel gray passes and the objective collapses to ∥W^−W∥F2\|\widehat{\mathbf{W}} - \mathbf{W}\|_F^2. (Middle) Layerwise reconstruction (most common). Calibration activations X\mathbf{X} light up the left side, giving ∥X(W^−W)∥F2\|\mathbf{X}(\widehat{\mathbf{W}} - \mathbf{W})\|_F^2; outputs are matched but the method remains gradient-blind (SparseGPT, ALPS, 3BASiL, SVD-LLM). (Right) Curvature-aware. Both activations and the downstream gradients are used, yielding ∥X(W^−W)A⊤∥F2\|\mathbf{X}(\widehat{\mathbf{W}} - \mathbf{W})\mathbf{A}^\top\|_F^2, as studied in this paper.

References (45)