Introduction
Adapting large-scale pre-trained Vision-Language Models (VLMs) like CLIP to downstream tasks often relies on prompt tuning. While efficient, this approach faces significant challenges in Multi-Task Learning (MTL) settings. Specifically, models frequently succumb to spurious correlations, where they learn to associate background objects (e.g., a plate or fork) with a target label (e.g., "apple pie") rather than the object itself. Furthermore, dynamic task relationships mean that tasks may conflict or assist each other in ways that shift throughout the training process.
To address these issues, we present JSCPT (Joint Scheduling of Causal Prompts and Tasks), a framework designed to filter misleading features through causal intervention and dynamically manage task interactions via a bi-level optimization scheduler.
The JSCPT Framework
JSCPT integrates two primary components: the Multi-Task Vision-Language Prompt (MTVLP) model and a Task-Prompt Scheduler, coordinated through a bi-level optimization strategy.
Multi-Task Vision-Language Prompt (MTVLP)
The MTVLP architecture learns a combination of shared and task-specific prompts. To combat spurious correlations, it employs a causal intervention network. This network uses learnable masks to perform feature selection, identifying features that have a direct causal link to the correct label. By creating "counterfactual" views—essentially asking what the model would predict if certain features were absent—the system learns to ignore non-essential background elements.
Task-Prompt Scheduler and Bi-Level Optimization
The Task-Prompt Scheduler dynamically manages the learning process by calculating:
- Causal Effect: The degree to which specific features contribute to reducing model loss.
- Inter-task Affinity: A gradient-based metric determining whether tasks are synergistic or conflicting at a given training stage.
The training utilizes a bi-level optimization loop. The lower level updates prompt parameters to minimize training loss, while the upper level optimizes the scheduler's weights using a validation set. This ensures that the scheduling strategy prioritizes generalization. To maintain efficiency, complex gradients are approximated using an H-truncated Neumann series.
Experimental Evaluation
JSCPT was evaluated across diverse benchmarks, including Office-Home, MiniDomainNet, and a large-scale 10-dataset MTL benchmark.
Performance and Efficiency
The framework consistently outperformed state-of-the-art baselines such as MaPLe and MmAP. On the Office-Home dataset, JSCPT achieved an average accuracy of 87.9%. In few-shot scenarios, it demonstrated superior robustness; for instance, reaching 70.1% accuracy in 1-shot settings on the 10-dataset benchmark, surpassing the next best method by 1.4%.
Beyond accuracy, JSCPT is highly parameter-efficient. The average memory footprint for training a single task is approximately 0.203MB, making it suitable for resource-constrained environments.
Key Insights
- Causality over Correlation: Transitioning from statistical patterns to causal feature selection significantly improves model robustness across different domains.
- Dynamic Scheduling: Task relationships are not static; a scheduler that adapts to real-time gradient shifts is essential for effective multi-task learning.
- Ablation Results: Feature selection via causal prompts was identified as the most critical component for the observed performance gains.
Conclusion
JSCPT provides a robust solution for multi-task prompt tuning by addressing the fundamental issues of spurious correlations and shifting task dynamics. By combining causal intervention with an adaptive bi-level optimization scheduler, it sets a new state-of-the-art for Vision-Language Model adaptation. Future work will explore extending these causal principles to task-incremental learning scenarios.
Summary updated