让视觉语言模型通过上下文例子精准定位特定物体,解决模糊或难描述物体的识别难题。
Teaching VLMs to Localize Specific Objects from In-context Examples
- 用视频追踪数据构建对话式训练样本,引导模型关注视觉上下文。
- 在多个基准上显著提升7B至72B模型的少样本定位准确率。
- 通过伪名替换标签,迫使模型依赖视觉而非先验知识,适合个性化场景应用。
视觉语言模型(VLMs)在图像识别、视频理解及视觉问答等任务中表现出色,但现有模型(包括GPT-4o)缺乏根据上下文学习定位特定物体的基本认知能力。本文聚焦少样本个性化定位任务:给定少量标注图像(含类别标签与边界框),模型需在查询图像中定位相同物体类型。该任务对处理语义模糊或难以描述的物体尤为重要。为此,我们提出一种以数据为中心的微调方法,利用视频目标追踪数据集中的多帧序列,模拟指令微调对话,增强模型上下文感知能力。同时引入新正则化技术,将物体标签替换为伪名,强制模型依赖视觉上下文而非先验知识。实验表明,该方法显著提升从7B到72B规模的多个VLM在个性化定位任务上的表现,且不损害泛化能力。这是首个系统探索并评估VLM个性化少样本定位的研究,揭示了当前模型的关键短板,并为上下文驱动的视觉语言应用奠定基础。
原文摘要 · Abstract (English)
Vision-Language Models (VLMs) have shown remarkable capabilities across diverse visual tasks, including image recognition, video understanding, and Visual Question Answering (VQA) when explicitly trained for these tasks. Despite these advances, we find that present-day VLMs (including the proprietary GPT-4o) lack a fundamental cognitive ability: learning to localize specific objects in a scene by taking into account the context. In this work, we focus on the task of few-shot personalized localization, where a model is given a small set of annotated images (in-context examples) -- each with a category label and bounding box -- and is tasked with localizing the same object type in a query image. Personalized localization can be particularly important in cases of ambiguity of several related objects that can respond to a text or an object that is hard to describe with words. To provoke personalized localization abilities in models, we present a data-centric solution that fine-tunes them using carefully curated data from video object tracking datasets. By leveraging sequences of frames tracking the same object across multiple shots, we simulate instruction-tuning dialogues that promote context awareness. To reinforce this, we introduce a novel regularization technique that replaces object labels with pseudo-names, ensuring the model relies on visual context rather than prior knowledge. Our method significantly enhances the few-shot localization performance of recent VLMs ranging from 7B to 72B in size, without sacrificing generalization, as demonstrated on several benchmarks tailored towards evaluating personalized localization abilities. This work is the first to explore and benchmark personalized few-shot localization for VLMs -- exposing critical weaknesses in present-day VLMs, and laying a foundation for future research in context-driven vision-language applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。