Generative Adversarial Networks (GANs) have historically excelled at synthesizing images from global constraints, such as a class label ("bird") or a general text caption ("a red bird"). However, early models lacked "spatial agency." If a user wanted a bird to appear in the top-left corner or face a specific direction, the model made those decisions stochastically.
The Generative Adversarial What-Where Network (GAWWN) introduces a novel approach to control not just what a GAN draws (via text captions) but also where it draws it (via bounding boxes or part keypoints). By decomposing image synthesis into content and spatial constraints, GAWWN achieves higher-quality 128x128 images and provides a highly intuitive interface for controllable AI image generation.
Methods: The GAWWN Architecture
The challenge in controllable synthesis lies in instructing a neural network to place specific features in exact locations without breaking the realism of the generated image. GAWWN tackles this gap between high-level conceptual descriptions and pixel-level spatial control using two primary architectural variations:
- Bounding-Box-Conditional: The user provides a text description and a spatial bounding box. The model uses a Spatial Transformer Network (STN) to warp the text embedding into the specified box. The generator then processes the image through "local" (inside the box) and "global" (the whole scene) pathways, ensuring the generated object fits naturally into its surroundings.
- Keypoint-Conditional: For finer control—such as the exact pose of a bird's beak or tail—the model uses a set of $(x, y)$ coordinates. These are encoded into a spatial feature map. A multiplicative gating mechanism allows the network to "attend" to these specific part locations during the synthesis process.
A standout technical addition is the Conditional Keypoint Generation Model. Recognizing that users don't want to manually click 15 different bird parts, the authors built a secondary model that can "complete" a pose. If a user only specifies the beak and the tail, the model infers plausible locations for the rest of the body parts.
Datasets
The model was evaluated on two distinct domains:
- Caltech-UCSD Birds (CUB): A classic dataset of 11,788 bird images, rich with metadata including 10 captions per image and 15 part keypoints (beak, eyes, wings, etc.).
- MPII Human Pose (MHP): A much more challenging dataset of 25,000 images of humans performing various activities. The authors collected a new set of 3 captions per image specifically for this research to enable text-to-human synthesis.
Key Insights
- Divide and Conquer: Separating "what" from "where" actually makes the GAN's job easier. By providing spatial hints, the model doesn't have to "guess" the layout, allowing it to spend more of its representational capacity on texture and detail.
- Higher Resolution through Constraints: Previous text-to-image models typically topped out at 64x64 pixels. GAWWN successfully pushed this to 128x128, largely because the spatial constraints acted as a guide that stabilized training.
- Interpretability: Because the model is conditioned on specific locations, its internal representations become more interpretable. Observers can see how the network's "local pathway" responds directly to the bounding box drawn by the user.
Key Results
On the CUB dataset, GAWWN produced significantly sharper images with better-defined parts (like distinct beaks and eyes) compared to previous state-of-the-art models.
Crucially, the authors demonstrated robust spatial manipulation. They showed that they could "stretch," "shrink," and "translate" objects simply by modifying the input boxes or keypoints. The model realistically adjusts the bird's pose and the background to match the new constraints.
While the results on the MPII Human Pose dataset were blurrier than the birds, the paper represents one of the first successful attempts to generate humans in specific poses (e.g., "a man in an orange jacket skiing") from text and keypoints.
Limitations and Future Work
The most obvious limitation is the jump in complexity when moving from birds to humans. Humans exhibit a much wider variety of poses, clothing, and background interactions, which led to "ghostly" or blurry artifacts in the MHP results.
Additionally, the model currently relies on heavily supervised data (manually labeled boxes and keypoints). The authors suggest that future work could involve learning these object parts in an unsupervised or weakly supervised way, which would allow the "What-Where" logic to be applied to datasets that lack expensive manual annotations.
Summary updated