Continuous, Subject-Specific Attribute Control in T2I Models by Identifying Semantic Directions

Stefan Andreas Baumann, Felix Krause, Michael Neumayr, Nick Stracke, Melvin Sevi +2 more
3/25/2024
cs.CVcs.AIcs.LG

Official code: CompVis/attribute-control (137 stars, MIT, last commit 2025-02-27).

Abstract

Recent advances in text-to-image (T2I) diffusion models have significantly improved the quality of generated images. However, providing efficient control over individual subjects, particularly the attributes characterizing them, remains a key challenge. While existing methods have introduced mechanisms to modulate attribute expression, they typically provide either detailed, object-specific localization of such a modification or full-scale fine-grained, nuanced control of attributes. No current approach offers both simultaneously, resulting in a gap when trying to achieve precise continuous and subject-specific attribute modulation in image generation. In this work, we demonstrate that token-level directions exist within commonly used CLIP text embeddings that enable fine-grained, subject-specific control of high-level attributes in T2I models. We introduce two methods to identify these directions: a simple, optimization-free technique and a learning-based approach that utilizes the T2I model to characterize semantic concepts more specifically. Our methods allow the augmentation of the prompt text input, enabling fine-grained control over multiple attributes of individual subjects simultaneously, without requiring any modifications to the diffusion model itself. This approach offers a unified solution that fills the gap between global and localized control, providing competitive flexibility and precision in text-guided image generation. Project page: https://compvis.github.io/attribute-control. Code is available at https://github.com/CompVis/attribute-control.

View on arXivView PDF

Code Implementations(1)

MIT

Fine-Grained Subject-Specific Attribute Expression Control in T2I Models

13715Python, Jupyter NotebookMar 15, 20241 years agoMIT

Similar Papers

Cite this paper

@article{baumann2024continuous,
  title  = {Continuous, Subject-Specific Attribute Control in T2I Models by Identifying Semantic Directions},
  author = {Stefan Andreas Baumann and Felix Krause and Michael Neumayr and Nick Stracke and Melvin Sevi and Vincent Tao Hu and Björn Ommer},
  year   = {2024},
  eprint = {2403.17064},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.17064v2},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.17064.svg)](https://codeofpaper.com/paper/2403.17064)

Discussion