TL;DR
6Bit-Diffusion introduces a dynamic, inference-time mixed-precision quantization framework (NVFP4/INT8) combined with a temporal caching mechanism tailored for Video Diffusion Transformers (DiTs). By exploiting a newly discovered linear correlation between a block's temporal stability and its quantization sensitivity, the framework achieves a 1.92× end-to-end speedup and a 3.32× memory reduction with virtually no loss in video quality.
What Problem Does This Paper Address?
Video Diffusion Transformers (DiTs), such as CogVideoX and HunyuanVideo, generate stunningly realistic and temporally consistent videos. However, their massive parameter counts and computational overhead make them notoriously slow and memory-intensive—often causing Out-Of-Memory (OOM) errors on consumer hardware or requiring tens of minutes to generate a single short clip.
Post-Training Quantization (PTQ) is a popular training-free solution to compress weights and activations into low bit-widths. However, existing methods apply a static mixed-precision policy, fixing the bit-width across all denoising timesteps. The authors observe that a model's activation sensitivity to quantization fluctuates drastically over time.
As a result, static policies either cause severe visual flickering during highly sensitive timesteps or waste compression opportunities during stable ones. Furthermore, modern GPU architectures (like NVIDIA Blackwell) have dropped support for INT4 Tensor Cores in favor of native 4-bit floating-point (NVFP4) formats, leaving a gap for quantization frameworks optimized for these new hardware primitives.
Methods
To address these limitations, the authors propose a unified spatiotemporal acceleration framework consisting of three core components:
- Dynamic Mixed-Precision Quantization (DMPQ): Instead of fixing precision offline, DMPQ dynamically routes activations to either ultra-low precision NVFP4 or robust INT8 at each timestep. It uses a lightweight online predictor based on the discovery that a linear layer's quantization sensitivity at the current timestep ($t$) linearly correlates with the relative $L_1$ difference between the block's input and output at the previous timestep ($t-1$).
- Temporal Delta Cache (TDC): Recognizing that the residual (delta) of a Transformer block exhibits high similarity across adjacent timesteps, TDC adaptively skips redundant block computations when temporal similarity is high, simply reusing cached delta updates.
- Purified Delta Refresh (PDR): Naively combining quantization and caching causes quantization noise to compound across frames, leading to severe "error drift" and degraded video quality. PDR acts as an outlier-aware circuit breaker, spatially sampling inputs to detect extreme outliers and refreshing the cache with high-fidelity, unquantized features (FP16/BF16) when necessary.
Additionally, the framework integrates an online Block Hadamard Transform into custom CUDA kernels to smooth out activation outliers on-the-fly before quantization.
Datasets
The authors evaluated their framework on two scale variants of the state-of-the-art video generation model: CogVideoX-2B and CogVideoX-5B.
- Calibration: A small set of 100 randomly sampled prompts from EvalCrafter was used to pre-fit the linear regression parameters offline.
- Evaluation: The framework was comprehensively tested using the VBench benchmark suite (covering 8 major dimensions including Aesthetic Quality and Overall Consistency) and the EvalCrafter pipeline (measuring text-video alignment via CLIPSIM, semantic consistency via CLIP-Temp, and fine-grained motion via Flow-score).
Key Insights and Ideas
- The Stability-Sensitivity Link: The ultimate "aha" moment of the paper is that a block's internal quantization error can be accurately predicted by measuring how much that block modified its input in the previous step. If a block is highly volatile, it demands INT8 precision; if it is stable, it can safely be compressed to NVFP4.
- Hardware-Native Synergy: By designing the framework around NVFP4 and INT8, the authors align algorithmic compression directly with the hardware capabilities of modern GPUs, moving away from legacy formats like INT4 that lack native support on newer architectures.
- Quantization and Caching are Interdependent: Caching and quantization cannot be treated as orthogonal problems. Without the error-isolation provided by PDR, the combination of the two techniques quickly destroys video structure due to linear noise amplification.
Key Results
- Efficiency Gains: The complete framework ("Ours Full") achieved a 1.92× end-to-end acceleration and a 3.32× GPU memory reduction on CogVideoX. Because skipped blocks effectively use 0-bit activations, the overall average activation bit-width drops to just 6.035 bits.
- High Fidelity Retention: On the VBench benchmark for CogVideoX-2B, DMPQ achieved an Aesthetic Quality score of 0.5437, significantly outperforming traditional static W4A6 baselines and even matching or exceeding state-of-the-art static W4A8 methods like SmoothQuant (0.5332) and ViDiT-Q (0.5332).
- Visual Consistency: Qualitative results demonstrate that while static methods introduce geometric distortions (e.g., deforming objects) or semantic hallucinations under aggressive W4A6 compression, 6Bit-Diffusion preserves fine-grained details and global spatiotemporal consistency comparable to the uncompressed FP16 baseline.
Limitations and Future Work
Despite the impressive speedups, the authors note that the framework's acceleration is naturally bounded by the attention mechanism, which consumes over half of the total execution time and is not the primary target of this linear-layer quantization approach. Additionally, the linear regression parameters ($\alpha$ and $\beta$) must still be pre-fitted offline during a calibration phase.
Future work could explore combining this dynamic spatiotemporal framework with advanced attention compression techniques, or extending the dynamic precision routing mechanism to other generative architectures beyond video DiTs.
Summary updated