Joint Optimization of Weights and Activations for Quantization

This direction is merged into another direction: quantization-induced accuracy loss. Its last version stays readable and citable here.

Version 1 of 113 papers18 conceptsfrozen 2026-10-04

In the quest to run massive neural networks on edge devices, researchers have long relied on quantization—reducing the precision of weights and activations to 4-bit, 2-bit, or even 1-bit. Traditionally, these two components were treated as independent variables: weights were quantized to minimize weight-side error, and activations were scaled to fit a specific range.

However, as we push toward extremely low bit-widths, this "divide and conquer" strategy fails. When both weights and activations are heavily compressed, their errors don't just add up; they amplify each other. The emerging consensus across recent research is that high-fidelity quantization requires joint optimization, where weights are tuned specifically to compensate for the noise introduced by low-precision activations.

The Coupling of Quantization Errors

The fundamental problem is that a neural network layer is a product of two distributions. If you quantize weights in isolation, you are optimizing for a "clean" input. But at inference time, that layer receives "noisy" quantized activations from the previous layer.

Xiuying Wei and Ruihao Gong address this in QDrop by introducing a "random drop" mechanism. During the weight-tuning phase, they randomly toggle activation quantization on and off. This forces the weights to find a flat region in the loss landscape that is robust to activation noise. By training the weights to "expect" the errors of 2-bit activations, the model learns to maintain accuracy even when the signal is severely degraded.

Similarly, Semyon Savkin and colleagues argue in NestQuant that incorporating activation noise into weight optimization is the only way to stabilize the reasoning capabilities of Large Language Models (LLMs) at 4-bit precision. Without this joint consideration, the cumulative error across many layers leads to a "perplexity explosion."

Hybrid Scaling and Error Compensation

If global quantization is a blunt instrument, hybrid scaling acts as a precision scalpel. Instead of applying a single scale to a weight matrix, researchers are using secondary paths to "patch" the errors left behind.

In SERQ, Yeonsik Park and Hyeonseong Kim use a low-rank residual matrix to compensate for the distortions caused by 4-bit activation scaling. The static scaling handles the bulk of the compression, while the low-rank path specifically targets the "saliency" or the most important errors that the global scale missed.

This idea of "dual-factor" optimization also appears in BinaryLLM. Zhijun Tu and Hanting Chen combine a fixed analytical scaling factor (which minimizes the mathematical distance between weights) with a learnable factor that adapts during fine-tuning. By merging these into a single coefficient at inference, they achieve 1-bit weights that behave like full-precision ones.

Balancing Structure and Precision

Different tasks reveal different sensitivities to weight and activation noise. In image super-resolution, for instance, Hongjun Wang and Yinqiang Zheng discovered in HarmoQ that weight quantization tends to blur the structure of an image, while activation quantization degrades pixel-level accuracy.

Their "harmonized" approach jointly optimizes the clipping boundaries for both. If you clip the activations too aggressively to save precision, you lose the fine textures; if you don't clip enough, the weights can't resolve the edges. This trade-off is also central to AdderNet quantization, where Ying Nie and Kai Han show that redistributing weights through clustering can prevent the "over-clamping" that happens when weights and activations are forced to share a quantization scale.

Predicting Stability through Geometry

Finally, joint optimization isn't just about accuracy—it's about training stability. In high-speed FP8 training, the risk is numerical overflow, where activations become so large they "crash" the training process.

Seyed Morteza Emadi proposes a geometric solution in Rank-Aware Spectral Bounds. Instead of looking at past activation history (which is reactive), this method looks at the rank and geometry of the weight matrices to predict the maximum possible activation logit. By deriving these mathematical bounds, the system can proactively scale weights to ensure activations never overflow, even during volatile phases like learning rate spikes.

Summary

The shift from independent to joint optimization marks a transition in the field. We are moving away from seeing quantization as a post-processing step and toward seeing it as a co-design problem. Whether through injecting noise during tuning, using low-rank residuals, or deriving spectral bounds, the goal is the same: making weights and activations work together to survive the "lossy" environment of low-bit computing.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_joint_optimization_of_weights_and_activa_815a3938,
  title = {Joint Optimization of Weights and Activations for Quantization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/joint-optimization-of-weights-and-activations-for-quantization/rdr_815a3938d02641568ddedcdce66fce6e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_joint_optimization_of_weights_and_activa_815a3938_v1,
  title = {Joint Optimization of Weights and Activations for Quantization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/joint-optimization-of-weights-and-activations-for-quantization/rdr_815a3938d02641568ddedcdce66fce6e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}