跳到正文
arXiv (AI + Vision + Imaging)· Chenyang Wang, Jiamo Hu, Chengrui Wu, Lingyue Chen, Jianguo Chen, Xun Xu, Xulei Yang·· 2 天前AI 评分22

TaskVICL:用任务条件化解码器状态实现视觉上下文学习示例检索

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

AI 导读

TaskVICL 利用冻结目标 VLM 在作答前的解码器隐状态构建任务条件化处理签名,实现无需训练的示例检索方案 TaskVICL-Raw。在两个 VLM 和八个分类与视觉问答数据集上,Raw 在免训练检索器中平均准确率最高,较最强基线在 Qwen3-VL 上高 3.30 分、InternVL3.5 上高 1.41 分,增益也延续到 Gemma-3-12B。

正文 · 原文

arXiv:2611.28081v2 Announce Type: replace Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org