arXiv:2606.31420cs.AI2026-06

解决动态测试中类别不平衡与分布漂移共存问题

BP-TTA: Balanced and Prototype-Guided Test-Time Adaptation in Dynamic Scenarios

论文配图:BP-TTA: Balanced and Prototype-Guided Test-Time Adaptation in Dynamic Scenarios
图 1 · 摘自论文原文
  • 用历史高置信样本平衡当前批次,缓解主导类别偏差
  • 在线维护类原型,通过相似性约束提升伪标签可靠性
  • 适合真实场景下持续变化的数据流,尤其关注类别不均衡

测试时自适应(TTA)使源域训练模型能在分布偏移下在线适应无标签测试数据。尽管现有方法已从静态设置转向考虑持续分布漂移,但大多忽略动态场景中的类别不平衡问题。在真实测试流中,类别不平衡与持续分布漂移常同时发生并相互影响。本文提出一种新型平衡且原型引导的测试时自适应方法(BP-TTA),结合批次平衡采样与原型引导适配,以应对类别不平衡和持续分布漂移。BP-TTA通过融合当前样本与高置信历史实例构建平衡适配批次,有效缓解对主导类别的偏差并稳定在线更新。同时,推理过程中维护动态演变的类原型,并利用原型相似性作为模型适配的约束,从而提升伪标签可靠性并增强在持续分布漂移下的更新稳定性。大量实验表明,BP-TTA在动态测试流设置下始终优于当前最优的TTA方法。

原文摘要 · Abstract (English)

Test-Time Adaptation (TTA) enables models trained on a source domain to adapt online to unlabeled test data under distribution shifts. While recent TTA methods have moved beyond static settings and begun to consider continual domain shifts, they primarily address distribution drift and fail to account for class imbalance in dynamic scenarios. In real-world test-time streams, class imbalance and continual domain shifts often occur at the same time and interact with each other. In this paper, we propose a novel Balanced and Prototype-Guided Test-Time Adaptation (BP-TTA) method, which combines batch-balanced sampling with prototype-guided adaptation to handle the class imbalance and continual domain shift problems. BP-TTA constructs balanced adaptation batches by integrating current samples with high-confidence historical instances, effectively mitigating bias toward dominant classes and stabilizing online updates. Meanwhile, BP-TTA maintains evolving class prototypes during inference and leverages prototype similarity as a constraint for model adaptation, thereby improving the reliability of pseudo-labels and enhancing the stability of online updates under persistent domain shifts. Extensive experiments demonstrate that BP-TTA consistently outperforms state-of-the-art TTA methods in dynamic test-time streaming settings.

测试时自适应类别不平衡持续学习原型学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。