LatexBlend: Scaling Multi-concept Customized Generation with Latent Textual Blending

Jian Jin, Zhenbo Yu, Yang Shen, Zhenyong Fu, Jian Yang · DOI

Abstract

Personalizing text-to-image (T2I) models for multiple subjects remains a significant challenge due to computational costs and the risk of "concept bleeding." This paper introduces LATEXBLEND, a novel framework that enables high-fidelity, multi-concept image customization by blending subjects in a specific "Latent Textual" space. By integrating concepts after the text encoder but before the U-Net, LATEXBLEND achieves superior scalability and image quality. The method maintains linear training costs and zero additional inference overhead, even as the number of customized concepts increases, outperforming existing state-of-the-art baselines in both identity fidelity and prompt alignment.

Introduction

Teaching text-to-image models to generate specific, user-defined subjects—such as a personal pet or a unique toy—has become highly effective for single subjects. However, scaling this to multiple concepts within a single generated image is fraught with difficulties. Existing approaches generally fall into two categories: Joint Training, which fine-tunes models on all subjects simultaneously but fails to scale due to computational expense, and Model Merging, which combines individual "expert" models at inference time. The latter often suffers from "concept bleeding" (where features of one subject appear on another) or "denoising deviation," where the model's layout becomes unstable and fails to follow the prompt accurately.

LATEXBLEND identifies that these issues stem from interference between customized tokens during the early stages of text encoding. To solve this, the authors propose a "Goldilocks zone" for combining concepts: a space deep enough to capture identity but shallow enough to avoid the computational bloat of multi-branch U-Net architectures.

Methodology

The core innovation of LATEXBLEND is performing concept integration in the Latent Textual space, located immediately after the text encoder and its linear projection.

Single-concept Fine-tuning with Base Flow

To ensure a concept is represented compactly, LATEXBLEND utilizes a dual-path training strategy. A frozen "base flow" handles standard language features, while a learnable "concept flow" captures the unique subject identity. By blending these during training, the model is forced to concentrate all subject-specific information into the latent features of the identifier tokens (e.g., "V* dog").

Position Invariance

To ensure a learned concept remains effective regardless of its position in a sentence, the model is trained using a "prompt template pool" of varying lengths. This prevents the model from over-fitting the subject's identity to a specific index in the text sequence, allowing for flexible prompt engineering at inference time.

Latent Textual Blending and the Concept Bank

At inference, multiple concepts are retrieved from a pre-populated "Concept Bank" and seamlessly swapped into the latent feature map of a new prompt. This modular approach avoids the need for joint training or running multiple U-Net branches, allowing for the instant combination of any previously learned concepts.

Blending Guidance

To further prevent identity mixing in complex scenes, LATEXBLEND introduces an inference-time guidance mechanism. This loss function manipulates cross-attention maps to maximize the "binding" between a subject and its class (e.g., ensuring "dog" tokens only attend to the dog) while minimizing spatial overlap between different subjects.

Experimental Results

Datasets and Baselines

The authors evaluated LATEXBLEND using 30 distinct subjects, including pets, buildings, and everyday objects, sourced from benchmarks like DreamBooth and Custom Diffusion. The method was compared against several state-of-the-art baselines, including Mix-of-Show, OMG, MuDI, and Cones 2.

Quantitative and Qualitative Performance

In multi-concept tests ranging from two to five subjects, LATEXBLEND consistently outperformed baselines in Concept Alignment. Notably, its DINO scores—which are particularly sensitive to fine-grained identity—were significantly higher than competitors. Qualitatively, the results show superior "identity binding"; for instance, in a scene containing both a specific cat and a specific dog, LATEXBLEND correctly applies unique features to each animal without visual interference.

Efficiency and Scalability

One of the most significant advantages of LATEXBLEND is its efficiency. It adds zero additional inference cost regardless of the number of concepts. In contrast, methods like OMG or MuDI see computational costs spike as scenes become more complex. Furthermore, LATEXBLEND's fine-tuning complexity increases only linearly, making it highly scalable for large-scale customization.

Discussion and Key Insights

The success of LATEXBLEND highlights the importance of the "Sweet Spot" for integration. Blending at the word embedding level is too early and causes interference, while blending at the U-Net feature level is too late and increases compute. The latent space after the text encoder's projection provides the perfect balance.

Additionally, the authors found that LATEXBLEND effectively mitigates "denoising deviation." By blending in the latent textual space, the generation process stays much closer to the stable, high-quality denoising trajectory of the original pre-trained model, leading to more coherent layouts.

Conclusion

LATEXBLEND represents a significant step forward in multi-concept T2I customization. By leveraging latent textual blending and a modular concept bank, it provides a scalable, efficient, and high-fidelity solution for generating complex scenes with multiple personalized subjects. While it remains subject to the fundamental limitations of underlying models like Stable Diffusion XL, future work may extend this approach to even larger-scale models and automated guidance for extremely crowded scenes.

Summary updated

BibTeX
@inproceedings{jin2025latexblend,
  author = {Jian Jin and Zhenbo Yu and Yang Shen and Zhenyong Fu and Jian Yang},
  title = {{LatexBlend: Scaling Multi-concept Customized Generation with Latent Textual Blending}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02196},
}
Figure