Scaling Test-Time Robustness of Vision-Language Models via Self-Critical Inference Framework
1Tongji University 2Computer Network Information Center, Chinese Academy of Sciences 3University of Chinese Academy of Sciences 4HIAS, University of Chinese Academy of Sciences *Corresponding author
What is SCI?
Self-Critical Inference (SCI) is a decoding-time framework for large vision-language models (LVLMs). It re-asks the same question under perturbed prompts and perturbed images, then compares and aggregates the next-token logits of all rounds. One formulation mitigates both language bias (including object hallucination) and language sensitivity, and robustness keeps improving as more counterfactual rounds are added.
What is DRBench?
The Dynamic Robustness Benchmark (DRBench) is a model-specific benchmark. Given any LVLM and any existing dataset, it automatically extracts the samples on which that model is biased or prompt-sensitive, because the failure cases of LVLMs differ significantly across models and a fixed robustness benchmark cannot capture them.
LLaVA-NeXT-8B accuracy (%) on its own non-robust samples (BS Subset), base model → SCI7
Qwen2-VL-7B accuracy (%) on its own BS Subset, base model → SCI7
of test samples are non-robust for both models, although 24.68% are non-robust for LLaVA-NeXT: failure cases are model-specific
inference time of SCI5 relative to the base model with batch inference
Cite this work · BibTeX
@inproceedings{tang2026scaling,
title={Scaling Test-Time Robustness of Vision-Language Models via Self-Critical Inference Framework},
author={Tang, Kaihua and Qi, Jiaxin and Ou, Jinli and Zheng, Yuhua and Huang, Jianqiang},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2026}
}
Abstract
The emergence of Large Language Models (LLMs) has driven rapid progress in multi-modal learning, particularly in the development of Large Vision-Language Models (LVLMs). However, existing LVLM training paradigms place excessive reliance on the LLM component, giving rise to two critical robustness challenges: language bias and language sensitivity. To address both issues simultaneously, we propose a novel Self-Critical Inference (SCI) framework that extends Visual Contrastive Decoding by conducting multi-round counterfactual reasoning through both textual and visual perturbations. This process further introduces a new strategy for improving robustness by scaling the number of counterfactual rounds. Moreover, we also observe that failure cases of LVLMs differ significantly across models, indicating that fixed robustness benchmarks may not be able to capture the true reliability of LVLMs. To this end, we propose the Dynamic Robustness Benchmark (DRBench), a model-specific evaluation framework targeting both language bias and sensitivity issues. Extensive experiments show that SCI consistently outperforms baseline methods on DRBench, and that increasing the number of inference rounds further boosts robustness beyond existing single-step counterfactual reasoning methods.
Two robustness problems inherited from the LLM
Language bias
The model answers from language priors and disregards the visual input. It is a long-standing problem of VQA models, it persists in LVLMs, and it can lead to generating non-existent content, known as object hallucination.
Language sensitivity
The model changes its answer when the prompt is reworded without changing the question, for example when it is simply asked to check image details. This undermines consistency and reliability from the user's perspective, and it is newly introduced by the LLM component.
Contributions
- SCI, a counterfactual inference framework that simultaneously mitigates language bias and enforces language consistency.
- DRBench, a model-specific and dynamic benchmark that assesses LVLM robustness on samples from real downstream tasks.
- SCI consistently improves performance on both DRBench and standard datasets, and the paper reveals a previously underexplored way to improve robustness: increasing the number of test-time counterfactual inference rounds.
Method: from contrastive decoding to self-critical inference
VCD is TIE with a temperature
Visual Contrastive Decoding (VCD) runs a second inference with a noisy image and decodes from the contrasted logits. Expanding its softmax shows that VCD simply reweights the original token probability by exp(TIE/τ), where TIE, the Total Indirect Effect introduced by Counterfactual VQA (CF-VQA) and Unbiased Scene Graph Generation, is the logits with the real image minus the logits with the noisy image. The extra parameter α of VCD is a temperature, τ = 1/α. Object hallucination is therefore treated as iterative biased token generation, and an LVLM is fundamentally no different from a conventional VQA classifier at every decoding step.
The SCI formulation
VCD only handles the visual side. SCI adds a Textual Counterfactual (TC) component that makes the logits prompt-consistent, and strengthens the Visual Counterfactual (VC) component with several counterfactual images:
- v0 and q0 are the original image and prompt. qi are semantically equivalent but lexically different prompts. vj are content-removed images.
- TC takes the element-wise maximum over the N+1 prompt variants on every vocabulary dimension. VC averages over M counterfactual images to obtain a more stable estimate than a single TIE.
- Following VCD, an Adaptive Plausibility Constraint masks low-confidence tokens before decoding. SCI uses the temperature-scaled TC logits as the masking criterion, because TC provides more consistent predictions than the original logits.
- Special cases. VCD is SCI with N=0 and M=1. CF-VQA is SCI with a constant TC term and M=1.
- SCI3, SCI5, SCI7 denote M+N+1 = 3, 5, 7 total inference rounds, that is M=N=1, 2, 3.
One SCI5 decoding step 5 forward passes → 1 token distribution
element-wise maximum over prompt variants: prompt-consistent logits
what the real image adds over content-removed images: removes language priors
τ1 = 2.0, τ2 = 0.2 for SCI5. Tokens with a low TC logit are masked by the adaptive plausibility constraint (β = 0.3), then decoding proceeds as usual.
SCI7 adds TC-V3 (an identity prompt: “You are a smart student who is good at answering multiple-choice questions.”) and VC-Noise400. SCI3 keeps only TC-V1 and VC-Color0. Prompt texts are quoted from the released code.
| Paper notation | Meaning | Code argument | Value |
|---|---|---|---|
| τ1 | temperature of TC; grows by 0.5 per added prompt variant because the element-wise maximum increases the logit magnitude | gamma | 1.5 / 2.0 / 2.5 (SCI3 / 5 / 7) |
| τ2 | temperature of VC; fixed because averaging stabilizes the distribution | beta | 0.2 |
| β | adaptive plausibility constraint threshold | theta | 0.3 on DRBench, 0.8 on original datasets |
More counterfactual rounds, more robustness
Existing test-time scaling increases the length of intermediate thinking tokens within a single inference. SCI scales a different axis: the number of counterfactual inference rounds whose logits are aggregated. Overall accuracy on all three DRBench subsets rises from the base model (1 round) to SCI3, SCI5 and SCI7.
Qwen2-VL-7B
Overall top-1 accuracy (%) on its own DRBench
LLaVA-NeXT-8B
Overall top-1 accuracy (%) on its own DRBench
Data: Overall columns of Table 2 in the paper (80% test split). The full table with MCQ / Others breakdown is in Results.
What the extra rounds cost
Table 7 of the paper, average time per sample on MMStar with Qwen2-VL on one NVIDIA A800 GPU: 540.47 ms for the base model; 697.24 / 978.14 / 1342.86 ms for SCI3 / SCI5 / SCI7 with batch inference, and 1599.65 / 2707.16 / 3611.18 ms when the rounds run sequentially. All counterfactual rounds are independent forward passes, so they fit in one batch. The paper also points to KV-cache sharing of the unchanged visual or textual tokens as a future acceleration.
DRBench: a robustness benchmark that follows the model
Shares of the 13,251 test samples that fall into each model’s BS Subset (Table 1), and the 7.34% that both models share.
Fixed robustness datasets are costly to build, can leak into the web-crawled training data of later models, and often use a single question type such as exist-or-not questions. More importantly, non-robust samples are not fixed: 24.68% of the test samples are hard for LLaVA-NeXT, yet only 7.34% are shared with Qwen2-VL. DRBench therefore builds the benchmark per model, in two steps.
- Evaluate. Run the model on an existing dataset with the original input, two visual counterfactual inputs and two textual counterfactual inputs (M=N=2).
- Filter. The Bias Subset collects samples that yield the same incorrect prediction under both the original and the dummy visual inputs, which indicates reliance on spurious language priors. The Sensitivity Subset collects samples whose prediction changes in response to subtle, non-causal prompt variations. The BS Subset is their union.
The paper constructs DRBench from six widely used benchmarks: MME, MMStar, CCBench, ViLP, MMBench-DEV-EN-V11 and MMBench-DEV-CN-V11, randomly split into 20% validation (3,315 samples) and 80% test (13,251 samples: 10,632 multiple-choice and 2,619 others). Results are reported for MCQ (multiple-choice questions) and Others (Yes/No for MME, open-ended QA for ViLP).
Table 1. Size of each DRBench subset on the test split. Qwen2-VL is generally more robust than LLaVA-NeXT, Qwen2-VL is more vulnerable to bias than to sensitivity, and LLaVA-NeXT shows more sensitivity issues.
| Construction model | B Subset | S Subset | BS Subset | Overlap |
|---|---|---|---|---|
| LLaVA-NeXT (MCQ) | 1810 | 1005 | 2476 | 339 |
| LLaVA-NeXT (Others) | 345 | 582 | 794 | 133 |
| LLaVA-NeXT (Overall) | 2155 | 1587 | 3270 | 472 |
| Qwen2-VL (MCQ) | 1080 | 252 | 1243 | 89 |
| Qwen2-VL (Others) | 327 | 311 | 513 | 125 |
| Qwen2-VL (Overall) | 1407 | 563 | 1756 | 214 |
| BS Subset built by | Evaluated method | MCQ | Others | Overall |
|---|---|---|---|---|
| LLaVA-NeXT | LLaVA-NeXT-Original | 15.91 | 27.58 | 18.75 |
| LLaVA-NeXT | LLaVA-NeXT-SCI5 | 28.80 | 51.01 | 34.19 |
| LLaVA-NeXT | Qwen2-VL-Original | 59.29 | 63.48 | 60.31 |
| LLaVA-NeXT | Qwen2-VL-SCI5 | 61.15 | 67.88 | 62.78 |
| Qwen2-VL | Qwen2-VL-Original | 10.78 | 23.59 | 14.52 |
| Qwen2-VL | Qwen2-VL-SCI5 | 28.00 | 33.14 | 29.50 |
| Qwen2-VL | LLaVA-NeXT-Original | 30.25 | 39.18 | 32.86 |
| Qwen2-VL | LLaVA-NeXT-SCI5 | 34.59 | 41.33 | 36.56 |
Results
Base models: the Hugging Face versions of Qwen2-VL-7B-Instruct (bfloat16, default top-k sampling) and Llama3-LLaVA-NeXT-8B (float16, greedy decoding). Baselines: TIE adapted from CF-VQA, VCD, and M3ID, all with the adaptive plausibility constraint. All experiments use VLMEvalKit on a single NVIDIA A800 80GB GPU. The metric is top-1 accuracy (%).
Overall top-1 accuracy (%) on the BS Subset, the union of each model’s Bias and Sensitivity subsets (Table 2). Open the tables below for the MCQ / Others breakdown, the original datasets and the ablation.
Table 2. DRBench, 80% test split. B = Bias Subset, S = Sensitivity Subset, BS = union. Bold marks the best result per column and model.
| B Subset | S Subset | BS Subset | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | MCQ | Others | Overall | MCQ | Others | Overall | MCQ | Others | Overall |
| LLaVA-NeXT | 0.0 | 0.0 | 0.0 | 39.2 | 37.63 | 38.63 | 15.91 | 27.58 | 18.75 |
| LLaVA-NeXT-TIE | 12.98 | 23.48 | 14.66 | 39.00 | 57.56 | 45.81 | 21.89 | 44.21 | 27.31 |
| LLaVA-NeXT-VCD | 12.65 | 25.51 | 14.71 | 40.50 | 56.53 | 46.38 | 22.54 | 44.58 | 27.89 |
| LLaVA-NeXT-M3ID | 16.91 | 25.22 | 18.24 | 39.90 | 56.36 | 45.94 | 24.15 | 44.33 | 29.05 |
| LLaVA-NeXT-SCI3 (ours) | 21.22 | 35.36 | 23.48 | 39.60 | 60.31 | 47.20 | 27.14 | 50.13 | 32.72 |
| LLaVA-NeXT-SCI5 (ours) | 23.81 | 37.97 | 26.08 | 40.60 | 60.65 | 47.95 | 28.80 | 51.01 | 34.19 |
| LLaVA-NeXT-SCI7 (ours) | 24.86 | 38.26 | 27.01 | 40.10 | 60.65 | 47.64 | 29.68 | 51.26 | 34.92 |
| Qwen2-VL | 5.37 | 8.56 | 6.11 | 38.10 | 34.41 | 36.06 | 10.78 | 23.59 | 14.52 |
| Qwen2-VL-TIE | 16.20 | 16.82 | 16.35 | 45.63 | 36.66 | 40.67 | 20.27 | 27.29 | 22.32 |
| Qwen2-VL-VCD | 15.74 | 21.71 | 17.13 | 46.83 | 40.84 | 43.52 | 20.11 | 30.41 | 23.12 |
| Qwen2-VL-M3ID | 19.81 | 21.71 | 20.26 | 47.22 | 41.16 | 43.87 | 23.65 | 30.6 | 25.68 |
| Qwen2-VL-SCI3 (ours) | 21.67 | 26.30 | 22.74 | 44.05 | 42.44 | 43.16 | 24.54 | 32.75 | 26.94 |
| Qwen2-VL-SCI5 (ours) | 24.91 | 25.69 | 25.09 | 47.22 | 42.44 | 44.58 | 28.00 | 33.14 | 29.50 |
| Qwen2-VL-SCI7 (ours) | 27.04 | 29.66 | 27.65 | 47.22 | 45.98 | 46.54 | 29.61 | 36.84 | 31.72 |
Table 4. The six original datasets, 80% test splits. MMB-C / MMB-E = MMBench-DEV-CN-V11 / EN-V11, CCB = CCBench, MMS = MMStar; MME scores are converted to accuracy. Vulnerable samples are only a portion of these datasets, so the margins are small, but SCI5 improves both question types while TIE, VCD and M3ID lower the accuracy on Others.
| Method | MMB-C | MMB-E | MME | CCB | MMS | ViLP | MCQ | Others | Overall |
|---|---|---|---|---|---|---|---|---|---|
| LLaVA-NeXT | 78.0 | 79.72 | 79.57 | 47.0 | 44.75 | 51.53 | 70.12 | 71.86 | 70.46 |
| LLaVA-NeXT-TIE | 78.28 | 80.28 | 77.30 | 45.65 | 46.00 | 53.19 | 70.36 | 70.68 | 70.42 |
| LLaVA-NeXT-VCD | 78.38 | 80.28 | 78.09 | 46.63 | 45.00 | 54.31 | 70.44 | 71.55 | 70.66 |
| LLaVA-NeXT-M3ID | 78.31 | 80.18 | 78.62 | 45.89 | 45.92 | 54.03 | 70.36 | 71.86 | 70.66 |
| LLaVA-NeXT-SCI5 (ours) | 78.21 | 80.08 | 80.15 | 46.20 | 45.75 | 53.06 | 70.32 | 72.70 | 70.79 |
| Qwen2-VL | 85.26 | 86.36 | 87.89 | 73.22 | 59.50 | 56.53 | 80.91 | 79.27 | 80.58 |
| Qwen2-VL-TIE | 86.00 | 86.59 | 86.52 | 73.84 | 59.00 | 57.08 | 81.30 | 78.43 | 80.73 |
| Qwen2-VL-VCD | 86.05 | 86.56 | 86.41 | 73.77 | 60.08 | 57.92 | 81.42 | 78.58 | 80.86 |
| Qwen2-VL-M3ID | 85.69 | 86.46 | 86.10 | 73.96 | 59.75 | 57.78 | 81.25 | 78.31 | 80.67 |
| Qwen2-VL-SCI5 (ours) | 85.97 | 86.67 | 87.36 | 73.59 | 59.92 | 58.06 | 81.39 | 79.31 | 80.98 |
Table 5. Ablation of counterfactual logit combinations with Qwen2-VL on the BS Subset. Rows 2–5 use one counterfactual input alone and stay near the base accuracy. Later rows aggregate the base logits with a growing set of counterfactual logits; the full SCI5 in the last row gives the best overall accuracy.
| Base | VC-Color0 | VC-Noise500 | TC-V1 | TC-V2 | MCQ | Others | Overall |
|---|---|---|---|---|---|---|---|
| ✓ | 10.78 | 23.59 | 14.52 | ||||
| ✓ | 8.77 | 18.52 | 11.62 | ||||
| ✓ | 10.62 | 25.15 | 14.86 | ||||
| ✓ | 10.38 | 24.37 | 14.46 | ||||
| ✓ | 12.07 | 23.00 | 15.26 | ||||
| ✓ | ✓ | 21.72 | 29.43 | 23.97 | |||
| ✓ | ✓ | 10.54 | 23.39 | 14.29 | |||
| ✓ | ✓ | ✓ | 24.54 | 32.75 | 26.94 | ||
| ✓ | ✓ | ✓ | 26.67 | 30.97 | 27.93 | ||
| ✓ | ✓ | ✓ | 27.37 | 31.13 | 28.46 | ||
| ✓ | ✓ | ✓ | 11.58 | 23.21 | 14.98 | ||
| ✓ | ✓ | ✓ | ✓ | 26.07 | 32.55 | 27.96 | |
| ✓ | ✓ | ✓ | ✓ | 26.71 | 33.33 | 28.64 | |
| ✓ | ✓ | ✓ | ✓ | ✓ | 28.00 | 33.14 | 29.50 |
Questions the paper answers
Why do base models score close to 0 on the Bias Subset?
DRBench intentionally probes the samples that are most vulnerable, so they are hard examples and accuracy can even fall below the 25% random-guess rate of multiple-choice questions. By definition the Bias Subset collects samples on which the base model consistently predicts incorrectly, so its expected accuracy is 0.0. LLaVA-NeXT uses greedy decoding and is deterministic, which gives exactly 0.0. Qwen2-VL uses top-k sampling by default, which is why it reaches 6.11% rather than zero.
What is the computational overhead, and can it be reduced?
Every test-time scaling strategy trades inference time for performance. The counterfactual rounds of SCI are independent, so batch inference is the most direct acceleration: SCI3, SCI5 and SCI7 cost about 1.29×, 1.81× and 2.48× the base model, compared with 2.96×, 5.01× and 6.68× when the rounds run sequentially. Sharing the KV cache of the visual or textual tokens that remain unchanged is a further option.
How is SCI different from previous test-time scaling studies?
Most test-time scaling work increases the length of intermediate thinking tokens, and such prompt-level improvement only reveals whether the final answer is right or wrong. SCI goes beyond discrete token outputs: it analyzes the underlying continuous logit distributions by comparing and aggregating counterfactual logits, which carries much richer information than the final predicted tokens.
Do the gains of SCI come from hacking its own DRBench?
DRBench construction and SCI share the same counterfactual inputs, so this is a fair concern. The cross-model evaluation in Table 3 addresses it: SCI still yields consistent improvements on the vulnerable sets derived from the other model (Qwen2-VL 60.31 → 62.78 on the LLaVA-NeXT subset, LLaVA-NeXT 32.86 → 36.56 on the Qwen2-VL subset), although the relative improvements are smaller. SCI also keeps or improves accuracy on the six original datasets.
How does SCI relate to VCD, M3ID, TIE and CF-VQA?
The paper shows that VCD reweights the original token probability by exp(TIE/τ) with τ = 1/α, so VCD is theoretically aligned with the TDE / TIE debiasing of Unbiased Scene Graph Generation and Counterfactual VQA. M3ID shares the same formulation except that its τ varies with the position of the predicted token. SCI generalizes them: VCD is the case N=0, M=1, and CF-VQA is the case of a constant TC term with M=1.
Code and reproduction
The repository is a modified copy of VLMEvalKit v0.2. SCI, TIE, VCD and M3ID are implemented for Qwen2-VL and LLaVA-NeXT at the logit level inside the model's forward, and every variant is a registered model name in vlmeval/config.py, for example Qwen2-VL-7B-SCI5-b02a1g2t03.
- Run the base model and its counterfactual variants
bash step0_run_basemodel.shevaluates Original, VCF-Color0, VCF-Noise500, TCF-V1 and TCF-V2 on the six datasets. - Build the model-specific DRBench
bash step1_generate_data.shwrites the Bias (_VCF_), Sensitivity (_TCF_) and BS (_Biased_) validation / test splits. - Re-run the base models on the subsets
bash step2_test_basemodel_a.shandstep2_test_basemodel_b.sh, then score withtools/evaluate_dataset.py. - Select hyperparameters on the validation split
bash step3_validation_a.sh,step3_validation_b.sh, thentools/validation.pysearches τ1, τ2 and β on dumped logits. - Run TIE, VCD, M3ID and SCI
bash step4_test_algorithm_a.shandstep4_test_algorithm_b.sh.
Full instructions, environment setup and the paper-to-code map are in the README. ViLP.tsv for VLMEvalKit: KaihuaTang/Custom-Dataset-for-VLMEvalKit.