用反事实图像提升视觉模型的上下文学习能力
Retrieving Counterfactuals Improves Visual In-Context Learning
- 通过属性引导生成反事实图像,主动构造演示样本
- 在小模型和数据稀缺下,准确率显著提升
- 适合需要因果推理的多模态任务研究者
视觉语言模型在多模态推理任务中表现优异,但难以解耦细粒度视觉属性并推理潜在因果关系。上下文学习(ICL)为模型适应新任务提供可能,但其效果高度依赖演示样例的选择。现有检索增强方法多采用被动相似性检索,易选中相关但非因果的示例,加剧虚假关联,限制模型鲁棒性。本文提出CIRCLES(用于因果学习示例选择的组合图像检索)框架,通过定向、属性引导的组合图像检索,主动构建包含反事实风格示例的演示集。引入反事实示例使模型能隐式推理属性与结果间的因果关系,超越表面相关性,实现更稳健、可信的推理。在四个不同数据集上的实验证明,CIRCLES在多种模型架构上均优于现有方法,尤其在小规模模型和信息稀缺条件下提升显著。此外,该方法检索到更多样且具因果信息的示例,为模型如何利用上下文演示进行推理提供了定性洞察。代码已开源。
原文摘要 · Abstract (English)
Vision-language models (VLMs) have achieved impressive performance across a wide range of multimodal reasoning tasks, but they often struggle to disentangle fine-grained visual attributes and reason about underlying causal relationships. In-context learning (ICL) offers a promising avenue for VLMs to adapt to new tasks, but its effectiveness critically depends on the selection of demonstration examples. Existing retrieval-augmented approaches typically rely on passive similarity-based retrieval, which tends to select correlated but non-causal examples, amplifying spurious associations and limiting model robustness. We introduce CIRCLES (Composed Image Retrieval for Causal Learning Example Selection), a novel framework that actively constructs demonstration sets by retrieving counterfactual-style examples through targeted, attribute-guided composed image retrieval. By incorporating counterfactual-style examples, CIRCLES enables VLMs to implicitly reason about the causal relations between attributes and outcomes, moving beyond superficial correlations and fostering more robust and grounded reasoning. Comprehensive experiments on four diverse datasets demonstrate that CIRCLES consistently outperforms existing methods across multiple architectures, especially on small-scale models, with pronounced gains under information scarcity. Furthermore, CIRCLES retrieves more diverse and causally informative examples, providing qualitative insights into how models leverage in-context demonstrations for improved reasoning. Our code is available at https://github.com/gzxiong/CIRCLES.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。