Abstract
Customizing pre-trained text-to-image generation models has attracted massive research interest recently due to its huge potential in real-world applications. Although existing methods can generate creative content for a novel concept contained in a single user-input image, their capabilities are still far from perfection. Specifically, most existing methods require fine-tuning the generative model on testing images. Some existing methods do not require fine-tuning, but their performance is unsatisfactory. Furthermore, user-model interaction is often limited to directive prompts. In this work, we build a customization assistant based on a pre-trained large language model (LLM) and diffusion model. This system, CAFE, performs customized generation in a tuning-free manner and enables user-friendly, conversational interactions. CAFE can perform customized generation in 2–5 seconds without any test-time fine-tuning, achieving competitive results across different domains.
Introduction
Personalizing text-to-image models—such as placing a specific pet or person into a new context—traditionally follows two paths, both involving significant friction. Optimization-based methods like DreamBooth or Textual Inversion require "test-time fine-tuning," where the model is optimized for several minutes on a specific subject before generation. While newer "tuning-free" encoder-based methods exist, they often struggle with identity preservation or require highly specific, rigid prompts.
Furthermore, most existing tools are strictly instruction-following rather than conversational. They lack the semantic reasoning to handle vague requests like "I want to generate something creative for this person." CAFE (Customization Assistant for text-to-imagE) addresses this gap by providing a user-friendly assistant that understands intent, preserves identity without latency, and explains its creative reasoning.
Methodology: The CAFE Framework
CAFE utilizes a multi-modal architecture that bridges the gap between linguistic reasoning and visual generation. The framework consists of four primary components:
- MLLM Backbone: The system uses Llama-2 as the central reasoning engine. An input image is encoded via DINOv2 and projected into the LLM's embedding space. The LLM then generates a natural language response alongside special visual embeddings.
- The Projection Bridge ($H$): A novel projection layer maps the LLM's output embeddings into the CLIP image embedding space. This allows the LLM to predict the high-level visual features required by the diffusion model.
- Dual-Conditioned Diffusion: Generation is handled by a modified Stable Diffusion 2 model. It utilizes cross-attention to process both the original image patches (for fine-grained identity detail) and the LLM-predicted CLIP embeddings (for high-level semantics).
- Self-improvement via Distillation (SID): To scale training, the authors employed a "teacher" model to generate an initial dataset of 1 million quadruplets. CAFE was then trained on this data and used to generate even higher-quality samples by interpolating between subject and reference features.
Experimental Setup and Datasets
The researchers constructed a massive dataset of approximately 1 million quadruplets $(x, \tilde{x}, y, \tilde{y})$, where $x$ is the input image, $\tilde{x}$ is the target generated image, $y$ is the user prompt, and $\tilde{y}$ is the assistant's text explanation. This dataset covers two primary areas:
- Human Domain: 355K samples using the FFHQ dataset for high-quality face customization.
- Object Domain: Open-domain objects across hundreds of categories (e.g., toys, animals, buildings).
Evaluation was conducted using the DreamBench standard (30 subjects, 25 prompts) to benchmark against industry-standard models.
Key Results and Performance
CAFE demonstrates significant improvements in both speed and quality over existing baselines:
- Efficiency: CAFE generates images in 2–5 seconds, significantly faster than SuTI (15–20s) or DreamBooth (minutes).
- Identity Preservation: On DreamBench, CAFE achieved a DINO score of 0.715, outperforming established models like BLIP-Diffusion and Re-Imagen.
- Human Face Customization: In face-specific testing, CAFE achieved an ID similarity score of 0.464, surpassing ProFusion (0.432) and E4T (0.426) while remaining entirely tuning-free.
Discussion and Limitations
CAFE demonstrates that LLMs can effectively serve as semantic predictors for latent visual representations. By moving the "learning" of a concept from the inference stage to the pre-training stage, the system drastically reduces user wait times. Furthermore, the integration of Llama-2 allows the model to handle underspecified or ambiguous prompts by filling in creative gaps and explaining its choices.
However, limitations remain. The output quality is inherently capped by the underlying Stable Diffusion 2 and Llama-2 architectures. Additionally, because the training data was partially generated by teacher models, CAFE may inherit certain biases or artifacts. Future work will explore scaling to larger LLMs and integrating more advanced diffusion backbones like SDXL for higher-resolution outputs.
Summary updated