Learning Words by Drawing Images.

Didac Suris, Adrià Recasens, David Bau, David Harwath, James R. Glass, Antonio TorralbaCVPR 2019 · DOI

TL;DR

This paper introduces a novel framework for learning word-attribute correspondences by leveraging Generative Adversarial Networks (GANs) to create targeted training examples. By "editing" GAN-generated images to highlight specific visual attributes, they train an audio-visual model to better associate spoken words with these abstract concepts, achieving improved performance on attribute recognition.

What Problem Does This Paper Address?

Learning to associate spoken words with abstract visual attributes (like color, shape, or size) is a fundamental aspect of human learning, often facilitated by drawing and observing variations. However, current machine learning models struggle with this, especially when dealing with unannotated raw audio. While GANs can generate realistic images and their internal representations can be manipulated, there's a gap in using this manipulation capability to create effective training data for audio-visual learning, particularly for disentangling subtle attribute differences. Existing methods often rely on text captions or struggle to isolate and learn abstract concepts.

Methods

The core of the proposed method lies in using GANs to generate "edited" images that serve as targeted negative examples for training an audio-visual model.

  • GAN Interventions: The authors leverage recent findings that GANs learn disentangled representations. They manipulate the internal "hidden" representations of a trained GAN (specifically, the fourth convolutional layer) to alter specific visual attributes in generated images. This is done by ablating (setting to zero) specific feature channels.
  • Targeted Editing: Initially, random ablations are used to generate diverse edited examples. Later, a more sophisticated approach is employed:
  • Clustering Learned Features: The audio-visual model's learned features are clustered to identify groups of neurons that co-activate with specific concepts (e.g., "red," "cube").
  • Cluster-Inferred Segmentation: These clusters are used to infer segmentation masks for visual attributes.
  • Attribute-Specific Ablation: The GAN units responsible for generating the visual concept corresponding to a cluster are identified and ablated, creating edited images that specifically change that attribute.
  • Triplet Loss Training: The edited images are used as negative examples in a triplet loss framework. The model is trained to distinguish between a correct image-audio pair and an edited image that should not match the audio. This forces the model to learn finer distinctions between similar concepts.
  • Curriculum Learning: The training proceeds in stages: first, a basic model is trained with random negatives; then, with randomly edited examples; and finally, with targeted edited examples. This curriculum helps the model progressively learn more nuanced attribute distinctions.

Datasets

  • CLEVR Dataset: The authors use the CLEVR dataset, a synthetic visual dataset of simple objects with controllable attributes, as the basis for generating images.
  • Audio CLEVRGAN Dataset: A new dataset is introduced, consisting of 50,000 GAN-generated CLEVR images. These images are paired with:
  • 20,000 human-annotated audio descriptions.
  • 30,000 synthetically generated audio descriptions (derived from attribute information). This dataset is crucial as it provides audio descriptions for GAN-generated images, enabling the training of audio-visual models without relying on text captions.

Key Insights and Ideas

  • GANs as "Drawing" Tools for Learning: The paper frames GANs not just as image generators but as tools that can "draw" variations of concepts, enabling targeted learning. By manipulating GANs, we can create the "counterexamples" that are essential for robust concept learning.
  • Targeted Negatives are Crucial: Randomly generated negative examples are insufficient for learning subtle attribute distinctions. Precisely crafted negative examples, which differ from the positive example in a single, informative way, are key to improving attribute recognition.
  • Self-Supervised Attribute Learning: The framework learns attribute-word correspondences without explicit ground-truth attribute labels for the audio or requiring text transcriptions. The audio descriptions themselves, combined with GAN interventions, provide the necessary supervision.
  • Bridging GANs and Audio-Visual Learning: The work establishes a valuable connection between the representational power of GANs and the task of learning grounded language representations from audio.

Key Results

  • Improved Attribute Recognition: Models trained with targeted edited examples show significant improvements in semantic accuracy for detecting particular attributes (e.g., color, shape, size) compared to baseline models and those trained with random edits. For instance, on the synthetic dataset, the "HN+Target Edits" model achieved a mean accuracy of 84.6%, a notable increase over the baseline "DaveNet" at 67.6%.
  • Enhanced Recall: The recall for image-audio and audio-image retrieval also improved substantially when using edited examples, especially when combined with hard negative mining. The "HN+Targeted Edits" model achieved a recall of 99.9% on the synthetic dataset.
  • Generalization to Real Images: The knowledge learned from GAN-generated images with edited examples showed promising generalization to original CLEVR images, achieving 59% accuracy on a task where a regular model trained without edited examples only achieved 54%.
  • Successful Attribute Modification: The system successfully modified particular attributes in edited images, with the system being able to modify caption content in 88% of the edits.

Limitations and Future Work

  • Reliance on GAN Quality: The effectiveness of the editing process is dependent on the quality and disentanglement of the underlying GAN. If the GAN does not learn well-separated representations, targeted edits may be difficult or impossible.
  • Clustering Quality: The success of targeted edits relies on the quality of the learned concept clusters. If clusters are not well-defined or do not accurately reflect semantic concepts, the interventions may not be effective.
  • Generalization to Natural Images: While some generalization to original CLEVR images was shown, further work is needed to improve performance on complex, natural images where attributes are less clearly defined and more intertwined.
  • Future Work: The authors suggest that as GAN algorithms improve, the ability to generate more accurate and diverse edited examples will lead to further gains in audio-visual learning. They also highlight the potential for this framework to be applied to other domains where generative models can be manipulated.

Summary updated

BibTeX
@inproceedings{suris2019learning,
  author = {Didac Suris and Adrià Recasens and David Bau and David Harwath and James R. Glass and Antonio Torralba},
  title = {{Learning Words by Drawing Images.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00213},
}
Figure