This paper introduces ADDP (Alternating Denoising Diffusion Process), a novel framework designed to bridge the long-standing gap between image recognition and image generation. While recent "general-purpose" models have tried to tackle both, they usually sacrifice performance on "dense" recognition tasks like object detection. ADDP solves this by alternating between pixel and token spaces during training.
TL;DR
ADDP is the first representation learning framework to achieve state-of-the-art results in both high-fidelity image generation and dense recognition tasks (like detection and segmentation). It achieves this by using an alternating diffusion process that forces the model to perceive raw pixels while reconstructing discrete visual tokens.
What Problem Does This Paper Address?
Historically, computer vision has been split into two camps: recognition (understanding what's in an image) and generation (creating new images).
Recent attempts to unify them often rely on Vector-Quantized (VQ) tokens—discrete "visual words" that represent patches of an image. While VQ tokens are excellent for generation because they abstract away noisy, imperceptible details, they are "spatially insensitive." They discard the fine-grained pixel information necessary for dense recognition tasks like object detection (finding boundaries) and semantic segmentation (labeling every pixel).
As illustrated below, models operating purely in token space struggle with spatial sensitivity, while models operating purely in pixel space often suffer from lower training efficiency for generation. ADDP combines the strengths of both paradigms.
Methods
The core innovation is the Alternating Denoising Diffusion Process (ADDP). Instead of denoising only in one space, ADDP bridges the pixel and token worlds:
- Diffusion (The Noise): The process starts by taking an image and gradually masking out its VQ tokens (the "diffusion" part).
- Alternating Denoising (The Bridge): At each step of the reverse process:
- Token-to-Pixel: A pre-trained VQ decoder takes the current set of tokens and decodes them into a noisy "pixel-space" image.
- Pixel-to-Token: A learnable ViT-based encoder-decoder takes this noisy image as input and predicts the next set of VQ tokens.
- Training Objective: The model is trained to minimize the difference between its predicted tokens and the original ground-truth tokens.
By forcing the encoder to process noisy pixels to predict tokens, it learns a representation that is both robust to noise (generative) and highly sensitive to spatial structures (discriminative).
Key Insights and Ideas
- Pixels for Perception, Tokens for Creation: The authors argue that pixels are essential inputs for recognition, while VQ tokens are superior reconstruction targets for generation. ADDP is the "glue" that lets a single model do both.
- Reliable vs. Unreliable Tokens: During the denoising steps, the model distinguishes between "reliable" tokens (those already correctly predicted) and "unreliable" tokens (placeholders used to help the pixel decoder).
- WeightedSum Mapping: To improve the quality of the intermediate noisy images during training, the authors found that using a weighted sum of codebook embeddings (based on predicted probabilities) performed better than simply picking the most likely token (ArgMax).
Key Results
ADDP demonstrates that you don't have to choose between a good generator and a good recognizer. Evaluated on ImageNet-1k, COCO, and ADE20k, the framework achieved impressive milestones:
- Image Generation: On ImageNet-1k unconditional generation, ADDP achieved an FID of 7.6, significantly outperforming the previous unified state-of-the-art, MAGE (FID 9.1).
- Dense Recognition: This is where ADDP truly shines. On COCO object detection, it achieved 54.6 AP, nearly doubling the performance of VQ-token-based unified models like MAGE (31.4 AP).
- Semantic Segmentation: On ADE20k, it reached 54.3 mIoU, compared to 43.1 for MAGE.
- Generalization: The framework is "architecture-agnostic," meaning it works well with both Vision Transformers (ViT) and standard CNNs like ResNet-50.
Limitations and Future Work
- Tokenizer Dependency: ADDP currently relies on a fixed, pre-trained VQ Encoder-Decoder. This means the model's ultimate generative diversity and resolution are capped by the quality of that underlying tokenizer.
- Discrete vs. Continuous: The current model uses discrete diffusion. Integrating continuous diffusion processes could be a promising future direction.
- Resolution Scaling: While successful at standard resolutions (256x256), scaling the alternating process to very high resolutions remains a computational challenge.
Summary updated