arXiv:2608.02216cs.CV2026-08中稿 · ACM MM 2026

解决视觉语言模型测试时适应中的性能下降问题

Local Margin Restoration for Test-Time Adaptation of Vision-Language Models

论文配图:Local Margin Restoration for Test-Time Adaptation of Vision-Language Models
图 1 · 摘自论文原文
  • 通过保护近似正确候选避免错误强化,恢复局部语义结构
  • 在低批量测试下仍保持高精度,显著优于现有方法
  • 适合需要稳定部署的视觉语言模型应用

视觉语言模型(如CLIP)具有出色的零样本能力,但在未知测试分布变化下性能常急剧下降。尽管测试时适应(TTA)提供可行方案,但对无标签测试流持续适应存在根本挑战。传统以top-1为中心的更新会因外部硬负样本污染导致相关类别间局部语义几何扭曲,迭代适应更加剧偏差累积,最终引发模式坍塌。为此,本文提出轻量级、单步TTA框架局部边界恢复(LMR)。在样本层面,受保护边界恢复(PMR)目标通过屏蔽合理近似候选,恢复局部语义结构;在流层面,引入双阶段稳定机制,包括自适应边界(AM)控制器与偏差校正(BC),动态抑制偏差累积,防止模式坍塌。在CIFAR-C、ImageNet-C及ImageNet变体上的大量实验表明,LMR始终优于当前最先进TTA基线,在极具挑战的低批量测试场景中表现卓越且高效。代码已开源。

原文摘要 · Abstract (English)

Vision-language models (VLMs) such as CLIP exhibit remarkable zero-shot capabilities, yet their performance frequently degrades sharply under unexpected test-time distribution shifts. While Test-Time Adaptation (TTA) offers a promising solution, continuously adapting VLMs over an unlabeled test stream presents fundamental challenges. Conventional top-1-centric updates often reinforce errors by corrupting the local semantic geometry among related classes, while iterative adaptation exacerbates progressive bias accumulation, ultimately driving the model toward mode collapse. To overcome these coupled vulnerabilities, we propose Local Margin Restoration (LMR), a lightweight, one-step TTA framework. At the sample level, our Protected Margin Restoration (PMR) objective recovers local semantic geometry by shielding plausible near-top candidates from external hard negatives. Concurrently, to combat stream-level degradation, we introduce a dual-stage stabilization mechanism, featuring an Adaptive Margin (AM) controller and Bias Correction (BC), to dynamically disrupt progressive bias accumulation and prevent mode collapse. Extensive experiments on CIFAR-C, ImageNet-C, and ImageNet variants demonstrate that LMR consistently outperforms state-of-the-art TTA baselines, proving exceptionally robust and efficient even in challenging low-batch test-time regimes. Our code is available at https://github.com/DennisHuangYan/LMR.

视觉语言模型测试时适应边界恢复鲁棒性

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