Tail-Aware HiFloat4: W4A4 Post-Training Quantization for Wan2.2

Zhanfeng Feng, Shuai Guo, Xin Di, Long Peng, Yang Cao, Zhengjun ZhaarXiv 2026

TL;DR

Tail-Aware HiFloat4 introduces a post-training quantization (PTQ) pipeline designed to compress the weights and activations of the Wan2.2 video generation model down to 4-bit (W4A4) precision. By replacing conservative maximum-value calibration with a robust percentile-based approach, the method mitigates the impact of activation outliers, preserving motion smoothness and aesthetic quality without requiring model retraining.

What Problem Does This Paper Address?

Diffusion transformers (DiTs) like Wan2.2 have pushed the boundaries of high-resolution video synthesis, but their massive computational and memory footprints make deployment expensive. While low-bit quantization (such as W4A4) can drastically reduce memory traffic and accelerate inference, applying it to video diffusion models is notoriously difficult.

Activations in these models vary wildly across denoising timesteps, spatial/temporal tokens, and text prompts. Traditional calibration techniques typically use the absolute maximum value to determine the quantization scale. However, this conservative strategy wastes the extremely limited 4-bit representation range on rare outlier values (the "tails" of the distribution), leaving the rest of the network's data heavily degraded by rounding noise. Conversely, clipping too aggressively can destroy semantic details. This paper tackles the challenge of balancing this trade-off specifically for the HiFloat4 numerical format.

Methods

The authors build upon the public ViDiT-Q post-training quantization framework and adapt it to the dual-transformer backbone of Wan2.2-I2V-A14B.

The core components of their method include:

  • Tail-Aware Percentile Calibration: Instead of tracking the absolute maximum of absolute activation values ($a^{\max}$), the pipeline collects an empirical high-percentile statistic ($a^p$, where $p$ is a high percentile like 99.9%). This allows a controlled fraction of rare activation extremes to be clipped, allocating significantly more resolution to the main body of the activation distribution.
  • Channel Balancing: Using a SmoothQuant-style approach, a diagonal mask is constructed using both weight magnitudes and the percentile-calibrated activation statistics to redistribute the dynamic range between weights and activations before quantization.
  • Mixed-Precision Strategy: To maintain model stability, sensitive boundary modules—such as embedding layers, normalization layers, and output heads—are kept in high-precision BF16, while 800 main linear layers across both transformer modules are quantized to W4A4.
  • Compact PTQ State: Rather than saving a duplicated, fully transformed copy of the massive weights, the system saves a compact checkpoint containing only the per-layer channel masks and quantization descriptors, which are applied to the base model at inference time.
Overview of the Tail-Aware HiFloat4 PTQ pipeline consisting of calibration, quantization, and evaluation stages.

Datasets

  • Calibration: A small subset of 16 prompts sampled from the OpenS2V-5M dataset. A fixed placeholder blank image is used as the image condition during both calibration and inference to isolate the effects of text-to-video quantization.
  • Evaluation: The quantized model is evaluated using VBench, a comprehensive benchmark suite designed to measure multi-dimensional video generation quality.

Key Insights and Ideas

  • Systematic Noise vs. Outliers: The authors observe that low-bit video generation quality is far more sensitive to systematic rounding noise spread across millions of tokens and frames than it is to a few clipped activation extremes.
  • The Subject Consistency Bottleneck: Quantization errors in attention and feed-forward projections accumulate over successive denoising steps. Interestingly, this does not severely disrupt global motion or frame-level aesthetics; instead, it manifests primarily as "subject drift," local blur, and object inconsistency across frames.

Key Results

The authors evaluated their W4A4 configuration against the full-precision BF16 baseline using VBench metrics:

Metric BF16 Baseline HiFloat4 W4A4 Delta
Imaging quality 0.7027 0.6507 -0.0520
Aesthetic quality 0.5456 0.5458 +0.0002
Overall consistency 0.2263 0.2308 +0.0045
Subject consistency 0.9331 0.5324 -0.4007
Motion smoothness 0.9923 0.9803 -0.0120
Unweighted Mean 0.6800 0.5880 -0.0920

Qualitatively, the W4A4 model successfully preserves the overall scene layout and generates plausible motion. However, fine-grained subject details and local geometries remain highly sensitive to 4-bit activation quantization, explaining the sharp drop in subject consistency.

Limitations and Future Work

  • Hyperparameter Sensitivity: The performance of the model relies heavily on the choice of calibration prompts and the percentile hyperparameter. If the calibration prompts do not cover the activation modes seen during evaluation, quality may degrade.
  • Unresolved Channel Imbalance: The current implementation does not utilize advanced rotation paths (like those featured in the original ViDiT-Q), meaning some channel imbalances remain unaddressed.
  • The Identity Challenge: Preserving fine-grained subject identity under strict 4-bit activation constraints remains an open problem. Future work will focus on identifying identity-sensitive layers for selective high-precision retention or advanced rotation strategies.

Summary updated

BibTeX
@misc{feng2026tail,
  author = {Zhanfeng Feng and Shuai Guo and Xin Di and Long Peng and Yang Cao and Zhengjun Zha},
  title = {{Tail-Aware HiFloat4: W4A4 Post-Training Quantization for Wan2.2}},
  year = {2026},
  eprint = {2605.26628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.26628},
}
Figure