NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Token-to-Token Alignment of Text Embeddings for Semantic Blending

Saar Huberman, Ron Mokady, Or Patashnik, Daniel Cohen-or

NeurIPS page · Open on the map

Category: Diffusion & Image Generation › Diffusion Text-to-Image Composition and Control · Type: new method · Keywords: text embedding alignment, semantic blending, token-to-token, text-to-image generation, continuous editing

Areas: Multimodal › Multimodal Creation and Editing › Safe Generation

Summary

Token-to-Token alignment aligns token embeddings across prompts to enable smooth semantic blending and continuous editing.

Explained to a 5-year-old

When we draw pictures using words, the words sometimes don't line up well. The same picture can be described by different words, and similar words can mean different things. This makes it hard to smoothly change one picture into another, like blending them together. The researchers noticed that the problem is not that the pictures lack meaning, but that the words are not aligned. After aligning the words, moving a little bit between them creates smooth changes in the picture.

Explained to a 5-year-old, longer

When we use words to tell a computer to draw a picture, the computer turns the words into pieces called tokens. Sometimes two pictures that look similar are described by very different words. Other times, two pictures that look different are described by words that sound the same. This makes it hard to smoothly change one picture into another, like blending them together. The researchers noticed that the problem is not that the pictures lack meaning, but that the words are not aligned. They created a method that rephrases the words so that similar ideas are placed in matching spots. Then they adjust the hidden representations of those words so that similar concepts are close together. After this alignment, moving a little bit between the words creates smooth changes in the picture. This allows us to blend two images together or make small edits that stay coherent. The new technique shows that the hidden space of text embeddings already contains a smooth structure. By organizing the words correctly, we can control the generation without changing the whole model. In simple terms, the work makes picture generation from words more controllable and intuitive.

For a technical reader

The paper addresses the inconsistency in token sequences used to control text-to-image models, where semantically similar images can be described by disparate wording. It proposes a two-stage alignment pipeline that first restructures prompts into a canonical form and then matches token embeddings based on semantic similarity. By aligning token representations, linear interpolation in the embedding space becomes meaningful, enabling smooth semantic transitions and blending. Empirical evaluation demonstrates that aligned embeddings reveal an underlying continuous semantic structure, allowing fine-grained control without modifying the generative model. The approach provides a lightweight way to improve controllability of text-conditioned generation for developers.

Problem

The space of token sequences lacks consistent structure, making smooth transitions and semantic blending difficult because semantically similar images can correspond to very different token sequences and vice versa.

Method

The approach transforms prompts into a structured representation where corresponding concepts occupy compatible positions, then aligns token embeddings based on semantic similarity, using a two-stage process of structural alignment and embedding-level matching.

Results

The approach reveals that aligned text embedding spaces contain a continuous semantic structure, enabling smooth semantic transitions without altering the generative model.

Contributions

It introduces a framework for establishing explicit semantic correspondence between tokens across prompts and demonstrates that aligning token embeddings unlocks continuous semantic control for image blending and editing.

Practical relevance

This work enables more intuitive and controllable text-to-image generation, facilitating applications such as image blending and fine-grained editing.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction