Back to search

University of Alberta

Contrastive Parallel Denoising for Improving Attribute Alignment of Diffusion models

Abstract

dc:description.abstract

Diffusion models (DMs) have emerged as a powerful class of generative models, demonstrating remarkable performance in high-quality image synthesis, particularly in text-to-image generation. Leveraging iterative denoising steps guided by textual input, these models have enabled significant advancements in controllable image generation across a wide range of applications—from artistic content creation to data augmentation and virtual scene generation. However, despite their success, diffusion models continue to face major challenges in semantic alignment, especially when tasked with rendering complex prompts that involve multiple objects, attributes, or intricate spatial relationships. A recurring issue in this setting is semantic misalignment, where generated images fail to accurately reflect the detailed semantics of the prompt. This often manifests in several ways: missing objects, undesired object fusion (e.g., two distinct objects blending into one), or incorrect object-attribute pairings (e.g., a red shirt rendered on the wrong character). Such errors are particularly common in prompts that contain several object-attribute bindings or hierarchical structures. One key contributing factor is the inter-contamination of textual embeddings during the diffusion process. Since most models encode the full prompt into a global representation, distinctions between different semantic components may become blurred, especially in the later denoising steps. To address these limitations, this thesis introduces Contrastive Parallel Denoising (CPD)—a training-free framework designed to improve object-attribute alignment and mitigate semantic entanglement in diffusion-based text-to-image generation. CPD decomposes a complex prompt into multiple sub-prompts, each corresponding to a distinct object or concept. These sub-prompts are independently embedded and passed through parallel denoising branches. To promote semantic separation and reduce feature blending, we propose two novel contrastive mechanisms: the \textit{intra-object} contrastive loss, which encourages that different instances of the same object across branches remain consistent, and \textit{inter-object} contrastive loss, which ensures dissimilarity between distinct objects and attributes in the latent space. Both contrastive objectives act directly on the denoised latent representations at multiple stages, helping to preserve structural integrity and semantic clarity. Finally, the resulting latents are merged into a single coherent image using attention-based fusion strategies guided by cross-attention maps from the original full prompt. We evaluate the proposed approach on CompBench, a benchmark specifically designed to test compositional understanding in generative models. CPD achieves substantial improvements over existing training-free diffusion techniques, as measured by BLIP-VQA scores and human preference ratings, showing more accurate object rendering, better attribute localization, and reduced feature entanglement. This thesis contributes a practical and effective solution to a long-standing problem in generative modeling: aligning complex natural language prompts with faithful visual outputs. By offering a training-free alternative, CPD not only maintains the strengths of existing pre-trained diffusion models but also extends their utility to more demanding generation scenarios without additional computational overhead or retraining.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Discipline thesis:degree_discipline
Software Engineering and Intelligent Systems
Grantor
University of Alberta
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Xie, Wentao
Advisor dc:contributor.advisor
  • Xingyu Li

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/83281

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Xie, Wentao. Contrastive Parallel Denoising for Improving Attribute Alignment of Diffusion models. Master's thesis, University of Alberta, 2025. https://doi.org/10.7939/83281