arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.02069cs.CV
收藏

LoRA-TTT:面向视觉-语言模型的低秩测试时训练

LoRA-TTT: Low-Rank Test-Time Training for Vision-Language Models

UC San Diego(加州大学圣迭戈分校)

Yuto Kojima, Jiarui Xu, Xueyan Zou, Xiaolong Wang

AI总结:

本文提出 LoRA-TTT,通过在测试时仅对视觉-语言模型的图像编码器施加低秩适应并引入高效重建损失,以极低内存和运行时开销提升 CLIP 在分布偏移下的零样本性能,无需外部模型或缓存。

摘要:

视觉-语言模型(VLMs)(如 CLIP)的快速发展,加剧了解决训练与测试数据集之间分布偏移问题的需求。尽管先前针对 VLMs 的测试时训练(TTT)技术已展现出鲁棒的性能,但它们主要依赖调整文本提示(text prompts),这一过程需要大量计算资源,并且严重依赖基于熵的损失。在本文中,我们提出 LoRA-TTT,一种新颖的 TTT 方法,利用低秩适应(Low-Rank Adaptation, LoRA),仅应用于 VLMs 的图像编码器。通过在测试时引入 LoRA 并仅更新其参数,我们的方法提供了一种简单而有效的 TTT 途径,在保留模型初始泛化能力的同时,以最小的内存和运行时开销实现显著的性能提升。此外,我们引入了一种为 TTT 量身定制的高效重建损失。通过结合这两种损失,我们的方法能够适应多样化的领域,而不会增加内存消耗或运行时开销。在两个基准上覆盖 15 个数据集的大量实验表明,我们的方法将 CLIP-ViT-B/16 的零样本 top-1 准确率在 OOD 基准上平均提高了 5.79%,在细粒度基准上平均提高了 1.36%,在不依赖任何外部模型或缓存的情况下,高效超越了测试时提示微调(test-time prompt tuning)。

英文摘要:

The rapid advancements in vision-language models (VLMs), such as CLIP, have intensified the need to address distribution shifts between training and testing datasets. Although prior Test-Time Training (TTT) techniques for VLMs have demonstrated robust performance, they predominantly rely on tuning text prompts, a process that demands substantial computational resources and is heavily dependent on entropy-based loss. In this paper, we propose LoRA-TTT, a novel TTT method that leverages Low-Rank Adaptation (LoRA), applied exclusively to the image encoder of VLMs. By introducing LoRA and updating only its parameters during test time, our method offers a simple yet effective TTT approach, retaining the model's initial generalization capability while achieving substantial performance gains with minimal memory and runtime overhead. Additionally, we introduce a highly efficient reconstruction loss tailored for TTT. Our method can adapt to diverse domains by combining these two losses, without increasing memory consumption or runtime. Extensive experiments on two benchmarks, covering 15 datasets, demonstrate that our method improves the zero-shot top-1 accuracy of CLIP-ViT-B/16 by an average of 5.79% on the OOD benchmark and 1.36% on the fine-grained benchmark, efficiently surpassing test-time prompt tuning, without relying on any external models or cache.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