arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.05658cs.CVcs.AI
收藏

用于持续学习的零空间视觉提示微调

Visual Prompt Tuning in Null Space for Continual Learning

School of Computer Science, Northwestern Polytechnical University(西北工业大学计算机学院);School of Telecommunications Engineering, Xidian University(西安电子科技大学通信工程学院)

Yue Lu, Shizhou Zhang, De Cheng, Yinghui Xing, Nannan Wang, Peng Wang, Yanning Zhang

AI总结:

针对持续学习中的灾难性遗忘,本文提出在 ViT 提示梯度的零空间方向进行正交投影更新,并给出理论条件与近似实现,在多个类别增量基准上优于现有方法。

摘要:

现有的提示微调方法通过在 vision-transformer 模型中选择并更新相关提示,已在持续学习(CL)中展现出令人瞩目的性能。与之相反,本文旨在通过沿与既往任务特征所张成子空间正交的方向微调提示来学习每个任务,从而确保不对已学习任务造成干扰,以克服 CL 中的灾难性遗忘。然而,与传统 CNN 架构中的正交投影不同,ViT 架构中的提示梯度正交投影呈现出完全不同且更大的挑战,即:1)高阶非线性自注意力操作;2)transformer 块中 LayerNorm 所带来的提示分布漂移。在理论上,我们最终推导出实现提示梯度正交投影的两个一致性条件,为在视觉提示微调中通过自注意力机制消除对既往已学知识的干扰提供了理论保证。在实践中,我们提出了一种有效的基于零空间的近似解来实现提示梯度正交投影。大量实验结果证明了该方法在四个类别增量基准以及多种不同预训练基线模型上的抗遗忘有效性,并且我们的方法取得了优于最先进方法的性能。我们的代码可在 https://github.com/zugexiaodui/VPTinNSforCL 获取。

英文摘要:

Existing prompt-tuning methods have demonstrated impressive performances in continual learning (CL), by selecting and updating relevant prompts in the vision-transformer models. On the contrary, this paper aims to learn each task by tuning the prompts in the direction orthogonal to the subspace spanned by previous tasks' features, so as to ensure no interference on tasks that have been learned to overcome catastrophic forgetting in CL. However, different from the orthogonal projection in the traditional CNN architecture, the prompt gradient orthogonal projection in the ViT architecture shows completely different and greater challenges, i.e., 1) the high-order and non-linear self-attention operation; 2) the drift of prompt distribution brought by the LayerNorm in the transformer block. Theoretically, we have finally deduced two consistency conditions to achieve the prompt gradient orthogonal projection, which provide a theoretical guarantee of eliminating interference on previously learned knowledge via the self-attention mechanism in visual prompt tuning. In practice, an effective null-space-based approximation solution has been proposed to implement the prompt gradient orthogonal projection. Extensive experimental results demonstrate the effectiveness of anti-forgetting on four class-incremental benchmarks with diverse pre-trained baseline models, and our approach achieves superior performances to state-of-the-art methods. Our code is available at https://github.com/zugexiaodui/VPTinNSforCL.

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

↑