TL;DR
Large Vision-Language Models (LVLMs) excel at identifying individual objects in diagrams but frequently stumble when interpreting the relationships between them. By probing the internal states of these models, this paper reveals a striking architectural disconnect: while node attributes and global features are linearly encoded early on within the vision encoder, relational edge information only emerges late in the pipeline, explicitly triggered by text tokens inside the language model.
What Problem Does This Paper Address?
Diagrams use symbolic layouts—nodes, lines, and arrows—to convey structured relationships. While modern LVLMs perform remarkably well on standard multimodal benchmarks, they consistently fail at relational tasks, such as determining the direction of an arrow or tracing a multi-hop path.
The authors investigate the root cause of this limitation. They look under the hood of prominent LVLMs to answer a fundamental question: Where and when does diagrammatic information (nodes, edges, and global structure) actually form inside the model? Understanding whether this bottleneck is a failure of visual perception or textual integration is key to building better diagram-aware AI.
Methods
The authors employ two primary mechanistic interpretability techniques:
- Linear Probing: They train single-layer linear classifiers on the hidden states of different layers across the vision encoder and the language model. If a probe can successfully predict an attribute (like a node's color), that information is considered "linearly separable" and readily accessible to the model.
- Causal Intervention (Activation Patching): To prove the model actually uses these representations for reasoning, they selectively corrupt hidden states that show high probing accuracy by replacing them with the mean vector of non-target patches. If the final Visual Question Answering (VQA) performance drops, it confirms a causal link.
To ensure the probes weren't just exploiting superficial shortcuts (e.g., predicting node color based on any random color patch in the image), the authors introduced a negative dataset variant ($\mathcal{D}^\perp$) where the queried node or edge does not exist, forcing the probe to verify existence first.
Datasets
Because natural image datasets introduce messy biases, the authors constructed a clean, synthetic diagram dataset based on directed graphs containing exactly 5 nodes.
The dataset controls 11 distinct evaluation aspects across three categories:
- Single: Node color, node shape, in-degree, and out-degree.
- Multiple: Edge color, edge style, edge existence, edge direction, and multi-hop paths.
- Global: Total node count and total edge count.
They generated two layout variants: $\mathcal{D}_{\text{rand}}$ (random spatial configurations used to train probes) and $\mathcal{D}_{\text{fix}}$ (fixed spatial layouts used to evaluate positional representations without configuration artifacts).
Key Insights and Ideas
- Nodes are Early, Edges are Late: Node attributes (color, shape) and global properties (node count) become linearly decodable within the vision encoder. However, complex relational features (edges) remain un-separable in the vision encoder and only become linearly encoded within the text tokens of the language model.
- Text Conditioning as an Aggregator: Relational edge information doesn't just spontaneously appear in the language model; it spikes sharply at the exact text tokens in the prompt that specify the target nodes (e.g., "node A"). The text prompt acts as a lens, forcing the language model to explicitly assemble the relationship from raw visual features.
- Background Patches as Storage: For global properties like node count, the vision encoder distributes information broadly across background patches rather than concentrating it in a few localized tokens. This suggests background space acts as a working memory or aggregation zone during visual processing.
Key Results
- VQA Performance Baseline: Testing Qwen3-VL 8B revealed high accuracy on node color (91.4%) and shape (76.6%), but near-chance performance for Edge Direction (49.3% vs. a 50% chance level).
- Vision Encoder Probing: In the vision encoder, maximum probing accuracy for node color and global counts increases steadily with layer depth, while edge features remain flat and below the success threshold.
- Text Token Probing: Probing accuracy for edge attributes sharply increases from near 0% to over 80% exactly at the token positions identifying the target nodes in the question.
- Causal Intervention: Patching high-probing-accuracy patches in the vision encoder caused massive drops in VQA accuracy (e.g., node color accuracy dropped from 91.4% to 11.7%), proving these early visual representations are causally vital for downstream reasoning.
Limitations and Future Work
- Synthetic Simplicity: The dataset uses clean, simple 5-node graphs. Real-world diagrams (flowcharts, circuit diagrams, infographics) contain much higher visual complexity, overlapping lines, text labels, and domain-specific styling.
- Composite Features: The study evaluates basic elements in isolation. How the model handles composite visual patterns or higher-order hierarchical structures remains an open question.
- Probing Constraints: The authors acknowledge standard criticisms of linear probing—namely, that it only checks for linear separability and might miss complex, non-linearly encoded features that the model still utilizes.
Summary updated