FourTune: Towards Fully 4-Bit Efficient Post-Training for Diffusion Models

Bowen Xue, Zihan Min, Xingyang Li, Zhekai Zhang, Haocheng Xi, Lvmin Zhang, Maneesh Agrawala, Jun-Yan Zhu, Song Han, Yujun Lin, Muyang Li

TL;DR

FourTune is the first framework to enable fully 4-bit post-training (weights, activations, and gradients) for large-scale diffusion models. By combining a "numerical stabilizer" to handle outliers with hardware-efficient kernels, it achieves a 2.25× reduction in memory and over 2× speedup compared to standard LoRA, all while matching the image quality of full-precision training.

What Problem Does This Paper Address?

As diffusion models scale up—moving from the 860M parameters of Stable Diffusion 1.5 to the 12B of FLUX.1 and beyond—the cost of "post-training" (fine-tuning for specific styles, human preferences, or distillation) has become prohibitive.

Current solutions fall into two camps, both with flaws:

  1. LoRA (Low-Rank Adaptation): Reduces the number of trainable parameters, but the massive "frozen" backbone still sits in GPU memory in high precision (BF16), leading to huge memory footprints.
  2. QLoRA: Quantizes the backbone weights to 4-bit to save memory, but it must "dequantize" them back to 16-bit for every calculation. This often makes training slower than standard LoRA due to the computational overhead of constant conversion.

The authors identify a "memory-speed trade-off" that prevents researchers from fine-tuning state-of-the-art models on consumer-grade hardware. FourTune aims to break this by staying in the 4-bit domain for the entire training pipeline.

Methods

The core of FourTune is the W4A4G4 paradigm—meaning Weights, Activations, and Gradients are all handled in 4-bit precision. To make this work without the model "exploding" or losing quality, the authors introduced three key innovations:

  • Triple-Branch Hybrid Pipeline: Instead of just a backbone and a LoRA adapter, FourTune uses three branches.
  • A Frozen 4-bit Backbone for bulk computation.
  • A Frozen Numerical Stabilizer: Using SVD decomposition, they isolate the high-magnitude "outlier" weights that are most sensitive to quantization and keep them in high precision.
  • A Trainable LoRA Adapter: The actual learning happens here in 16-bit.
  • Block-wise Quantization: Standard quantization is hard to use during backpropagation because transposing a quantized matrix misaligns the scaling factors. FourTune partitions weights into small $16 \times 16$ blocks, allowing the hardware to fetch scales and data simultaneously, regardless of whether the access is transposed.
  • Customized Kernel Fusion: They wrote specialized GPU kernels that fuse multiple operations (like LoRA down-projection and backbone multiplication) into a single step. This reduces the "memory wall" problem where the GPU spends more time moving data than actually calculating.

Datasets

The researchers evaluated FourTune across three major post-training tasks:

  • Customization: A hybrid benchmark using Custom Diffusion and web-collected data focusing on Human Identity, Artistic Style, and General Subjects.
  • Reinforcement Learning (RL): Used the HPDv2 (Human Preference Dataset) to align models with human aesthetic choices.
  • Distillation: Used COCO-10k and HPSv2 prompts to compress the multi-step diffusion process into a faster 4-step "student" model.
  • Reconstruction: Used MJHQ-30K to verify that the 4-bit quantization didn't degrade the base model's fidelity.

Key Insights and Ideas

  • The Outlier Problem: The "aha moment" here is that you don't need high precision for everything. A tiny fraction of weights (the outliers) causes most of the quantization error. By isolating these into a tiny, frozen "stabilizer" branch, the rest of the model can run in "aggressive" 4-bit without losing stability.
  • Native 4-bit is Faster: Unlike QLoRA, which is a memory-saving hack, FourTune leverages the native 4-bit Tensor Cores in modern GPUs (like the NVIDIA Blackwell architecture). This turns quantization from a computational burden into a massive speed boost.
  • Granularity Matters: Moving from "group-wise" to "block-wise" quantization (16x16) was the key to making the backward pass (gradient calculation) efficient. It solves the mathematical misalignment that usually makes 4-bit backprop a nightmare.

Key Results

Testing on the 12B parameter FLUX.1-dev and the 20B Qwen-Image, the results were striking:

  • Memory Efficiency: Reduced GPU memory consumption by 2.25× compared to BF16 LoRA.
  • Training Speed: Achieved a 2.27× speedup over BF16 LoRA and a 2.79× speedup over NF4 QLoRA on NVIDIA RTX 5090 GPUs.
  • Quality Parity: In qualitative "blind tests" and quantitative metrics (like CLIP score and FID), FourTune's 4-bit images were virtually indistinguishable from those produced by full-precision 16-bit training.
  • Generalization: While optimized for the newest Blackwell GPUs (NVFP4 format), they demonstrated that the method also provides a 2.6× speedup using INT4 on older Ada Lovelace (RTX 4090) hardware.

Limitations and Future Work

  • Hardware Specificity: To get the absolute maximum benefit (the 2.79x speedup), you currently need the latest NVIDIA Blackwell architecture which supports native 4-bit floating point (NVFP4).
  • Stabilizer Overhead: While the stabilizer branch is small, it does add a slight amount of complexity to the model architecture compared to a "pure" 4-bit approach.
  • Future Directions: The authors suggest that this "stabilized" 4-bit approach could eventually be extended beyond post-training to the initial pre-training of giant models, potentially saving millions in compute costs.

Summary updated

BibTeX
@inproceedings{xue2026fourtune,
  author = {Bowen Xue and Zihan Min and Xingyang Li and Zhekai Zhang and Haocheng Xi and Lvmin Zhang and Maneesh Agrawala and Jun-Yan Zhu and Song Han and Yujun Lin and Muyang Li},
  title = {{FourTune: Towards Fully 4-Bit Efficient Post-Training for Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=RpwnrBkht2},
}
Figure