potentialpaper

The Value of Being Wrong: Self-Mined Visual In-Context Learning from Errors

Shu Zhao, Tan Yu

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. SMILE replaces multi-stage counterfactual demo construction with an offline pool of the target VLM's own past mistakes, retrieved at test time by matching the query's zero-shot prediction in embedding space — +3.09 task-score, 5× lower latency.

Abstract. Visual in-context learning (ICL) enables vision-language models (VLMs) to adapt at test time via demonstration examples, but its effectiveness depends critically on the examples selected. Recent counterfactual selection methods improve ICL by constructing demonstrations that expose how individual attribute changes affect the answer. However, they require multi-stage pipelines involving attribute extraction, caption engineering, and composed image matching. We propose a simpler alternative grounded in a key observation: a model's own prediction errors are natural counterfactual demonstrations that directly encode its failure modes. Our method, SMILE (Self-Mined Visual In-Context Learning from Errors), builds a model-specific pool of hard negatives offline by recording the target VLM's own mistakes. At test time, the prediction serves as a direction signal that surfaces, in the semantic embedding space, the past mistakes most likely to recur for the current query. This prediction-conditioned identification provides a unified mechanism for both closed-set classification and open-ended visual question answering without task-specific design. Across four benchmarks and four VLMs, SMILE delivers an average task-score gain of +3.09 points over the SOTA baseline at 5× lower latency. Project page: https://tree-shu-zhao.github.io/SMILE/

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (spotlight)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (spotlight) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (spotlight)
Read decision
Meta-review

Initial assessment before rebuttal:

The submission received consistently positive evaluations (4, 5, 4), with no reviewer raising a fundamental objection to the core idea or its validation.

Reviewers raised several secondary points worth a brief response during rebuttal — for example, clarifying some implementation/sampling details for the offline mining stage, adding qualitative walkthrough examples, and tightening notation and figure clarity. None of these concerns fundamental soundness of the approach, and reviewers' assessment of the core contribution remains positive. The authors are encouraged to do their best to address the reviewers' concerns in their response.


Final assessment after rebuttal and discussion:

After considering the author response and reviewer discussion, I believe the main concerns were satisfactorily addressed. The reviewers converged to a strong positive consensus (5/5/5), and I find the core idea simple, well motivated, and supported by consistent empirical gains.

I therefore recommend acceptance. The remaining issues are mostly presentation-related and can be addressed in the final version.

Final justification

Please see the updated meta-review.

Area Chair Ygts · Meta-reviewOpenReview ↗
Final justification
Please see the updated meta-review.
Read meta-review
Meta-review

Initial assessment before rebuttal:

The submission received consistently positive evaluations (4, 5, 4), with no reviewer raising a fundamental objection to the core idea or its validation.

Reviewers raised several secondary points worth a brief response during rebuttal — for example, clarifying some implementation/sampling details for the offline mining stage, adding qualitative walkthrough examples, and tightening notation and figure clarity. None of these concerns fundamental soundness of the approach, and reviewers' assessment of the core contribution remains positive. The authors are encouraged to do their best to address the reviewers' concerns in their response.


Final assessment after rebuttal and discussion:

After considering the author response and reviewer discussion, I believe the main concerns were satisfactorily addressed. The reviewers converged to a strong positive consensus (5/5/5), and I find the core idea simple, well motivated, and supported by consistent empirical gains.

I therefore recommend acceptance. The remaining issues are mostly presentation-related and can be addressed in the final version.

Reviewer QeVFOpenReview ↗
Rating
5/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes SMILE, a visual in-context learning method that mines a VLM’s past prediction errors as hard-negative demonstrations. At test time, it retrieves positives by image similarity and hard negatives by matching the query’s zero-shot prediction to stored mistaken predictions, improving visual ICL across classification and VQA benchmarks.

Strengths and weaknesses

Strengths:

  1. Using a model’s own past errors as counterfactual demonstrations is simple and well motivated.
  2. SMILE improves over prior visual ICL baselines across multiple datasets and VLM backbones, with lower latency than CIRCLES.

Weakness:

  1. SMILE relies on the model’s zero-shot prediction as an error direction for hard-negative retrieval. When this prediction is semantically unrelated to the correct answer, the retrieved negatives may be uninformative or even misleading.
  2. Although the method is parameter-free at inference time, it requires an offline pass over a labeled corpus to build a model-specific error pool. The paper should better clarify how this setup compares fairly with standard visual ICL retrieval baselines.
  3. Hard negatives are inserted under an explicit “tricky examples” label, which may itself encourage the model to be more cautious or contrastive. The paper should include an ablation that removes or neutralizes this label to clarify whether the gains come from the mined hard negatives rather than the prompt wording.
  4. SMILE uses fewer in-context examples than the compared baselines, while most baselines use 32 examples. Although this demonstrates efficiency, different context lengths and prompt structures can affect visual ICL performance. A controlled comparison under the same example budget or token budget would better isolate the benefit of hard-negative mining.
