# MAGIC: Margin-gated Contrastive Debiasing with Evidence Restoration for VLM Test-time Robustness Scaling

DevFeed: [MAGIC: Margin-gated Contrastive Debiasing with Evidence Restoration for VLM Test-time Robustness Scaling](<https://devfeed.tech/articles/magic-margin-gated-contrastive-debiasing-with-evidence-restoration-for-vlm-test-time-robustness-scaling-99546.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.32013>)

Author: Shunshun Gu, Enze Zhang, Ming Pei, Hang Zhou, Xiao Luo

Published: 2026-10-26T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [bias](<https://devfeed.tech/tags/bias.md>), [confidence](<https://devfeed.tech/tags/confidence.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [decision-making](<https://devfeed.tech/tags/decision-making.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [distributions](<https://devfeed.tech/tags/distributions.md>), [effectiveness](<https://devfeed.tech/tags/effectiveness.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [function](<https://devfeed.tech/tags/function.md>), [image](<https://devfeed.tech/tags/image.md>), [inference](<https://devfeed.tech/tags/inference.md>), [magic](<https://devfeed.tech/tags/magic.md>), [margin](<https://devfeed.tech/tags/margin.md>), [restoration](<https://devfeed.tech/tags/restoration.md>), [robustness](<https://devfeed.tech/tags/robustness.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [test](<https://devfeed.tech/tags/test.md>), [vlm](<https://devfeed.tech/tags/vlm.md>)

## AI overview

MAGIC aims to reduce language bias in large vision-language models at inference while limiting redundant computation. It measures prediction margins for crucial tokens and uses a gate to select low-confidence responses for debiasing. For selected samples, it combines token logits from textual and image perturbation branches with the original logits, then restores informative corrupted views with sharp prediction distributions for ambiguous cases. A calibration dataset is used to identify and prune ineffective branches. The abstract reports favorable comparisons with baselines on benchmark datasets but provides no specific results or measurements.

## Source excerpt

arXiv:2610.32013v1 Announce Type: cross Abstract: This paper studies the problem of test-time robustness scaling for large vision-language models (LVLMs), which aims to mitigate language bias during inference. Existing approaches typically adopt test-time scaling techniques such as contrastive decoding to improve inference performance. Despite the progress, the performance of these approaches is far from satisfactory due to intentional evidence removal during perturbations and redundant inference cost. Towards this end, we propose a novel approach named Margin-gated Contrastive Debiasing with Evidence Restoration (MAGIC). The core of our MAGIC is to evaluate the decision margins of LVLMs to selectively activate textual and visual perturbation branches for efficient debiased inference. In particular, our MAGIC first measures the prediction margins of crucial tokens, and applies a gating function to identify low-confidence responses that are susceptible to language biases. For selected samples, we integrate the token logits from multiple textual and image perturbation branches with the original ones for debiased decision. More importantly, we selectively restore the most informative corrupted views with sharp prediction distributions for ambiguous samples after debiasing, enabling evidence recovery for discriminative decision-making. We further utilize a calibration dataset to actively identify and prune ineffective branches during contrastive debiasing for cost reduction. Extensive experiments on benchmark datasets validate the effectiveness of the proposed MAGIC in comparison with extensive baselines.