CVPR 2026 · arXiv 2603.07659

Scaling Test-Time Robustness of Vision-Language Models via Self-Critical Inference Framework

Kaihua Tang1, Jiaxin Qi2, Jinli Ou3, Yuhua Zheng4, Jianqiang Huang2,3,4,*

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.

18.75 34.92

LLaVA-NeXT-8B accuracy (%) on its own non-robust samples (BS Subset), base model → SCI7

14.52 31.72

Qwen2-VL-7B accuracy (%) on its own BS Subset, base model → SCI7

7.34%

of test samples are non-robust for both models, although 24.68% are non-robust for LLaVA-NeXT: failure cases are model-specific

1.81×

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}
}
§ 01

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.
§ 02

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:

Eq. 5 pSCI(y | v, q)  ∝  exp(TC / τ1) · exp(VC / τ2)
Eq. 6–7 TCk = maxi Zk(v0, qi), i = 0…N      VC = Z(v0, q0) − 𝔼j[Z(vj, q0)], j = 1…M
  • 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

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.

Hyperparameters. Selected on the validation split of the Qwen2-VL BS Subset and applied to LLaVA-NeXT unchanged.
Paper notationMeaningCode argumentValue
τ1temperature of TC; grows by 0.5 per added prompt variant because the element-wise maximum increases the logit magnitudegamma1.5 / 2.0 / 2.5 (SCI3 / 5 / 7)
τ2temperature of VC; fixed because averaging stabilizes the distributionbeta0.2
βadaptive plausibility constraint thresholdtheta0.3 on DRBench, 0.8 on original datasets
§ 03

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

010203040501 · base3 · SCI35 · SCI57 · SCI7Number of inference rounds6.11Bias 27.6536.06Sensitivity 46.5414.52BS 31.72

LLaVA-NeXT-8B

Overall top-1 accuracy (%) on its own DRBench

010203040501 · base3 · SCI35 · SCI57 · SCI7Number of inference rounds0.0Bias 27.0138.63Sensitivity 47.6418.75BS 34.92

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

Inference time relative to the base model (Qwen2-VL, MMStar, one A800)rounds run sequentiallybatch inferencebase model = 1×2.96×1.29×SCI35.01×1.81×SCI56.68×2.48×SCI7

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.

§ 04

DRBench: a robustness benchmark that follows the model

Non-robust samples are model-specific (share of the 13,251 test samples)also non-robust for the other model (7.34%)non-robust for this model only0%5%10%15%20%25%30%LLaVA-NeXT24.68% (3,270 / 13,251)Qwen2-VL13.25% (1,756 / 13,251)

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 modelB SubsetS SubsetBS SubsetOverlap
LLaVA-NeXT (MCQ)181010052476339
LLaVA-NeXT (Others)345582794133
LLaVA-NeXT (Overall)215515873270472
Qwen2-VL (MCQ)1080252124389
Qwen2-VL (Others)327311513125
Qwen2-VL (Overall)14075631756214
Table 3. Cross-model evaluation on the BS Subset (top-1 accuracy, %). A model that fails on its own subset does well on the other model's subset, and SCI5 still helps on a subset built by a different model.
BS Subset built byEvaluated methodMCQOthersOverall
LLaVA-NeXTLLaVA-NeXT-Original15.9127.5818.75
LLaVA-NeXTLLaVA-NeXT-SCI528.8051.0134.19
LLaVA-NeXTQwen2-VL-Original59.2963.4860.31
LLaVA-NeXTQwen2-VL-SCI561.1567.8862.78
Qwen2-VLQwen2-VL-Original10.7823.5914.52
Qwen2-VLQwen2-VL-SCI528.0033.1429.50
Qwen2-VLLLaVA-NeXT-Original30.2539.1832.86
Qwen2-VLLLaVA-NeXT-SCI534.5941.3336.56
§ 05

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 (%).