Questions
  1. Could the authors ablate the explicit “tricky examples” label used for hard negatives? For example, replacing it with a neutral “additional examples” label or removing the label would clarify whether the gains come from mined hard negatives themselves or from the contrastive prompt wording.
  2. Could the authors provide a controlled comparison under the same example budget or token budget? SMILE uses fewer in-context examples than most baselines, which is efficient, but also changes prompt length and structure.
  3. Could the authors clarify the exact fairness protocol for offline mining? In particular, is the same labeled corpus available to all retrieval baselines, and is the mined error pool fixed before test-time inference? This clarification would help distinguish SMILE’s advantage from differences in preprocessing access.
Limitations

Yes.

Final justification

I appreciate the interesting and elegant idea of this work. The authors' rebuttal was insightful and effectively resolved my concerns. I am glad to assign a positive score.

Formatting concerns

None.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank the reviewer for the thoughtful and constructive feedback. We greatly appreciate your recognition that our approach is "simple and well motivated" and that SMILE "improves over prior visual ICL baselines across multiple datasets and VLM backbones, with lower latency". We address each point below.


W1: When the zero-shot prediction is semantically unrelated to the correct answer

A: Thank you for raising this. We acknowledge this explicitly as a limitation (App. Limitations, "Dependence on the informativeness of the zero-shot prediction"). Three reasons it is not a practical failure mode:

  • It is empirically rare. §3 shows wrong predictions are consistently closer to the ground truth than random answers: mean gaps Δ=+0.117 (classification) and Δ=+0.144 (VQA), positive in all 8 model-task cells (p<10−100p<10^{-100}). Off-manifold predictions are the tail, not the norm.
  • Graceful degradation. Even when retrieval is misdirected, hard negatives still display their ground-truth answers (valid labeled examples), and the KK positives (the majority of the prompt) still anchor the prediction. The worst case is a weaker contrastive signal, not misinformation.
  • Empirical floor. SMILE's gains are in fact largest exactly where the zero-shot prediction is wrong, and correct predictions are not harmed, as the following decomposition shows.

To verify this directly, we split each evaluation set by whether the initial zero-shot prediction is correct and compare SMILE against RICES on each subset.

Experimental Setup

  • VLM: Qwen2.5-VL-7B
  • Similarity encoder: CLIP ViT-G/14
  • Datasets: CUB-200, OK-VQA
  • Baseline: We choose RICES because it is exactly SMILE's positive branch, so the comparison cleanly isolates the effect of the hard-negative branch

Results (Δ = SMILE − RICES, averaged over 3 runs)

Subset Δ (SMILE − RICES)
CUB, initially wrong +0.81
CUB, initially correct +0.09
OK-VQA, initially wrong +3.35
OK-VQA, initially correct +0.03

Key Insights

  • Gains concentrate exactly where the prediction is wrong. On both benchmarks, the improvement comes from initially-wrong queries (+0.81 Acc on CUB, +3.35 EM on OK-VQA), which constitute the majority of the evaluation sets: precisely where the prediction is least informative, conditioning on it helps the most.
  • Correct or off-target predictions are not harmful. Initially-correct subsets are preserved (+0.09 Acc, +0.03 EM). Retrieved hard negatives always display their ground-truth answers, so a misdirected retrieval degrades into additional nearby demonstrations rather than misinformation, matching the graceful-degradation argument above.

W2 & Q3: Exact fairness protocol for offline mining

A: Thank you for the opportunity to clarify. The protocol is:

  • Same corpus. All retrieval methods (RICES, MUIER, MMICES, CIRCLES, SMILE) select demonstrations from the same labeled corpus; SMILE's pool is a subset of it and adds no data and no labels.
  • Same encoder. All methods share CLIP ViT-G/14 for similarity computation.
  • Pool constructed offline, once, and fixed at test time. The pool is mined once per backbone via zero-shot self-consistency voting; no test query, test label, or test-time feedback ever enters it. The only additional information is the model's own predictions on the same corpus: a one-time 0.6–13.3-minute pass on 8×H100 (Appendix, mining-time table). We emphasize that this one-time offline construction is exactly what the online phase benefits from: at test time, SMILE adds only one zero-shot call and a nearest-neighbor lookup (<5% overhead), whereas CIRCLES runs its multi-stage counterfactual pipeline for each test query. This design is what delivers the +2.72 average task-score gain at 5× lower latency (§5.7).

