RankT2I: A Submodular Framework for Discovering Interpretable and Diverse Semantics in Text-to-Image Models
Organizations: Virginia Tech, Blacksburg, VA, USA
Abstract
Recent advances in text-to-image (T2I) models have revolutionized the field of image generation and editing. However, identifying semantics that a T2I model can successfully edit in an image continues to be a challenging task. Most existing approaches require users to manually specify semantics to modify a particular image, a time-consuming process that often involves extensive trial and error. In this paper, we present RankT2I, a novel, training-free, and model-agnostic framework that automates the discovery of editable semantics in diffusion and FLUX-based models. Given a visual domain, we first utilize a multimodal vision-language model to gather a broad set of candidate semantics. We then frame semantic discovery as a set selection problem and use a submodular objective to identify semantics that are relevant, editable, and diverse. Our method helps users efficiently identify a wide range of semantics for text-to-image editing models across several domains while outperforming existing methods.
Figures & tables
| Model | Method | I2I | TCE | TIE | CLIP-T | TIFA | VQA |
| SD | NoiseCLR | 0.8439 | 13.8819 | 34.2546 | 0.2378 | 0.3402 | 0.5484 |
| SD | SliderSpace | 0.8682 | 16.5061 | 32.9884 | 0.2355 | 0.3872 | 0.5236 |
| SD | Ours | 0.7800 | 26.4701 | 41.1987 | 0.2595 | 0.6078 | 0.8177 |
| FLUX | SliderSpace | 0.9210 | 12.5769 | 35.2775 | 0.2542 | 0.3462 | 0.6737 |
| FLUX | Ours | 0.8405 | 22.8102 | 40.7330 | 0.2840 | 0.7159 | 0.9206 |
| Model | Method | I2I | TCE | TIE | CLIP-T | TIFA | VQA |
| SD | First-K | 0.9039 | 12.5140 | 26.4074 | 0.2577 | 0.2290 | 0.7012 |
| SD | Random | 0.8611 | 14.5577 | 32.4777 | 0.2595 | 0.3356 | 0.6972 |
| SD | K-Means | 0.8433 | 19.1433 | 34.5400 | 0.2635 | 0.4156 | 0.7592 |
| SD | Cos. Sim. | 0.9002 | 13.2874 | 27.5639 | 0.2764 | 0.4846 | 0.7459 |
| SD | Ours | 0.8436 | 19.6326 | 35.5105 | 0.2688 | 0.5021 | 0.8048 |
| FLUX | First-K | 0.8962 | 12.6479 | 30.7635 | 0.2631 | 0.4224 | 0.7028 |
| Model | Method | Keyword | Training | Generation | Ranking | Total |
| SD | NoiseCLR | 0 | 1114m 3s | 3m 11s | 0 | 1117m 14s |
| SD | SliderSpace | 0 | 389m 33s | 2m 15s | 0 | 391m 48s |
| SD | Ours | 24s | 0 | 42m 21s | 29s | 43m 14s |
| FLUX | SliderSpace | 0 | 287m 36s | 3m 1s | 0 | 290m 37s |
| FLUX | Ours | 25s | 0 | 112m 40s | 1m 13s | 114m 18s |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | CLIP-T | TIFA | VQA |
| SD | 0.282 | 0.724 | 0.897 |
| FLUX | 0.276 | 0.799 | 0.912 |
| Prompt Template |
| Generate a Python string array containing distinct prompts for editing an image of <SUBJECT>. The prompts should span a wide range of attribute categories to produce diverse variations of the scene. Example Attribute Structure: Broad Category 1: attribute 1, attribute 2, attribute 3, … |
| Broad Category 2: attribute 1, attribute 2, attribute 3, … |
| Broad Category 3: attribute 1, attribute 2, attribute 3, … |
| Broad Category 4: attribute 1, attribute 2, attribute 3, … |
| etc. |
| Prompt Example (Ancient Ruins) |
| Generate a Python string array containing distinct prompts for editing an image of ancient ruins. The prompts should span a wide range of attribute categories (e.g., time of day, weather, ruins condition, ruins design, style, etc.). Example Attribute Categories: Time of day: sunrise, sunset, night, etc. |
| Weather: bright and sunny, overcast, rainy, etc. |
| Ruins design: faded murals, domed structures, etc. |
| Style: sepia-toned, monochrome, etc. |
| etc. |
| Potential List of Semantics (Ancient Ruins) |
| "Make the ruins at sunrise",\ "Make the ruins at sunset",\ "Make the ruins in the early morning",\ "Make the ruins at noon",\ "Make the ruins in the afternoon",\ "Make the ruins in the evening",\ "Make the ruins at dusk",\ "Make the ruins at night",\ "Make the ruins under a full moon",\ "Make the ruins bright and sunny",\ "Make the ruins overcast",\ "Make the ruins rainy",\ "Make the ruins misty",\ "Make the ruins dust-filled",\ "Make the ruins with broken columns",\ "Make the ruins with fallen pillars",\ "Make the ruins with cracked stone walls",\ "Make the ruins with collapsed arches",\ "Make the ruins with scattered stone rubble",\ "Make the ruins partially buried in sand",\ "Make the ruins submerged in shallow water",\ "Make the ruins heavily eroded",\ "Make the ruins structurally intact",\ "Make the ruins crumbling",\ "Make the ruins with ancient runes",\ "Make the ruins with carved stone patterns",\ "Make the ruins with faded murals",\ "Make the ruins with engraved symbols",\ "Make the ruins with monumental statues",\ \ldots\ ] |
Diffusion-Based Image Editing
Diffusion-based image editing changes image content, style, or attributes while aiming to preserve the parts users want to keep.
See all 225 papers