Learning Vision and Language Concepts for Controllable Image Generation

Shaoan Xie, Lingjing Kong, Yujia Zheng, Zeyu Tang, Eric P. Xing, Guangyi Chen, Kun ZhangICML 2025

The Challenge of Entanglement in Image Generation

Current text-to-image (T2I) models like Stable Diffusion or FLUX produce stunning visuals, but they often struggle with a major issue: entanglement. If you prompt a model to change a "golden crown" to a "flower crown" on a dog, it might inadvertently alter the dog's breed, the background, or the lighting.

This occurs because these models treat prompts and images as dense, high-dimensional blobs of data rather than collections of independent, interacting parts. While "disentangled representation learning" attempts to solve this, the theoretical math explaining how to separate these concepts across multiple modalities (text and image) has been largely missing or relied on overly restrictive assumptions that fail in complex, real-world scenarios.

Bridging Theory and Practice

Researchers have established a new theoretical foundation for "identifiability" in multimodal concept learning, proving that we can uniquely recover individual, "atomic" concepts from both text and images. They translate this theory into practice through a two-step approach:

1. The Theory of Identifiability

The authors formulate concept learning as a latent variable identification problem. They mathematically prove that under flexible, nonparametric conditions, individual visual and textual concepts can be identified. The linchpin of this theory is sparsity: a single textual concept (like "color") should only influence a specific subset of visual features, rather than the entire image.

2. Implementation: The ConceptAligner Model

Based on this theory, the researchers developed ConceptAligner, a T2I model designed to enforce these sparse connections.

ConceptAligner Architecture

The model consists of four core modules:

  • Text Network ($R^T$): Extracts discrete, atomic textual concepts ($z^T$) from a user's prompt.
  • Image Encoder ($R^I$): Recovers "exogenous information" ($\epsilon$)—the visual details like specific textures or noise that are not explicitly described by the text.
  • Concept Network ($R^C$): The core alignment engine. It uses a learnable sparse mask to map textual concepts to visual concepts ($z^I$). Enforcing this sparsity during training is what guarantees disentanglement.
  • Diffusion Transformer ($v_\theta$): A conditional generation model that renders the final image based on the structured visual representation.

Training and Evaluation

To train a model on fine-grained concepts, the team generated 2 million images using FLUX-S based on LAION prompts, then re-captioned them with extreme detail using the QWEN2-VL vision-language model. Evaluation was conducted on rigorous benchmarks like EMU-Edit (3,589 paired prompts for image editing) and PIE-BENCH (for real-world image editing and controllability).

Key Insights

  • Sparsity is the Key to Control: By forcing the model to use sparse connections between text and visual concepts, ConceptAligner prevents the "leakage" that causes unintended changes during editing.
  • Component-wise Identifiability: Unlike previous methods that identify "blocks" of concepts, this framework identifies individual coordinates in the latent space, enabling true "atomic" level editing.
  • Exogenous Information Recovery: By explicitly modeling the visual details not found in text ($\epsilon$), the model preserves the identity of a subject (e.g., a specific cat) even when the user changes its action.
  • Efficiency via Compactness: Because the model represents images through a structured set of concepts rather than hundreds of raw text tokens, it runs faster than its baseline counterparts.

State-of-the-Art Results

ConceptAligner demonstrates superior performance across multiple dimensions:

  • Controllability: On EMU-Edit and PIE-BENCH, it outperformed heavyweights like SD3.5, FLUX, and SANA across metrics like CLIP-I (image similarity) and DINO similarity.
  • Subject Consistency: In disentanglement tests (e.g., changing an action while keeping the animal identical), ConceptAligner achieved a score of 0.946, significantly beating SANA’s 0.913.
  • Speed: The model is remarkably efficient, clocking in at 0.48 seconds per image on an H100 GPU, faster than SANA (0.58s) and FLUX-S (0.63s).
Qualitative Comparison of ConceptAligner vs Baselines

Visually, ConceptAligner excels at precision. When changing a prompt, it leaves unrelated attributes—like the text on a sign or the specific pose of a dog—completely untouched, whereas baseline models often hallucinate changes in those areas.

Limitations and Future Directions

The primary limitation of this approach is its caption dependency. The underlying theory relies on the text having a "sufficient influence" over the visual distribution. If training captions are vague or poor, the model struggles to learn the underlying visual concepts effectively. Additionally, the definition of an "atomic" concept is relative to the dataset's complexity (e.g., "dog" vs. "dog ears").

Looking ahead, the authors suggest this identifiability framework could be extended to other modalities, such as video or audio, where temporal consistency and disentanglement present even greater challenges.

Summary updated

BibTeX
@inproceedings{xie2025learning,
  author = {Shaoan Xie and Lingjing Kong and Yujia Zheng and Zeyu Tang and Eric P. Xing and Guangyi Chen and Kun Zhang},
  title = {{Learning Vision and Language Concepts for Controllable Image Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=hUHRTaTfvZ},
}
Figure