How to Configure Good In-Context Sequence for Visual Question Answering

Li Li, Jiawei Peng, Huiyi Chen, Chongyang Gao, Xu Yang
2/14/2026

No official code found. Best implementation: GaryJiajia/OFv2_ICL_VQA (21 stars, last commit 2025-05-28).

Abstract

Inspired by the success of Large Language Models in dealing with new tasks via In-Context Learning (ICL) in NLP, researchers have also developed Large Vision-Language Models (LVLMs) with ICL capabilities. However, when implementing ICL using these LVLMs, researchers usually resort to the simplest way like random sampling to configure the in-context sequence, thus leading to sub-optimal results. To enhance the ICL performance, in this study, we use Visual Question Answering (VQA) as case study to explore diverse in-context configurations to find the powerful ones. Additionally, through observing the changes of the LVLM outputs by altering the in-context sequence, we gain insights into the inner properties of LVLMs, improving our understanding of them. Specifically, to explore in-context configurations, we design diverse retrieval methods and employ different strategies to manipulate the retrieved demonstrations. Through exhaustive experiments on three VQA datasets: VQAv2, VizWiz, and OK-VQA, we uncover three important inner properties of the applied LVLM and demonstrate which strategies can consistently improve the ICL VQA performance. Our code is provided in: https://github.com/GaryJiajia/OFv2_ICL_VQA.

View on arXivView PDF

Code Implementations(1)

[CVPR 2024] How to Configure Good In-Context Sequence for Visual Question Answering

210Shell, PythonNov 17, 20231 years ago

Similar Papers

Cite this paper

@article{li2026configure,
  title  = {How to Configure Good In-Context Sequence for Visual Question Answering},
  author = {Li Li and Jiawei Peng and Huiyi Chen and Chongyang Gao and Xu Yang},
  year   = {2026},
  eprint = {2312.01571},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2312.01571},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.01571.svg)](https://codeofpaper.com/paper/2312.01571)

Discussion