QuoRem: One Quotient-Remainder Parent for Temporal Precision Switching in Diffusion Transformers

Junzhao Huang, Tai Yu, Yiming Zhou, Zhenhua Xu, Yunyang Lu, Zhouzhuo Guo, Changchun ZhouarXiv 2026

TL;DR

Generating crisp images with massive Diffusion Transformers (DiTs) usually forces an annoying choice: run fast in 4-bit and get blurry details, run crisp in 8-bit and sacrifice speed, or swap between two models and run out of GPU memory. QuoRem solves this by packing both an exact 8-bit model and an unbiased 4-bit model into a single 1-byte-per-weight checkpoint, dynamically switching precisions across generation steps. You get 8-bit visual fidelity at 4-bit speeds—up to 2.18× faster than standard 16-bit baselines—all while cutting memory usage in half compared to dual-model approaches.

What Problem Does This Paper Address?

Unlike Large Language Models (LLMs), which generate one token at a time and are bottlenecked by memory bandwidth, Diffusion Transformers process thousands of image patches simultaneously at every denoising step. They are compute-bound. To actually speed them up on modern GPUs, you have to quantize both weights and activations (like 8-bit W8A8 or 4-bit W4A4) so they can run on specialized integer Tensor Cores.

Using 8-bit everywhere leaves 4-bit speedups on the table, while using 4-bit everywhere ruins global image layout and fine textures. Because different denoising steps have different sensitivities to quantization noise, switching between 8-bit and 4-bit mid-generation is the sweet spot. However, existing switching methods either stitch together two different models (which misaligns features and alters object poses) or keep two separate checkpoints in VRAM (which pushes a 12B model like FLUX.1 past 24 GB, forcing glacial PCIe memory swaps). And if you try to naively slice 4-bit weights directly out of an 8-bit checkpoint by dropping the lower bits, rounding biases pull all your weights negative and wreck the image.

Visual comparison showing QuoRem preserving BF16 image fidelity at 1.00 byte per weight while baselines alter pose, blur details, or inflate memory.

Methods

QuoRem runs both W8A8 and W4A4 from a single 1.00 byte-per-weight (B/w) parent checkpoint without needing extra low-rank adapter branches. It pulls this off through four tightly integrated ideas:

  1. Offset Quotient-Remainder (Q-R) Coding: Offline, QuoRem clips 8-bit integer weights to 248 levels ([-128, 119]) and adds an offset of +8 before dividing by 16. This losslessly splits every 8-bit weight into a signed 4-bit quotient plane (Q) and an unsigned 4-bit remainder plane (R). That +8 shift centers the dropped remainder around zero, shrinking slicing bias by 15× while allowing exact 8-bit reconstruction.
  2. Rank-Zero Cross-Plane Mean Restoration: In DiTs, conditioning layers (AdaLN) inject a massive activation shift shared across all image tokens. Standard rotation tricks flatten outliers within tokens, leaving this shared mean untouched to eat up precious 4-bit dynamic range. Online, QuoRem subtracts this token mean before 4-bit quantization, then restores it cleanly using a single lightweight vector-matrix product (GEMV) across both Q and R.
  3. Waterline Scheduling: Instead of rigid "4-bit early" or "4-bit late" schedules, a fast one-pass profiler evaluates step sensitivity along the trajectory. It models both early layout amplification and late texture exposure, assigning the safest "valley" steps to 4-bit while protecting critical steps in 8-bit.
  4. In-Place PlaneFold: INT4 Tensor Cores want split [Q; R] planes, while INT8 Tensor Cores want combined bytes Z. Rather than unpacking weights on every step or doubling memory, PlaneFold rearranges the buffer in-place only when a precision switch occurs, using a tiny single-layer scratchpad.
Figure 2. QuoRem architecture and PlaneFold layout. Top: One 1.00 B/w bank maps split planes [Q; R] bijectively to INT8 bytes Z via in-place PlaneFold at precision switches. Bottom-left: W4 streams Q on INT4 Tensor Cores and restores the token mean µ across Q + R (r = 0). Bottom-right: W8 directly streams Z without per-step unpacking.

Datasets

