Saved in:
Bibliographic Details
Main Authors: Lee, Eugene, Lin, Yu-Chi, Diao, Jiajie
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.26775
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912985495109632
author Lee, Eugene
Lin, Yu-Chi
Diao, Jiajie
author_facet Lee, Eugene
Lin, Yu-Chi
Diao, Jiajie
contents Multimodal Large Language Models (MLLMs) adapt to visual tasks via in-context learning (ICL), which relies heavily on demonstration quality. The dominant demonstration selection strategy is unsupervised k-Nearest Neighbor (kNN) search. While simple, this similarity-first approach is sub-optimal for complex factual regression tasks; it selects redundant examples that fail to capture the task's full output range. We reframe selection as a sequential decision-making problem and introduce Learning to Select Demonstrations (LSD), training a Reinforcement Learning agent to construct optimal demonstration sets. Using a Dueling DQN with a query-centric Transformer Decoder, our agent learns a policy that maximizes MLLM downstream performance. Evaluating across five visual regression benchmarks, we uncover a crucial dichotomy: while kNN remains optimal for subjective preference tasks, LSD significantly outperforms baselines on objective, factual regression tasks. By balancing visual relevance with diversity, LSD better defines regression boundaries, illuminating when learned selection is strictly necessary for visual ICL.
format Preprint
id arxiv_https___arxiv_org_abs_2603_26775
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Learning to Select Visual In-Context Demonstrations
Lee, Eugene
Lin, Yu-Chi
Diao, Jiajie
Machine Learning
Artificial Intelligence
Computation and Language
Computer Vision and Pattern Recognition
I.2; I.4; H.3
Multimodal Large Language Models (MLLMs) adapt to visual tasks via in-context learning (ICL), which relies heavily on demonstration quality. The dominant demonstration selection strategy is unsupervised k-Nearest Neighbor (kNN) search. While simple, this similarity-first approach is sub-optimal for complex factual regression tasks; it selects redundant examples that fail to capture the task's full output range. We reframe selection as a sequential decision-making problem and introduce Learning to Select Demonstrations (LSD), training a Reinforcement Learning agent to construct optimal demonstration sets. Using a Dueling DQN with a query-centric Transformer Decoder, our agent learns a policy that maximizes MLLM downstream performance. Evaluating across five visual regression benchmarks, we uncover a crucial dichotomy: while kNN remains optimal for subjective preference tasks, LSD significantly outperforms baselines on objective, factual regression tasks. By balancing visual relevance with diversity, LSD better defines regression boundaries, illuminating when learned selection is strictly necessary for visual ICL.
title Learning to Select Visual In-Context Demonstrations
topic Machine Learning
Artificial Intelligence
Computation and Language
Computer Vision and Pattern Recognition
I.2; I.4; H.3
url https://arxiv.org/abs/2603.26775