Improving Compositional Generation with Diffusion Models Using Lift Scores

Chenning Yu, Sicun Gao

Abstract

Modern diffusion models often struggle with compositional generation, failing to capture all elements of a complex prompt. We present CompLift, a training-free resampling technique that utilizes the diffusion model's internal denoising knowledge to verify image alignment. By calculating a "lift score"—the difference in prediction error between conditioned and unconditional states—CompLift identifies and rejects images that fail to meet specific sub-conditions. Our approach significantly improves compositional accuracy across synthetic and real-world benchmarks with negligible computational overhead.

Introduction

While models like Stable Diffusion have revolutionized image generation, they frequently exhibit compositional failure. For instance, a prompt like "a turtle and a blue clock" might result in an image missing the clock or merging the two objects into a single entity. Existing solutions typically require expensive fine-tuning or rely on external "referee" models like CLIP, which may possess their own biases and lack alignment with the generative model's internal logic.

CompLift addresses this by turning the generative model into its own critic. It leverages the model's internal denoising knowledge to ensure complex instructions are followed without requiring additional training or external modules.

Methods: The Lift Score and Compositional Algebra

The core of CompLift is the Lift Score. Intuitively, if a generated image contains a requested object (e.g., a "blue clock"), the diffusion model should find it easier to denoise that image when conditioned on that specific prompt compared to an unconditional state. The lift score is mathematically approximated by the difference in the model's L2 prediction error between these two states.

For complex prompts, CompLift decomposes instructions into sub-conditions and applies compositional logic:

  • Product (AND): An image is accepted only if all sub-conditions yield positive lift scores.
  • Mixture (OR): An image is accepted if at least one sub-condition yields a positive lift score.
  • Negation (NOT): An image is rejected if the negated condition yields a positive lift score.
CompLift demonstrates precise compositional logic (AND, OR, NOT) on 2D synthetic distributions compared to standard Composable Diffusion.

To maintain efficiency, the authors introduced Cached CompLift, which reuses noise predictions from the standard generation process, making the verification step nearly free in terms of time. Furthermore, for high-resolution images, the system counts "activated pixels" in the latent space where the lift score is positive, providing a more robust detection mechanism than simple global averaging.

Experimental Results

The researchers evaluated CompLift across 2D synthetic data, the CLEVR spatial reasoning task, and standard text-to-image benchmarks.

Synthetic and Spatial Benchmarks

On 2D synthetic tasks, CompLift improved accuracy from ~56% to 99.9% for product algebra. In the CLEVR spatial reasoning task, which requires placing objects in specific relationships, CompLift maintained over 90% accuracy even as the number of objects increased to five, whereas the baseline dropped to 78%.

Text-to-Image Alignment

Using Stable Diffusion (v1.4, v2.1, and XL) on the Attend-and-Excite benchmark, CompLift consistently outperformed baselines. For SDXL, it improved the ImageReward score—a metric for human preference and prompt alignment—from 1.025 to 1.216. Thanks to the caching strategy, this improvement comes with negligible computational overhead compared to MCMC-based methods.

Qualitative comparison of images accepted vs. rejected by CompLift for complex multi-object prompts.

Discussion and Future Work

CompLift demonstrates that a generative model's internal knowledge is a powerful tool for self-verification. However, the method is dependent on the base model's capacity; if the model is incapable of generating a specific object, CompLift cannot "create" it from nothing. Additionally, while highly effective at detecting object existence, the current criterion is slightly less sensitive to specific attributes like color.

Future research may extend the lift score logic to other modalities, such as video and music generation, where maintaining structural and temporal consistency remains a significant challenge.

Summary updated

BibTeX
@inproceedings{yu2025improving,
  author = {Chenning Yu and Sicun Gao},
  title = {{Improving Compositional Generation with Diffusion Models Using Lift Scores}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=YC6ItZfdVk},
}
Figure