Abstract
Continual learning (CL) in vision-and-language (VaL) tasks is hindered by catastrophic forgetting and the high computational cost of scaling models. We introduce TAM-CL (Task-Attentive Multimodal Continual Learning), a transformer-based architecture designed for sequential task learning. TAM-CL utilizes a shared ViLT backbone augmented with lightweight Task Attention Blocks (TAB) and a novel intermediate knowledge distillation ($L_{ikd}$) strategy. By isolating task-specific parameters and constraining shared feature representations, TAM-CL achieves state-of-the-art performance on multimodal benchmarks while maintaining a minimal memory footprint.
Introduction
In deep learning, "catastrophic forgetting" occurs when a model loses proficiency in previously learned tasks upon being trained on new ones. While CL has seen significant progress in unimodal domains, Vision-and-Language (VaL) tasks—such as visual question answering and reasoning—present unique challenges due to complex cross-modal interactions. Standard approaches, like fine-tuning massive pre-trained transformers for each task, are neither scalable nor efficient. TAM-CL addresses these issues by balancing model plasticity for new tasks with stability for old ones through architectural innovation and targeted distillation.
Methods: The TAM-CL Architecture
The TAM-CL framework is built upon a shared ViLT (Vision-and-Language Transformer) backbone. It incorporates three primary components to facilitate continual learning:
- Task Attention Block (TAB): To avoid modifying the entire transformer for every task, a lightweight TAB is inserted after the final self-attention layer. Each new task is assigned a unique, learnable task-specific token. This token serves as a specialized key, enabling the model to attend to features most relevant to the current task without disrupting the shared backbone.
- Intermediate Knowledge Distillation ($L_{ikd}$): Unlike standard distillation that occurs at the output layer, TAM-CL distills knowledge at the intermediate level—specifically at the output of the shared backbone. This $L_{ikd}$ loss constrains the shared parameters to remain effective for prior tasks while allowing task-specific layers the flexibility to specialize.
- Experience Replay: A small memory buffer (storing approximately 5% of previous training data) is maintained to "replay" samples from earlier tasks during new training phases, further mitigating forgetting.
Experimental Evaluation
The model was evaluated across five diverse VaL datasets: SNLI-VE (visual entailment), COCOQA and GQA (visual question answering), NLVR2 (visual reasoning), and OKVQA (knowledge-based VQA).
Key Results
TAM-CL demonstrates superior performance compared to established CL baselines such as EWC (Elastic Weight Consolidation) and Dytox.
- Accuracy and Stability: On a five-task sequence, TAM-CL maintained a final accuracy of 66.09% on the initial task (COCOQA), significantly outperforming naive fine-tuning, which dropped to 40.67%.
- Forgetting Mitigation: TAM-CL showed drastically lower forgetting rates. For the challenging OKVQA task, TAM-CL's forgetting rate was approximately 22%, compared to 74% for standard fine-tuning.
- Efficiency: The architecture's reliance on task-specific tokens and heads ensures minimal memory overhead, avoiding the need to store full model copies for each task.
Discussion and Future Work
The success of TAM-CL underscores the importance of shared backbones for low-level multimodal features and the effectiveness of intermediate distillation in preventing feature drift. Analysis of task difficulty (the ratio of examples to labels) suggests that task ordering significantly influences forgetting, particularly with complex tasks like OKVQA.
Future research will explore "single-domain" CL (e.g., varying VQA types within a single dataset) and the model's robustness when transitioning between multimodal and purely unimodal tasks. Additionally, scaling the architecture to larger datasets like the full SNLI-VE remains a key objective.
Summary updated