Prompt-Based Text-to-Image Generation for Semantic Alignment

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional methods struggle to generate high-quality images from semantically complicated texts due to insufficient training data and semantic deviations, failing to accurately encode texts beyond their vocabulary and maintaining semantic alignment between texts and images.

Innovation Solution

A text encoder and image encoder are semantically aligned to ensure correlation, using prompt text and image embeddings as a baseline for projecting text embeddings into image embeddings, followed by a conversion network to generate images with semantic consistency, leveraging a conversion network to maintain semantic information through latent embeddings.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If conventional methods are used to generate images from texts, then the process is simple, but the image quality and semantic accuracy deteriorate

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

Solution Approach 1:

The patent introduces prompt embeddings as an intermediary between text and image generation. The text is first encoded into embeddings, which are then projected into the image embedding space using learnable prompt vectors as mediators. This intermediary layer enables semantic alignment without requiring complex end-to-end training, resolving the contradiction between image quality and system complexity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system segments the image generation process into distinct modules: text encoding, prompt-based projection, and image generation. By separating these functions and using pre-trained components for each segment, the system achieves high image quality while keeping each module relatively simple and manageable.

Inventive Principle:
Principle #1Segmentation

2Measurement precision

If text encoders are trained to handle semantically complicated texts, then semantic accuracy improves, but training data requirements and computational complexity increase

Engineering Contradiction:
Improvesemantic accuracyVSAvoidtraining data volume
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent uses pre-trained text encoders and image encoders as starting points, performing preliminary training on general data before fine-tuning on specific text-image pairs. This preliminary action reduces the amount of specialized training data needed while maintaining high semantic accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system changes the parameter space by projecting text embeddings into image embedding space using learnable prompt vectors. This parameter transformation allows the model to handle semantically complicated texts accurately without requiring extensive retraining, as the projection layer adapts to semantic nuances efficiently.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If prompt text embedding and prompt image embedding are used for semantic alignment, then semantic correlation improves, but computational overhead increases

Engineering Contradiction:
Improvesemantic alignmentVSAvoidcomputational energy
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent uses learnable prompt vectors that are copied and applied to transform text embeddings into the image embedding space. Instead of creating complex transformation models, the system uses simple, reusable prompt vectors that maintain semantic alignment while minimizing computational overhead during inference.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS20260017842A1Generating image from text based on prompts
Publication Date: 2026.01.15 MICROSOFT TECHNOLOGY LICENSING LLC
  • US20260017842A1 patent drawing
  • US20260017842A1 patent drawing
  • US20260017842A1 patent drawing

AI summary

Embodiments of the disclosure provide a solution for generating images from texts based on prompts. A text encoder encodes an input text into a text embedding, and projects, by use of a prompt text embedding and a prompt image embedding as the baseline, the text embedding of the input text into an image embedding semantically correlated with the input text. A conversion network converts the image embedding into a latent embedding in a latent space of the image generator, and the image generator generates an image semantically correlated with the input text based on the latent embedding carrying semantic information. Accordingly, the solution can generate from the text containing semantics an image having corresponding semantics, and the quality of the generated image is also improved.