NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Nodes Are Early, Edges Are Late: Probing Diagram Representations in Large Vision-Language Models

Haruto Yoshida, Keito Kudo, Yoichi Aoki, Ryota Tanaka, Itsumi Saito, Keisuke Sakaguchi, Kentaro InuiarXiv 2026

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.

Figure 1: Overview of this study. We analyze internal representations in LVLMs using probing on a synthetic diagram dataset. We find that node information (e.g., node color) and global information (e.g., node count) are linearly encoded in a single image patch within the vision encoder, whereas edge information (e.g., edge color) is linearly encoded in a single text token within the language model.

Methods

The authors employ two primary mechanistic interpretability techniques:

  1. 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.
  2. 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).

Figure 2: Examples of synthetic diagrams. Each di- agram contains five nodes, and we control evaluation aspects such as node color, shape, and edge connectivity. We provide two variants: Drand, which uses random node layouts (left part), and Dfix, which uses fixed lay- outs (right part).

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.
Figure 3: Layer-wise maximum accuracy in the vision encoder of Qwen3-VL 8B. The x-axis denotes the rela- tive layer position (0 is the input layer and 1 is the final layer), and the y-axis denotes accuracy. Aspects sharing the same threshold are drawn with the same line style, which also matches the style of the corresponding black threshold lines.
  • 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.
Figure 7: Probing results for text tokens in the language model of Qwen3-VL 8B. The x-axis shows token position in the question, and the y-axis shows layer position.
  • 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

BibTeX
@misc{yoshida2026nodes,
  author = {Haruto Yoshida and Keito Kudo and Yoichi Aoki and Ryota Tanaka and Itsumi Saito and Keisuke Sakaguchi and Kentaro Inui},
  title = {{Nodes Are Early, Edges Are Late: Probing Diagram Representations in Large Vision-Language Models}},
  year = {2026},
  eprint = {2603.02865},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.02865},
}
Figure