mlsanityData to 7 Oct 2026

Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysis

arXiv 2507.08021 ↗First posted 8 Jul 2025cs.CL cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

The evolution of large models has witnessed the emergence of In-Context Learning (ICL) capabilities. In Natural Language Processing (NLP), numerous studies have demonstrated the effectiveness of ICL. Inspired by the success of Large Language Models (LLMs), researchers have developed Large Multimodal Models (LMMs) with ICL capabilities. However, explorations of demonstration configuration for multimodal ICL remain preliminary. Additionally, the controllability of In-Context Examples (ICEs) provides an efficient and cost-effective means to observe and analyze the inference characteristics of LMMs under varying inputs. This paper conducts a comprehensive external and internal investigation of multimodal in-context learning on the image captioning task. Externally, we explore demonstration configuration strategies through three dimensions: shot number, image retrieval, and caption assignment. We employ multiple metrics to systematically and thoroughly evaluate and summarize key findings. Internally, we analyze typical LMM attention characteristics and develop attention-based metrics to quantify model behaviors. We also conduct auxiliary experiments to explore the feasibility of attention-driven model acceleration and compression. We further compare performance variations between LMMs with identical model design and pretraining strategies and explain the differences from the angles of pre-training data features. Our study reveals both how ICEs configuration strategies impact model performance through external experiments and characteristic typical patterns through internal inspection, providing dual perspectives for understanding multimodal ICL in LMMs. Our method of combining external and internal analysis to investigate large models, along with our newly proposed metrics, can be applied to broader research areas.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 72 of its 80 references that are in the map. First posted on arXiv 8 Jul 2025.

Builds on

72 of 80 references.

References · 72

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2023GPT-4 Technical Reportcited by 18,132
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  9. 2023Visual Instruction Tuningcited by 7,792
  10. 2020Scaling Laws for Neural Language Modelscited by 6,411
  11. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  12. 2025Qwen2.5-VL Technical Reportcited by 5,418
38 more
  1. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  2. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  3. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  4. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  5. 2023MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Modelscited by 2,689
  6. 2016Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answeringcited by 2,498
  7. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
  8. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  9. 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,219
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  11. 2014CIDEr: Consensus-based Image Description Evaluationcited by 2,027
  12. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  13. 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
  14. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  15. 2020Oscar: Object-Semantics Aligned Pre-training for Vision-Language Taskscited by 1,213
  16. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  17. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  18. 2019OK-VQA: A Visual Question Answering Benchmark Requiring External Knowledgecited by 1,114
  19. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
  20. 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
  21. 2019How Can We Know What Language Models Know?cited by 953
  22. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  23. 2018Object Hallucination in Image Captioningcited by 661
  24. 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
  25. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  26. 2024An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Modelscited by 629
  27. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  28. 2023OpenFlamingo: An Open-Source Framework for Training Large Autoregressive Vision-Language Modelscited by 560
  29. 2023OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocationcited by 468
  30. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  31. 2022Scaling Language-Image Pre-training via Maskingcited by 317
  32. 2023OBELICS: An Open Web-Scale Filtered Dataset of Interleaved Image-Text Documentscited by 316
  33. 2019Revealing the Dark Secrets of BERTcited by 300
  34. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
  35. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
  36. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
  37. 2023Multimodal C4: An Open, Billion-scale Corpus of Images Interleaved with Textcited by 208
  38. 2022Active Example Selection for In-Context Learningcited by 195

50 most cited of 72 All 72 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025What do vision-language models see in the context? Investigating multimodal in-context learning
  2. 2026GRIP: Feedback-Guided Prompt Retrieval for Large Multimodal Models
  3. 2024Towards Multimodal In-Context Learning for Vision & Language Models
  4. 2023Can Multimodal Large Language Models Truly Perform Multimodal In-Context Learning?
  5. 2024Can MLLMs Perform Text-to-Image In-Context Learning?
  6. 2026Why Multimodal In-Context Learning Lags Behind? Unveiling the Inner Mechanisms and Bottlenecks
  7. 2024Personalizing Multimodal Large Language Models for Image Captioning: An Experimental Analysis
  8. 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning