CounterCount: Diagnosing Knowledge Bias in How Vision-Language Models Count Attributes
summary
The gist
The gist: CounterCount introduces a diagnostic framework for counterfactual counting in Vision-Language Models (VLMs) by exposing prior-driven counting failures when visual evidence conflicts with
In short
CounterCount diagnoses failures in Vision-Language Models (VLMs) when they count objects based on visual evidence that contradicts their internal knowledge of what an object should look like. The framework uses edited images and attention modulation to expose these prior-driven counting errors, showing that models often ignore crucial visual details needed for accurate counting.
Key concepts
- Counterfactual Counting
- This involves creating modified images where a specific attribute is changed (like the number of legs on an animal) while keeping the object recognizable. The goal is to see if the VLM's count changes correctly when the visual evidence contradicts its learned prior knowledge about that object.
- Prior-Driven Counting Failures
- These are errors where a VLM relies too heavily on general, pre-existing knowledge (priors) about an object rather than focusing on specific visual details in the image. CounterCount identifies these failures by comparing how models count factual images versus counterfactual ones.
- Attention Modulation Strategy
- This is an inference-time technique that reweights which parts of the image a model pays attention to. It allows researchers to selectively amplify attention toward specific, count-relevant visual tokens (like bounding box regions) while suppressing or masking irrelevant background tokens, aiming to improve counting accuracy.
- Mask-BB Tokens
- These are special visual tokens that represent the specific regions identified by masks and bounding boxes in the image. The framework analyzes attention patterns to show that these crucial visual tokens often receive lower attention than other visual elements, indicating a gap in how VLMs focus on count-relevant evidence.
Terminology used across episodes
This episode discusses
- CounterCount: Diagnosing Knowledge Bias in How Vision-Language Models Count Attributes · Paper Radio
- Understanding Counting Mechanisms in Large Language and Vision-Language Models
- Can Vision-Language Models Count? A Synthetic Benchmark and Analysis of Attention-Based Interventions
The paper
CounterCount: Diagnosing Knowledge Bias in How Vision-Language Models Count Attributes · Read on arXiv
Reem Alzahrani, Hassan Alshanqiti, Bushra Bin Hemid, Zaid Alyafeai, Abdelrahman Eldesokey, Bernard Ghanem
King Abdullah University of Science and Technology
Do Vision-Language Models (VLMs) count what they see, or what they know about the world? We introduce CounterCount, a diagnostic dataset of paired factual and counterfactual (CF) images, in which the CF image contains an atypical count of a subject's attribute (e.g., a rabbit with four ears), together with annotations localizing the counted attributes. Humans answer both types of images nearly perfectly (98.9% and 97.5%), but across 16 VLMs (14 open-weight and 2 closed-source), average accuracy drops from 91.6% on factual to 49.5% on CF images, with most errors stemming from responses that match the canonical count, therefore revealing a bias towards knowledge priors rather than reliance on visual information. Based on these findings, we perform an analysis that reveals two interesting insights behind this gap. First, models exhibit a ``System-1''-like response behavior, falling back on canonical counts after a shallow recognition of the subject. Second, model activations partially contain the visual evidence necessary to answer correctly, yet models underutilize it, attending less to the counted attributes when they provide biased answers. Input manipulations that break visual context, introduce cueing or reasoning, or direct amplification of the model's internal attention to relevant regions can reduce such biases. CounterCount goes beyond showing that VLMs fall back on knowledge priors, revealing that once a familiar context is recognized, models favor prior knowledge over available visual evidence rather than failing to encode that evidence.
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "CounterCount: Diagnosing Knowledge Bias in How Vision-Language Models Count Attributes".
Jane: Here's the gist of the paper. The gist: CounterCount introduces a diagnostic framework for counterfactual counting in Vision-Language Models (VLMs) by exposing prior-driven counting failures when visual evidence conflicts with canonical object knowledge, and proposes an attention modulation strategy that improves accuracy by up to 8% CounterCount Framework CounterCount is a diagnostic framework designed to isolate conflicts between visual evidence and object-level count priors It consists of paired factual and counterfactual images spanning diverse semantic categories, such as animals, furniture, transportation, and landmarks Each pair targets count-relevant attributes with strong canonical priors like the number of ears or legs The framework utilizes recent image-editing models to generate counterfactual variants where these attributes are deliberately altered while preserving the overall object identity and scene context All answers are manually verified, and each example is enriched with localized annotations, including masks and bounding boxes over the regions containing the visual evidence required for counting Performance Insights Evaluation of recent VLMs shows strong performance on factual images but consistent degradation under counterfactual attribute changes This indicates that current models often rely on canonical object knowledge even when contradictory visual evidence is available The framework reveals that failures are not solely due to missing or ambiguous visual evidence, but to models underweighting attention to count-relevant visual tokens Specifically, the analysis shows that Mask-BB tokens receive lower attention than visual tokens overall across many layers, indicating a gap where VLMs often distribute attention toward irrelevant visual context rather than the regions needed to resolve the counterfactual count Attention Modulation Strategy To analyze and mitigate this behavior, a unified inference-time attention-modulation strategy is introduced that reweights selected visual tokens This strategy allows for amplification, suppression, masking, and identity as special cases of the same logit-level operation The framework supports amplification by setting a parameter α > 1 to increase attention toward target tokens and dampening or masking by setting β in the range
0, 1: The targeted setting defines T as the set of target visual tokens (e.g., bounding box region) and B as the background set, allowing independent control over their modulation This intervention improves counterfactual counting accuracy by up to 8% across multiple modern VLMs Experimental Results Experiments evaluate open-weight VLM families like Qwen3-VL and Gemma3 against Claude-haiku-4.5 on CounterCount using both Open-Ended (OE) and Multiple-Choice Question (MCQ) formats Overall performance shows that attention modulation improves CF counting accuracy across both open-weight model families, with the largest OE gain observed for Qwen3-VL-32B (48.64 → 56.91) The strongest configurations typically combine target-token amplification with background dampening or masking While attention modulation can enhance focus on semantically relevant visual tokens rather than harming standard image understanding, it does not always correct errors, as shown in cases where failures persist despite the intervention Limitations and Future Directions The study shows that for attributes that VLMs consider challenging, even attention modulation might not be sufficient to correct errors Examples of recurring counting failures on counterfactual images under the best configuration reported in the main paper illustrate this limitation Future directions include analyzing the head- and layer-level mechanisms behind vision–language conflicts, understanding why some categories remain difficult after attention modulation, and using diagnostic insights from CounterCount to inform the design of future VLMs with stronger visual grounding The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning This provides diagnostic insights for designing future VLMs The research concludes that CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs Page 39 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning By providing a diagnostic dataset that isolates this effect and an inference-time mechanism for probing and mitigating it, CounterCount offers insights for strengthening visual grounding and informing the design of future VLMs Page 40 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning By providing a diagnostic dataset that isolates this effect and an inference-time mechanism for probing and mitigating it, CounterCount offers insights for strengthening visual grounding and informing the design of future VLMs Page 41 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning By providing a diagnostic dataset that isolates this effect and an inference-time mechanism for probing and mitigating it, CounterCount offers insights for strengthening visual grounding and informing the design of future VLMs Page 42 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning By providing a diagnostic dataset that isolates this effect and an inference-time mechanism for probing and mitigating it, CounterCount offers insights for strengthening visual grounding and informing the design of future VLMs Page 43 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning By providing a diagnostic dataset that isolates this effect and an inference-time mechanism for probing and mitigating it, CounterCount offers insights for strengthening visual grounding and informing the design of future VLMs Page 44 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning By providing a diagnostic dataset that isolates this effect and an inference-time mechanism for probing and mitigating it, CounterCount offers insights for strengthening visual grounding and informing the design of future VLMs Page 45 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning By providing a diagnostic dataset that isolates this effect and an inference-time mechanism for probing and mitigating it, CounterCount offers insights for strengthening visual grounding and informing the design of future VLMs Page 46 --- CounterCount exposes prior-driven counting failures and provides diagnostic insights for designing future VLMs The results suggest that counting failures are not solely attributable to perceptual limitations, but are closely linked to modality imbalance during reasoning <ref:2605
Title and authors: Tom: So we're looking at this paper called "CounterCount: Diagnosing Knowledge Bias in How Vision-Language Models Count Attributes," which is all about figuring out if these vision models are actually looking at the picture or just relying on what they already know about things.
Jane: That sounds really practical, Tom. Like, is this something that helps us understand why an AI might get a count wrong when the visual evidence seems clear?
Tom: Exactly. The authors introduce this diagnostic framework called CounterCount to test if a model uses the actual visual data or its built-in knowledge about objects when counting things in an image. It sets up pairs of factual and counterfactual images, where they intentionally change some count-related details while keeping the main object the same, like changing how many ears a rabbit has.
Lu: What's interesting is that they use recent image editing models to create these counterfactual variants, which lets them deliberately alter specific attributes while keeping the overall scene context intact. They also manually verify all their answers and add masks and bounding boxes over the parts of the image needed for counting, which is a really helpful way to localize where things are happening.
Meng: So they're not just guessing what's wrong; they’re creating a controlled experiment to see exactly where the model fails when it has conflicting information. That sounds like something we need when we're trying to make sure models actually learn the right rules for counting, not just memorizing patterns.
Lalam: I see. The paper finds that current VLMs often perform well on factual images, but they start degrading significantly when those count-relevant attributes are changed in a counterfactual image, which shows a strong reliance on object-level priors even when the visual evidence is contradictory > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Title and authors: Tom: That’s the core issue they are highlighting: the model defaults to its prior knowledge instead of using the specific visual count when it has conflicting information in a counterfactual setting. The framework shows that these failures aren't just about bad or missing visuals; it's about models not paying enough attention to the right visual tokens > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Jane: So if the problem is that models are ignoring the visual cues they need to count correctly, what does this framework actually suggest we should do about it?
Lu: The paper suggests an attention modulation strategy at inference time that reweights specific visual tokens to improve accuracy by up to eight percent across different modern VLMs > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Title and authors: Tom: The key mechanism they propose is a unified inference-time attention modulation strategy that lets you amplify, suppress, mask, or just keep the attention focused on specific visual tokens > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Meng: From a deployment standpoint, the paper shows that this modulation can improve accuracy by up to eight percent across various models like Qwen3-VL and Gemma3 > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Lalam: The results show that the biggest gain comes from combining target-token amplification with background dampening or masking > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Title and authors: Jane: That's a big number to hear—an eight percent improvement—so what does that mean for the actual user or developer of these vision models?
Tom: It means that for tasks where models have to rely on counting, this targeted intervention can make them much more reliable when the visual information is tricky or contradictory, which is a huge step toward making them more trustworthy.
Lu: I think what’s really important is the diagnostic part of this framework because it doesn't just give you a fix; it tells you *why* the model was failing in the first place—it points to modality imbalance during reasoning > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Meng: I'm thinking about deployment here; if we can use something like this to fine-tune a model for specific counting tasks without retraining the whole thing, that’s way better than just hoping the base model gets it right > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Title and authors: Lalam: I think the main thing this research offers is a way to diagnose the internal conflict between what’s in the image and what the model expects based on its training data > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Tom: So the main thing to take away from this paper is that counting isn't just a simple test; it’s a good way to see where models are biased toward learned knowledge instead of paying attention to what’s visually present > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Title and authors: Jane: It seems like the authors are giving us a way to probe these deep knowledge biases in vision models, and they're showing us how to use that data to build better counting systems > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Tom: We're going to wrap up this discussion by summarizing CounterCount: Diagnosing Knowledge Bias in How Vision-Language Models Count Attributes. It shows that counting failures are linked to modality imbalance during reasoning and gives us a diagnostic dataset and an inference-time mechanism for probing that imbalance > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Lu: I just want to say that this diagnostic framework provides a way for us to strengthen visual grounding by showing exactly where the model’s reasoning breaks down > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Title and authors: Meng: From a deployment perspective, if we can use this to inform how we design future VLMs to be better at grounding their counts in the visual data rather than just guessing based on what they've seen before > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
Lalam: So that’s where we are today with this paper on CounterCount: Diagnosing Knowledge Bias in How Vision-Language Models Count Attributes. It gives us a way to pinpoint the exact spot where the model’s reliance on learned priors goes wrong, and how to fix it with an attention modulation strategy > CounterCount: A Diagnostic Framework for Counting Bias in Vision Language Models Reem Alzahrani* KAUST† Hassan Alshanqiti University of Edinburgh Bushra Bin Hemid KAUST Zaid Alyafeai KAUST Abdelrahman Eldesokey KAUST Bernard Ghanem KAUST Abstract Vision-Language Models (VLMs) excel at multimodal reasoning, yet it remains unclear whether their answers are grounded in visual evidence or driven by learned language and world priors. Counting provides a precise testbed: when visual evidence conflicts with canonical object knowledge, a model must rely on the image rather than a prototypical count. We introduce CounterCount, a diagnostic framework for counterfactual counting in VLMs, consisting of paired factual and counterfactual images with edited count-relevant attributes, verified answers, and localized evidence annotations. Evaluating recent VLMs, we find strong performance on factual images but consistent degradation under counterfactual attribute changes, indicating reliance on object-level priors even when contradictory visual evidence is present.
The paper's summary: Jane: So, to recap, this paper is about creating a test—a diagnostic framework called CounterCount—to see if vision models are using what they actually see when they have conflicting information about how many things there are.
Tom: Right. It’s this setup with factual images and these counterfactual ones where you change an attribute, like the number of legs on a chair, but keep the scene looking normal. The whole point is to isolate if the model is relying on its learned knowledge or actually looking at the pixels for that specific count.
Lu: And what they found in that setup is that most models are really good at factual counting, but when you change something counterfactually, their performance drops because they lean too heavily on those object-level priors—the stuff they learned from training data—even when the visual evidence contradicts it.
Jane: So if a model has to decide between what it *knows* is true and what it *sees* right in front of it, and the visual stuff wins, how does that show up in the numbers? What are those actual results they got?
Tom: They showed that this reliance on priors isn't just some minor glitch; it’s a consistent degradation across many different vision-language models. The biggest finding is that failures aren't just because the visual evidence is bad or missing, but because the model isn't paying enough attention to the specific visual tokens needed for counting.
Lu: They looked at how much attention these models pay, and they found that tokens marked as masks or bounding boxes get way less attention compared to general visual tokens in many layers. That suggests a real gap where the AI is distributing its focus toward irrelevant parts of the scene instead of the exact regions that define what needs to be counted.
Jane: That’s a weird thing—so even when it knows *where* something is, it’s not looking at it hard enough? What did they do to fix that?
Tom: They introduced an attention modulation strategy for inference time. It lets you actively reweight those visual tokens. You can use this to amplify the attention on the target regions—like the bounding box area—and suppress or mask the background noise.
Lu: The core idea is they treat amplification, suppression, masking, and just keeping things as they are all like logit operations. They set a parameter alpha greater than one to boost attention on those target tokens while using beta between zero and one to dampen or mask the rest of the visual field.
Jane: So what’s the actual impact of that? Does this modulation actually help them count better?
Tom: It does. Across multiple modern vision-language models, this strategy improved counterfactual counting accuracy by up to eight percent. That’s a solid number when you're talking about a targeted fix for these kinds of reasoning failures.
Lu: The experiments showed that combining that target-token amplification with background dampening or masking gave the strongest results in most cases. It really helps force the model to focus where it needs to be, even when its internal priors are telling it otherwise.
Jane: So what does this mean for us who are actually building these models? Does this tell us we need to change how we train them entirely, or can we just add this layer of attention control?
Tom: It suggests that counting failures aren't just about perceptual limitations; they’re deeply linked to modality imbalance during the reasoning process. This framework gives you a diagnostic dataset and an inference-time mechanism to probe that imbalance.
Lu: It offers insights into strengthening visual grounding by showing exactly where the model’s internal logic breaks down when it hits conflicting information. It moves us toward designing future models that are inherently better at grounding their counts in the visual data rather than just guessing based on past examples.
Jane: So, if this diagnostic approach is so useful, what’s next? Where do we go from here with this idea?
Tom: The authors admit that even with the best modulation settings they tested, some counting errors still persist for certain challenging attributes. That tells us that attention modulation isn't a universal fix; it’s a powerful tool but not a complete solution on its own.
Lu: So the next steps involve digging deeper into those head- and layer-level mechanisms to understand why some categories remain difficult even after we try to focus the attention. We need to figure out which specific visual reasoning steps are failing.
Jane: It sounds like we’re moving from just patching a symptom, like poor attention, to understanding the underlying cause of why those symptoms exist in the first place. This is really important for making models more robust.
The paper's improvements: Tom: So, we've seen how CounterCount diagnosed the problem—it showed us that models are prioritizing learned counts over actual visual evidence when things get counterfactual. Now, what do they suggest we actually *do* about it?
Jane: Well, the main thing is this unified inference-time attention modulation strategy. Instead of just accepting whatever the model outputs, you can intervene at the logit level to reweight those visual tokens directly.
Lu: This strategy lets you perform operations like amplification, suppression, masking, or even just maintaining attention on specific regions. You get a parameter alpha greater than one for boosting target tokens and beta between zero and one for dampening the background noise.
Tom: It’s basically giving the AI a dial it can turn during its final prediction step to force its focus onto the count-relevant visual tokens, like those in a bounding box. This is what we saw improve accuracy by up to eight percent on several models.
Jane: That sounds like a powerful lever for improving performance without having to retrain the entire massive model from scratch, which is huge for deployment. What about when the model fails even with this intervention?
Lu: The authors showed that it’s not a magic fix; if an attribute is particularly challenging for the AI, attention modulation might still not be enough to correct all errors. They found cases where failures just persist despite using the best configuration they reported.
Tom: That means we can’t rely on one single fix for every possible failure mode. We have to use CounterCount as a diagnostic tool first—figure out *why* it's failing—and then decide if attention modulation is even the right next step for that specific failure type.
Jane: So the implication is that we need a two-step process: diagnose the specific knowledge bias, and then apply targeted interventions based on what you find in the diagnosis. It’s about being smarter about how we guide these models during their final decision-making moment.
Lu: Exactly. The real value here is using this diagnostic insight to inform the design of future vision models—helping us build systems with stronger visual grounding from the start, instead of just treating it as an afterthought.
Tom: It shifts the focus from just training bigger and bigger models to designing better reasoning pathways that are more sensitive to visual evidence when ambiguity arises. That’s a real engineering goal right there.
Jane: So we're moving toward models that aren't just pattern matchers, but systems that can actually reason about conflicting information in an image by paying closer attention where the count is happening.
Lu: It’s about closing that gap between what the model *knows* and what it *sees*, and using this framework to help bridge it.
Conclusion: Tom: So we’re wrapping up on CounterCount, which was basically this diagnostic framework for identifying how vision models are biased toward their own knowledge when counting things in pictures. It showed that failures happen because the model isn't paying attention to the right visual tokens.
Jane: That’s a big picture for us, Tom. It means we can finally pinpoint exactly where the breakdown happens, instead of just knowing *that* it failed somewhere. What’s the real-world impact of this diagnostic dataset?
Lu: The implication is that we can start designing future models with stronger visual grounding built in, because now we know what kind of attention imbalance to look for and how to fix it before we even train. It helps us move beyond just scaling up parameters.
Meng: From a deployment standpoint, if this diagnostic insight tells us exactly which tokens are being ignored at scale, I can start thinking about building targeted inference modules instead of trying to patch every single model blindly. It’s about making production systems more predictable.
Lalam: I’m pretty sure it’s correct. Based on the literature, this approach of probing for modality imbalance during reasoning is exactly what we need to see to improve reliability in complex counting tasks across different categories.
Tom: So, to summarize, CounterCount gave us a way to see that counting errors are linked to modality imbalance and provided an inference-time mechanism for probing that imbalance. It’s a big step toward better model control.
Jane: It really gives us the tools to build more trustworthy AI systems where we can diagnose the knowledge bias before it causes real problems for users.
Lu: The future work points to analyzing those head- and layer-level mechanisms behind these vision–language conflicts. We need to know precisely *why* some categories remain difficult after we apply attention modulation.
Meng: If we can figure out which specific visual reasoning steps are failing, that tells me exactly where I should focus my engineering effort next for improvement.
Lalam: I’m confident that this diagnostic dataset and the inference-time probing mechanism offer solid insights for strengthening visual grounding in these complex VLM systems.
Tom: We’ll keep an eye on those follow-up studies because understanding the mechanics behind why certain counts are hard is crucial for building better AI.
More episodes
- 2507.05723-Large Language Models for Agent-Based Modelling: Current and possible uses across the modelling cycle
- 2507.21035-GenoMAS: Guided Multi-Agent Programming for Scientific Discovery from Genomic Data
- 2508.01300-How Far Are LLMs from Symbolic Planners? An NLP-Based Perspective
- 2508.11850-LLM-Guided Evolution of Symbolic Acceleration Inequality Families for MILP
- 2508.20784-Single Agent Robust Deep Reinforcement Learning for Bus Fleet Control
- 2508.20976-WoW-Bench: Evaluating Fine-Grained Acoustic Perception in Audio-Language Models via Marine Mammal Vocalizations
- 2510.02695-RAMAC: Multimodal Risk-Aware Offline Reinforcement Learning and the Role of Behavior Regularization
- 2510.03223-Attention-Aligned Reasoning for Large Language Models
- 2510.06919-Bayesian Nonparametric Dynamical Clustering of Time Series
- 2510.07073-VRPAgent: LLM-Driven Discovery of Heuristic Operators for Vehicle Routing Problems