I can't believe there's no images! : Learning Visual Tasks Using Only Language Supervision

Sophia Gu, Christopher Clark, Aniruddha Kembhavi

Introduction

State-of-the-art computer vision models typically rely on massive datasets of images paired with human-annotated labels or captions. This dependency creates significant bottlenecks: data collection is expensive, slow, and often results in models that struggle to adapt to diverse linguistic styles. In contrast, raw text is nearly infinite and easily accessible. Researchers from the Allen Institute for AI have introduced CLOSE (Cross modaL transfer On Semantic Embeddings), a novel framework that challenges the necessity of image-based training for visual tasks. CLOSE demonstrates that a model can learn high-level reasoning skills—such as image captioning and visual question answering—using zero images during the training phase.

The Challenge: The Modality Gap

The primary obstacle to training vision models on text alone is the "modality gap." Even in joint embedding models like CLIP, which aim to align visual and textual representations, the vector for a word (e.g., "dog") and the vector for a corresponding image do not perfectly overlap. They reside in slightly different regions of the same mathematical space. Consequently, a model trained exclusively on text embeddings often fails when presented with image embeddings at test time due to this distribution shift.

The CLOSE Method

The core innovation of CLOSE is its elegantly simple approach to bridging this gap. The workflow consists of three main stages:

  1. Text-Only Training: The model takes a text description, passes it through a frozen CLIP text encoder to generate a vector, and then trains a language model (specifically T5) to perform a task based on that vector.
  2. Strategic Noise Injection: To account for the modality gap, the researchers add Gaussian noise to the text vectors during training. This "spreads out" the text embeddings, forcing the model to become robust to the slight shifts it will encounter when processing image vectors later.
  3. Cross-Modal Inference: At test time, the text encoder is swapped for a frozen CLIP image encoder. Because the T5 model learned to be invariant to vector shifts during training, it can successfully interpret the image vector and perform the task without ever having seen an image during training.
The CLOSE framework: Training on text embeddings with noise to enable zero-shot transfer to image embeddings.

Experimental Setup and Datasets

CLOSE was evaluated across four major benchmarks to test its versatility: COCO (image captioning), SNLI-VE (visual entailment), VQA 2.0 & VQA-E (visual question answering), and Visual News.

A unique advantage of CLOSE is its ability to perform Stylistic Captioning by leveraging non-visual text datasets. The researchers taught the model new "voices" using Amazon Product Reviews, Harry Potter literature, and GPT-3 generated text for ego-centric captions. This allows for the creation of vision models with specific stylistic traits that would be impossible to train using traditional paired datasets.

Examples of text-only training data sources and the resulting zero-image-trained model's inference on real images.

Key Results and Insights

The performance of CLOSE is remarkable given its lack of visual training data. In image captioning, it achieved a CIDEr score of 95.3 on COCO, outperforming previous text-only state-of-the-art methods by 17 points. In the Visual News task, the model surpassed previous records by over 30 points, even beating some models that had access to images during training.

Several key insights emerged from this research:

  • The Modality Gap is a Constant Offset: Since the relative positions of concepts remain consistent across both spaces, the model can generalize once it learns to ignore this shift.
  • Noise as a Regularizer: Adding noise effectively simulates the inherent "fuzziness" of image embeddings, which often contain extraneous visual details like lighting and background that text embeddings lack.
  • Zero-Shot Style Transfer: CLOSE enables models to adopt writing styles for which paired image-text data does not exist, simply by training on the target text style.

Limitations and Future Directions

Despite its success, a performance gap remains between CLOSE and models trained on millions of images. Visual Question Answering (VQA) remains particularly challenging because text captions often omit the hyper-specific details required to answer niche questions. Future research will explore applying the CLOSE methodology to other modalities, such as audio, video, or 3D point clouds, potentially allowing models to learn a task in one sensory domain and immediately apply it to another.

Summary updated

BibTeX
@inproceedings{gu2023i,
  author = {Sophia Gu and Christopher Clark and Aniruddha Kembhavi},
  title = {{I can't believe there's no images! : Learning Visual Tasks Using Only Language Supervision}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00252},
}
Figure