Hugging Face Blog

Instruction-tuning Stable Diffusion with InstructPix2Pix

arXiv Machine Learning
4d ago

Chameleon: Dynamic Format Adapter for Efficient Diffusion

Chameleon is a post‑training quantization framework that keeps the bit‑width fixed but selects the number format as a discrete variable for each weight channel and activation layer, optionally refining the choice per diffusion timestep. It uses a small set of formats—INT8, FP8 variants, MXFP8, MXINT8 for activations and INT8, MXINT8, INT4, NF4, FP4, MXINT4, MXFP4 for weights—chosen via simple statistics or offline reconstruction error. Across SDXL, SDXL‑Turbo, and PixArt‑α on COCO‑2014, Chameleon delivers the lowest FID among all quantized methods, achieving near‑FP16 quality while enabling a mixed‑format kernel that runs 1.09× faster than FP16 with three‑times smaller weights.

By Arnab Sanyal, Sandeep Chinchali
arXiv Machine Learning
Oct 28

Error Diffusion Replaces Latent Weights: Training Binary-Weight Language Models on a Few Bits of Dithered State

The paper introduces an error‑diffusion (ED) optimizer that replaces the full‑precision latent copy of binary‑weight language models with a small 2‑8‑bit residual buffer, reducing training state per weight from 97 bits to 3‑9 bits—up to 19× less. ED accumulates unrealized weight updates in the buffer and flips the binary weight when the accumulated value crosses a threshold aligned with the quantization grid, enabling efficient training on large transformers with minimal loss compared to latent‑weight baselines. The method scales to models with up to 19 M parameters on enwik8 and 70 M on wikitext‑103, maintaining performance within a few percent of reference while allowing on‑device adaptation within a 275 MB memory budget.

By Pierre-Olivier Bonin
arXiv Computer Vision
Sep 25

Beyond Attention Masks: Instruction Anchoring for Efficient In-Context Diffusion Generation

The paper introduces AnchorCache, a parameter‑free token‑layout and attention‑mask design that decouples reference tokens from the target in in‑context diffusion transformers. By inserting static text anchors, the method conditions reference representations on the instruction during cache construction, enabling exact key‑value reuse across denoising steps. To restore quality lost by this structural change, the authors employ teacher‑forced velocity distillation followed by a brief on‑policy stage, achieving full‑attention quality while delivering up to 6.40× speedup in diffusion transformer inference across image, speech, and video benchmarks.

By Yangshuai Liu, Zheming Li, Jiaao Li, Kang He, Ziliang Lai, Zhitai Liu, Chengru Song
arXiv Machine Learning
Jun 19

Performance Analysis and Optimization of 3D Generative Diffusion Models across GPU Architectures

arXiv:2606. 19365v1 Announce Type: new Abstract: Diffusion models have become essential for high-fidelity 3D MRI synthesis, yet their deployment remains constrained by substantial GPU resource demands arising from hundreds of U-Net evaluations per sample and a highly heterogeneous kernel behavior.

By Jeeho Ryoo, Yongchan Jung, Muhammad Ali Khaliq, Weidong Zhang, Jiatong Han, Byeong Kil Lee