The Value of Being Wrong: Self-Mined Visual In-Context Learning from Errors
Shu Zhao, Tan Yu
Abstract
Visual in-context learning (ICL) enables vision-language models (VLMs) to adapt at test time via demonstration examples, but its effectiveness depends critically on the examples selected. Recent counterfactual selection methods improve ICL by constructing demonstrations that expose how individual attribute changes affect the answer. However, they require multi-stage pipelines involving attribute extraction, caption engineering, and composed image matching. We propose a simpler alternative grounded in a key observation: a model's own prediction errors are natural counterfactual demonstrations that directly encode its failure modes. Our method, SMILE (Self-Mined Visual In-Context Learning from Errors), builds a model-specific pool of hard negatives offline by recording the target VLM's own mistakes. At test time, the prediction serves as a direction signal that surfaces, in the semantic embedding space, the past mistakes most likely to recur for the current query. This prediction-conditioned identification provides a unified mechanism for both closed-set classification and open-ended visual question answering without task-specific design. Across four benchmarks and four VLMs, SMILE delivers an average task-score gain of +3.09 points over the SOTA baseline at 5x lower latency. Project page: https://tree-shu-zhao.github.io/SMILE/
Create a lesson
Related papers
DIME: Scaling Facial Representation Learning via Differential Masked Autoencoding
Hao Yu, Haoyu Chen, Hui Wei et al.
MaskSense: Confronting the Visual Exploration Trap in Masked Image Generation
Yawen Shao, Jie Xiao, Kai Zhu et al.
Self-Supervised Learning of Semantically Consistent Visual Features via a Simple 3D Prior
Sebastian Day, Oisin Mac Aodha
AUGUstus: Autonomous Driving VLA Model with Unified Generation and Understanding
Yuqi Ye, Caigao Jiang, Zhuonan Wang et al.
Proactive Physical AI through Continuous Observation and Timely Intervention
Zhenhua Yang, Jiafeng Liang, Xingyu Zhou et al.
DDVR-Net: Degradation-Aware Decoupling and Visibility-Guided Restoration for Historical Document Recognition
Jiu Sha, Yu Weng, Mengxiao Zhu