The source code in the supplementary material implements this protocol end-to-end.


W3 & Q1: Ablating the "tricky examples" label

A: Thank you for this question. We first clarify the label's structural role, then present existing and new evidence that isolates wording from content.

(1) The label is the standard ICL interface, not an extraneous nudge. In-context demonstrations require framing text that tells the model what a block of examples is for: our positive block likewise opens with "Here are K in-context examples to help you answer the question" (App. prompt template), and every baseline operates with analogous headers. Stripping all framing would leave bare image–answer pairs whose intended function the model can only guess. The scientifically meaningful decomposition is therefore content vs. wording, which we isolate below.

(2) Wording alone demonstrably does not produce the gains. In the component ablation (§5.5), the random hard-negative row uses the identical "tricky examples" wording: only the content differs. Under this fixed wording, random negatives add +0.05 Acc on CUB and −0.30 EM on OK-VQA (vs. positives-only), while prediction-conditioned negatives add +1.37 Acc and +4.64 EM. If the contrastive wording itself drove the improvement, it would lift random negatives too; it does not.

(3) New label-wording ablation, as requested:

Experimental Setup

  • VLM: Qwen2.5-VL-7B
  • Similarity encoder: CLIP ViT-G/14
  • Datasets: CUB-200, OK-VQA
  • Hyperparameters: identical to the main paper; the three variants differ only in the hard-negative block label

Results (Δ vs. the paper wording, averaged over 3 runs)

Hard-negative block label Δ CUB Acc Δ OK-VQA EM
"tricky examples previously confused with the predicted answer" (paper) — —
Neutral: "additional examples" −0.12 +0.89
No label (merged into one demonstration block) +0.30 +0.66

Key Insights

  • All three wordings perform on par (within 0.3 Acc / 0.9 EM). The improvement is attributable to which examples are retrieved, not how they are framed; together with (2), neither the wording alone nor the wording-plus-arbitrary-content produces SMILE's gain; the mined content does. We will add this ablation to the appendix.

W4 & Q2: Controlled comparison under the same example/token budget

A: Thank you for this question. This comparison is already in the paper: the KK/NN sweep in Figure 6 includes K=16K{=}16, N=16N{=}16, a 32-example SMILE prompt matching both the baselines' budget and CIRCLES's own 16+16 causal/contrastive split (82.21 Acc on CUB and 47.75 EM on OK-VQA, vs. RICES at 32: 82.15 / 43.66).

Key Insight

  • At the same 32-example budget, SMILE still outperforms (+4.09 EM on OK-VQA). Our default uses fewer examples only because performance plateaus beyond N≈8N{\approx}8 (Fig. 6); the advantage is not a budget artifact.

We hope our clarifications and new results address your concerns. We are happy to answer any remaining questions.

Reviewer QeVF · CommentOpenReview ↗

Thanks to the authors for the comprehensive rebuttal and new ablation results, which addressed almost all of my concerns. I have no further doubts and am inclined to raise my score.

Authors · CommentOpenReview ↗

We appreciate your recognition of our efforts and are grateful that you upgraded the rating! Thanks for your time and thoughtful feedback throughout the review process.

Reviewer rPjyOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes SMILE, a visual in-context learning method that leverages a VLM’s own past prediction errors as hard-negative demonstrations. Instead of constructing counterfactual examples through complex attribute extraction or caption-based pipelines, the method mines model-specific mistakes offline and retrieves semantically relevant errors at test time based on the model’s zero-shot prediction. The central insight is simple but compelling: model errors are often structured and reusable, revealing likely failure modes that can help guide future predictions. Experiments across multiple benchmarks and VLM backbones show consistent improvements over strong ICL baselines, with lower inference latency than prior counterfactual selection methods.

Strengths and weaknesses

Strengths

  • The paper presents a simple and well-motivated idea: using a VLM’s own past prediction errors as hard-negative demonstrations for visual in-context learning.
  • The paper supports its core assumption with empirical analysis, showing that model errors are often reusable either as exact confusion pairs in classification or as semantically related mistakes in VQA.

Weaknesses

  • The gains may partly come from adding hard examples rather than from precise failure-mode matching. In particular, random hard negatives are also competitive on CUB, suggesting that label coverage or additional examples may explain part of the improvement.
  • The scope of evaluation is still limited to classification and VQA. It remains unclear whether the same strategy would generalize to more complex visual reasoning, grounding, captioning, or embodied tasks.
  • The quality of mined errors is not fully analyzed. Some errors may come from ambiguous images, noisy labels, low-quality questions, or unanswerable cases, and the paper does not sufficiently distinguish helpful hard negatives from potentially noisy ones.
Questions

