Vision-language models often answer diagram and chart questions without really using the image. They lean on what their text backbone memorized, including leaked benchmark questions, and on hints in titles or answer options. This proposal adds a small learned gate to an open vision-language model. At every generated token, the gate decides how much the next step should draw on what the model attends to in the image versus what it attends to in the text. The gate is not trained only on next-token loss. It is told directly when it should look, using pairs of procedurally generated diagrams that share identical question text but contain different values, and therefore have different answers. Any token whose correct value flips between the two images must have come from the image.
The opportunity comes from three findings that have not been joined. Older translation work showed that such gates, here called context gates, learn useful routing between competing information sources. Error analyses of multimodal models show that the largest and fastest-growing failure is integration rather than perception or logic. Contamination studies show that leakage into the text backbone inflates multimodal scores. A gate trained this way should do two things. It should cut the model's reliance on memorized text. It should also leave behind a per-token trace of visual reliance, which can serve as a cheap, model-internal signal of when a benchmark is being answered from memory.
Core Claim
We claim that per-token gating between visual and textual attention, trained with counterfactual image-pair labels, reduces the "integration residual" (cases where a model passes a perception probe and a text-only version of the problem but fails the combined problem). We also claim that its gains appear on freshly generated problems rather than mainly on leaked static benchmarks, and that its gate values separate memorized from genuinely solved instances.
The novel ingredient is explicit supervision of when to use vision. The gating literature identifies its absence as a core weakness: gates trained end-to-end can learn shortcuts from the pretraining text. Procedural rendering supplies this supervision for free.
Grounding in Prior Work
The motivation comes from three diagnostic studies. What MLLMs Learn about When they Learn about Multimodal Reasoning built MathLens and showed the integration residual becomes the dominant error as models improve. Its authors explicitly call for architectural work on fusion but propose none; we supply it. Plot Twist found accuracy near 79% when chart titles contained the answer, falling to the 30% range when titles were removed. Chimera found models score 15 points above the 25% chance level with a blank image. Both diagnose language-prior shortcuts but intervene on nothing. Both Text and Images Leaked! introduced MM-DETECT and tied multimodal score inflation to leakage in the text backbone. We reuse its perturbation tests as our external reference for which instances are contaminated.
The method is borrowed from translation. Context Gates for Neural Machine Translation learned a sigmoid gate between source context and target history and found the gate opens toward the source on content words. Document-level work (Exploiting Cross-Sentence Context, Improving the Transformer Translation Model with Document-Level Context) used similar gates to keep extra context from swamping the decoder. We carry this form over to vision-versus-text and add the supervision those papers lacked. The evaluation design borrows from DyVal, which generates fresh text reasoning problems from small computation graphs and showed statically strong models collapse on them. We render such graphs into charts.
Three results constrain the design. The Mirage of Performance Gains showed that output-level contrastive decoding mostly shifts the yes/no ratio: a prompt saying "Answer Yes if possible" reached 90.2% on POPE for LLaVA-13B, beating visual contrastive decoding's 89.2%. This rules out output-logit subtraction and forces us to check any POPE gain for label-bias artifacts. Dynamic Multimodal Activation Steering intervenes on hidden states, but it is very sensitive to steering strength and can collapse generation. We therefore keep a learned, bounded gate rather than hand-set scales. The Narrow Gate shows that natively multimodal models route image meaning through a single end-of-image token. For that reason we target a model like LLaVA-1.5, where image information is spread across all patch tokens, and treat native models as a later extension.
The closest prior method is CofactGVR. It compares rollouts on a predicted image region against rollouts on a random patch and uses the reward gap in reinforcement learning to discourage language-prior answers. We share the counterfactual idea but differ in three ways. Our supervision is per-token and dense rather than a sequence-level reward. It lives in an architectural gate rather than in the whole policy. Our counterfactual is a re-rendered diagram with different correct values, not a noise patch, so the label says exactly which tokens depend on the image.
Research Program
The gate. In a set of upper decoder layers $\ell$, we split each attention output at text position $t$ into two parts by masking keys:
- $v_t$ is the part that comes from image tokens.
- $u_t$ is the part that comes from text tokens.
We then replace their sum with a gated mixture:
$$g_t = \sigma(W [h_t; v_t; u_t] + b), \qquad a_t = 2\,(g_t\, v_t + (1-g_t)\, u_t),$$
Here $h_t$ is the incoming hidden state, $W$ and $b$ are learned per layer, and the factor of two makes $g_t = 0.5$ reproduce the original sum exactly. This lets us initialize at the unmodified model, which guards against the collapse seen with steering.
The supervision. For each generated problem we render two images, $I$ and $I'$, with identical question text but different underlying values. The label $y_t = 1$ is assigned to answer and rationale tokens whose target differs between the two renderings. The label $y_t = 0$ is assigned to tokens that a text-only pass, given a blank image, predicts correctly with high confidence. All other positions are unlabeled. Training minimizes
$$\mathcal{L} = \mathcal{L}_{\text{LM}} + \lambda \sum_{t \text{ labeled}} \mathrm{BCE}(\bar g_t, y_t),$$
where $\bar g_t$ is the gate value averaged over gated layers and $\lambda$ trades language-model loss against gate supervision. Only the gates and a low-rank adapter are trained.
The generator. We build a multimodal analogue of DyVal. Random arithmetic and comparison graphs at four depths are rendered as bar, line and scatter charts, plus simple geometric constructions in the style of FormalGeo. The quantities a question needs appear only in the image. Titles are randomized, and in a "misleading" condition they hint at a wrong answer. Grid lines and styling vary, following the fragility tests in Plot Twist. Training and test splits use disjoint templates and graph shapes.
The generator is a means, not the contribution. Dynamic multimodal evaluation already exists in PuzzleBench and MMBench-Live. We use them as additional fresh test sets.
Contamination-trace analysis. On ScienceQA, which MM-DETECT reports as heavily contaminated (Claude-3.5-Sonnet showed severe contamination on both its train and test sets), we label instances as likely leaked or clean using MM-DETECT's option-order instance-level leakage score. We then ask whether low mean gate value on answer tokens predicts leakage.
Baselines
The naive reference points are the unmodified base model and the same model given a blank image. The blank-image run sets the floor attributable to text priors; Chimera's blank-image result of 15 points above chance is the expected scale. All methods are run on the same base model, with the same generated training data where training is involved, the same number of trainable parameters, and the same hyperparameter search budget (an equal number of configurations, selected on a held-out generated validation split, never on the test benchmarks).
The strongest competitor on the core question is plain low-rank fine-tuning on exactly the same counterfactual pairs, with matched parameter count and no gate. It isolates whether the data alone does the work. Beating it means one of two things. Either the gated model has lower integration residual and higher image-sensitivity on held-out templates, or it matches them while preserving general behavior better, measured on MME and caption fluency.
The strongest existing method is CofactGVR's counterfactual reward, reimplemented on our base model and data with its noise-patch counterfactual. For reference, the published system reports MME 2428.5 and POPE 90.0 on its own base model. We will not compare our absolute numbers against those, only against the matched reimplementation.
We also run DMAS steering on LLaVA-1.5, which reports a 94.66-point MME gain. This represents training-free internal intervention. Beating it means gains on reasoning sets without the MME losses that over-suppression can cause.
On ChartQA, the best figure in the file is ChartPaLI-5B with program-of-thought at 81.3% (Chart-based Reasoning). This is a different and larger training setup, cited only for context.
On MathLens, no reported result was found on Lacuna for integration-residual rates, so we measure the base model ourselves.
Ablations. Two ablations isolate the key ingredient:
- The gate trained with $\lambda = 0$, i.e., the classic unsupervised context gate. This tests whether supervision rather than architecture matters.
- Gate supervision with noise-patch counterfactuals instead of re-rendered ones. This tests whether exact value-flip labels matter.
Why not just…?
Why not just fine-tune on the counterfactual data without a gate? This is the real threat. Dense counterfactual data might teach image reliance through any parameters. The matched low-rank baseline settles it. If it ties on accuracy and image-sensitivity, the accuracy claim falls. Two contributions would remain, and both are testable: a readable per-token reliance trace that plain fine-tuning does not provide, and its use as a leakage signal. We would report the tie plainly and reposition the gate as an instrument rather than an accuracy method.
Why not just use chain-of-thought or rationale fine-tuning? MATH-Vision found chain-of-thought helps vision-language models inconsistently and sometimes lowers accuracy. Learn to Explain observed fluent rationales that contradict the image. We include chain-of-thought prompting of the base model as a baseline, and we measure whether its rationales change when the image is swapped.
Why not just apply counterfactual reinforcement learning as CofactGVR does? It is a strong alternative and is run as a baseline. Our bet is that dense, token-level value-flip labels are more sample-efficient than a sequence reward, and that they target reasoning chains rather than box grounding. The supervision-type ablation and a learning-curve comparison at equal training examples decide this.
Why not de-render the chart into a table and use a text model? Using a gold table removes the integration problem by construction. On real charts, though, ChartQA shows table pipelines fail on color and position references. GeoSQA shows that even gold text descriptions leave reasoning failures. We include a gold-table oracle on the generated charts as an upper reference for the text-only route.
Proposed Experiments and Decisive Checks
Base model and benchmarks. The base model is LLaVA-1.5 at 7B and 13B. Test sets are:
- held-out generated charts and geometry at depths one to four;
- PuzzleBench;
- Chart101, with titles intact, removed and misleading, and with grid lines;
- MathLens, for perception, reasoning and integration-residual rates;
- MATH-Vision, where the best reported scores are GPT-4o at 30.39% and the best open model at 16.97%, so we expect small absolute numbers and report relative change;
- ChartQA;
- ScienceQA, split by MM-DETECT leakage;
- CHIMERA blank-image tests;
- POPE and MME, as collateral checks, with POPE "yes"-rate reported to rule out the bias artifact from The Mirage of Performance Gains.
Decisive check 1: image use. Image-sensitivity is the fraction of answers that change correctly when the image is re-rendered with the same text. The supervised gate should raise it on held-out templates above both the unsupervised gate and plain fine-tuning. It should also push blank-image accuracy toward chance.
Decisive check 2: integration residual. On MathLens, the integration residual should shrink without lowering the perception-probe or text-only scores.
Decisive check 3: contamination asymmetry. On ScienceQA split by MM-DETECT leakage, gains should be larger on clean instances than on leaked ones. If the gate truly downweights text memory, accuracy on leaked instances may even drop slightly. That drop is a predicted signature, not a failure.
Decisive check 4: gate as leakage detector. On the same ScienceQA split, measure the area under the ROC curve for mean answer-token gate value as a detector of MM-DETECT-flagged leakage. Compare it with the base model's blank-image confidence as the simpler alternative signal.
Failure criterion. If the supervised gate beats neither the unsupervised gate nor matched fine-tuning on checks 1 and 2, the central claim fails.
References
- What MLLMs Learn about When they Learn about Multimodal Reasoning: Perception, Reasoning, or their Integration?
- Plot Twist: Multimodal Models Don't Comprehend Simple Chart Details
- Chimera: Diagnosing Shortcut Learning in Visual-Language Understanding
- Both Text and Images Leaked! A Systematic Analysis of Data Contamination in Multimodal LLMs
- Context Gates for Neural Machine Translation
- Exploiting Cross-Sentence Context for Neural Machine Translation
- Improving the Transformer Translation Model with Document-Level Context
- DyVal: Dynamic Evaluation of Large Language Models for Reasoning Tasks
- The Mirage of Performance Gains: Why Contrastive Decoding Fails to Mitigate Object Hallucinations in MLLMs?
- Dynamic Multimodal Activation Steering for Hallucination Mitigation in Large Vision-Language Models
- The Narrow Gate: Localized Image-Text Communication in Native Multimodal Models
- CofactGVR: Counterfactual Intervention for Grounded Visual Reasoning
- PuzzleBench: A Fully Dynamic Evaluation Framework for Large Multimodal Models on Puzzle Solving
- MMBench-Live: A Continuously Evolving Benchmark for Multimodal Models
- Chart-based Reasoning: Transferring Capabilities from LLMs to VLMs
- Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset
- Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answering
- ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoning
- GeoSQA: A Benchmark for Scenario-based Question Answering in the Geography Domain at High School Level