Skip to main content
QUICK REVIEW

[Paper Review] MaMMUT: A Simple Architecture for Joint Learning for MultiModal Tasks

Weicheng Kuo, AJ Piergiovanni|arXiv (Cornell University)|Mar 29, 2023
Multimodal Machine Learning ApplicationsComputer Science9 citations
TL;DR

MaMMUT trains a decoder-only multimodal model with a two-pass strategy to jointly learn contrastive and generative tasks using one shared decoder.

ABSTRACT

The development of language models have moved from encoder-decoder to decoder-only designs. In addition, we observe that the two most popular multimodal tasks, the generative and contrastive tasks, are nontrivial to accommodate in one architecture, and further need adaptations for downstream tasks. We propose a novel paradigm of training with a decoder-only model for multimodal tasks, which is surprisingly effective in jointly learning of these disparate vision-language tasks. This is done with a simple model, called MaMMUT. It consists of a single vision encoder and a text decoder, and is able to accommodate contrastive and generative learning by a novel two-pass approach on the text decoder. We demonstrate that joint learning of these diverse objectives is simple, effective, and maximizes the weight-sharing of the model across these tasks. Furthermore, the same architecture enables straightforward extensions to open-vocabulary object detection and video-language tasks. The model tackles a diverse range of tasks, while being modest in capacity. Our model achieves the state of the art on image-text and text-image retrieval, video question answering and open-vocabulary detection tasks, outperforming much larger and more extensively trained foundational models. It shows very competitive results on VQA and Video Captioning, especially considering its capacity. Ablations confirm the flexibility and advantages of our approach.

Motivation & Objective

  • Motivate unified vision-language pretraining that supports both contrastive and autoregressive generation tasks.
  • Develop a simple, shared-parameter architecture that maximizes weight-sharing across tasks.
  • Enable straightforward extensions to video-language tasks and open-vocabulary detection without architectural cruft.

Proposed method

  • Use a single image encoder (vision transformer) and a single text decoder with cross-attention for multimodal fusion.
  • Introduce a two-pass training scheme: (i) a non-causal pass for contrastive learning without image visibility, and (ii) a causal pass with cross-attention for captioning.
  • Employ a shared decoder with no task-specific heads, relying on a text vocabulary embedding for both objectives.
  • Adopt a localization-aware contrastive loss (focal contrastive loss) and a captioning loss, combined into a unified total loss (Equation 5).
  • Pretrain from scratch on a web alt-text dataset with Cropped Positional Embeddings for localization, then extend to video via TubeViT with minimal changes.

Experimental results

Research questions

  • RQ1Can a decoder-only vision-language model with a single image encoder and text decoder jointly learn contrastive and autoregressive generation tasks effectively?
  • RQ2Does a two-pass training strategy allow seamless sharing of decoder weights between contrastive and generative objectives?
  • RQ3 Can the same architecture be extended to video-language tasks and open-vocabulary detection without architectural changes?

Key findings

  • MaMMUT achieves state-of-the-art zero-shot image-text and text-to-image retrieval on MS COCO and Flickr30K with a 630M parameter model.
  • In VQA, MaMMUT achieves 80.8 accuracy in open-ended generation, competitive with larger models while being smaller.
  • For VideoQA, MaMMUT outperforms SOTA methods on MSRVTT-QA and MSVD-QA using image-text pretraining only, with far fewer parameters than Flamingo/GIT2.
  • For video captioning, MaMMUT shows strong performance on MSVD and competitive results on MSRVTT, despite not training on dedicated video-text pretraining.
  • The model supports open-vocabulary detection effectively, leveraging localization-aware contrastive objectives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.