Questions for Authors

  • How much of the improvement comes from prediction-conditioned failure-mode matching, rather than simply adding more hard or diverse examples to the prompt?
  • How does SMILE handle low-quality mined errors, such as ambiguous images, noisy labels, or unanswerable VQA cases, and how sensitive is the method to such noisy hard negatives?
Limitations

The main limitations are reflected in the weaknesses above.

Formatting concerns

No major formatting concerns.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank the reviewer for the thoughtful and constructive feedback, and for recognizing our idea as "simple and well-motivated" with "excellent" originality, supported by empirical analysis of its core assumption. We address each point below.


W1 & Q1: Failure-mode matching vs. simply adding more hard/diverse examples

A: Thank you for this important question. The cleanest way to answer it is to isolate the increment contributed by the negative branch, holding the positive branch, example budget, prompt wording, and pool fixed (component ablation, §5.5):

Configuration CUB Acc Δ vs. Pos-only OK-VQA EM Δ vs. Pos-only
Positives only 81.18 — 43.16 —
+ Random hard negatives 81.23 +0.05 42.86 −0.30
+ Prediction-conditioned negatives (ours) 82.55 +1.37 47.80 +4.64

Key Insights

  • "Adding hard examples" per se contributes almost nothing. Under identical conditions, random hard negatives add +0.05 Acc on CUB (essentially zero) and are harmful on OK-VQA (−0.30 EM). Prediction-conditioned matching delivers 27× the random increment on CUB (~96% of the negative-branch gain) and is the sole source of the gain on OK-VQA.
  • The "competitive" appearance on CUB is a level-vs-increment artifact. Absolute scores look close (81.23 vs. 82.55) only because positives alone already reach 81.18. Measured by what the branch actually adds, random selection captures almost none of it. We will revise the §5.5 sentence that calls random negatives "competitive"; thank you for prompting this clarification.
  • Label coverage matters for the retrieval corpus, not the negative branch. Our pool decomposition (§5.3) shows coverage drives the positive branch (77/200 CUB classes have zero model-correct examples); random negatives broaden label coverage at least as well, yet capture almost none of the gain.

W2: Scope of evaluation (beyond classification and VQA)

A: Thank you for this comment. We offer a broader perspective on what the evaluated scope demonstrates:

  • Classification and VQA are the two foundational regimes of visual understanding. They span the two extremes of the answer space, closed-set discrimination over hundreds of fine-grained candidates and open-ended free-form generation. Consistent gains across both regimes, four benchmarks, and four backbones indicate the mechanism improves the model's underlying discrimination rather than exploiting a task-specific artifact.
  • The underlying principle aligns with several major research currents. Mining a model's own errors is the core loop of the fast-growing self-evolving line of work; pairing positives with targeted hard negatives is exactly the counterfactual-demonstration direction and inherits the classic contrastive-learning insight that discriminative signal comes from hard negatives. SMILE is a training-free, inference-time realization of these principles, so we expect it to transfer well beyond the two regimes tested.
  • Nothing in the framework is task-specific. It requires only (image, question, answer) triples and a text embedder: for grounding, the stored mistake is a wrong region description; for captioning, a flawed generated caption serves as the error direction. We will add this discussion to the paper; a full study of reasoning, grounding, and embodied settings is valuable standalone future work.

W3 & Q2: Robustness to low-quality mined errors (ambiguous images, noisy labels, unanswerable cases)

A: Thank you for this insightful question. We stress-tested all three failure types you name. Summary first:

  • (a) Ambiguous images: test-time retrieval avoids them automatically. Prediction-conditioned retrieval under-samples unstable items (0.81–0.83× relative to their pool share), and even a pool built only from them costs at most 0.25 Acc / 0.55 EM end-to-end.
  • (b) Noisy labels: uncorrelated noise is rarely retrieved. Corrupting a full 20% of pool labels costs at most −0.45 EM.
  • (c) Unanswerable cases: the one correlated contamination, handled at mining time. Even with 48.6% of the raw VizWiz pool mined from "unanswerable" errors, SMILE still beats the strongest baseline by +2.48 EM, and a one-line mining-time filter recovers the remaining +4.54 EM (the paper configuration).

(a) Ambiguous images

Experimental Setup

  • VLM: Qwen2.5-VL-7B
  • Similarity encoder: CLIP ViT-G/14
  • Datasets: CUB-200, OK-VQA
  • Ambiguity proxy: we re-mine the pool with R=5R{=}5 sampled generations, keeping every item whose plurality answer is wrong, and score each item by its vote agreement: 5/5 unanimous = a consistent confusion; a sub-majority winner (2/5 votes) = unstable/ambiguous. (The 1/5 stratum, 10 items on CUB, is too small for a standalone pool.)
  • Two tests: (i) observational: each stratum's share of actual retrieval events vs. its share of the pool in full-pool runs; (ii) causal: restrict the pool to a single stratum and re-run end-to-end.

