Saved in:
Bibliographic Details
Main Authors: Li, Li, Wu, Yongliang, Zhu, Jingze, Peng, Jiawei, Cai, Jianfei, Yang, Xu
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.08021
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912475657535488
author Li, Li
Wu, Yongliang
Zhu, Jingze
Peng, Jiawei
Cai, Jianfei
Yang, Xu
author_facet Li, Li
Wu, Yongliang
Zhu, Jingze
Peng, Jiawei
Cai, Jianfei
Yang, Xu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_08021
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysis
Li, Li
Wu, Yongliang
Zhu, Jingze
Peng, Jiawei
Cai, Jianfei
Yang, Xu
Computation and Language
Artificial Intelligence
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.
title Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysis
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2507.08021