Aligned Image-Word Representations Improve Inductive Transfer Across Vision-Language Tasks

Tanmay Gupta, Kevin J. Shih, Saurabh Singh, Derek Hoiem

Abstract

An important goal of computer vision is to build systems that learn visual representations over time that can be applied to many tasks. In this paper, we investigate a vision-language embedding as a core representation and show that it leads to better cross-task transfer than standard multitask learning. In particular, the task of visual recognition is aligned to the task of visual question answering by forcing each to use the same word-region embeddings. We show this leads to greater inductive transfer from recognition to VQA than standard multitask learning. Visual recognition also improves, especially for categories that have relatively few recognition training labels but appear often in the VQA setting. Thus, our paper takes a small step towards creating more general vision systems by showing the benefit of interpretable, flexible, and trainable core representations.

Introduction

A central challenge in computer vision is developing models capable of inductive transfer—the ability to leverage knowledge gained from one task to improve performance on another. Traditional multitask learning approaches typically share a common feature extraction backbone (e.g., a ResNet) but utilize separate, task-specific heads. While this shares low-level visual features, it does not guarantee semantic alignment between tasks. For instance, a model might learn to recognize a "red jacket" in a classification task without inherently understanding how to apply that knowledge to answer a question about the jacket's color in a Visual Question Answering (VQA) context.

Overview of the SVLR framework aligning visual recognition and VQA tasks through a shared representation space.

To address this, we propose the Shared Vision-Language Representation (SVLR) module. This approach moves beyond simple feature sharing by projecting image regions and word labels into a common, aligned semantic space, effectively creating a shared "dictionary" that facilitates cross-task learning.

The Shared Vision-Language Representation (SVLR) Module

The SVLR module treats labels not as discrete identifiers, but as continuous vectors. It projects both word embeddings (initialized from pre-trained word2vec) and image region features (extracted via ResNet and Edge Boxes) into a shared 300-dimensional space.

Alignment and Grounding

In this framework, Visual Recognition is formulated as an alignment task: an image region is classified by finding the word embedding in the shared space that is closest to the region's visual embedding via an inner product.

For Visual Question Answering, the SVLR module serves two primary functions:

  1. Attention: The model identifies relevant image regions by matching nouns and adjectives from the question and candidate answers to visual region embeddings.
  2. Answer Scoring: Visual features from these relevant regions are pooled and combined with question/answer embeddings to predict a final score.
The joint training pipeline utilizing the SVLR module across object recognition, attribute recognition, and VQA.

Joint Training

The system is trained simultaneously on recognition data from Visual Genome (1,000 object and 1,000 attribute categories) and the VQA dataset. By sharing the SVLR module, gradients from the VQA task directly inform the recognition task and vice versa, leading to a more robust and transferable representation.

Experimental Results

Our experiments demonstrate that semantic alignment significantly outperforms standard feature-sharing multitask learning.

  • Enhanced VQA Performance: The Joint SVLR model achieved a 2.4% accuracy improvement over a VQA-only baseline, doubling the 1.2% gain seen with standard multitask learning. Notably, "What color" questions saw an 8.6% jump, indicating superior attribute grounding.
  • Recognition Gains for Rare Classes: Joint training improved overall object recognition by 1.2%. The benefit was most pronounced for "long-tail" categories (fewer than 125 training examples), where accuracy rose from 21% to 32%, demonstrating that VQA acts as a form of weak supervision.
  • Zero-Shot Capabilities: Due to the aligned space, a model trained exclusively on recognition can perform VQA tasks at 16.4% accuracy—significantly higher than the 5.6% chance level—by matching question words to visual regions.
  • Interpretability: The attention mechanism, rooted in explicit word-region similarity, produces attention maps that correlate more closely with human eye-tracking data than previous state-of-the-art models.

Conclusion and Future Work

The SVLR module demonstrates that forcing vision-language tasks to share an interpretable semantic dictionary leads to superior inductive transfer. While the model currently excels at semantic matching, it faces challenges with complex logical reasoning, counting, and spatial relations. Future work will explore extending this framework to additional tasks like image captioning and phrase localization to further refine the core visual-semantic representation.

Summary updated

BibTeX
@inproceedings{gupta2017aligned,
  author = {Tanmay Gupta and Kevin J. Shih and Saurabh Singh and Derek Hoiem},
  title = {{Aligned Image-Word Representations Improve Inductive Transfer Across Vision-Language Tasks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=HyWcoZf_-B},
}
Figure