BS Subset of DRBench · overall top-1 accuracy (%)SCI (ours)prior counterfactual decodingbase modelLLaVA-NeXT-8B010203040Base18.75TIE27.31VCD27.89M3ID29.05SCI332.72SCI534.19SCI734.92Qwen2-VL-7B010203040Base14.52TIE22.32VCD23.12M3ID25.68SCI326.94SCI529.50SCI731.72

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 SubsetS SubsetBS Subset
MethodMCQOthersOverallMCQOthersOverallMCQOthersOverall
LLaVA-NeXT0.00.00.039.237.6338.6315.9127.5818.75
LLaVA-NeXT-TIE12.9823.4814.6639.0057.5645.8121.8944.2127.31
LLaVA-NeXT-VCD12.6525.5114.7140.5056.5346.3822.5444.5827.89
LLaVA-NeXT-M3ID16.9125.2218.2439.9056.3645.9424.1544.3329.05
LLaVA-NeXT-SCI3 (ours)21.2235.3623.4839.6060.3147.2027.1450.1332.72
LLaVA-NeXT-SCI5 (ours)23.8137.9726.0840.6060.6547.9528.8051.0134.19
LLaVA-NeXT-SCI7 (ours)24.8638.2627.0140.1060.6547.6429.6851.2634.92
Qwen2-VL5.378.566.1138.1034.4136.0610.7823.5914.52
Qwen2-VL-TIE16.2016.8216.3545.6336.6640.6720.2727.2922.32
Qwen2-VL-VCD15.7421.7117.1346.8340.8443.5220.1130.4123.12
Qwen2-VL-M3ID19.8121.7120.2647.2241.1643.8723.6530.625.68
Qwen2-VL-SCI3 (ours)21.6726.3022.7444.0542.4443.1624.5432.7526.94
Qwen2-VL-SCI5 (ours)24.9125.6925.0947.2242.4444.5828.0033.1429.50
Qwen2-VL-SCI7 (ours)27.0429.6627.6547.2245.9846.5429.6136.8431.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.
MethodMMB-CMMB-EMMECCBMMSViLPMCQOthersOverall
LLaVA-NeXT78.079.7279.5747.044.7551.5370.1271.8670.46
LLaVA-NeXT-TIE78.2880.2877.3045.6546.0053.1970.3670.6870.42
LLaVA-NeXT-VCD78.3880.2878.0946.6345.0054.3170.4471.5570.66
LLaVA-NeXT-M3ID78.3180.1878.6245.8945.9254.0370.3671.8670.66
LLaVA-NeXT-SCI5 (ours)78.2180.0880.1546.2045.7553.0670.3272.7070.79
Qwen2-VL85.2686.3687.8973.2259.5056.5380.9179.2780.58
Qwen2-VL-TIE86.0086.5986.5273.8459.0057.0881.3078.4380.73
Qwen2-VL-VCD86.0586.5686.4173.7760.0857.9281.4278.5880.86
Qwen2-VL-M3ID85.6986.4686.1073.9659.7557.7881.2578.3180.67
Qwen2-VL-SCI5 (ours)85.9786.6787.3673.5959.9258.0681.3979.3180.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.
BaseVC-Color0VC-Noise500TC-V1TC-V2MCQOthersOverall
10.7823.5914.52
8.7718.5211.62
10.6225.1514.86
10.3824.3714.46
12.0723.0015.26
21.7229.4323.97
10.5423.3914.29
24.5432.7526.94
26.6730.9727.93
27.3731.1328.46
11.5823.2114.98
26.0732.5527.96
26.7133.3328.64
28.0033.1429.50
§ 06

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.

§ 07

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.

  1. Run the base model and its counterfactual variantsbash step0_run_basemodel.sh evaluates Original, VCF-Color0, VCF-Noise500, TCF-V1 and TCF-V2 on the six datasets.
  2. Build the model-specific DRBenchbash step1_generate_data.sh writes the Bias (_VCF_), Sensitivity (_TCF_) and BS (_Biased_) validation / test splits.
  3. Re-run the base models on the subsetsbash step2_test_basemodel_a.sh and step2_test_basemodel_b.sh, then score with tools/evaluate_dataset.py.
  4. Select hyperparameters on the validation splitbash step3_validation_a.sh, step3_validation_b.sh, then tools/validation.py searches τ1, τ2 and β on dumped logits.
  5. Run TIE, VCD, M3ID and SCIbash step4_test_algorithm_a.sh and step4_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.