Skip to main content
QUICK REVIEW

[Paper Review] CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching

Dongzhi Jiang, Guanglu Song|arXiv (Cornell University)|Apr 4, 2024
Image Retrieval and Classification TechniquesComputer Science6 citations
TL;DR

CoMat fine-tunes diffusion models with an image-to-text concept matching mechanism using a captioning model to guide missing concepts and an attribute concentration module to improve attribute binding, achieving state-of-the-art text-to-image alignment without requiring image-text pairs.

ABSTRACT

Diffusion models have demonstrated great success in the field of text-to-image generation. However, alleviating the misalignment between the text prompts and images is still challenging. The root reason behind the misalignment has not been extensively investigated. We observe that the misalignment is caused by inadequate token attention activation. We further attribute this phenomenon to the diffusion model's insufficient condition utilization, which is caused by its training paradigm. To address the issue, we propose CoMat, an end-to-end diffusion model fine-tuning strategy with an image-to-text concept matching mechanism. We leverage an image captioning model to measure image-to-text alignment and guide the diffusion model to revisit ignored tokens. A novel attribute concentration module is also proposed to address the attribute binding problem. Without any image or human preference data, we use only 20K text prompts to fine-tune SDXL to obtain CoMat-SDXL. Extensive experiments show that CoMat-SDXL significantly outperforms the baseline model SDXL in two text-to-image alignment benchmarks and achieves start-of-the-art performance.

Motivation & Objective

  • Motivate and diagnose misalignment between text prompts and generated images in diffusion-based T2I models.
  • Propose an end-to-end fine-tuning framework that uses image-to-text concept matching to rebalance token attention.
  • Improve attribute binding through an entity attribute concentration module.
  • Preserve the original generation ability while guiding alignment via a fidelity preservation mechanism.

Proposed method

  • Generate an image from a text prompt using a diffusion model and use a frozen captioning model to score p(C | image) for concepts in the prompt.
  • Backpropagate through the denoising process to optimize the diffusion model so that missing concepts are activated in the image (concept matching loss).
  • Extract entities (nouns) and modifiers from prompts, use Grounded-SAM to obtain region masks, and apply token- and pixel-level attention losses to align nouns and modifiers with image regions (attribute concentration).
  • Add an adversarial fidelity preservation loss using a discriminator initialized from the pre-trained diffusion model to avoid overfitting to caption-based rewards and to maintain generation quality.
  • Train end-to-end with a joint objective: L = L_cap + alpha L_token + beta L_pixel + lambda L_adv, without requiring images or human preferences.

Experimental results

Research questions

  • RQ1Can image-to-text concept matching guides improve token attention and thus reduce misalignment between prompts and generated images?
  • RQ2Does enforcing attribute concentration in object regions enhance attribute binding and overall prompt fidelity?
  • RQ3How can fidelity be preserved during reward-driven fine-tuning to prevent degradation of generation quality?
  • RQ4Is the approach effective across different base diffusion models and captioning backbones?

Key findings

  • CoMat-SDXL achieves state-of-the-art text-to-image alignment on T2I-CompBench, with notable gains in attribute binding and spatial relationships relative to SDXL baseline.
  • CoMat-SD1.5 shows substantial improvements over the SD1.5 baseline, including a large gain in spatial relationships (over 70% in some metrics).
  • On TIFA, CoMat-SDXL improves by 1.8 points over SDXL, and CoMat-SD1.5 improves by 7.3 points over SD1.5.
  • Ablation shows that concept matching provides major gains, and adding attribute concentration yields further improvements across multiple subcategories.
  • Using a pre-trained UNet as the discriminator for fidelity preservation yields the best balance of image fidelity and alignment without degrading generation quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.