Manuscript Offprint

arXiv:2608.25653

Towards Purified Multi-Label Test-Time Adaptation of Vision-Language Models

Yiwen Liang, Hui Chen, Yizhe Xiong, Mengyao Lyu, Yuhan Cao, Zijia Lin, Shuaicheng Niu, Sicheng Zhao, Jungong Han, Guiguang Ding

Yiwen Liang 1^{1}, Hui Chen 1∗^{1*}, Yizhe Xiong 1^{1}, Mengyao Lyu 2^{2}, Yuhan Cao 3^{3}, Zijia Lin 1^{1}, Shuaicheng Niu 2^{2}, Sicheng Zhao 1^{1}, Jungong Han 1^{1}, and Guiguang Ding 1∗^{1*}

1^{1} Tsinghua University, Beijing, China

2^{2} Nanyang Technological University, Singapore

3^{3} University of Washington, Seattle, WA, USA

{evenliang789,jichenhui2012}@gmail.com, dinggg@tsinghua.edu.cn

Abstract. Test-time adaptation (TTA) has been widely explored in single-label recognition, effectively mitigating distribution shifts, especially when combined with vision-language models. However, real-world images often contain multiple objects, while the more practical multi-label test-time adaptation (MLTTA) has received little attention so far. Recent cache-based TTA methods have shown promising efficiency and effectiveness, yet directly extending them to multi-label scenarios suffers from a one-to-many mapping problem: a shared global representation entangling co-occurring objects is stored as class-wise cache prototypes, inducing dominant-label bias and compromised cache calibration. While introducing region-level cues helps isolate class-specific evidence, such regional evidence can also be unreliable under distribution shifts, making its identification and utilization non-trivial. To address these issues, we introduce PuRF, a novel PuRiFication-driven cache-based method for multi-label test-time adaptation of vision-language models. Specifically, PuRF first performs region purification to identify reliable regions, providing comprehensive regional cues for multi-label recognition and enabling fine-grained alignment. Based on these purified regions, PuRF conducts cache purification to enhance cache representation and adaptability, where episodic purification builds a discriminative region-based cache, and temporal refreshing further promotes long-term cache adaptability. Experiments demonstrate that PuRF consistently outperforms state-of-the-art methods, achieving a notable 4.05% mAP improvement on ViT-B/32 across five datasets.

Keywords: Test-Time Adaptation · Vision-Language Models · Multi-Label Learning

1 Introduction

Vision-Language Models (VLMs) [20,41] have exhibited remarkable zero-shot capability, successfully tackling a wide range of computer vision tasks [11,26,58,64].

  • Corresponding author.

Liang et al.

Figure

(a) Existing cache-based TTA methods

(b) Purified cache-based method for multi-label TTA (Ours)

Fig. 1: Comparison between existing cache-based methods and ours. (a) Existing cache-based TTA methods [23, 29, 65] suffer from one-to-many representation coupling in multi-label TTA, where shared global features are dominated by salient classes (e.g., “water”), misleading class-wise cache calibration. (b) PuRF performs region purification and cache purification, enabling fine-grained and accurate multi-label adaptation.

However, these models often fail to generalize well when facing testing distributions that deviate from those seen during pre-training, known as distribution shift [34, 59, 60]. Such shifts commonly occur in real scenarios, such as images captured by different environments [25, 39] or sensing conditions [1, 16, 61].

Test-time adaptation (TTA) has emerged as a practical solution for handling distribution shifts by adapting models at inference using only unlabeled test data. Recent studies primarily leverage learnable prompts [13,45,66] for dynamic alignment and cache mechanisms [5,18,23,29] for historical knowledge retrieval to enhance the adaptation capability of VLMs. However, most existing methods are developed for single-label recognition, whereas real-world images often contain multiple co-occurring objects, rendering multi-label test-time adaptation substantially more challenging and complex than single-label settings.

As the first work on multi-label TTA, ML-TTA [57] introduces a Bound Entropy Minimization objective with prompt optimization to enhance the confidence of top-k labels while mitigating over-suppression from naive entropy minimization. However, it still relies on intensive text retrieval and episodic prompt resetting, failing to exploit historical information and resulting in suboptimal performance. In contrast, cache-based methods [5, 29, 65, 69] have demonstrated strong performance in single-label TTA by accumulating and reusing historical information for prediction refinement via retrieval-based aggregation, but remain largely unexplored in multi-label settings, leaving their potential underexploited. When directly applied to multi-label images, these methods encounter a one-vs-many dilemma [22, 74], where a single spatially pooled global feature represents all co-occurring objects and simultaneously acts as a shared prototype for cache retrieval and storage. Such shared representations cannot effectively capture label-specific features [22] and tend to be dominated by salient objects [9, 19, 42], leading to biased predictions and weakened label-specific discriminability. Consequently, the cache fails to perform reliable class-specific calibration, thereby hampering adaptation performance, as illustrated in Fig. 1(a). Although prior works [36, 38, 74] incorporate region-level cues to improve class-specific representation in multi-label recognition, obtaining reliable region evidence and lever-aging it in fully unsupervised test-time settings remains challenging, as naive region proposals are often noisy and include irrelevant context [47, 51, 75].

After revealing the above limitations, we propose PuRF, a PuRiFication-driven cache-based method for multi-label Test-Time Adaptation, which builds upon the cache mechanism for its effectiveness with historical information while extending this paradigm to more practical multi-label scenario. Unlike ML-TTA [57] that tailors optimization objectives for multi-label settings, our key idea is to exploit purified regional evidence to enable finer-grained multi-label recognition and construct a more discriminative cache to better utilize historical information. To this end, PuRF proposes two main components that collectively enhance multi-label adaptation: 1) Region Purification (RP) via multi-granularity consistency identifies purified regions via relative activation-based selection and derives reliable pseudo supervision via global-local consistency, enabling fine-grained alignment and effective semantic optimization for accurate multi-label test-time recognition; (2) Cache Purification (CP) integrates episodic purification to build class-specific prototypes from purified high-confidence regions for more discriminative representations, and temporal refreshing to improve long-term cache adaptability under evolving distributions via time-aware entropy weighting. In Fig. 1(b), our purified regional evidence and purified cache improve class-specific discriminability for better multi-label recognition. Overall, PuRF advances multi-label test-time adaptation by extending the cache-based paradigm to multi-label settings with two novel purification strategies. Experimental results show that PuRF exhibits strong generalization across diverse backbones and prompt settings while maintaining high efficiency.

We summarize our contributions as follows:

– We propose PuRF, a novel purification-driven cache-based method tailored for multi-label test-time adaptation, enabling fine-grained recognition while enhancing label-specific cache calibration.

– PuRF integrates Region Purification to identify informative regions and leverage reliable and comprehensive regional cues for fine-grained alignment, Cache Purification for constructing discriminative class-specific prototypes from purified regions for reliable calibration, and temporal refreshing for improving long-term cache adaptability under streaming data.

– Extensive experiments across five standard multi-label benchmarks and four backbones show that PuRF consistently outperforms the strongest state-of-the-art method, demonstrating its superior effectiveness.

References (75)