CoInD: Enabling Logical Compositions in Diffusion Models

Sachit Gaudi, Gautam Sreekumar, Vishnu Naresh Boddeti
2/12/2026

No official code found. Best implementation: sachit3022/compositional-generation (2 stars, MIT, last commit 2025-03-26).

Abstract

How can we learn generative models to sample data with arbitrary logical compositions of statistically independent attributes? The prevailing solution is to sample from distributions expressed as a composition of attributes' conditional marginal distributions under the assumption that they are statistically independent. This paper shows that standard conditional diffusion models violate this assumption, even when all attribute compositions are observed during training. And, this violation is significantly more severe when only a subset of the compositions is observed. We propose CoInD to address this problem. It explicitly enforces statistical independence between the conditional marginal distributions by minimizing Fisher's divergence between the joint and marginal distributions. The theoretical advantages of CoInD are reflected in both qualitative and quantitative experiments, demonstrating a significantly more faithful and controlled generation of samples for arbitrary logical compositions of attributes. The benefit is more pronounced for scenarios that current solutions relying on the assumption of conditionally independent marginals struggle with, namely, logical compositions involving the NOT operation and when only a subset of compositions are observed during training.

View on arXivView PDF

Code Implementations(1)

MIT

This repo is the implementation of our method CoInD

20Shell, PythonJan 18, 20251 years agoMIT

Similar Papers

Cite this paper

@article{gaudi2026coind,
  title  = {CoInD: Enabling Logical Compositions in Diffusion Models},
  author = {Sachit Gaudi and Gautam Sreekumar and Vishnu Naresh Boddeti},
  year   = {2026},
  eprint = {2503.01145},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.01145},
  journal = {ICLR 2025 2025}
}

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

Discussion