Active In-Context Learning: Enhancing the Generalization of Large Multimodal Models

Fan Wang, Zhongyi Han, Guanglin Zhou, Rundong He, Hao Sun, Yicong Dong, Wan su, Xin Gao, Yilong YinOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

The performance of Large Multimodal Models (LMMs) on downstream tasks improves substantially when examples of visual-text relationships are incorporated as context, with performance gains increasing as the number of examples and the context window size grow. However, collecting high-quality training sets for In-Context Learning (ICL) to retrieve multimodal examples is not trivial, particularly in specialized domains like healthcare, remote sensing, finance, and scientific research, due to the significant costs of manual labeling and strict privacy regulations. In this paper, we introduce Active In-Context Learning (AICL), a novel paradigm that eliminates the need for traditional training sets in multimodal ICL. AICL dynamically selects and annotates a small, highly informative set of samples in real-time during the query phase of LMMs. This active set evolves throughout querying, with the most relevant examples being continuously retrieved from it to optimize LMM performance on new data, without relying on pre-existing training sets. To construct an optimal active set, we propose Spectral-based Representative Sampling, which applies spectral clustering in the early query phase to select samples that are early, class-balanced, and representative, ensuring the active set captures key features of the data distribution and reduces data bias. To fully leverage the active set, we propose Similarity-enhanced TopK Prompt Construction, which retrieves the most relevant multimodal examples using a TopK similarity strategy and integrates the visual similarities between the multimodal examples and the query samples directly into the text prompts. By incorporating this similarity information, LMMs can better grasp the relationships, leading to more accurate and context-aware predictions. Experimental results on 10 specialized datasets and four LMMs show that our method significantly enhances LMMs’ generalization performance. For example, in medical diagnosis tasks, our method, using only 10 annotated samples in the active set, outperforms existing ICL methods that rely on 2,000 annotated training samples.
BibTeX
@misc{wang2025active,
  author = {Fan Wang and Zhongyi Han and Guanglin Zhou and Rundong He and Hao Sun and Yicong Dong and Wan su and Xin Gao and Yilong Yin},
  title = {{Active In-Context Learning: Enhancing the Generalization of Large Multimodal Models}},
  year = {2025},
  url = {https://openreview.net/forum?id=OcXsdBo6vK},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure