L-Verse: Bidirectional Generation Between Image and Text

Taehoon Kim, Gwangmo Song, Sihaeng Lee, Sangyun Kim, Yewon Seo, Soonyoung Lee, Seung Hwan Kim, Honglak Lee, Kyunghoon BaeCVPR 2021

Abstract

Far beyond learning long-range interactions of natural language, transformers are becoming the de-facto standard for many vision tasks with their power and scalability. Especially with cross-modal tasks between image and text, vector quantized variational autoencoders (VQ-VAEs) are widely used to make a raw RGB image into a sequence of feature vectors. To better leverage the correlation between image and text, we propose L-Verse, a novel architecture consisting of a feature-augmented variational autoencoder (AugVAE) and a bidirectional auto-regressive transformer (BiART) for image-to-text and text-to-image generation. Our AugVAE shows state-of-the-art reconstruction performance on the ImageNet1K validation set, along with robustness to unseen images in the wild. Unlike other models, BiART can distinguish between image (or text) as a conditional reference and a generation target. L-Verse can be directly used for image-to-text or text-to-image generation without any finetuning or extra object detection framework. In quantitative and qualitative experiments, L-Verse shows impressive results against previous methods in both image-to-text and text-to-image generation on MS-COCO Captions. We furthermore assess the scalability of the L-Verse architecture on Conceptual Captions and present the initial result of bidirectional vision-language representation learning on the general domain.

Introduction

Traditionally, the bridge between vision and language has been a one-way street. Researchers usually build one model for image captioning and a completely different one for generating images from text. Furthermore, many image-to-text models rely on "heavy" pre-processing, such as using a pre-trained Faster R-CNN to detect objects before a transformer even sees the image. The authors of L-Verse argue that this is inefficient. They hypothesize that learning the relationship between images and text bidirectionally—treating them as two sides of the same coin—can improve data efficiency and model stability. They also aim to eliminate the need for external object detection frameworks, creating a more streamlined, end-to-end system.

Methods: AugVAE and BiART

L-Verse consists of two primary components designed to bridge the gap between visual and textual modalities:

  1. AugVAE (Feature-Augmented Variational Autoencoder): To turn an image into a sequence of "visual words" (tokens) that a transformer can understand, the authors improved upon the standard VQ-VAE. They introduced cross-level feature augmentation, which shares weights across different hierarchical levels of the encoder. This increases the diversity of the visual codebook, allowing the model to reconstruct images with much higher fidelity than previous methods.
  2. BiART (Bidirectional Auto-Regressive Transformer): This is the "brain" of the system. It is a GPT-style transformer that utilizes segment embeddings. Every token fed into the model is marked as either a conditional reference ([REF]) or a generation target ([GEN]). This allows the same model to understand that if it is given text as a [REF], it should generate image tokens as [GEN], and vice versa.

By alternating between these two directions during training, the model learns a more robust, reversible mapping between the two domains. This bidirectional training acts as a stabilizer, relieving the "heterogeneity" problem between image and text data and leading to faster convergence.

A sample image from the MS-COCO dataset, featuring a boy playing with a frisbee, used to evaluate bidirectional generation.

Experimental Setup and Datasets

The researchers used several standard benchmarks for training and evaluation:

  • ImageNet1K: Used to train the AugVAE for general image reconstruction.
  • MS-COCO Captions: The primary dataset for training and evaluating bidirectional generation (BiART).
  • Conceptual Captions: A larger, noisier dataset (3 million pairs) used to test the scalability of the architecture and its "zero-shot" generation capabilities.
  • Unseen Domains: Evaluation was performed on CelebA-HQ, FFHQ, AFHQ, and OpenImages to test the robustness of the AugVAE.

Key Results

L-Verse demonstrates significant improvements over existing baselines in both reconstruction and generation tasks:

  • SOTA Reconstruction: AugVAE-ML achieved a Fréchet Inception Distance (FID) of 1.04 on ImageNet1K, significantly outperforming DALL-E’s dVAE and VQGAN. This high fidelity is crucial for maintaining semantic integrity during the tokenization process.
  • Superior Captioning: On the MS-COCO benchmark, L-Verse outperformed previous state-of-the-art models (like $M^2$ Transformer) across nearly all metrics, including BLEU-4 (39.9) and SPICE (23.3), notably without using any external object detection.
  • Human Preference: In a human evaluation study, L-Verse's generated captions were preferred or rated equal to human-written ground truth captions 30.4% of the time.
A high-fidelity landscape reconstruction demonstrating the capabilities of the AugVAE component.

Conclusion

L-Verse proves that a sufficiently powerful visual tokenizer (AugVAE) can capture enough semantic information that the model doesn't need an explicit list of detected objects to write a good caption. By simplifying the architecture through segment embeddings and bidirectional training, L-Verse serves as a unified framework for cross-modal tasks. Future work will focus on scaling the model to even larger datasets and exploring cross-modal representations across domains beyond just image and text.

Summary updated

BibTeX
@inproceedings{kim2021l,
  author = {Taehoon Kim and Gwangmo Song and Sihaeng Lee and Sangyun Kim and Yewon Seo and Soonyoung Lee and Seung Hwan Kim and Honglak Lee and Kyunghoon Bae},
  title = {{L-Verse: Bidirectional Generation Between Image and Text}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=X9_Fsz-o5ts},
}
Figure