arXiv:2610.12516cs.CVOct 2026

Manuscript Offprint

arXiv:2610.12516

TraceICL: Thread-Resolved Demonstration Curation with Consistency Calibration for Robust Multimodal In-Context Learning

Yigit Yilmaz, Elena Petrova, Mehmet Kaya, Lucia Rossi, Amir Rahman

Abstract

Interleaved multimodal in-context learning (ICL) lets frozen large vision-language models (LVLMs) acquire new tasks from a handful of image-text-answer demonstrations, yet it remains fragile: demonstrations bind to the wrong images, redundant exemplars crowd out informative ones, and noisy answers are copied verbatim into predictions. We present TraceICL, a training-free framework that organizes the demonstration pipeline of multimodal ICL into three composable stages. A Thread-Resolved Decomposer (TRD) segments the interleaved context into per-sample threads and re-stitches them with explicit boundaries, restoring image-text binding. An Influence-scored Demonstration Selector (IDS) estimates each candidate's marginal influence with one extra forward pass, removes redundancy, and orders the survivors by descending value. A Weak-to-Strong Consistency Calibration (WSC) module scores each demonstration by a weak sibling model's reconstruction confidence and softly reweights its contribution during decoding. On five vision-language benchmarks with interleaved 4-shot prompts, TraceICL improves the strongest same-setting baseline by +1.7 points on average (up to +2.4 on VizWiz), shrinks the require-visual performance gap on ScienceQA-IMG, and retains most of its gain under 30% noisy demonstrations, at a 26% latency overhead that an offline cache amortizes. No gradients are ever computed; the LVLM stays frozen.

1 Introduction

In-context learning (ICL) has become the dominant paradigm for adapting large vision-language models (LVLMs) to new tasks without any parameter update: the prompt interleaves a handful of image-text-answer demonstrations followed by a query, and the model imitates the pattern (Zhou et al., 2024; Alayrac et al., 2022). The paradigm is attractive precisely because demonstrations act as a soft, editable task specification. Yet the same mechanism makes ICL fragile in ways that parameter-efficient fine-tuning is not: every property of the demonstration sequence—its length, order, image-text pairing, and annotation quality—leaks directly into the prediction. Empirical studies of prompting regimes show that seemingly innocuous changes in how context is staged can flip model reliability and even induce hallucinated content (Zhao et al., 2026). The problem is amplified in safety-critical multimodal applications: driving world models and video simulators consume interleaved image-text trajectories where a single mis-bound demonstration propagates into an unsafe prediction (Li et al., 2025a), and perceptual localization stacks likewise couple multiple visual sources that must be attributed correctly (Li et al., 2025b).

Existing remedies fall into two families, and each leaves a gap. Model-side approaches retrain or restructure the LVLM so that multi-image prompts are handled more gracefully, at the cost of a full instruction-tuning pipeline (Zhao et al., 2024; Li et al., 2023). Data-side approaches curate better demonstrations, but selection criteria are usually borrowed from training-time alignment, where influence is measured with gradients and token-level supervision (Si et al., 2025), or from plain query-demonstration similarity, which ignores interactions among demonstrations. None of these methods treats the demonstration sequence as a first-class object: they do not model how interleaved demonstrations bind to each other, how much marginal information each adds, or how much a noisy demonstration should be trusted.

We address these gaps with TraceICL, a training-free framework that organizes the entire demonstration pipeline of multimodal ICL into three composable stages. First, a Thread-Resolved Decomposer (TRD) segments the interleaved context into per-sample threads and re-stitches them with explicit boundaries, turning a chaotic shared stream into locally bound units; the design transfers a thread-decomposition insight originally developed for chaotic long-text reasoning. Second, an Influence-scored Demonstration Selector (IDS) estimates the marginal influence of each candidate demonstration with a single extra forward pass, removes redundancy, and orders the survivors by descending value. Third, a Weak-to-Strong Consistency Calibration (WSC) module asks a weak sibling model to reconstruct each demonstration's answer and uses the reconstruction confidence to softly reweight the demonstration's contribution during decoding. TraceICL touches only the prompt and the decoding logits; the LVLM stays frozen.

Our contributions are:

• We identify cross-demonstration binding, demonstration redundancy, and unweighted noise injection as three compounding failure modes of interleaved multimodal ICL, and trace each to a measurable deficiency of current prompting pipelines.

• We propose TraceICL, the first training-free framework that jointly performs thread-resolved context decomposition, influence-scored demonstration selection, and weak-to-strong consistency calibration for frozen LVLMs.

• On five vision–language benchmarks with interleaved 4-shot prompts, TraceICL improves the strongest same-setting baseline by +1.7 points on average (up to +2.4 on VizWiz), reduces the require-visual performance gap on ScienceQA-IMG, and retains most of its gain under 30% noisy demonstrations.

• We provide a detailed ablation, hyperparameter, robustness, and cost analysis showing that the three modules are complementary and that the overhead is a single extra forward pass plus an offline calibration cache.

The rest of this paper reviews related work in Section 2 on multimodal ICL ( §2.1§2.1), demonstration selection ( §2.2§2.2), and supervision reliability ( §2.3§2.3); formalizes the problem in Section 3 ( §3.1§3.1) and details TRD ( §3.2§3.2), IDS ( §3.3§3.3), and WSC ( §3.4§3.4) with complexity ( §3.5§3.5); reports experiments in Section 4 from setup ( §4.1§4.1) through main results ( §4.2§4.2), ablations ( §4.3§4.3), hyperparameters ( §4.4§4.4), robustness ( §4.5§4.5), cost ( §4.6§4.6), and limitations ( §4.7§4.7); and concludes in §5§5.

References (40)