arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.21786cs.CV
收藏

MSGCoOp:面向少样本学习的多语义引导上下文优化

MSGCoOp: Multiple Semantic-Guided Context Optimization for Few-Shot Learning

School of Computer Science and Technology, China University of Mining and Technology(计算机科学与技术学院,中国矿业大学)

Zhaolong Wang, Tongfeng Sun, Mingzheng Du, Yachao Huang

AI总结:

针对少样本学习中现有提示方法新类泛化差、计算开销大的问题,提出MSGCoOp框架,通过多并行上下文向量集成、LLM语义引导对齐和多样性正则化,在低开销下显著提升基类到新类的泛化性能与跨域鲁棒性。

摘要:

CLIP等视觉语言预训练模型(VLMs)展现出卓越的零样本泛化能力,提示学习已成为全量微调的高效替代方案。然而现有方法往往难以泛化到新类别,该现象源于对已见类的过拟合以及对通用知识的遗忘。此外,近期提升泛化性的方法通常会引入复杂架构或高昂的计算开销。本文提出多语义引导上下文优化(MSGCoOp)框架,在保持计算效率的同时提升少样本泛化能力。该方法利用并行可学习上下文向量的集成来捕获多样语义维度。为丰富这些提示,我们引入语义引导机制,将提示与大语言模型(LLM)自动生成的全面类别描述对齐。此外,多样性正则化损失促使提示学习互补且正交的特征,避免其坍缩为冗余表示。在11个基准数据集上的大量实验表明,MSGCoOp显著提升了基类到新类的泛化性能,相比强基线KgCoOp的调和均值平均提升1.10%。该方法在跨域泛化任务中也表现出更强的鲁棒性。代码可在https://github.com/Rain-Bus/MSGCoOp获取。

英文摘要:

Vision-language pre-trained models (VLMs) such as CLIP have demonstrated remarkable zero-shot generalization, and prompt learning has emerged as an efficient alternative to full fine-tuning. However, existing methods often struggle with generalization to novel classes, a phenomenon attributed to overfitting on seen classes and forgetting general knowledge. Furthermore, recent approaches that improve generalization often introduce complex architectures or heavy computational overhead. In this paper, we propose a Multiple Semantic-Guided Context Optimization (MSGCoOp) framework to enhance few-shot generalization while maintaining computational efficiency. Our approach leverages an ensemble of parallel learnable context vectors to capture diverse semantic aspects. To enrich these prompts, we introduce a semantic guidance mechanism that aligns them with comprehensive class descriptions automatically generated by a Large Language Model (LLM). Furthermore, a diversity regularization loss encourages the prompts to learn complementary and orthogonal features, preventing them from collapsing into redundant representations. Extensive experiments on 11 benchmark datasets show that MSGCoOp significantly improves performance on base-to-novel generalization, achieving an average harmonic mean improvement of 1.10\% over the strong KgCoOp baseline. Our method also demonstrates enhanced robustness in cross-domain generalization tasks. Our code is avaliable at: \href{https://github.com/Rain-Bus/MSGCoOp}{https://github.com/Rain-Bus/MSGCoOp}.

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

↑