Results

(i) Retrieved share ÷ pool share in the full-pool runs (>1 = over-retrieved, <1 = avoided):

Vote agreement 5/5 4/5 3/5 2/5 1/5
CUB 1.04× 1.08× 0.96× 0.83× 0.71×
OK-VQA 1.38× 1.06× 0.93× 0.81× 0.67×

(ii) Pool restricted to a single stratum (mean ± std over 3 runs):

Hard-negative pool CUB Acc OK-VQA EM
Majority-vote R=5R{=}5 pool (response to Reviewer XjYG) 82.55 ± 0.03 48.13 ± 0.17
Only unanimous errors (5/5) 82.13 ± 0.11 47.63 ± 0.05
Only marginal errors (3/5) 82.41 ± 0.07 47.65 ± 0.02
Only sub-majority items (2/5) 82.30 ± 0.05 47.58 ± 0.08

Key Insights

  • Retrieval self-selects consistent errors with no explicit filter. It over-samples majority-agreement errors relative to their pool share (up to 1.38×) and increasingly avoids the sub-majority strata (0.81–0.83× at 2/5, 0.67× at 1/5), acting as a test-time filter.
  • Even a pool built solely from ambiguous items barely moves the needle. The 2/5-only pool (9.5% of items on CUB) stays within 0.25 Acc / 0.55 EM of the majority-vote pool, and the unanimous-only pool drops comparably (−0.42 / −0.50); no stratum is uniquely harmful, so the residual effect is pool shrinkage, not ambiguity.

(b) Noisy labels

Experimental Setup

  • VLM: Qwen2.5-VL-7B
  • Similarity encoder: CLIP ViT-G/14
  • Datasets: CUB-200, OK-VQA
  • Noise injection: we randomly corrupt 10% / 20% of the mined pool's ground-truth labels, replacing each with a random different answer from another pool record; corrupted labels are displayed in the prompt as if genuine. The stored mistakes used for retrieval are untouched.
  • Hyperparameters: identical to the main paper

Results (mean ± std over 3 runs)

Hard-negative pool CUB Acc Δ vs. clean OK-VQA EM Δ vs. clean
Clean pool (paper) 82.55 ± 0.05 — 47.80 ± 0.13 —
10% corrupted labels 82.51 ± 0.09 −0.04 47.45 ± 0.07 −0.35
20% corrupted labels 82.44 ± 0.09 −0.11 47.35 ± 0.06 −0.45

Key Insights

  • Corrupting a full 20% of pool labels costs at most −0.45 EM. The curve is flat on both benchmarks (within run-to-run noise on CUB), and the corrupted pools retain nearly all of SMILE's gain over positives-only (81.18 / 43.16, §5.5).
  • A corrupted item can only hurt when it is retrieved. Random corruption is rarely aligned with the query's error direction, so prediction-conditioned retrieval plus the majority-positive prompt bounds its influence: the worst case is one weaker demonstration, not a derailed prediction.

(c) Unanswerable cases

About 32% of VizWiz questions are officially unanswerable. This creates one specific kind of low-quality mined item: examples where the model predicted "unanswerable" while the ground truth is a real answer. In the raw mined pool, 48.6% of the 11,835 items are of this kind.

This is the hardest case for SMILE: all of these items share the same retrieval key (the stored mistake "unanswerable"). Whenever a test query's zero-shot prediction is "unanswerable", which is frequent on VizWiz, retrieval fills the hard-negative block with them, and their demonstrations all repeat a single message: "questions that look unanswerable actually have answers." This biases the model against ever answering "unanswerable", even though "unanswerable" is the correct answer for ~32% of the test set. Unlike the random corruption in (b), which is rarely retrieved, this contamination is retrieved en masse.

Experimental Setup

  • VLM: Qwen2.5-VL-7B
  • Similarity encoder: CLIP ViT-G/14
  • Dataset: VizWiz
  • Comparison: SMILE with the raw pool vs. the paper configuration (drops these items at mining time with a one-line filter); baselines from Table 1

Results (raw-pool row: mean ± std over 3 runs; other rows as printed in Table 1)

Method VizWiz EM
RICES 73.79
CIRCLES 77.63
SMILE, raw pool (48.6% "unanswerable"-mined) 80.11 ± 0.14
SMILE, "unanswerable"-mined items dropped (paper) 84.65

