Abstract
Text-to-image diffusion models are computationally intensive, often requiring dozens of forward passes through large transformer backbones. For instance, Stable Diffusion XL generates high-quality images with 50 evaluations of a 2.6B-parameter model, an expensive process even for a single batch. Few-step diffusion models reduce this cost to 2-8 denoising steps but still depend on large, uncompressed U-Net or diffusion transformer backbones, which are often too costly for full-precision inference without datacenter GPUs. These requirements also limit existing post-training quantization methods that rely on full-precision calibration. We introduce Q-Sched, a new paradigm for post-training quantization that modifies the diffusion model scheduler rather than model weights. By adjusting the few-step sampling trajectory, Q-Sched achieves full-precision accuracy with a 4x reduction in model size. To learn quantization-aware pre-conditioning coefficients, we propose the JAQ loss, which combines text-image compatibility with an image quality metric for fine-grained optimization. JAQ is reference-free and requires only a handful of calibration prompts, avoiding full-precision inference during calibration. Q-Sched delivers substantial gains: a 15.5% FID improvement over the FP16 4-step Latent Consistency Model and a 16.6% improvement over the FP16 8-step Phased Consistency Model, showing that quantization and few-step distillation are complementary for high-fidelity generation. A large-scale user study with more than 80,000 annotations further confirms Q-Sched's effectiveness on both FLUX.1[schnell] and SDXL-Turbo.
Introduction
Text-to-image diffusion models like Stable Diffusion XL (SDXL) and FLUX.1 have revolutionized content creation but remain notoriously resource-hungry. While "few-step" distillation techniques—such as Latent Consistency Models (LCM) or SDXL-Turbo—have successfully reduced the number of denoising steps from 50 down to 2–8, the underlying model weights remain massive. These models typically require high-end datacenter GPUs for efficient inference, limiting their accessibility on consumer hardware.
Standard quantization—reducing weight precision from 16-bit (FP16) to 8-bit or 4-bit—is the primary solution for shrinking these models. However, few-step models are incredibly sensitive to the "noise" introduced by quantization. Because they have so few steps to correct errors, even tiny distortions in the denoising path lead to significant artifacts, color shifts, and hallucinations. Existing post-training quantization (PTQ) methods often require a full-precision "teacher" model for calibration, which is both slow and memory-intensive.
Methodology: Quantization-Aware Scheduling
Q-Sched introduces a novel shift in perspective: instead of attempting to fix the quantized weights, it optimizes the sampling trajectory to accommodate the errors introduced by quantization. This approach is built on two core innovations:
1. Learnable Schedule Pre-Conditioning
Rather than re-training the billions of parameters in a U-Net or Transformer backbone, Q-Sched introduces just two learnable scalar coefficients: $c_x$ and $c_\epsilon$. These scalars are applied to the image and noise prediction terms within the sampling equation. By adjusting these values, the model can "steer" around the errors introduced by quantization, finding a new path through the noise space that the quantized model can follow accurately.
2. JAQ (Joint Alignment-Quality) Loss
To optimize these coefficients, the authors developed the JAQ loss, a reference-free objective function that combines:
- Text-Image Alignment: Utilizing metrics like CLIPScore to ensure the generated image remains faithful to the input prompt.
- Perceptual Quality: Utilizing metrics like CLIP-IQA or HPSv2 to ensure the image is sharp and free of artifacts.
Because Q-Sched only tunes two parameters, it is extremely lightweight. It can be calibrated using as few as 5 to 20 prompts and does not require access to the original full-precision model during the optimization process.
Experimental Results
The researchers evaluated Q-Sched across major benchmarks including FLUX.1[schnell], SDXL-Turbo, and Stable Diffusion v1.5. Evaluation sets included COCO-30k and MJHQ-30k, alongside a massive user study involving over 80,000 human annotations via the Rapidata platform.
Key Findings
- Superior Fidelity: Q-Sched delivered a 15.5% FID improvement over the FP16 4-step LCM and a 16.6% improvement over the 8-step Phased Consistency Model (PCM). Surprisingly, by optimizing for the JAQ loss, the scheduler often bypasses artifacts present in the original distilled FP16 models.
- Memory Efficiency: The framework achieves full-precision accuracy with a 4x reduction in model size, successfully moving from FP16 to W4A8 (4-bit weights, 8-bit activations).
- Human Preference: In head-to-head human trials, Q-Sched was consistently preferred over other state-of-the-art quantization methods like MixDQ and SVDQuant, sitting on the Pareto frontier for the quality-vs-size trade-off.
Conclusion and Future Work
Q-Sched demonstrates that quantization and few-step distillation are complementary strategies. By changing the "map" (the scheduler) rather than the "model" (the weights), high-fidelity generation becomes possible on significantly more constrained hardware.
While highly effective, limitations remain. Like many diffusion models, Q-Sched can struggle with complex scenes involving multiple distinct subjects or perfectly legible text. Future work may involve adapting the framework for other sampling architectures beyond TCD-style samplers and automating the hyperparameter tuning for the JAQ loss to further improve robustness.
Summary updated