arXiv:2610.35955cs.LGOct 2026

Manuscript Offprint

arXiv:2610.35955

ResCom: Activation Residual Compensation for Large Language Model Quantization

Ning Yang, Bohan Cui, Zhuowen Liu, Yuting Wang

ABSTRACT

Low-bit weight–activation quantization reduces the memory and computation needed to deploy large language models, but activation rounding can still degrade accuracy after calibration. Reconstruction from rounded inputs cannot distinguish activations within the same quantization bin. We propose ResCom, a low-rank correction that uses the activation rounding residual to compensate for the resulting layer-output error. An output-aware calibration procedure selects residual directions by their contribution to output reconstruction and computes the correction in closed form, without gradient training or updates to the calibrated weights. On Llama-3-8B with 4-bit weights and activations, rank-32 attention corrections reduce WikiText-2 perplexity from 7.708 to 7.147, improve MMLU by 2.89 percentage points, and raise five-shot GSM8K accuracy from 23.96 to 36.16 percent. Evaluations on models from 1B to 70B parameters and on held-out C4 test the method beyond this setting. The evaluated FP32 implementation adds 2.25 percent to 4K prefill time; a separate compact-storage implementation retains a 27.7 percent peak-memory reduction relative to FP16.

1 INTRODUCTION

Large language models (LLMs) continue to improve in capability, but their memory and computational requirements make inference costly (Pope et al., 2023). Quantization reduces these costs by representing model values with fewer bits. Post-training quantization (PTQ) applies this conversion to pretrained models using limited calibration data, avoiding a full quantization-aware training procedure (Nagel et al., 2021). Since linear layers multiply learned weights by input-dependent activations, quantizing both operands enables low-bit matrix multiplication on compatible hardware. With four-bit weights and activations (W4A4), however, few numerical levels represent activation ranges that can be enlarged by outliers (Dettmers et al., 2022). For a uniform quantizer, a wider range spreads these levels farther apart, so wider intervals of activation values share each rounded value. The layer consequently loses input distinctions that may affect its output.

To reduce this distortion, activation-shaping methods adjust distributions before quantization through scaling or transformations (Xiao et al., 2023; Ashkboos et al., 2024). The resulting low-bit computation can still incur output error, which error-reconstruction methods compensate with compact branches (Zhang et al., 2024; 2025). For W4A4, SERQ implements reconstruction with a single compensation matrix operating on quantized activations (Park et al., 2026). LRC jointly optimizes quantized weights and a correction, whereas ARHQ uses residual statistics to determine a weight split before quantizing the remaining weights (Scetbon & Hensman, 2024; Wang et al., 2026). Their correction procedures therefore participate in constructing the quantized model. Once a model has been calibrated, preserving its weights and input transformations allows those calibration choices to be reused while fitting an additional correction.

†^{\dagger}Corresponding author.

Different activations can produce different layer outputs even when they round to the same vector. A correction conditioned only on that vector, as in SERQ, gives these inputs the same adjustment, leaving their distinct output contributions unresolved. This motivates a correction that accesses the discarded information while retaining the already calibrated computation. How can such a correction recover layer outputs under a limited computation budget?

To address this question, we propose RESCOM, which adds a residual-conditioned low-rank correction to an already calibrated quantized model, referred to as the host model (Figure 1). RESCOM fits the correction to layer-output error while retaining the existing weights, quantization settings, and reconstruction path. We evaluate this post-calibration attachment beyond SERQ using Llama-3-8B checkpoints from PrefixQuant and FlatQuant (Chen et al., 2026; Sun et al., 2025).

The branch receives the activation rounding residual, the difference between an activation before quantization and the value reconstructed from its quantized representation. This residual records what rounding discards and is formed at the existing input quantizer. In our SERQ instantiation, the frozen linear map includes both the dequantized main-path weights and the existing reconstruction term. Because both inputs are evaluated under the same frozen map, its response to the residual exactly equals the output difference caused by activation rounding. This activation-induced output difference defines our SERQ calibration target. Using the residual isolates the input component absent from the main path and directly matches this target's linear dependence on the discarded information. Evaluating the frozen map on the residual would recover this difference directly, but requires a dense high-precision multiplication. To bound the additional cost, RESCOM uses a low-rank approximation implemented by two smaller matrix multiplications, trading recovery capacity for computation and storage. Under this budget, residual magnitude alone overlooks output amplification, while weights alone ignore which residual variations occur; a small residual can still have a large output effect. RESCOM therefore fits a regularized reduced-rank regression to output error, using a ridge term to stabilize fitting from limited calibration data and obtaining a closed-form solution without gradient training.

Figure

Figure 1: Three reconstruction paths. (a) SERQ applies a selected-channel compensator to rounded activations. (b) ARHQ splits weights before quantization and uses unrounded activations. (c) ResCom instead feeds the activation rounding residual to an output-aware low-rank branch fitted after calibration. Appendices B–C formalize these differences.

Our contributions are as follows:

• Residual-conditioned correction after calibration. We propose RESCOM, a compact correction that uses activation rounding residuals to recover output-relevant information while preserving the calibrated weights, quantization settings, and existing reconstruction path.

• Output-aware residual fitting. We formulate residual-to-output calibration as regularized reduced-rank regression, allocating a prescribed rank budget according to layer-output reconstruction error. The resulting closed-form fit calibrates the added branch without updating the host model.

• Accuracy recovery across model scales. Rank-32 attention correction on query, key, value, and output projections lowers WikiText-2 perplexity on all nine W4A4 SERQ checkpoints (1B–70B). On Llama-3-8B, perplexity falls from 7.708 to 7.147, MMLU improves by 2.89 percentage points, and five-shot GSM8K strict accuracy rises from 23.96% to 36.16%.

References (32)