Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning

Ting Chen, Ruixiang Zhang, Geoffrey Hinton

TL;DR

The authors introduce Bit Diffusion, a simple yet powerful framework that allows standard continuous-state diffusion models to generate discrete data (like text or categorical images). By representing discrete tokens as binary "analog bits" (real numbers) and employing novel techniques like Self-Conditioning, they outperform state-of-the-art autoregressive models in both sample quality and generation efficiency.

What Problem Does This Paper Address?

Generative modeling for discrete data—such as text or quantized images—has long been dominated by Autoregressive (AR) models (e.g., GPT, PixelCNN). While effective, AR models have two major flaws:

  1. Sequential Bottleneck: They generate data one token at a time, making them slow for long sequences or large images.
  2. Quadratic Complexity: Their computational cost often scales quadratically with the sequence length.

Diffusion models offer a promising alternative by refining data in parallel, but they are natively designed for continuous spaces (like raw pixel values). Previous attempts to adapt diffusion to discrete data often required complex re-formulations of the diffusion process into discrete state spaces. This paper asks: Can we just use standard continuous diffusion models for discrete data without overcomplicating the math?

Methods

The core proposal is Bit Diffusion, which relies on three key components:

1. Analog Bits

Discrete data is first converted into binary bits. These bits $\{0, 1\}$ are then cast as real numbers (e.g., $-1.0$ and $1.0$). The diffusion model treats these "analog bits" just like continuous pixel values. At the end of the generation process, a simple thresholding operation (is the value $> 0$?) converts them back into discrete bits.

The Analog Bits process: converting discrete tokens to binary, casting as real numbers for the diffusion model, and thresholding back during sampling.

2. Self-Conditioning

This is a clever architectural tweak. During the iterative sampling process, the model at step $t$ is given its own estimate of the final data ($x_0$) from the previous step as an additional input. This allows the model to "remember" its trajectory and refine its previous guesses, significantly boosting sample quality.

Diagram illustrating the self-conditioning mechanism where the previous estimate of the final data is fed into the current step.

3. Asymmetric Time Intervals

The authors found that during inference, using a slightly different time step for the network's internal "clock" versus the actual state transition helps the model denoise more effectively, especially when taking large steps.

Key Insights and Ideas

  • Simplicity is Sufficient: You don't need a discrete-state diffusion theory to handle discrete data. Treating bits as real numbers works remarkably well because strong diffusion models naturally learn to produce "bimodal" distributions (values clustered near -1 and 1), making the final thresholding step very robust.
  • Self-Conditioning is a Universal Booster: One of the most significant findings is that self-conditioning isn't just for discrete data—it also improves standard continuous diffusion models (like DDPM). It effectively gives the model a "second look" at its own work.
  • Parallelism over Sequence: By using diffusion, the model can generate all bits of an image or caption simultaneously. For CIFAR-10, Bit Diffusion achieved better results in 100 parallel steps than an autoregressive model did in 3,072 sequential steps.

Key Results

The model was evaluated on three major benchmarks: CIFAR-10, ImageNet 64×64, and MS-COCO 2017.

  • Beating Autoregressive Models: On categorical CIFAR-10, Bit Diffusion achieved an FID of 6.93, crushing the best autoregressive model's score of 12.75.
  • State-of-the-Art Discrete Diffusion: It significantly outperformed previous discrete diffusion methods like D3PM on both CIFAR-10 and ImageNet 64x64.
  • Competitive Captioning: On MS-COCO, the model achieved results (e.g., 34.7 BLEU-4) that are competitive with specialized Transformer-based autoregressive captioners, despite being a much more general-purpose architecture.
  • Efficiency: The model is significantly faster at inference time than AR models because it requires far fewer sequential steps to reach high-quality results.

Limitations and Future Work

  • Sampling Steps: While faster than AR models, Bit Diffusion still requires multiple iterations (e.g., 50–100 steps) to produce high-quality samples, which is slower than "one-shot" models like GANs.
  • Vocabulary Scaling: The paper primarily uses 8-bit or 15-bit representations. Scaling this to massive vocabularies without sub-tokenization might require more bits and higher dimensionality.
  • Future Directions: The authors suggest exploring modeling raw byte representations directly (removing the need for a tokenizer entirely) and applying the self-conditioning trick to other types of generative architectures.

Summary updated

BibTeX
@inproceedings{chen2023analog,
  author = {Ting Chen and Ruixiang ZHANG and Geoffrey Hinton},
  title = {{Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=3itjR9QxFw},
}
Figure