I Can't Believe There's No Images! Learning Visual Tasks Using only Language Data

Sophia Gu, Christopher Clark, Aniruddha Kembhavi · DOI

Introduction

Traditional Vision-Language (V&L) models, such as those used for image captioning and visual question answering, typically rely on massive datasets of paired images and text. Collecting these pairs is labor-intensive, expensive, and difficult to scale, particularly for niche domains or specific stylistic requirements. This paper introduces CLOSE (Cross modaL transfer On Semantic Embeddings), a novel framework that challenges the necessity of image-based training by demonstrating that visual tasks can be learned using zero training images.

The Problem: The Modality Gap

While contrastive models like CLIP provide a "shared" embedding space for text and images, these embeddings are not perfectly aligned. In practice, text and image vectors tend to fall into separate clusters, a phenomenon known as the modality gap. This gap presents a significant hurdle for cross-modal transfer: a model trained exclusively on text embeddings may fail when presented with image embeddings at test time because the inputs, while semantically related, occupy different regions of the vector space.

The CLOSE Framework

CLOSE treats visual tasks as a translation problem, mapping a semantic vector to a natural language response. The methodology consists of four primary components:

  1. Backbone Architecture: The system utilizes frozen encoders from a contrastive model (e.g., CLIP) and a pre-trained language model (T5).
  2. Text-Only Training: During the training phase, the model is exposed only to text data. A sentence is passed through the CLIP text encoder, and the resulting vector is fed into the T5 model to generate a target output, such as a caption or an answer.
  3. Bridging the Gap with Gaussian Noise: To account for the modality gap, the authors introduce simple Gaussian noise to the text embeddings during training. This noise "spreads" the text vectors, forcing the model to become robust to the distributional shifts it will encounter when processing image vectors at inference.
  4. Visual Inference: At test time, the text encoder is replaced with the CLIP image encoder. Because the model was trained to be robust to variations in the embedding space, it can interpret the image vector as a "noisy" version of a text vector and perform the task successfully.

Experimental Setup and Benchmarks

The researchers evaluated CLOSE across a diverse range of V&L benchmarks to test its versatility:

  • Image Captioning: Evaluated on COCO Captions.
  • Visual Entailment: Tested using SNLI-VE to determine if a model can infer logical relationships from visual data.
  • Visual Question Answering (VQA): Benchmarked on VQA 2.0 and VQA-E.
  • Complex Contextual Tasks: The Visual News dataset was used to test the model’s ability to generate captions based on news articles.
  • Stylistic Adaptation: To demonstrate flexibility, the model was trained on text from Amazon reviews, Harry Potter novels, and GPT-3 generated ego-centric text, allowing it to adopt specific personas without ever seeing a corresponding image.

Key Insights

The Power of Simple Noise

One of the most surprising findings was that simple Gaussian noise outperformed more complex linear adapters. This noise effectively simulates the inherent "fuzziness" of image representations—which include extraneous details like lighting and camera angles—forcing the model to prioritize core semantic content.

Robustness to the Modality Gap

Sensitivity analysis revealed that the model is remarkably resilient to constant offsets between text and image vectors. As long as the relative semantic positions of the vectors are preserved, the model can transfer skills across modalities with high fidelity.

Modality-Independent Reasoning

Success in Visual Entailment suggests that high-level logical reasoning is largely independent of the input modality. Once a model learns the linguistic logic that "a man outdoors" entails "a man on a beach," it can apply that logic to visual embeddings immediately.

Results

CLOSE achieved state-of-the-art (SOTA) results for text-only supervision:

  • Captioning: It surpassed previous text-only methods by 17 CIDEr points (95.4 vs 78.2).
  • Visual Entailment: It improved upon prior benchmarks by 9 points.
  • Visual News: Remarkably, CLOSE outperformed all previous models—including those trained with images—by over 30 points.
  • VQA: The text-only model performed within 3.5 to 5 points of the "upper bound" models trained on actual image-text pairs.

Limitations and Future Directions

While CLOSE represents a significant leap in text-only supervision, some limitations remain. Models trained on synthetic text occasionally exhibit "alignment artifacts," such as over-using specific words common in the training distribution (e.g., "pictured"). Additionally, the current study focuses on high-level semantics; further research is needed to determine how well this approach handles tasks requiring hyper-precise spatial grounding.

Ultimately, the authors suggest that the CLOSE framework is modality-agnostic. Future applications could extend this method to bridge other gaps, such as transferring skills between audio, video, and 3D point clouds, provided a contrastive embedding space exists for those modalities.

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 Data}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00252},
}
Figure