[Paper Review] Unified Multimodal Pre-training and Prompt-based Tuning for Vision-Language Understanding and Generation
This paper proposes UniVL, a unified vision-language pre-training framework that integrates both understanding and generation capabilities through a combination of bidirectional and causal masking during pretraining. By formulating downstream tasks as text generation via prompt-based tuning, UniVL achieves competitive performance on both vision-language understanding and generation tasks, with prompt-based fine-tuning showing superior data efficiency in few-shot settings.
Most existing vision-language pre-training methods focus on understanding tasks and use BERT-like objectives (masked language modeling and image-text matching) during pretraining. Although they perform well in many understanding downstream tasks, e.g., visual question answering, image-text retrieval and visual entailment, they do not possess the ability to generate. To tackle this problem, we propose Unified multimodal pre-training for both Vision-Language understanding and generation (UniVL). The proposed UniVL is capable of handling both understanding tasks and generative tasks. We augment existing pretraining paradigms that only use random masks with causal masks, i.e., triangular masks that mask out future tokens, such that the pre-trained models can have autoregressive generation abilities by design. We formulate several previous understanding tasks as a text generation task and propose to use prompt-based method for fine-tuning on different downstream tasks. Our experiments show that there is a trade-off between understanding tasks and generation tasks while using the same model, and a feasible way to improve both tasks is to use more data. Our UniVL framework attains comparable performance to recent vision-language pre-training methods on both understanding tasks and generation tasks. Moreover, we demostrate that prompt-based finetuning is more data-efficient - it outperforms discriminative methods in few-shot scenarios.
Motivation & Objective
- To address the limitation of existing vision-language models that focus only on understanding tasks and lack generation capabilities.
- To unify multimodal pretraining for both vision-language understanding and generation within a single shared architecture.
- To improve few-shot generalization by leveraging prompt-based fine-tuning instead of task-specific classifiers.
- To investigate the trade-off between understanding and generation performance in a unified model.
- To evaluate the effectiveness of causal masking and learnable prompt design in enhancing generative and discriminative capabilities.
Proposed method
- Augment standard bidirectional masking with causal (triangular) masking during pretraining to enable autoregressive generation.
- Use a multimodal transformer with image and text encoders, followed by cross-attention fusion for joint representation learning.
- Reformulate classification-based understanding tasks (e.g., VQA, visual entailment) as masked language modeling tasks by inserting a [MASK] token.
- Employ learnable [unused] tokens as context prompts to guide the model’s generation, with prompt position and length optimized for performance.
- Fine-tune the unified model using prompt-based generation, where the model predicts the [MASK] token conditioned on image and text input.
- Compare prompt-based generation with discriminative fine-tuning using linear classifiers, evaluating both on understanding and generation benchmarks.
Experimental results
Research questions
- RQ1Can a single unified vision-language model effectively handle both understanding and generation tasks without separate architectures?
- RQ2How does the inclusion of causal masking during pretraining affect the model’s generative capabilities?
- RQ3To what extent does prompt-based fine-tuning improve few-shot performance compared to discriminative fine-tuning?
- RQ4What is the trade-off between understanding and generation performance in a unified pretraining setup?
- RQ5How do prompt position and length influence the effectiveness of prompt-based tuning on downstream tasks?
Key findings
- The addition of causal masking during pretraining significantly improves generative performance on image captioning, while slightly reducing performance on understanding tasks.
- A trade-off exists between understanding and generation performance, but increasing pretraining data mitigates this imbalance and benefits both tasks.
- Prompt-based fine-tuning achieves performance comparable to discriminative methods on understanding tasks, especially in few-shot scenarios.
- For VQA and visual entailment, prompt-based generation outperforms discriminative methods in low-data regimes due to better generalization.
- Optimal prompt length is around 16 tokens; longer prompts (e.g., 32 tokens) provide diminishing returns in accuracy.
- Placing the prompt in the middle of the input sequence (e.g., [QUESTION] + [CTX] + [MASK]) yields better performance than placing it at the beginning, especially for VQA and visual entailment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.