Composition of Pretrained Diffusion Models: A Logic-Based Calculus

Published: 26 Jan 2026, Last Modified: 14 May 2026ICLR 2026 PosterEveryoneRevisionsBibTeXCC BY 4.0
Keywords: Diffusion, Score Composition, Logical Inference, Temperature Scaling, Fuzzy Logic
TL;DR: We propose a set of novel score composition operators based on fuzzy logic for diffusion models and showcase that they improve combinatorial reasoning capabilities of ensembles.
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](https://github.com/Aalto-QuML/logic-diffusion-composition).
Supplementary Material: zip
Primary Area: generative models
Submission Number: 2768
Loading