Because QuoRem is a post-training quantization (PTQ) framework, no retraining datasets are needed. Following standard diffusion quantization protocols, the authors evaluate image generation quality and trajectory fidelity on 998 captions from MS-COCO (using 256 captions for ablations, and just 4 calibration prompts to profile the Waterline schedule). No new benchmarks are introduced.

Key Insights and Ideas

  • Denoising sensitivity is a two-ended bathtub: Perturbing a single step to 4-bit reveals why one-way schedules fail. Early steps form global layout and amplify injected noise by up to 49× (shifting poses), middle steps naturally damp high-frequency errors into a safe valley, and the final steps lack remaining steps to damp noise, passing raw 4-bit blur straight to the output.
Figure 3. Two-ended step sensitivity on SANA-1.6B (one W4 step per W8 run, 16 prompts). (a) Outputs and |Diff.| vs. W8: early W4 shifts layout; late W4 blurs texture. (b) Amplification vs. in- jected ∥δzj∥(median, IQR): 49× early gain and late uncontracted injection. (c) One-pass Ψj tracks ∥δzN∥(ρ = 0.91).
  • Over half of activation energy is just a shared offset: Even after standard Block-Hadamard rotations flatten channel outliers, 52.5% of activation energy in SANA-1.6B sits in the cross-token average. Centering this mean across tokens—and restoring it against the full 8-bit (Q, R) parent—makes expensive 16-bit low-rank adapters (like those in SVDQuant) redundant, since the remainder plane R already holds the weight residual!
  • Shared parents prevent "pose drift": Because QuoRem's 8-bit and 4-bit views come from the exact same weights in the same rotated coordinate frame, internal layer representations stay nearly identical (0.96–1.00 CKA similarity) across switches, completely avoiding the jarring layout shifts seen when stitching smaller sibling models.

Key Results

Tested on a single 24 GB NVIDIA RTX A5000 across four DiT backbones (SANA-1.6B, SD3.5-Medium, SD3.5-Large, and 12B FLUX.1-dev):

  • Halved Memory: QuoRem fits 12B FLUX.1-dev comfortably in 11.29 GiB (1.00 B/w), whereas dual-checkpoint TMPDiff requires 29.6 GiB, overflowing the 24 GB GPU and swapping over PCIe.
  • Real Speedups: With 50% of steps in 4-bit, QuoRem runs 2.18× faster than BF16 on SANA-1.6B and 1.64× faster on FLUX.1-dev (beating TMPDiff's speed by 1.49× and 1.32×, respectively). PlaneFold switching overhead takes less than 0.61% of total loop time.
  • State-of-the-Art Fidelity: QuoRem achieves the best PSNR, SSIM, and LPIPS across every tested backbone and 4-bit step share. On SD3.5-Medium at 50% 4-bit steps, it slashes matched-BF16 FID from 48.95 (TMPDiff) down to 30.56.

Limitations and Future Work

While the authors do not include a dedicated limitations section, a couple of practical trade-offs emerge in the experiments:

  • Rotation overhead on pure 8-bit steps: Because QuoRem uses online Block-Hadamard rotations and group scales to make 4-bit steps shine, its pure W8A8 mode is slightly slower than unrotated W8A8 kernels (e.g., 80.0 ms vs. 64.0 ms per step on SANA-1.6B), though unrotated baselines suffer ~15 dB worse PSNR when pushed to low bits.
  • Calibration-dependent shortcuts: An offline optimization to skip online mean reductions in feed-forward layers (Static FF-Shift) works well on SD3.5, but fails validation gates on SANA and FLUX, requiring online vector reductions there—and slightly raising late-step velocity error on SD3.5 (which Waterline subsequently has to route around).

Summary updated

BibTeX
@misc{huang2026quorem,
  author = {Junzhao Huang and Tai Yu and Yiming Zhou and Zhenhua Xu and Yunyang Lu and Zhouzhuo Guo and Changchun Zhou},
  title = {{QuoRem: One Quotient-Remainder Parent for Temporal Precision Switching in Diffusion Transformers}},
  year = {2026},
  eprint = {2611.36084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36084},
}
Figure