This paper introduces CIGLI (Conditional Image Generation from Language and Image), a novel multimodal task that pushes the boundaries of how AI reasons across different types of data. While standard text-to-image models generate visuals from a prompt, CIGLI requires a model to generate a second image based on a textual description and a reference first image.
TL;DR
The authors propose a new generative task where an image is synthesized based on both a text caption and a prompt image, requiring the model to identify and "fill in" missing visual information. By fine-tuning a Deep Fusion GAN (DF-GAN) with feature concatenation, they demonstrate that models can learn to perform basic multimodal reasoning to generate semantically consistent image pairs.
What Problem Does This Paper Address?
Most current multimodal research focuses on discriminative tasks—like Natural Language Visual Reasoning (NLVR), where a model simply predicts "True" or "False" to determine if a caption matches a pair of images. While effective for classification, this doesn't capture the richness required for creative synthesis.
On the generation side, most models are either text-to-image or image-to-image. The "gap" the authors identify is conditional generation from both modalities simultaneously. In CIGLI, the text describes a global state (e.g., "There are two dogs in total"), and the first image provides partial context (e.g., an image with one dog). To succeed, the model must "subtract" the visual information in the first image from the text to realize it needs to generate exactly one more dog. This requires a deeper semantic understanding than simply drawing what a caption says.
Methods
The authors compare a two-step baseline against a direct fusion approach:
- Baseline Method: This uses a pipeline approach. First, an image-to-caption model generates a description of the "First Image." This generated text is concatenated with the original caption and fed into a standard text-to-image generator (AttnGAN or DF-GAN).
- Proposed Method (Feature Fusion): Instead of converting the image to text, the authors extract visual features using a pre-trained ResNet50 and text features using an LSTM. These vectors are fused directly. They tested two fusion techniques:
- Summation: Adding the vectors together.
- Concatenation: Joining the vectors into a larger representation.
The fused representation is then fed into a DF-GAN (Deep Fusion GAN), which is trained end-to-end to produce the final image.
Datasets
The authors constructed the CIGLI dataset by adapting the NLVR2 benchmark.
- Source: NLVR2 (Natural Language Visual Reasoning), which contains pairs of realistic images and natural language captions.
- Filtering: They removed all "FALSE" examples (where the caption doesn't match the images) to avoid the model learning to generate "noise."
- Heuristic Selection: They manually filtered for cases where the second image is directly dependent on the first. For instance, they kept examples involving counting across both images but discarded examples where the second image could be generated without looking at the first.
- Final Size: 24,178 valid data points.
Key Insights and Ideas
- Reasoning as a Generative Constraint: The core "aha moment" is that generation can serve as a much stricter test of multimodal reasoning than binary classification. If a model can't generate the correct number of objects, it clearly hasn't "understood" the relationship between the text and the prompt image.
- Concatenation Wins: The researchers found that concatenating image and text features outperformed simple summation. This suggests that keeping the modality-specific features distinct before the generation stage allows the GAN to better navigate the complex relationship between the two inputs.
- The "Commonality" Bias: Qualitative analysis showed the model is much better at generating common objects (like dogs) than rare ones (like alpacas), suggesting that the underlying generative backbone is still heavily influenced by the distribution of its pre-training data (MSCOCO).
Key Results
The authors evaluated their models using UNITER-Accuracy (how well a pre-trained reasoning model thinks the generated image matches the caption), Inception Score (image quality/diversity), and Human Evaluation.
- Quantitative: The DF-GAN Concatenated model was the clear winner, achieving an Inception Score of 11.30 (compared to 9.59 for the baseline) and a UNITER-Accuracy of 46.54%.
- Qualitative: Human evaluators found that the concatenated model produced images that were significantly more relevant and semantically correct than the summation or baseline models.
- The Gap: Despite the improvements, there is still a massive gap between generated images (46.54% accuracy) and the ground truth original images (76.07% accuracy), highlighting the difficulty of the CIGLI task.
Limitations and Future Work
- Visual Fidelity: While semantically "correct" in some cases, the generated images often lack the naturalness and high resolution of real photographs.
- Complex Spatial Reasoning: The model struggles with captions that require complex spatial comparisons (e.g., "the right image contains... while the left image contains...").
- Architecture Evolution: The authors suggest that moving from GANs to transformer-based architectures (like DALL-E or X-LXMERT) could significantly improve the quality and reasoning capabilities of models on this task.
Summary updated