Zero-Shot Quantization via Weight-Space Arithmetic

Daniele Solombrino, Antonio Andrea Gargiulo, Alessandro Zirilli, Luca Zhou, Adrian Robert Minut, Emanuele Rodolà

TL;DR

This paper demonstrates that robustness to low-bit quantization is a transferable direction in a model's weight space. By subtracting a standard fine-tuned model from its Quantization-Aware Training (QAT) counterpart on a "donor" task, researchers can extract a "quantization vector" to patch a completely different "receiver" model zero-shot, recovering up to 60% of lost accuracy under 3-bit quantization without any receiver-side training.

What Problem Does This Paper Address?

To deploy deep neural networks on resource-constrained edge devices, engineers often use integer quantization to compress model weights into low-bit formats (like 3-bit integers). There are two main ways to do this:

  1. Post-Training Quantization (PTQ): Fast and data-free, but severely degrades model accuracy at ultra-low bit-widths because it aggressively rounds weights without letting the network adapt.
  2. Quantization-Aware Training (QAT): Keeps accuracy high by simulating quantization during training, but it is incredibly expensive and requires access to the original training data for every single downstream task.

This creates a frustrating dilemma: PTQ is cheap but fragile, while QAT is robust but costly. The authors ask a compelling question: Can the quantization robustness learned via QAT on one task be isolated, treated as a vector, and transferred to another task zero-shot?

Figure 1: Zero-shot QV patching. A donor quantization vector ρD := θD,QAT −θD, ex- tracted as the weight-space displacement be- tween a standard fine-tuned donor checkpoint and its QAT counterpart, is added to a re- ceiver checkpoint to obtain the patched model θR←D = θR+λρD. The plot is not to scale but uses true numbers; it illustrates the intended op- erating regime of our method, namely improv- ing low-bit accuracy over PTQ without paying the full receiver-side cost of QAT.

Methods

The authors leverage the framework of weight-space arithmetic. Their method, Zero-Shot Quantization Vector (QV) Patching, operates in two simple steps:

  1. Extraction: Given a donor task ($\mathcal{D}$), they take a standard fine-tuned checkpoint ($\theta_\mathcal{D}$) and its QAT-trained counterpart ($\theta_{\mathcal{D},\text{QAT}}$). The Quantization Vector ($\rho_\mathcal{D}$) is simply the element-wise displacement between them: $$\rho_\mathcal{D} = \theta_{\mathcal{D},\text{QAT}} - \theta_\mathcal{D}$$
  2. Patching: To protect a new receiver model ($\theta_\mathcal{R}$) from PTQ degradation, they add the scaled donor vector to it before applying standard 3-bit PTQ: $$\theta_{\mathcal{R} \leftarrow \mathcal{D}} = \theta_\mathcal{R} + \lambda \rho_\mathcal{D}$$ Here, $\lambda$ is a scalar coefficient that modulates the intensity of the patch.

Theoretical Grounding

Subtracting weights coordinate-wise can be mathematically sketchy due to reparameterization symmetries (e.g., neuron permutations). The authors provide a rigorous proof showing that AdamW optimization dynamics naturally break continuous symmetries, making these weight-space vectors well-defined. Furthermore, they introduce a local geometric theory showing that optimal patching acts as a projection problem within the receiver's Hessian geometry.

A geometric view showing the optimal patch as an orthogonal projection of the ideal receiver QV onto the donor QV direction.

Datasets

The method was extensively validated across both vision and language modalities using 14 pre-trained backbones:

  • Vision Classifiers (22 datasets): ImageNet, CIFAR-10, CIFAR-100, Stanford Cars, Tiny ImageNet, EMNIST, EuroSAT, Fashion-MNIST, FER2013, Flowers102, Food-101, GTSRB, KMNIST, MNIST, Oxford-IIIT Pet, PCam, RESISC45, Rendered SST-2, STL-10, SUN397, SVHN, and DTD. Evaluated on ViT, Swin, and DeiT architectures.
  • Text Classifiers (11 datasets from MTEB): Emotion, IMDB, Banking77, AmazonReviews, AmazonCounterfactual, MassiveIntent, MassiveScenario, MTOPDomain, MTOPIntent, ToxicConversations, and TweetSentimentExtraction. Evaluated on BERT, EmbeddingGemma, and Qwen3-Embedding.

Key Insights and Ideas

  • Robustness is a Transferable Direction: Quantization robustness isn't just a task-specific optimization artifact; it is a structural property that can be isolated and reused across wildly different tasks.
  • The "Universal Donor" Phenomenon: ImageNet emerged as an exceptionally powerful universal donor for vision models. Because ImageNet features massive class diversity, its QAT process forces the model to handle a broad dynamic range of activations, creating a highly generalized, robust quantization vector.
  • Scale Calibration Matters: While setting $\lambda = 1$ works surprisingly well for vision models, text models are highly sensitive. Tuning $\lambda$ using a tiny validation set eliminates destructive interference and unlocks massive performance gains.

Key Results

  • Massive Accuracy Recovery: In 3-bit settings, QV patching improved Top-1 accuracy by up to 60 percentage points over vanilla PTQ, closely approaching the performance of full, expensive receiver-side QAT.
  • Cross-Task Versatility: As shown in the radar charts, the patched models (green lines) consistently expand outward from the fragile PTQ baselines (orange lines), matching or nearing full QAT performance (dark blue lines) across a vast array of tasks.
Figure 3: QV patching across vision and text classifiers. Receiver Top-1 accuracy under 3-bit PTQ for vanilla fine-tuned checkpoints (FT+PTQ), QV-patched checkpoints (QV Patching+PTQ), and receiver-side QAT checkpoints (QAT+PTQ) on ViT-B/16 and Qwen3-Embedding.
  • Compute Savings: QV patching achieves these results at a fraction of a TFLOP, bypassing the massive computational overhead ($2.86 \times 10^4$ TFLOPs) required to run full QAT on the receiver side.

Limitations and Future Work

  • Validation Data Dependency for Scaling: Although the method requires no receiver training data, finding the absolute optimal scaling factor $\lambda$ currently requires a small, held-out validation split to sweep coefficients. Developing a completely data-free calibration method remains an open challenge.
  • Basic PTQ Baseline: The authors intentionally paired their method with a basic, vanilla PTQ setup to isolate the effects of the weight-space vector. Future work is needed to explore how QV patching interacts with more complex, state-of-the-art PTQ algorithms that inherently modify activation or weight distributions.

Summary updated

BibTeX
@inproceedings{solombrino2026zero,
  author = {Daniele Solombrino and Antonio Andrea Gargiulo and Alessandro Zirilli and Luca Zhou and Adrian Robert Minut and Emanuele Rodolà},
  title = {{Zero-Shot Quantization via Weight-Space Arithmetic}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=wrUEnnSgXa},
}
Figure