arXiv:2507.20028cs.CVcs.AI2025-07

让视觉语言模型在推理时实时选择不确定样本并动态更新提示,适应连续数据流。

TAPS : Frustratingly Simple Test Time Active Learning for VLMs

  • 基于动态熵阈值和类平衡替换策略,实现实时主动学习。
  • 在10个跨数据集任务中优于现有方法,延迟与内存开销可控。
  • 适合自动驾驶、医疗诊断等对安全性要求高的实时场景。

测试时优化使模型能在推理过程中动态更新参数以适应新数据。近期视觉语言模型研究探索了在测试时学习提示以提升下游任务性能。本文针对更普遍且实际的挑战:如何在一个连续数据流中,每次仅接收一个样本时,即时做出查询决策,并满足延迟与内存约束?为此,提出一种新的测试时主动学习(TTAL)框架,自适应地查询不确定样本并动态更新提示。不同于以往假设批量数据或多次梯度更新的方法,本方法在每步仅处理单个测试样本的实时流式场景下运行。引入动态调整的熵阈值用于主动查询,采用类平衡替换策略提升内存效率,并设计类感知分布对齐技术增强适应能力。设计选择通过严谨的理论分析加以验证。在10个跨数据集迁移基准和4个领域泛化数据集上进行的大量实验表明,该框架持续优于当前最优方法,同时保持合理的延迟与内存开销。本方案为自动驾驶、医疗诊断等安全关键应用提供了实用有效的实时部署解决方案。

原文摘要 · Abstract (English)

Test-Time Optimization enables models to adapt to new data during inference by updating parameters on-the-fly. Recent advances in Vision-Language Models (VLMs) have explored learning prompts at test time to improve performance in downstream tasks. In this work, we extend this idea by addressing a more general and practical challenge: Can we effectively utilize an oracle in a continuous data stream where only one sample is available at a time, requiring an immediate query decision while respecting latency and memory constraints? To tackle this, we propose a novel Test-Time Active Learning (TTAL) framework that adaptively queries uncertain samples and updates prompts dynamically. Unlike prior methods that assume batched data or multiple gradient updates, our approach operates in a real-time streaming scenario with a single test sample per step. We introduce a dynamically adjusted entropy threshold for active querying, a class-balanced replacement strategy for memory efficiency, and a class-aware distribution alignment technique to enhance adaptation. The design choices are justified using careful theoretical analysis. Extensive experiments across 10 cross-dataset transfer benchmarks and 4 domain generalization datasets demonstrate consistent improvements over state-of-the-art methods while maintaining reasonable latency and memory overhead. Our framework provides a practical and effective solution for real-world deployment in safety-critical applications such as autonomous systems and medical diagnostics.

主动学习视觉语言模型实时推理测试时优化

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