Lune

ICLR2026Top-tier venue

Composition of Pretrained Diffusion Models: A Logic-Based Calculus

Peter Blohm, Vikas K Garg

Abstract

Composing pretrained diffusion models provides a cost-effective mechanism for encoding constraints and unlocking complex generative capabilities. Prior work relies on crafting compositional operators that seek to extend set-theoretic notions such as union and intersection to diffusion models, e.g., using a product or mixture of the underlying energy functions. We expose the inadequacy and inconsistency of combining these operators, including limited mode coverage, biased sampling, instability under negation queries, and failure to satisfy basic compositional laws such as idempotency and distributivity. We introduce a principled calculus grounded in fuzzy logic that resolves these issues. Specifically, we define a general class of conjunction, disjunction, and negation operators that generalize the classical mixture-, product-, and harmonic-mean-style operators, illustrating how they circumvent various pathologies and enable precise combinatorial reasoning with score models.
Beyond existing methods, the proposed Dombi operators yield complex generative outcomes, such as XOR-style logical compositions of pretrained score models. We establish rigorous theoretical guarantees on the stability of Dombi compositions, and derive Feynman-Kac correctors to mitigate the sampling bias in score composition. Empirical results on image generation with Stable Diffusion and multi-objective molecular generation substantiate the conceptual, theoretical, and methodological benefits. Overall, this work lays the foundation for systematic design, analysis, and deployment of diffusion ensembles. Code is available at github.com/Aalto-QuML/logic-diffusion-composition.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Diffusion Models Beat GANs on Image Synthesis cites Language Models are Few-Shot Learners
  • Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
  • Language Models are Few-Shot Learners cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • Training language models to follow instructions with human feedback cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on18

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  4. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
  5. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations

Related papers

  1. Logical Guidance for the Exact Composition of Diffusion ModelsFrancesco Alesiani, Jonathan Warrell, Tanja Bien, Henrik Christiansen et al.ICML 2026
  2. The Superposition of Diffusion Models Using the Itô Density EstimatorMarta Skreta, Lazar Atanackovic, Joey Bose, Alexander Tong et al.ICLR 2025
  3. Mechanisms of Projective Composition of Diffusion ModelsArwen Bradley, Preetum Nakkiran, David Berthelot, James Thornton et al.ICML 2025
  4. Reduce, Reuse, Recycle: Compositional Generation with Energy-Based Diffusion Models and MCMCYilun Du, Conor Durkan, Robin Strudel, Joshua B. Tenenbaum et al.ICML 2023 · 219 citations
  5. Score Correction for Generative Models with Probabilistic ConstraintsShishang Wu, Bingjing Tang, Vinayak A RaoICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines