arXiv:2505.15576cs.CVcs.LG2025-05IJCAI被引 3

通过视觉扰动生成难负样本,提升视觉语言模型的组合推理能力

Visual Perturbation and Adaptive Hard Negative Contrastive Learning for Compositional Reasoning in Vision-Language Models

  • 将文本难负例转化为视觉扰动负例,增强视觉编码器训练
  • 引入动态边界对比损失,提升对困难样本对的区分能力
  • 适用于需要细粒度语义分辨的多模态任务,如图像描述理解

视觉-语言模型(VLMs)在多模态任务中至关重要,尤其在需要区分视觉与文本嵌入间细微语义差异的组合推理(CR)任务中。现有方法主要通过生成基于文本的难负例进行微调,忽略了图像级负例的重要性,导致视觉编码器训练不足,影响模型整体性能。此外,负例通常被统一处理,未考虑其难度差异,且正例对对齐不足,难以有效对齐困难样本对。为此,我们提出自适应难负例扰动学习(AHNPL)。AHNPL将文本难负例转换至视觉域,生成语义扰动的图像负例以训练模型,从而提升整体性能。同时,引入多模态难负例对比损失,增强各模态内对难负例的判别能力,并设计动态边界损失,根据样本难度自适应调整对比边界,强化对挑战性样本对的区分。在三个公开数据集上的实验表明,该方法显著提升VLMs在复杂组合推理任务中的表现。代码已开源:https://github.com/nynu-BDAI/AHNPL。

原文摘要 · Abstract (English)

Vision-Language Models (VLMs) are essential for multimodal tasks, especially compositional reasoning (CR) tasks, which require distinguishing fine-grained semantic differences between visual and textual embeddings. However, existing methods primarily fine-tune the model by generating text-based hard negative samples, neglecting the importance of image-based negative samples, which results in insufficient training of the visual encoder and ultimately impacts the overall performance of the model. Moreover, negative samples are typically treated uniformly, without considering their difficulty levels, and the alignment of positive samples is insufficient, which leads to challenges in aligning difficult sample pairs. To address these issues, we propose Adaptive Hard Negative Perturbation Learning (AHNPL). AHNPL translates text-based hard negatives into the visual domain to generate semantically disturbed image-based negatives for training the model, thereby enhancing its overall performance. AHNPL also introduces a contrastive learning approach using a multimodal hard negative loss to improve the model's discrimination of hard negatives within each modality and a dynamic margin loss that adjusts the contrastive margin according to sample difficulty to enhance the distinction of challenging sample pairs. Experiments on three public datasets demonstrate that our method effectively boosts VLMs' performance on complex CR tasks. The source code is available at https://github.com/nynu-BDAI/AHNPL.

视觉语言模型组合推理对比学习

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