Diffusion Model Cross-Attention for Prompt-Aligned Image Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing diffusion models struggle with achieving true fidelity to textual prompts, often resulting in images with unrelated or contradictory visual features due to inconsistent spatial alignment and semantic inconsistencies, and methods like classifier guidance increase computational complexity.

Innovation Solution

Implementing localized cross-attention techniques to adjust attention weights based on image patches and text tokens, allowing the diffusion model to refine each image segment according to its relevant text cues, without requiring a separate segmentation model.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If classifier guidance is used to enhance image fidelity to text prompts, then image quality improves, but computational complexity and latency increase due to requiring an additional classifier model

Engineering Contradiction:
Improveimage fidelityVSAvoidcomputational complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The patent extracts and removes the separate classifier model from the guidance system, using only the diffusion model itself. By running the diffusion model twice (with full prompt and empty prompt) and using the contrasting conditional scores as guidance signals, the system eliminates the need for an additional classifier while maintaining image fidelity to text prompts.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The diffusion model is made multi-functional by serving both as the image generation model and as the classifier for guidance. The same model parameters are used for both denoising and classification tasks, eliminating the need for a separate classifier model and reducing overall system complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Adaptability or versatility

If existing diffusion models generate images from text prompts, then image generation capability is achieved, but spatial consistency and semantic alignment deteriorate resulting in unrelated or contradictory visual features

Engineering Contradiction:
Improveimage generation capabilityVSAvoidspatial consistency
Core Design Contradiction:
Adaptability or versatilityVSManufacturing precision

Solution Approach 1:

The patent segments the image into multiple patches and processes each patch independently through cross-attention with conditioning tokens. This segmentation approach allows localized control over different regions of the image, ensuring that each patch aligns semantically with the relevant text prompt elements while maintaining overall spatial consistency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies local quality by computing separate cross-attention weights for each image patch with the text conditioning tokens. This allows different regions of the image to have different attention distributions tailored to their specific semantic requirements, improving both spatial consistency and semantic alignment locally while maintaining global coherence.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS12626420B2Segmentation free guidance in diffusion models
Publication Date: 2026.05.12 QUALCOMM INC
  • US12626420B2 patent drawing
  • US12626420B2 patent drawing
  • US12626420B2 patent drawing

AI summary

Certain aspects of the present disclosure provide techniques for generating an output image based on a text prompt. A method may include receiving the text prompt; providing a user interface comprising one or more input elements associated with one or more words of the text prompt; receiving input corresponding to at least one of the one or more input elements, the input indicating a semantic importance for each of at least one of the one or more words associated with the at least one of the one or more input elements; and generating the output image based on the text prompt and the input.