Introduction
Vision-Language Models (VLMs) like CLIP have revolutionized zero-shot learning, but adapting them to specific tasks via prompt tuning often encounters the "base-to-new" generalization challenge. While models are typically trained on known (base) classes, they must perform in open-world settings where unknown (new) classes appear. Current evaluation protocols often assume the domain (base vs. new) is known a priori, which is unrealistic. This paper addresses Open-world Prompt Tuning (OPT), where models must simultaneously detect the domain and classify the input.
The Pitfalls of Existing Metrics
Standard metrics for base-to-new generalization are insufficient for the OPT setting:
- Harmonic Mean (HM): Focuses on classification accuracy but ignores the detection stage.
- Overall Accuracy: Conflates detection and classification but is highly sensitive to the ratio of base to new samples. In real-world deployments, this ratio is unknown and variable.
- AUROC: Measures detection performance but ignores whether the subsequent classification is correct.
The authors argue that a unified metric must be distribution-insensitive—remaining stable regardless of the base-to-new class ratio—while jointly evaluating detection and classification.
OpenworldAUC and the GMoP Framework
To bridge this gap, the authors propose OpenworldAUC, a metric based on pairwise ranking. It calculates the joint probability that a base instance is correctly ranked as "known," and that both base and new instances are correctly classified. This formulation makes the metric mathematically immune to class imbalance.
To optimize for this metric, the paper introduces the Gated Mixture-of-Prompts (GMoP) framework.
GMoP Architecture
GMoP employs three specialized prompts to avoid gradient interference between conflicting tasks:
- Detector Prompt: Specifically tuned to distinguish between base and new domains.
- Base Classifier Prompt: Optimized for fine-grained recognition of known classes.
- Manual (New) Prompt: A fixed, hand-crafted prompt used for new classes to prevent the model from overfitting to the base distribution.
A Reweighting Gate dynamically balances these components during training. By using "pseudo-partitioning"—splitting known base classes into simulated base and new sets—the model learns to detect unknown domains without ever seeing the actual test-time "new" classes.
Experimental Results
The authors evaluated GMoP across 15 benchmarks, including generic recognition and domain generalization tasks.
Metric Robustness
A key finding is the stability of OpenworldAUC compared to traditional accuracy. As shown in the experiments, while Overall Accuracy fluctuates wildly as the ratio of new to base classes changes, OpenworldAUC remains consistent.
Performance Gains
GMoP achieved state-of-the-art results, with an average OpenworldAUC of 60.94% across 11 datasets. It effectively pushes the Pareto frontier, achieving a superior balance between detection (AUROC) and classification (HM) compared to previous methods like DePT and KgCoOp. On imbalanced datasets (e.g., 1:5 ratios), GMoP maintained a ~2% performance lead, proving its robustness to unpredictable real-world distributions. Despite the multi-prompt architecture, GMoP remains efficient, running 34% faster than multi-stage competitors like DeCoOp.
Conclusion
OpenworldAUC provides a more realistic and robust evaluation for open-world prompt tuning. By decoupling detection and classification through the Gated Mixture-of-Prompts framework, the proposed method achieves superior performance and efficiency. This work sets a new standard for deploying Vision-Language Models in dynamic, unpredictable environments where the distribution of known and unknown objects is constantly shifting.
Summary updated