Compositional Discrete Latent Code for High Fidelity, Productive Diffusion Models

Samuel Lavoie, Michael Noukhovitch, Aaron Courville
7/16/2025
cs.CVcs.AIcs.LG

No official code found. Best implementation: lavoiems/DiscreteLatentCode (38 stars, MIT, last commit 2025-09-05).

Abstract

We argue that diffusion models' success in modeling complex distributions is, for the most part, coming from their input conditioning. This paper investigates the representation used to condition diffusion models from the perspective that ideal representations should improve sample fidelity, be easy to generate, and be compositional to allow out-of-training samples generation. We introduce Discrete Latent Code (DLC), an image representation derived from Simplicial Embeddings trained with a self-supervised learning objective. DLCs are sequences of discrete tokens, as opposed to the standard continuous image embeddings. They are easy to generate and their compositionality enables sampling of novel images beyond the training distribution. Diffusion models trained with DLCs have improved generation fidelity, establishing a new state-of-the-art for unconditional image generation on ImageNet. Additionally, we show that composing DLCs allows the image generator to produce out-of-distribution samples that coherently combine the semantics of images in diverse ways. Finally, we showcase how DLCs can enable text-to-image generation by leveraging large-scale pretrained language models. We efficiently finetune a text diffusion language model to generate DLCs that produce novel samples outside of the image generator training distribution.

View on arXivView PDF

Code Implementations(1)

MIT

Official repository for the article Compositional Discrete Latent Code for High Fidelity, Productive Diffusion Models (https://arxiv.org/abs/2507.12318)

381Shell, PythonJul 10, 20251 years agoMIT

Similar Papers

Cite this paper

@article{lavoie2025compositional,
  title  = {Compositional Discrete Latent Code for High Fidelity, Productive Diffusion Models},
  author = {Samuel Lavoie and Michael Noukhovitch and Aaron Courville},
  year   = {2025},
  eprint = {2507.12318},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.12318v3}
}

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/2507.12318.svg)](https://codeofpaper.com/paper/2507.12318)

Discussion