Vx2Text: End-to-End Learning of Video-Based Text Generation From Multimodal Inputs

Lorenzo Torresani

Abstract

We present VX2TEXT, a framework for text generation from multimodal inputs consisting of video plus text, speech, or audio. In order to leverage transformer networks, which have been shown to be effective at modeling language, each modality is first converted into a set of language embeddings by a learnable tokenizer. This allows our approach to perform multimodal fusion in the language space, thus eliminating the need for ad-hoc cross-modal fusion modules. To address the non-differentiability of tokenization on continuous inputs (e.g., video or audio), we utilize a relaxation scheme that enables end-to-end training. Furthermore, unlike prior encoder-only models, our network includes an autoregressive decoder to generate open-ended text from the multimodal embeddings fused by the language encoder. This renders our approach fully generative and makes it directly applicable to different "video+x to text" problems without the need to design specialized network heads for each task. The proposed framework is not only conceptually simple but also remarkably effective: experiments demonstrate that our approach based on a single architecture outperforms the state-of-the-art on three video-based text-generation tasks -- captioning, question answering and audio-visual scene-aware dialog.

Introduction

Generating natural language from video is a "holy grail" of multimodal AI, but it is notoriously difficult. Traditionally, researchers have relied on complex, ad-hoc "cross-modal fusion" modules, such as co-attention layers, to bridge the gap between continuous signals (pixels and waveforms) and discrete text. Furthermore, many existing models are discriminative—designed to pick an answer from a fixed list—making them brittle and difficult to adapt to open-ended tasks like dialog or captioning. VX2TEXT addresses this by providing a unified, generative, end-to-end trainable architecture that handles "video + x to text" problems without task-specific heads or expensive multimodal pretext training.

Methodology

The core philosophy of VX2TEXT is: Everything is a language.

  1. Differentiable Tokenization: Instead of feeding raw video/audio features into a network, the model uses modality-specific classifiers to predict semantic labels. To make this process end-to-end trainable, the authors use a relaxation scheme involving the Gumbel-Softmax trick and a Straight-Through Estimator. This allows gradients to flow back from the final text output to the video and audio backbones.
  2. Multimodal Fusion in Language Space: The predicted labels (e.g., "lifting," "male talking") are converted into word embeddings using a pre-trained language model's vocabulary. These embeddings, along with text input (like a question or dialog history), are fed into a standard T5 (Text-to-Text Transfer Transformer) encoder.
  3. Generative Decoder: Unlike encoder-only models, VX2TEXT uses an autoregressive decoder to generate open-ended text. This allows the same architecture to handle multiple tasks simply by changing a "task token" (e.g., [Captioning] or [Answer]).
The VX2TEXT architecture converts multimodal inputs into language embeddings for fusion in a standard Transformer.

Key Results and Insights

VX2TEXT achieved state-of-the-art (SOTA) results across three major benchmarks: AVSD (Audio-Visual Scene-Aware Dialog), TVQA (TV Question Answering), and TVC (Video Captioning).

  • Language as the Universal Interface: By converting all modalities into the "language space," the model leverages the reasoning capabilities of pre-trained Transformers like T5, eliminating the need for specialized fusion modules.
  • End-to-End Learning: Experiments show that "Differentiable Tokenization" significantly outperforms "Frozen Tokenization," suggesting that backbones learn to pick labels more useful for the specific downstream text generation task.
  • Generative Advantage: A key finding was that the generative version of the model significantly outperformed a discriminative version, especially when training data was scarce. As shown in the figure below, the generative approach maintains robust performance even with only 10% of the training set.
Comparison of generative vs. discriminative models across different training data scales, highlighting the superior generalization of the generative approach.

Conclusion

VX2TEXT demonstrates that treating multimodal fusion as a language problem is a powerful and efficient approach. By leveraging differentiable tokenization and a generative decoder, the framework achieves SOTA performance without massive multimodal pre-training. Future work includes addressing vocabulary constraints of modality-specific classifiers and integrating object-level reasoning into the differentiable framework.

Summary updated

BibTeX
@inproceedings{torresani2021vx,
  author = {Lorenzo Torresani},
  title = {{Vx2Text: End-to-End Learning of Video-Based Text Generation From Multimodal Inputs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=rGPo4CpfgS},
}
Figure