TL;DR
This paper introduces CL-CrossVQA, the first benchmark for continual learning in cross-domain Visual Question Answering (VQA). It addresses the critical real-world challenge of VQA models needing to adapt to new domains without forgetting past knowledge, a problem largely unexplored in multimodal settings.
What Problem Does This Paper Address?
Visual Question Answering (VQA) systems are designed to answer questions about images. Modern VQA heavily relies on large Vision-and-Language Pre-trained Models (VLPMs), typically fine-tuned on specific VQA datasets. However, in practical applications, the domain of data can shift over time (e.g., moving from general images to medical scans or artwork). This necessitates that VLPMs continuously learn new information from these new domains while retaining knowledge from previously encountered domains. This is known as continual learning (CL). While CL has been studied for unimodal tasks (like image classification or text generation), its application to cross-domain VQA, where both the visual content and the question-answer distribution can change, has been largely overlooked. This paper aims to fill this gap by providing a benchmark and conducting extensive experiments to understand how VLPMs perform under these challenging continual learning conditions.
Methods
The core of this work is the introduction of the CL-CrossVQA benchmark. This benchmark is designed to evaluate VLPMs in a continual learning setting across different VQA domains. The authors experiment with four popular VLPMs (ViLT, VAULT, FLAVA, and ALBEF) and four different CL approaches:
- Sequential: Standard fine-tuning where the model is trained on each task sequentially.
- Replay-based methods (ER, DER, DERPP): These methods store a subset of data from previous tasks and replay it during training on new tasks to reinforce old knowledge.
- Regularization-based methods (EWC): These methods penalize changes to important parameters learned from previous tasks.
To understand why certain models or methods perform better, the authors employ intermediate representation probing. This involves analyzing the "forgetting" of knowledge at different layers of the VLPMs after training on new tasks. They also investigate the impact of model architecture (e.g., single-stream vs. dual-stream, encoder-only vs. encoder-decoder) and the role of different components like vision encoders, text encoders, and multimodal fusion modules.
Datasets
The CL-CrossVQA benchmark comprises 5 diverse VQA datasets from different domains:
- VQA Abstract: Images of abstract scenes requiring high-level reasoning.
- COCO QA: Questions automatically generated from captions, potentially containing errors.
- AQUA Artwork: Artworks from various styles, demanding understanding of artistic abstraction.
- PathVQA: Pathology images for AI-assisted diagnosis.
- VQA-Med-2019: Radiology images for medical education and decision support.
To ensure fair comparison across datasets of varying sizes, the training sets were down-sampled to be consistent with VQA-Med-2019. The datasets were selected to have minimal overlap in their answer spaces, reflecting a more realistic cross-domain scenario.
Key Insights and Ideas
- Catastrophic forgetting is a severe problem: All VLPMs, even with CL methods, suffer significant forgetting when trained sequentially on new domains.
- Architecture matters: Dual-stream encoder-decoder models (like ALBEF) are more robust to forgetting than single-stream encoder-only models. This is partly because they can adapt without adding new task-specific parameters.
- Replay is king (for VLPMs): Replay-based CL methods (ER, DER, DERPP) consistently outperform regularization-based methods (EWC) and sequential fine-tuning for VLPMs. Even a small replay buffer (1% of training data) can significantly alleviate forgetting.
- Deeper layers are more vulnerable (in single-stream models): For encoder-only models, forgetting tends to increase in deeper layers, suggesting these layers learn more task-specific features that are easily corrupted.
- Pre-training scale isn't everything: Surprisingly, FLAVA, pre-trained on a massive dataset, performed poorly, suggesting that large domain shifts between pre-training and downstream tasks can negate the benefits of extensive pre-training.
- Adapter modules offer a promising alternative: Adapter-based CL, which adds small trainable modules while freezing the main VLPM, shows strong performance, especially for single-stream models, offering a computationally efficient way to achieve continual learning without forgetting.
Key Results
- Replay-based methods (ER, DER, DERPP) achieved significantly higher average accuracy and backward transfer compared to EWC and sequential baselines across all VLPMs.
- ALBEF (dual-stream encoder-decoder) consistently showed the best CL performance, with average accuracies around 60% and backward transfers around -10% across replay methods.
- ViLT, a single-stream model, benefited most from replay methods, achieving accuracies around 50-54%.
- EWC performed poorly, often on par with the sequential baseline, indicating its unsuitability for VLPMs in this cross-domain CL setting.
- Adapter modules boosted ViLT's performance by ~11% accuracy while being ~3x more computationally efficient.
Limitations and Future Work
- Task order sensitivity: While replay methods are less sensitive, the performance of CL methods can still be influenced by the order in which tasks are presented.
- Task-specific classifiers: The need for task-specific classifiers in single-stream models might hinder the final layer's representation ability.
- Memory buffer sampling: The effectiveness of replay methods is highly dependent on the sampling strategy for the replay buffer. Balanced sampling (class-balanced) showed a clear advantage over random sampling.
- Future work: The authors suggest further exploring adapter-based approaches, investigating more sophisticated replay buffer sampling strategies, and developing CL methods that better handle the interaction between task-specific classifiers and the VLPM backbone. They also plan to release their benchmark and code to facilitate future research.
Summary updated