Key Insights

  • Even the hardest, retrieved-at-scale contamination degrades gracefully. With nearly half the pool uninformative, raw-pool SMILE still beats the strongest baseline by +2.48 EM: each retrieved item still displays a valid ground-truth answer, and the KK positives continue to anchor the prompt.
  • A one-line mining-time filter recovers the rest (+4.54 EM). Dropping items whose stored mistake is "unanswerable" removes the bias at its source, with no per-item quality scoring needed. We will document this filter in Appendix A.

We hope these clarifications reinforce your positive assessment of the paper, and we are happy to answer any remaining questions.

Reviewer rPjy · CommentOpenReview ↗

My concern has been resolved. Thank you to the authors for the clarification, and I will maintain my original rating as final justification.

Authors · CommentOpenReview ↗

Thank you for your continued support of our work and for maintaining your positive evaluation! We truly appreciate your time and thoughtful feedback throughout the review process.

Reviewer XjYGOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces a novel strategy for generating in-context examples in multimodal in-context learning (ICL). The approach comprises two key stages: (1) an offline hard-negative mining step that constructs a hard-negative pool via self-consistent predictions of the base model, and (2) a prediction-conditioned selection mechanism at inference time that retrieves hard-negative examples tailored to the input. The proposed method demonstrates consistent improvements across four benchmarks spanning fine-grained image recognition and visual question answering (VQA).

Strengths and weaknesses

Strengths

  • The idea of leveraging hard negatives derived from the model's own predictions as in-context examples is compelling and well-motivated. The analysis in Figure 2 provides strong intuition for why this strategy is effective.
  • The empirical gains are promising, with consistent improvements demonstrated across all four datasets.
  • The ablation study is thorough and effectively validates each component of the proposed design.

Weaknesses

  • The writing is unclear in several places. Figure 1 is confusing—it is difficult to discern the intended takeaway. Additionally, some notation in the method section is introduced without definition (e.g., yhy_h).
  • The paper would benefit from qualitative examples. While the ablations and quantitative analysis are comprehensive, a concrete walkthrough showing how selected hard-negative examples influence the model's prediction would significantly improve readability and make the approach more intuitive to readers.
Questions
  • Missing methodological detail: Key implementation specifics are absent—particularly how sampling is performed for majority voting during the offline hard-negative mining phase. Without this, reproducibility is limited and it is difficult to assess the sensitivity of the method to sampling hyperparameters (e.g., number of samples, temperature).

  • Analysis needed for trivially correct predictions: During the online phase, the VLM's initial prediction serves as the reference for retrieving hard negatives. However, when the model's initial prediction is already correct, the retrieved "hard negatives" effectively become positive examples, undermining the intended contrastive signal. The authors should provide an analysis of how frequently this occurs across the evaluation sets. Understanding the proportion of such cases would clarify the actual contribution of hard-negative mining—specifically, whether improvements stem primarily from the subset of initially incorrect predictions, or whether the method remains beneficial even when the initial prediction is correct.

Limitations

Yes

Final justification

Most of concerns are addressed during the rebuttal so raising my score to 5.

Formatting concerns

None

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely thank the reviewer for the thoughtful and constructive feedback. We greatly appreciate your recognition of our "compelling and well-motivated" idea, the "strong intuition" provided by our analysis, the "promising" empirical gains with "consistent improvements demonstrated across all four datasets," and our "thorough" ablation study. We address each point below.


W1: Writing clarity

A: Thank you for this helpful feedback. We will make three concrete revisions:

  • Figure 1. It is designed around a single takeaway: a past error with the same failure mode warns the model away from its likely mistake, and we will improve the figure so this takeaway is immediately visible.
  • Notation (yhy_h). We believe this refers to y^h\hat{y}_h, which is formally defined in the where-clause of Eq. (2) and glossed at its first appearance in §3. Prompted by your comment, we audited every symbol in the paper; the table below lists each item we will tighten in the revision:
Symbol First appears Current status Revision
y^h\hat{y}_h, y^q\hat{y}_q §3, last paragraph Glossed inline; formally defined after Eq. (2), but the subscript hh references the mined pool H\mathcal{H}, which is only introduced in §4 Make first use self-contained: "y^h\hat{y}_h, the wrong prediction stored with a mined example hh"
RR Eq. (3) Number of sampled generations; specified only in App. A Define inline after Eq. (3)
vote(⋅)\mathrm{vote}(\cdot), Φ(⋅)(r)\Phi(\cdot)^{(r)} Eq. (3) Glossed via "self-consistency voting" and its citation, but the majority rule and the sample index (r)(r) appear only in App. A Define inline after Eq. (3)
NN Eq. (2) Defined only in §4.4 ("the top NN hard negatives") Add to Eq. (2)'s where-clause alongside KK
  • Notation table. We will additionally add a complete notation table to the appendix.

