Overview
InCoDe (Interpretable Compressed Descriptions) is a novel framework that leverages information-theoretic principles to represent images as a sequence of highly informative, binary question-answer pairs. By greedily selecting the most "telling" questions first, InCoDe creates a succinct and human-readable "code." This approach allows for significantly better control and fine-grained editing of generated images compared to standard text-to-image models.
The Challenge of Precise Control
While modern generative models like Stable Diffusion and DALL-E 3 produce stunning visuals, they are notoriously difficult to control with precision. Natural language prompts are inherently ambiguous—there are infinite ways to describe the same bedroom—and these models frequently struggle with complex compositions, negations (e.g., "a room without a window"), and long lists of specific attributes.
The authors argue that true control requires a data representation that is both interpretable (humans can understand it) and compressed (it captures the most important semantic factors efficiently). Current models lack a canonical semantic representation, making it hard for users to tweak specific elements of a scene without inadvertently altering the entire composition.
How InCoDe Works
The core of InCoDe is a technique called Information Pursuit (IP). Instead of relying on a free-form text prompt, the system represents an image through a set of predefined, task-specific questions (e.g., "Is there a rug?", "Are the walls white?").
The framework consists of three main modules:
- The Querier (Encoder): Using IP, this module greedily selects the next question that provides the maximum "information gain" about the rest of the scene, given the answers already received.
- The QuerySet Answerer (Decoder): This module predicts the answers to all possible questions in the set based on only a small subset of answered queries.
- The Generator: A diffusion model (specifically Stable Diffusion v1-4) fine-tuned using LoRA (Low-Rank Adaptation). It is conditioned on these query-answer pairs via a novel "query embedder" that maps binary answers into the model's cross-attention layers.
By simply flipping an answer from "Yes" to "No," a user can perform targeted modifications, precisely editing one aspect of the image while the rest of the semantic code keeps the overall scene consistent.
Key Insights and Innovations
- Information-Theoretic Similarity: The paper mathematically defines "semantic similarity": two images are $k$-similar if they share the same answers to the first $k$ most informative questions. This provides a more principled way to measure image similarity than standard pixel-wise or feature-based metrics.
- Efficiency through Compression: You do not need to answer every possible question to describe a scene. Because many attributes are correlated (e.g., "bunk beds" implies "more than one bed"), the Information Pursuit algorithm can capture the essence of an image with just a few well-chosen queries.
- Handling Negation: Because the model is explicitly trained on binary "Yes/No" states, it handles negations far better than standard text-to-image models, which often ignore exclusionary words like "no" or "without."
- Beyond Attributes: InCoDe isn't limited to semantic text queries; it can also work with "location-based queries" (pixel patches), allowing the model to reconstruct an entire image from just a few scattered glimpses.
Datasets and Results
The researchers evaluated InCoDe across four datasets of increasing complexity: CLEVR Colors, CelebA, and two new benchmarks created for this paper based on LSUN Bedroom and LSUN Churches. These new benchmarks utilized Large Language Models (LLMs) to generate descriptive queries and Visual Question Answering (VQA) models to provide ground-truth answers.
Key Findings: * Superior Controllability: InCoDe significantly outperformed Stable Diffusion v1-4, SDXL, and Structured Diffusion in compositional generation. On the LSUN Bedroom dataset, InCoDe achieved an Accuracy of 0.85 and an F1-score of 0.84, while the base Stable Diffusion model trailed at 0.61 and 0.62, respectively. * Faster Convergence: In reconstruction tasks (like CelebA faces), images generated using InCoDe's "Learned Querier" converged to the reference image much faster than those using a random selection of questions. * Qualitative Precision: The authors successfully showcased targeted modifications where changing a single attribute (like turning off a nightstand light) resulted in a realistic change without altering the bed's position or the room's layout.
Limitations and Future Work
While powerful, InCoDe has limitations. The current framework requires a predefined "query set" for each domain, limiting its use as a general-purpose generator. Furthermore, while LLMs help, designing these query sets can still be tedious. Future work will likely focus on frameworks where the semantic domain can be defined without direct supervision of the query set. Finally, the raw image quality remains tied to the underlying base diffusion model (SD v1-4).
Summary updated