Beyond Activation Alignment:The Alignment-Diversity Tradeoff in Task-Aware LLM Quantization

Fei Wang, Chao Xue, Taoran Liu, Li Shen, Ye Liu, ChangXing DingarXiv 2026

TL;DR

Traditional mixed-precision quantization for Large Language Models (LLMs) relies on perplexity to determine layer sensitivity, but this paper reveals that perplexity rankings have zero correlation with complex reasoning performance. To fix this, the authors introduce TASA, a framework that optimizes calibration data mixtures and bit allocation to achieve "precision inversion"—allowing 3.5-bit models to match or outperform standard 4-bit baselines on complex tasks.

What Problem Does This Paper Address?

Post-training quantization (PTQ) is essential for deploying massive LLMs on resource-constrained edge devices by compressing full-precision weights into low-bit integers. Mixed-precision quantization (MPQ) optimizes this further by allocating more bits to "sensitive" layers and aggressively compressing the rest.

However, current MPQ pipelines rely on two flawed assumptions:

  1. Perplexity (PPL) is a faithful proxy for all downstream capabilities.
  2. Generic text datasets (like Wikipedia) provide a sufficient calibration manifold.

The authors show that for modern LLMs tasked with multi-step logical inference, PPL-guided quantization systematically protects the wrong parameters (usually boundary input/output embeddings), leaving the reasoning backbone under-protected. Conversely, calibrating exclusively on target-task data (e.g., pure mathematics) also fails because it lacks the distributional diversity needed to prevent representation collapse.

Methods

The authors propose TASA (Task-Aware Sensitivity Analysis), a two-level mixed-precision framework that operates along both data and network axes:

  1. Gradient Trace Alignment Auto-Calibration: TASA avoids expensive brute-force data searches by using a training-free proxy. It computes a macroscopic "trace vector" (the squared Frobenius norm of layer activations) and maximizes the cosine similarity between the calibration data mixture and the target task.
  2. Multi-Objective Aggregation (MOA) Profiling: TASA profiles layer sensitivity by combining both perplexity and task-specific cross-entropy losses (e.g., mathematical reasoning) into a single composite score.
  3. Integer Linear Programming (ILP) Allocation: Inter-layer bit allocation is formulated as a knapsack-structured resource allocation problem, which is solved exactly using dynamic programming under a global bit budget.
  4. Intra-Layer Group-Wise Allocation: Within each layer, precision is further refined at the group level (group size $g=128$) using second-order Optimal Brain Surgeon (OBS) salience scoring.
Figure 2: Overview of the TASA framework. TASA jointly optimizes data composition and bit allocation through four steps: (1) finding the optimal calibration mix via training-free gradi- ent trace alignment; (2) computing a Multi-Objective Aggregation (MOA) sensitivity matrix across task-specific metrics; (3) determining inter-layer average bit-widths via Integer Linear Programming (ILP) under a global budget; and (4) refining intra-layer precision using group-wise OBS salience to yield the final quantized model.

Datasets

  • Calibration: WikiText-2 (general domain) and the GSM8K training set (task-specific math).
  • Evaluation: Eight standard benchmarks categorized into:
  • Reasoning: GSM8K (8-shot CoT), ARC-Challenge (25-shot), ARC-Easy.
  • Commonsense: HellaSwag (10-shot), WinoGrande (5-shot), PIQA.
  • Reading Comprehension: BoolQ.
  • Language Modeling: WikiText-2 PPL.

Key Insights and Ideas

  • The Perplexity Illusion: The layers critical for optimizing perplexity are concentrated at the input embeddings and output projections. In contrast, layers critical for mathematical and scientific reasoning lie squarely in the middle blocks of the network. The ordinal correlation between PPL-sensitive layers and reasoning-sensitive layers is statistically indistinguishable from zero (Kendall $\tau \approx 0$).
  • The Alignment-Diversity Tradeoff: More task-specific data improves activation alignment but degrades the conditioning of the calibration Hessian matrix. General-domain data acts as a structural regularizer, lifting suppressed trailing eigenvalues and protecting the model's generalization manifold. The highest quantization accuracy occurs at an intermediate mixing ratio, not at maximum alignment.
Figure 1: The Alignment-Diversity Tradeoff. Red curve (left axis): cosine similarity between calibration and target-task traces. Blue dashed curve (right axis): post-quantization aggregate accu- racy (Avg.). Optimal accuracy occurs at an intermediate mixing ratio, not at maximum alignment.

Key Results

  • Precision Inversion: On LLaMA-3-8B, TASA at an average precision of 3.5 bits matches or outperforms several competitive 4-bit uniform baselines (such as HQQ W4 and RTN W4) while using 12.5% fewer bits.
  • On Qwen2.5-7B, a 3.75-bit TASA model retains 99.1% of the full FP16 performance.
  • Preventing Reasoning Collapse: In aggressive 3-bit (W3) regimes where standard uniform baselines completely collapse on reasoning tasks (e.g., RTN scoring 0.0% on GSM8K), TASA b3.0 achieves 39.5% accuracy on GSM8K for LLaMA-3-8B, outperforming the strongest uniform W3 baseline by over 20 absolute points.

Limitations and Future Work

  • Scalability: The multi-objective profiling stage currently requires independent per-layer evaluations. While easily parallelizable due to layer independence, scaling to ultra-large models (e.g., 70B+) will necessitate distributed computing setups.
  • Discrete Search Space: The auto-calibration mechanism currently searches over a discrete grid of mixing ratios. Implementing a continuous relaxation strategy could yield finer, more optimal data mixtures.
  • Hardware/Kernel Support: The highly heterogeneous bit patterns generated by TASA are not yet natively supported by all standard inference kernels, though emerging mixed-precision decoding frameworks like vLLM and MLC-LLM are rapidly closing this gap.

Summary updated

BibTeX
@misc{wang2026beyond,
  author = {Fei Wang and Chao Xue and Taoran Liu and Li Shen and Ye Liu and ChangXing Ding},
  title = {{Beyond Activation Alignment:The Alignment-Diversity Tradeoff in Task-Aware LLM Quantization}},
  year = {2026},
  eprint = {2607.00908},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.00908},
}
Figure