W2: Qualitative walkthrough examples

A: Thank you for this valuable suggestion. Figure 5 already presents two qualitative examples illustrating why the method works, and we agree that a concrete walkthrough would make the approach more intuitive. Since the NeurIPS rebuttal policy does not permit image uploads, we will add a full qualitative appendix with image walkthroughs in the revision (placed in the appendix due to the main-paper page limit).


Q1: Sampling details for majority voting during mining

A: Thank you for pointing this out. The full mining protocol and all hyperparameters are specified in Appendix A ("Hard-negative mining setup"), and the source code in the supplementary material contains the exact implementation.

To assess sensitivity to the sampling hyperparameters, we vary the number of samples RR and the temperature TT, measuring both end-task performance and the stability of the mined pool.

Experimental Setup

  • VLM: Qwen2.5-VL-7B
  • Similarity encoder: CLIP ViT-G/14
  • Datasets: CUB-200, OK-VQA
  • Hyperparameters: identical to the main paper except RR and TT. Note: Appendix A mistakenly reports the mining temperature as 1.0; the actual value used in all experiments is 0.7. We will correct this in the revision.

Results (mean ± std over 3 runs)

Mining config CUB Acc OK-VQA EM
R=1 (greedy, temp 0) 82.42 ± 0.04 48.15 ± 0.06
R=3, temp 0.7 (paper) 82.55 ± 0.05 47.80 ± 0.13
R=5, temp 0.7 82.55 ± 0.03 48.13 ± 0.17
R=3, temp 1.0 82.51 ± 0.16 47.84 ± 0.04

To explain this stability, we quantify how much the four mined pools overlap: (i) the Jaccard similarity of each pool against the paper's pool, and (ii) the fraction of test-time retrievals that hit the shared core, i.e., the intersection of all four pools, which covers 81–93% of each pool:

Mining config Pool Jaccard vs. paper (CUB / OK-VQA) Retrievals hitting the shared core (CUB / OK-VQA)
R=1 (greedy, temp 0) 93.0% / 89.9% 90.6% / 87.5%
R=3, temp 0.7 (paper) — 89.4% / 85.8%
R=5, temp 0.7 90.7% / 85.1% 88.2% / 84.8%
R=3, temp 1.0 88.6% / 81.6% 89.1% / 79.8%

