[Paper Review] Declaration-based Prompt Tuning for Visual Question Answering
This paper proposes Declaration-based Prompt Tuning (DPT), a novel fine-tuning paradigm for visual question answering (VQA) that reformulates the task to align with pre-training objectives—masked language modeling (MLM) and image-text matching (ITM)—by converting questions into declarative sentences with [MASK] tokens. DPT achieves 2.68% higher accuracy in fully-supervised settings and over 31% absolute improvement in zero-shot/few-shot settings on GQA, demonstrating strong generalization across pre-trained vision-language models.
In recent years, the pre-training-then-fine-tuning paradigm has yielded immense success on a wide spectrum of cross-modal tasks, such as visual question answering (VQA), in which a visual-language (VL) model is first optimized via self-supervised task objectives, e.g., masked language modeling (MLM) and image-text matching (ITM), and then fine-tuned to adapt to downstream task (e.g., VQA) via a brand-new objective function, e.g., answer prediction. The inconsistency of the objective forms not only severely limits the generalization of pre-trained VL models to downstream tasks, but also requires a large amount of labeled data for fine-tuning. To alleviate the problem, we propose an innovative VL fine-tuning paradigm (named Declaration-based Prompt Tuning, abbreviated as DPT), which jointly optimizes the objectives of pre-training and fine-tuning of VQA model, boosting the effective adaptation of pre-trained VL models to the downstream task. Specifically, DPT reformulates the objective form of VQA task via (1) textual adaptation, which converts the given questions into declarative sentence-form for prompt-tuning, and (2) task adaptation, which optimizes the objective function of VQA problem in the manner of pre-training phase. Experimental results on GQA dataset show that DPT outperforms the fine-tuned counterpart by a large margin regarding accuracy in both fully-supervised (2.68%) and zero-shot/few-shot (over 31%) settings. All the data and codes will be available to facilitate future research.
Motivation & Objective
- To address the performance gap caused by inconsistent objective forms between pre-training and fine-tuning in vision-language models.
- To reduce dependency on large labeled datasets for VQA by aligning downstream task objectives with pre-training objectives.
- To improve zero-shot and few-shot generalization in VQA through a unified objective format.
- To enable effective adaptation of pre-trained vision-language models without introducing task-specific classification heads.
Proposed method
- Textual adaptation: Convert input questions into declarative sentences by replacing question words with [MASK] tokens or candidate answers.
- Task adaptation: Reformulate VQA as a masked language modeling (MLM) task by predicting the [MASK] token and as an image-text matching (ITM) task by selecting the best-matching answer.
- Fine-tune the vision-language model using only the pre-training objectives (MLM and ITM), avoiding new classification heads.
- Use the same objective functions (MLM and ITM) during both pre-training and fine-tuning to minimize distributional gap.
- Apply the method to various pre-trained models like UNITER and ViLT, demonstrating generalizability.
- Optimize the model end-to-end using standard cross-entropy loss for MLM and ITM, with no additional parameters beyond prompt templates.
Experimental results
Research questions
- RQ1Can aligning the objective form of VQA fine-tuning with pre-training objectives improve model generalization?
- RQ2How does DPT perform in zero-shot and few-shot VQA settings compared to standard fine-tuning?
- RQ3Does reformulating questions into declarative sentences with [MASK] tokens enhance model understanding of attributes and global semantics?
- RQ4To what extent does DPT generalize across different pre-trained vision-language models?
- RQ5Can DPT reduce the need for large labeled datasets in VQA without sacrificing performance?
Key findings
- DPT achieves a 2.68% absolute accuracy gain over standard fine-tuning on the GQA dataset in fully-supervised settings.
- In zero-shot and few-shot settings, DPT improves accuracy by 31.8% to 37.4% compared to the baseline, with no training data in zero-shot.
- On attribute-based questions, DPT improves accuracy by 5.59 percentage points (70.46% vs. 64.87%), demonstrating better attribute understanding.
- For global-scope questions, DPT improves accuracy by 2.55 percentage points (59.24% vs. 56.69%), indicating stronger global reasoning.
- DPT generalizes across models: UNITER+DPT gains 1.01% and ViLT+DPT gains 0.46% over their respective fine-tuned baselines on GQA.
- Case studies show DPT correctly resolves ambiguous questions by leveraging ITM for semantic consistency, outperforming baselines that rely on answer frequency.
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.