TokenRepel: Generating Diverse Image Sets Without Sacrificing Quality
Qingtao Yu, Zhen Wang, Ning Lai, Boyang Hu, Hongdong Li, Dylan Campbell
NeurIPS page · OpenReview · Open on the map
Category: Diffusion & Image Generation › Diffusion Text-to-Image Composition and Control · Type: new method · Keywords: text-to-image generation, visual diversity, latent representation manipulation, Riemannian geometry, image quality preservation
Areas: Generative Models (Diffusion & Flows) › Visual Editing and Conditioning › Text-to-Image Conditioning
Summary
TokenRepel is an inference-time method that enhances visual diversity of text-to-image generated image sets while preserving or improving image quality.
Explained to a 5-year-old
A computer can draw pictures when you tell it words, like "a cat". When it makes many cats, they often look the same. Researchers wanted the cats to look different while still looking good. They found a way to push the pictures apart by moving their hidden numbers in a special direction. The computer does this on a special ball where each picture is a point.
Explained to a 5-year-old, longer
Some computers can draw pictures when you tell them words, like "a cat". When you ask them to draw many cats, they often make pictures that look almost the same. This is useful because you get many good pictures, but it is not fun if they are all identical. The researchers noticed this problem and wanted to make the pictures different while keeping them looking nice. They found a way to push the pictures apart by moving their hidden numbers in a special direction. This pushing is done on a special ball where each picture is a point. The researchers also made sure the pictures stay close to the good area where the computer knows how to draw. They applied this idea to each step of the drawing process, so the pictures get better gradually. They tested the new trick on three big drawing computers: Flux1.dev, SDXL, and Flux2.Klein. The results showed that the pictures became much more varied, but they still looked good individually. The new method does not need any extra tools and only adds a little extra work when drawing. This makes it easy for anyone to get diverse, high-quality image sets for games, art, or learning.
For a technical reader
TokenRepel is an inference-time technique that increases the visual variety of images generated by text-to-image models without hurting their quality. It works by measuring the hidden feature vectors of the generated images and pushing them apart on a unit hypersphere using a negative Riemannian gradient. To keep the images faithful to the prompt, the updates are constrained to stay inside the high-density region learned by the generative model. The same constraint is applied to each intermediate layer, providing fine-grained control over diversity. The method requires no external models and adds only modest computational overhead during early sampling stages.
Problem
Text-to-image models often produce visually similar images when given the same prompt, limiting the diversity of generated sets. This typically comes at the cost of reduced image quality, creating a trade-off between variety and fidelity.
Method
The approach operates at inference time by manipulating hidden latent representations to increase diversity. It uses a token repulsion mechanism that increases angular separation between token features via a negative Riemannian gradient on the unit hypersphere, while constraining updates to stay within the generative model's high-density region and extending this constraint to intermediate layers for fine-grained guidance.
Results
The approach achieves substantial gains in visual diversity while preserving average image fidelity on three large-scale text-to-image models.
Contributions
It introduces an inference-time token repulsion mechanism that leverages Riemannian geometry to diversify image sets, and extends quality preservation constraints to intermediate layers for fine-grained control.
Practical relevance
It enables practitioners to generate diverse image sets for applications such as dataset augmentation and creative workflows without sacrificing quality.
Research questions this paper is counted under
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