Key Insights

  • Performance is stable across RR and TT. Scores vary by at most 0.35 EM / 0.13 Acc across the four settings, and no setting changes any conclusion; even the cheapest setting (R=1, greedy) is competitive, since voting mainly serves to filter unstable errors when constructing the pool rather than to boost end-task scores.
  • All settings mine largely the same pool. Jaccard similarity against the paper's pool is 82–93%, so sampling hyperparameters only perturb the pool's margins while the shared core (the model's consistent confusions) is preserved.
  • The margins rarely matter at test time. 80–91% of the hard negatives actually retrieved come from the shared core, so the demonstrations the model sees are nearly identical across settings, which directly explains the flat performance above.

Q2: What happens when the initial prediction is already correct?

A: Thank you for this insightful question. We answer both parts directly: (1) how often the initial prediction is already correct, and (2) a decomposition of the gains by initial correctness.

Frequency. By definition, this fraction equals the model's zero-shot accuracy, which is reported in the paper (Table 1, "None" row): the initially-wrong case is the large majority on both benchmarks.

Experimental Setup

  • VLM: Qwen2.5-VL-7B
  • Similarity encoder: CLIP ViT-G/14
  • Datasets: CUB-200, OK-VQA
  • Baseline: We choose RICES because it is exactly SMILE's positive branch, so the comparison cleanly isolates the effect of the hard-negative branch

Results (Δ = SMILE − RICES, averaged over 3 runs)

Subset Δ (SMILE − RICES)
CUB, initially wrong +0.81
CUB, initially correct +0.09
OK-VQA, initially wrong +3.35
OK-VQA, initially correct +0.03

Key Insights

  • The improvements stem primarily from the initially-incorrect subset. On both benchmarks, the gain concentrates on initially-wrong queries (+0.81 Acc on CUB, +3.35 EM on OK-VQA), which constitute the majority of the evaluation sets and are exactly where the contrastive signal is designed to act.
  • Correct predictions are not undermined. Both initially-correct subsets are preserved (+0.09 Acc on CUB, +0.03 EM on OK-VQA). When the initial prediction is correct, the retrieved examples lose their contrastive role and serve as additional nearby demonstrations, since, by construction, they always display their ground-truth answers, never the stored mistake.

We hope these clarifications and new analyses address your concerns. We are happy to answer any remaining questions.

Authors · CommentOpenReview ↗

We appreciate your time and efforts in the review process. As the discussion period comes to a close, we are kindly following up to see whether our rebuttal has addressed your concerns. If you feel the issues have been resolved, we would greatly appreciate a reconsideration of your rating.

Reviewer XjYG · CommentOpenReview ↗

I thank the authors for addressing my concerns. I am satisfied with the rebuttal and the additional clarifications provided. Based on the responses, I will consider raising my score

Authors · CommentOpenReview ↗

We are glad that our response has addressed your concerns. We sincerely appreciate your consideration of raising the score, and thank you again for your time and your thoughtful, insightful review. Should any further questions arise before the discussion period closes, we would be happy to clarify.

Comments on the paper

1 comment
Authors · CommentOpenReview ↗

We sincerely appreciate all reviewers for their insightful and constructive feedback. We extend our special gratitude to ACs/SACs/PCs for their tremendous efforts in ensuring the success of this venue.


Summary

We present SMILE, a training-free visual in-context learning method that turns a VLM's own past prediction errors into hard-negative demonstrations: (1) an offline stage mines a model-specific error pool via self-consistency voting, and (2) at inference time, hard negatives are retrieved by matching the query's zero-shot prediction to stored mistakes, complementing image-similar positives. SMILE delivers consistent improvements across four benchmarks and four VLM backbones, with a +2.72 average task-score gain at 5× lower inference latency than the strongest counterfactual baseline (CIRCLES). During the rebuttal, we conducted six new controlled experiments addressing all reviewer concerns, and all three reviewers explicitly confirmed that their concerns have been resolved. During the discussion period, the ratings improved from the initial 4 / 5 / 4 to the current 4 / 5 / 5, with Reviewer XjYG explicitly stating they will consider a further raise.


Key Concerns and Our Responses

We identified three main concerns raised across reviewers and addressed each with new experiments.

1. Do the gains come from prediction-conditioned failure-mode matching, rather than simply more hard examples or prompt wording? (Reviewers rPjy, QeVF)

  • Concern: Improvements might stem from adding hard/diverse examples per se, or from the contrastive "tricky examples" wording.
  • Response: We isolate the negative branch's increment with a controlled component ablation: holding the positive branch, example budget, prompt wording, and pool fixed, we swap our prediction-conditioned hard negatives for random ones. We further add a new label-wording ablation that varies only the hard-negative block's framing (paper wording / neutral / no label) while keeping the retrieved content identical.
  • Key insight: Random hard negatives capture almost none of the increment (and can even hurt), and all wordings perform on par. The gain is attributable to which examples are retrieved (the mined, prediction-matched content), not to example count or prompt framing.

2. Robustness to imperfect error signals (Reviewers QeVF, rPjy, XjYG)

  • Concern: Uninformative zero-shot predictions, already-correct predictions, and low-quality mined items (ambiguous images, noisy labels, unanswerable cases) could make retrieved negatives misleading.
  • Response: We stress-tested each failure mode: (i) decomposing the gain by whether the initial zero-shot prediction is correct; (ii) stratifying the mined pool by vote agreement as an ambiguity proxy, then measuring both what retrieval actually selects and end-to-end performance with single-stratum pools; (iii) randomly corrupting a large fraction of pool labels; and (iv) evaluating the hardest correlated contamination (VizWiz items mined from "unanswerable" errors) with and without a one-line mining-time filter.
  • Key insight: SMILE degrades gracefully by construction: gains concentrate exactly where the initial prediction is wrong, correct predictions are never harmed, and retrieval naturally avoids unstable items. Since every retrieved demonstration displays its ground-truth answer, the worst case is a weaker contrastive signal, never misinformation.

3. Fairness protocol and budget-controlled comparison (Reviewers QeVF, XjYG)

  • Concern: Offline mining might constitute extra preprocessing access; SMILE uses fewer in-context examples than 32-shot baselines; sensitivity to mining hyperparameters was under-specified.
  • Response: We clarified the exact protocol: every retrieval method selects from the same labeled corpus with the same similarity encoder, and the pool is mined once, offline, and fixed before any test-time inference. We also pointed to the matched 32-example-budget comparison already in the paper. Additionally, we ran a sensitivity sweep over the mining sample count and temperature, measuring both end-task performance and the overlap among the mined pools.
  • Key insight: SMILE still outperforms under the identical example budget, and mining is insensitive to sampling hyperparameters because all settings recover largely the same pool. The advantage stems from the method itself, not from data access, prompt budget, or hyperparameter tuning.

Conclusion

We believe our rebuttal addresses all reviewer concerns with concrete experimental evidence, as all three reviewers have explicitly confirmed. We thank the AC and all reviewers again for their time and thoughtful engagement.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…