AttrLostGAN: Attribute Controlled Image Synthesis from Reconfigurable Layout and Style

Stanislav Frolov, Avneesh Sharma, Jörn Hees, Tushar Karayil, Federico Raue, Andreas Dengel

TL;DR

AttrLostGAN is a new generative model that allows for fine-grained control over individual objects within a complex AI-generated scene. By extending layout-to-image synthesis with specific attribute labels (like color, material, or state), it enables users to iteratively "reconfigure" an image—changing a sheep from "white" to "black" or a plane from "metal" to "orange"—without disrupting the rest of the picture.

What Problem Does This Paper Address?

Conditional image synthesis has come a long way, but it often feels like a "one-shot" gamble. If you use a layout-to-image (L2I) model, you can tell the AI where to put a person or a car, but you have very little control over how they look. Most existing models rely on "latent style codes"—essentially random noise that determines the appearance. If you don't like the color of a generated shirt, your only option is to re-sample the noise and hope the next version is better, which often changes the entire object or even the whole scene.

The authors of AttrLostGAN wanted to bridge this gap. They aimed to create a system where a user can interactively and iteratively build a scene, specifying not just the "what" and "where," but the specific "attributes" of every object in a way that is predictable and localized.

Methods

The researchers built their work on top of LostGAN, a state-of-the-art architecture known for its "reconfigurable" nature. The secret sauce of AttrLostGAN lies in two major technical shifts:

  1. Attr-ISLA (Attribute Instance-Sensitive and Layout-Aware Normalization): Standard LostGAN uses ISLA-Norm to control object appearance based on class labels (e.g., "tree"). The authors extended this by adding an Attribute Embedding layer. This layer takes binary attribute vectors (representing things like "green," "cloudy," or "sitting") and processes them through a multi-layer perceptron (MLP). These embeddings are then fused with the style noise to compute the mathematical parameters that shape the final pixels.
  2. Multi-Task Discriminator: To ensure the generator actually listens to the attribute commands, the discriminator was upgraded. It doesn't just judge if the image looks "real"; it has specific "heads" that check if the objects match their class labels and, crucially, if they match their assigned attributes.
  3. Adversarial Hinge Loss: The model uses a specific loss function that penalizes the generator if the attributes of the generated objects don't align with the input.

Datasets

The model was evaluated on two distinct benchmarks:

  • MNIST Dialog: A synthetic dataset created by the authors. It consists of MNIST digits placed on a canvas with attributes like digit color, background color, and stroke thickness. This served as a "controlled lab" to prove the model could handle basic reconfigurations.
  • Visual Genome: A notoriously difficult real-world dataset. The authors filtered it to include 178 object classes and the most common attributes (appearing at least 2,000 times), resulting in a complex benchmark of multi-object scenes.

Key Insights and Ideas

  • The Power of "One-to-Many": Even though the model uses explicit attributes, it still keeps the random "latent style codes." This is a clever design choice: the attributes provide the coarse control (e.g., "make it red"), while the latent codes provide the fine variety (e.g., "which specific shade of red or texture?").
  • Localized Editing: One of the most impressive "aha moments" in the paper is the demonstration of iterative reconfiguration. You can add a mountain, then a person, then change the sky from "bright" to "grey," and the previously generated objects remain remarkably stable.
  • Intentional Interaction: The authors noted that nearby or overlapping objects can slightly influence each other's style. While this might seem like a bug, they argue it's actually a feature—in the real world, objects reflect light onto one another, and this "entanglement" helps create a more cohesive-looking scene.

Key Results

AttrLostGAN significantly outperformed previous baselines in both quality and control:

  • Quantitative Success: On the Visual Genome dataset (128x128), AttrLostGANv2 achieved an FID (Fréchet Inception Distance) of 31.57, beating the previous attribute-guided baseline (Ke Ma et al.) which sat at 43.26. A lower FID means the images are much closer to real-world distribution.
  • Attribute Accuracy: The Attr-F1 score (measuring how well the generated objects matched the requested attributes) reached 14.61, a notable improvement over the 12.62 of previous methods.
  • Higher Resolution: The model successfully scaled to 256x256 resolution, producing images that, while still recognizably AI-generated, show much clearer object details and textures than prior layout-based models.

Limitations and Future Work

Despite the progress, the authors highlight a few hurdles:

  • Data Scarcity: High-quality attribute annotations are rare and expensive to produce. The model's performance is currently capped by the quality of the labels in datasets like Visual Genome.
  • Partial Entanglement: Sometimes, changing an attribute (like color) might slightly alter the shape of an object. Achieving perfect "disentanglement" remains an open challenge.
  • Natural Language: Currently, the model uses discrete labels/tags. The authors suggest that moving toward natural language descriptions (e.g., "a fluffy white sheep") would be the next logical step for a more intuitive user interface.

Summary updated

BibTeX
@inproceedings{frolov2021attrlostgan,
  author = {Stanislav Frolov and Avneesh Sharma and Jörn Hees and Tushar Karayil and Federico Raue and Andreas Dengel},
  title = {{AttrLostGAN: Attribute Controlled Image Synthesis from Reconfigurable Layout and Style}},
  booktitle = {GCPR},
  year = {2021},
  url = {https://openreview.net/forum?id=MvazV4ywal},
}
Figure