Unifying Vision-Language Representation Space with Single-Tower Transformer

Jiho Jang, Chaerin Kong, Donghyeon Jeon, Seonhoon Kim, Nojun Kwak

Introduction

Researchers have introduced OneR (One Representation), a framework designed to train a single Transformer "tower" to process both images and text within a truly unified embedding space. By employing a novel Cross-Modal Mixup technique to bridge the persistent "modality gap," OneR achieves state-of-the-art performance for single-tower models. Beyond standard benchmarks, it unlocks unique capabilities such as fine-grained zero-shot object localization and text-guided visual reasoning.

The Challenge of Single-Tower Architectures

Most modern vision-language models, such as CLIP, utilize a "two-tower" architecture where separate encoders handle images and text. While effective, this approach creates distinct mathematical spaces that are only linked at high levels of abstraction. A truly generic perceptual agent should be modality-agnostic, treating an image of an object and its textual description as different views of the same underlying concept.

Comparison of vision-language architectures: (a) Two Towers, (b) Two Legs, (c) Two Heads, and (d) the proposed One Tower.

However, building a single-tower model is notoriously difficult due to the modality gap. Visual signals (pixels) and linguistic symbols (words) are fundamentally different, often causing naive models to fail to converge or to treat the two data types as unrelated clusters. OneR addresses this by forcing both modalities into a shared representation space from the ground up.

The OneR Framework

OneR utilizes a standard Transformer encoder without modality-specific heads or specialized cross-attention layers. To achieve a unified space, the authors introduced three key training innovations:

  1. Cross-Modal Mixup (XMC): This technique linearly interpolates the embeddings of an image and its corresponding caption, forcing the model to map both modalities to a common middle ground.
  2. Contextual Invariance Contrastive (CIC) Loss: This loss function encourages the model to extract identical semantic information regardless of whether the surrounding context is visual or textual.
  3. Contextual Mixup Contrast (CMC): A unified objective that allows the model to process "mixture" inputs—concatenated image patches and text tokens—seamlessly.

Unlike many competitors that initialize from pre-trained models, OneR is trained from scratch on approximately 4 million images and 5.1 million image-text pairs from datasets like CC3M, SBU Captions, Visual Genome, and MS-COCO.

Key Insights and Results

OneR demonstrates that the failure of previous single-tower models was a geometric problem rather than a lack of capacity. Cross-Modal Mixup acts as the necessary glue to bind disparate signals.

  • Zero-Shot Performance: On ImageNet-1K, a naive single-tower model achieves only 1.65% top-1 accuracy. With the CMC loss, OneR jumps to 23.70%, outperforming other single-tower baselines.
  • Retrieval Excellence: On the MS-COCO 5K test set, OneR achieved a 62.9 R@1 for text retrieval, the highest among one-tower models at this scale.
  • Emergent Capabilities: Because image patches and words share the same space, OneR can perform highly accurate zero-shot object localization. Additionally, users can "steer" the model's attention by concatenating text to an image input (e.g., adding "Look at animal" to shift focus from a person to a dog).

Limitations and Future Work

While OneR excels among single-tower architectures, "two-leg" models (which use separate encoders before a fusion layer) still maintain a slight edge in raw retrieval metrics due to higher parameter counts and specialized layers. Furthermore, while OneR performs well at a 4-million image scale, future research is needed to determine if these benefits persist when scaling to the hundreds of millions or billions of parameters and images. The authors suggest that this unified approach could eventually support "generic perceptual agents" handling additional modalities like audio or depth in a single cohesive space.

Summary updated

BibTeX
@inproceedings{jang2023unifying,
  author = {Jiho Jang and Chaerin Kong and Donghyeon Jeon and Seonhoon Kim and Nojun Kwak},
  title = {{Unifying Vision-Language Representation Space with Single-Tower Transformer}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25178},
}
Figure