ADDP: Learning General Representations for Image Recognition and Generation with Alternating Denoising Diffusion Process

Changyao Tian, Chenxin Tao, Jifeng Dai, Hao Li, Ziheng Li +5 more
2/12/2026

No official code found. Best implementation: ChangyaoTian/ADDP (12 stars, last commit 2024-03-27).

Abstract

Image recognition and generation have long been developed independently of each other. With the recent trend towards general-purpose representation learning, the development of general representations for both recognition and generation tasks is also promoted. However, preliminary attempts mainly focus on generation performance, but are still inferior on recognition tasks. These methods are modeled in the vector-quantized (VQ) space, whereas leading recognition methods use pixels as inputs. Our key insights are twofold: (1) pixels as inputs are crucial for recognition tasks; (2) VQ tokens as reconstruction targets are beneficial for generation tasks. These observations motivate us to propose an Alternating Denoising Diffusion Process (ADDP) that integrates these two spaces within a single representation learning framework. In each denoising step, our method first decodes pixels from previous VQ tokens, then generates new VQ tokens from the decoded pixels. The diffusion process gradually masks out a portion of VQ tokens to construct the training samples. The learned representations can be used to generate diverse high-fidelity images and also demonstrate excellent transfer performance on recognition tasks. Extensive experiments show that our method achieves competitive performance on unconditional generation, ImageNet classification, COCO detection, and ADE20k segmentation. Importantly, our method represents the first successful development of general representations applicable to both generation and dense recognition tasks. Code is released at \url{https://github.com/ChangyaoTian/ADDP}.

View on arXivView PDF

Code Implementations(1)

ChangyaoTian/ADDPCommunity100%

The official implementation of ADDP (ICLR 2024)

120Shell, PythonMar 14, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{tian2026addp,
  title  = {ADDP: Learning General Representations for Image Recognition and Generation with Alternating Denoising Diffusion Process},
  author = {Changyao Tian and Chenxin Tao and Jifeng Dai and Hao Li and Ziheng Li and Lewei Lu and Xiaogang Wang and Hongsheng Li and Gao Huang and Xizhou Zhu},
  year   = {2026},
  eprint = {2306.05423},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.05423},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.05423.svg)](https://codeofpaper.com/paper/2306.05423)

Discussion