arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.28081cs.CV
收藏

BehaviorICL:用于视觉上下文学习的任务条件解码器状态

TaskVICL: Task-Conditioned Decoder States for Visual In-Context Learning

National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学);Sun Yat-sen University(中山大学);Institute of Advanced Intelligence and Computing (A*STAR IAIC)(先进智能与计算研究所(A*STAR IAIC))

Chenyang Wang, Jiamo Hu, Chengrui Wu, Lingyue Chen, Jianguo Chen, Xun Xu, Xulei Yang

AI总结:

本文提出BehaviorICL,利用冻结VLM的解码器状态选择视觉上下文学习的演示,其无训练变体Raw在多数据集上优于现有方法,验证了VLM内部状态用于视觉上下文学习的实用性。

摘要:

视觉语言模型(VLM)的上下文演示有效性取决于查询图像及其相关任务。本文研究冻结的目标VLM在生成答案前读取的自身解码器状态是否可用于选择此类演示。BehaviorICL通过任务条件处理签名表示每个图像和任务,该签名为所有解码器层最终输入位置的隐藏状态。其无训练变体BehaviorICL-Raw对对应层状态间的余弦相似度取平均,并将检索到的示例及其参考答案传递给同一VLM。当对相同NICO++图像询问其对象或上下文时,Raw为两个问题检索到差异显著的演示,且在两个VLM上均优于给定任务匹配演示的图像检索器。在两个VLM及八个分类与视觉问答数据集上,Raw在无训练检索器中平均准确率最高,在Qwen上较采用CLIP ViT-L/14编码器的RICES提升3.83个百分点,在InternVL上提升1.85个百分点。轻量共享投影BehaviorICL-Proj在分类任务上进一步提升性能。对提取文本、解码器深度及库答案的分析有助于解释这些增益,注意力分析则描述任务文本如何将提取位置的注意力转向待分类对象。这些结果表明,目标VLM的内部状态可作为视觉上下文学习的实用基础。

英文摘要:

The usefulness of an in-context demonstration for a vision-language model (VLM) depends on both the query image and the task posed about it. Common retrievers rank examples by image similarity and ignore the task, while task-aware alternatives require answer generation, external encoders or retriever training. We ask whether the frozen target VLM's own decoder states, read before it answers, can select demonstrations directly. TaskVICL represents each image and task by a task-conditioned processing signature: the hidden states at the final input position across all decoder layers. Its training-free variant, TaskVICL-Raw, averages cosine similarities between corresponding layer states and passes the retrieved examples with their reference answers to the same VLM. Across two VLMs and eight classification and visual question answering datasets, Raw achieves the highest average accuracy among training-free retrievers, exceeding the strongest baseline by 3.30 points on Qwen3-VL and 1.41 on InternVL3.5, with gains carrying over to Gemma-3-12B. When the same NICO++ image is asked about its object or its context, Raw retrieves largely different demonstrations for the two questions and outperforms an image retriever given task-matched demonstrations. A lightweight shared projection, TaskVICL-Proj, adds further gains on classification. Controls show that task text at extraction drives most of the gains, and attention analysis describes how it shifts attention toward the classified object. These results support the target VLM's internal states as a practical basis for task-aware demonstration retrieval.

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

↑