CONFORM: Contrast is All You Need For High-Fidelity Text-to-Image Diffusion Models

Tuna Meral, Enis Simsar, Federico Tombari, Pinar Yanardag
2/14/2026

No official code found. Best implementation: gemlab-vt/CONFORM (27 stars, MIT, last commit 2024-10-07).

Abstract

Images produced by text-to-image diffusion models might not always faithfully represent the semantic intent of the provided text prompt, where the model might overlook or entirely fail to produce certain objects. Existing solutions often require customly tailored functions for each of these problems, leading to sub-optimal results, especially for complex prompts. Our work introduces a novel perspective by tackling this challenge in a contrastive context. Our approach intuitively promotes the segregation of objects in attention maps while also maintaining that pairs of related attributes are kept close to each other. We conduct extensive experiments across a wide variety of scenarios, each involving unique combinations of objects, attributes, and scenes. These experiments effectively showcase the versatil-ity, efficiency, and flexibility of our method in working with both latent and pixel-based diffusion models, including Sta-ble Diffusion and Imagen. Moreover, we publicly share our source code to facilitate further research.

View on arXivView PDF

Code Implementations(1)

gemlab-vt/CONFORMCommunity71%
MIT

Contrast is All You Need For High-Fidelity Text-to-Image Diffusion Models [CVPR 2024]

271Python, Jupyter NotebookApr 3, 20242 years agoMIT

Similar Papers

Cite this paper

@article{meral2026conform,
  title  = {CONFORM: Contrast is All You Need For High-Fidelity Text-to-Image Diffusion Models},
  author = {Tuna Meral and Enis Simsar and Federico Tombari and Pinar Yanardag},
  year   = {2026},
  eprint = {2312.06059},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.06059},
  journal = {CVPR 2023 2023}
}

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

Discussion