← Latest papers
💻 computer science

HQ-DM: Single Hadamard Transformation-Based Quantization-Aware Training for Low-Bit Diffusion Models

The paper introduces HQ-DM, a novel Quantization-Aware Training framework that utilizes a Single Hadamard Transformation to effectively mitigate activation outliers and prevent weight outlier amplification, thereby enabling high-performance low-bit quantization (W4A4 and W4A3) for diffusion models with significant improvements in image generation quality over existing state-of-the-art methods.

Original authors: Shizhuo Mao, Hongtao Zou, Qihu Xie, Song Chen, Yi Kang

Published 2026-08-12
📖 4 min read☕ Coffee break read

Original authors: Shizhuo Mao, Hongtao Zou, Qihu Xie, Song Chen, Yi Kang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a digital artist to paint a masterpiece, but instead of giving them a full studio with high-definition brushes, you hand them a tiny, low-resolution sketchbook. This is the challenge facing "diffusion models," a type of artificial intelligence that creates stunning images by slowly turning random static noise into clear pictures, step by step. Think of it like a sculptor who starts with a giant block of marble and chips away tiny pieces over and over until a statue emerges. The problem is that this process is incredibly heavy; it requires massive computers and a lot of memory, making it hard to run on everyday devices like phones or laptops.

To fix this, scientists use a trick called "quantization." Imagine taking a high-definition photo and shrinking it down to a pixelated version that takes up less space. In the world of AI, this means converting the model's super-precise numbers (which use a lot of memory) into smaller, simpler numbers (using fewer bits). However, there's a catch: when you shrink these numbers too much, the AI gets confused by "outliers." These are rare, extreme values in the data that act like a single, blindingly bright star in a dark sky. If you try to fit that star into a small, low-resolution grid, it distorts the whole picture, causing the AI to produce blurry or weird images. The big question is: how do we shrink the model without losing the details that make the art look good?

This is where a new study called HQ-DM steps in with a clever solution. The researchers found that the "outliers" causing the trouble in diffusion models are like stubborn guests at a party who are standing in the doorway, blocking everyone else. Previous methods tried to squeeze these guests in or move the furniture around, but it often made the room messier. The HQ-DM team discovered a better way: they use a mathematical tool called a Single Hadamard Transformation. You can think of this as a magical "shuffling" technique. Instead of trying to force the bright star into a small box, they spin the entire sky around so that the star's light is spread out evenly across the whole canvas. Suddenly, no single point is too bright to handle, and the AI can easily shrink the numbers without losing the image's quality.

What makes this approach special is how it handles the "weights" (the model's memory) versus the "activations" (the data moving through the model). Older methods tried to shuffle both, but this often created new bright spots in the memory, making things worse. HQ-DM is smarter: it only shuffles the moving data (activations) right before it gets shrunk, leaving the memory untouched. This is like rearranging the guests in the hallway without moving the furniture in the living room. Because of this, the method works perfectly with standard computer chips that are designed for fast, simple math, allowing the AI to run much faster.

The results of this "shuffling" trick are impressive. When the researchers tested their method on a popular image generator called LDM-4 using the ImageNet dataset (a collection of 256×256 pixel images), they found that their model could be shrunk down to very small sizes without losing its artistic touch. Specifically, when they used a very aggressive setting where both the memory and the data were shrunk to just 4 bits (W4A4), their method improved the image quality score (Inception Score) by 12.8% compared to the best previous method. Even more dramatically, when they pushed the data down to just 3 bits (W4A3)—a level where most other methods fail completely—their model improved the score by a staggering 467.73%.

The paper also shows that this method is efficient. It doesn't take much longer to train the model, and because it plays nicely with standard computer hardware, it can run about 1.10 to 1.14 times faster than previous attempts at similar low-bit quantization. The researchers tested this on different types of models, including those based on "Transformers" (a different AI architecture), and found that the "shuffling" trick worked just as well there. In short, HQ-DM suggests that by simply rearranging the data before shrinking it, we can make powerful AI art generators small enough to run on the devices we use every day, without sacrificing the beauty of the images they create.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →