一头八臂:基于块矩阵的低秩适应用于基于CLIP的小样本学习
One Head Eight Arms: Block Matrix based Low Rank Adaptation for CLIP-based Few-Shot Learning
AI总结:
提出Block-LoRA框架,通过共享下投影子矩阵将LoRA低秩矩阵划分为子矩阵,减少参数并降低计算成本,在单24GB GPU上实现CLIP小样本微调且性能具竞争力。
摘要:
近期在微调视觉语言基础模型(VLMs)方面的进展因其在下游小样本学习任务中的有效性而备受关注。尽管这些近期方法展现出一定的性能提升,但它们通常存在训练参数过多和计算成本过高的问题。为了应对这些挑战,我们提出了一种新颖的基于块矩阵的低秩适应框架,称为Block-LoRA,用于在下游小样本任务上微调VLMs。受低秩适应(LoRA)近期工作的启发,Block-LoRA将LoRA的原始低秩分解矩阵划分为一系列子矩阵,同时共享所有下投影子矩阵。这种结构不仅减少了训练参数数量,还将某些复杂的矩阵乘法运算转化为更简单的矩阵加法,显著降低了微调的计算成本。值得注意的是,Block-LoRA能够使用单个24GB GPU在ImageNet小样本基准上微调CLIP。我们还证明了Block-LoRA比vanilla LoRA具有更紧的泛化误差界限。无需额外技巧,大量实验表明,与最先进的基于CLIP的小样本方法相比,Block-LoRA在保持低训练参数数量和降低计算开销的同时,取得了具有竞争力的性能。
英文摘要:
Recent advancements in fine-tuning Vision-Language Foundation Models (VLMs) have garnered significant attention for their effectiveness in downstream few-shot learning tasks.While these recent approaches exhibits some performance improvements, they often suffer from excessive training parameters and high computational costs. To address these challenges, we propose a novel Block matrix-based low-rank adaptation framework, called Block-LoRA, for fine-tuning VLMs on downstream few-shot tasks. Inspired by recent work on Low-Rank Adaptation (LoRA), Block-LoRA partitions the original low-rank decomposition matrix of LoRA into a series of sub-matrices while sharing all down-projection sub-matrices. This structure not only reduces the number of training parameters, but also transforms certain complex matrix multiplication operations into simpler matrix addition, significantly lowering the computational cost of fine-tuning. Notably, Block-LoRA enables fine-tuning CLIP on the ImageNet few-shot benchmark using a single 24GB GPU. We also show that Block-LoRA has the more tighter bound of generalization error than vanilla LoRA. Without bells and whistles, extensive experiments demonstrate that Block-LoRA achieves competitive performance compared to state-of-the-art CLIP-based few-shot methods, while maintaining a low training parameters count and reduced computational overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。