Visual Graph Scaffolds for Structural Reasoning in Large Language Models

Runlin Lei, Xiaokui Xiao, Zhewei WeiarXiv 2026

TL;DR

This paper demonstrates that presenting reasoning paths as visual mind maps (graphs rendered as images) significantly enhances the structural reasoning capabilities of Vision-Language Models (VLMs) compared to flattening those same graphs into text. Crucially, this visual advantage shines when the guidance is purely abstract (focusing on strategy rather than direct answer hints) and can be successfully internalized by student models through fine-tuning and distillation.

What Problem Does This Paper Address?

While large language models (LLMs) excel at sequential text generation, human reasoning is often non-linear, involving branching, converging, and hierarchical thoughts. Traditionally, graphs are fed into LLMs as external knowledge bases to retrieve facts. However, this paper explores a different angle: Can graphs serve as cognitive scaffolds to organize the reasoning process itself?

When a complex, multi-hop reasoning path is flattened into linear text, its underlying topology becomes obscured, redundant, and difficult for a model to parse. The authors investigate whether preserving the graph's structure visually—as an image of a mind map—helps a model reason more effectively than text-based alternatives, especially when the model cannot rely on direct shortcuts or answer hints.

Methods

The authors design a teacher-student framework to evaluate how structural reasoning is transferred:

  1. Teacher Trajectory Generation: A powerful teacher model (DeepSeek-V3) solves multi-hop questions and generates detailed reasoning traces.
  2. Guidance Construction: These traces are converted into four distinct guidance formats across two axes:
  3. Modality: Text (linear sentences) vs. Image (Graphviz DOT code rendered as a visual mind map). A Graph-to-text control is also used to preserve node content textually while removing visual layout.
  4. Style: Direct (contains key facts and intermediate conclusions) vs. Abstract (contains only general reasoning strategies and logical operations, strictly forbidding answer-local hints).
  5. Student Execution & Internalization: A weaker student VLM (Qwen3-VL-8B-Instruct) attempts to solve the problem using the guidance. To see if the student can absorb this capability, the authors apply Self-SFT (Supervised Fine-Tuning on its own successful guided paths) and KL Distillation (transferring soft targets from a guided branch to an unguided branch).
Figure 1. Overview of the Graph-Guided Reasoning framework. (a) Teacher Reasoning & Answer: A strong teacher model solves a multi-hop question and generates a detailed reasoning trace. (b) Guidance Generation: The teacher’s reasoning is transformed into four types of guidance artifacts: Textual vs. Visual modalities, and Direct vs. Abstract styles. (c) Student Answer: A student model utilizes the generated guidance to arrive at the correct answer. (d) Distillation: The student internalizes the structured reasoning via SFT or KL.

Datasets

  • In-Domain/Supervision Pool: Multi-hop QA datasets including HotpotQA, 2WikiMultiHopQA, and MuSiQue (yielding 14,490 teacher-correct cases for training/re-evaluation).
  • Out-of-Domain Evaluation Benchmark: Six diverse reasoning datasets: CLUTRR, LogiQA, AR-LSAT, AIW-Easy, AIW-Hard, and Bamboogle.

Key Insights and Ideas

  • The "Abstract Modality Gap": When guidance contains direct hints, text and images perform equally well. However, when hints are removed and only structure remains (the abstract setting), text performance plummets while visual graph guidance remains highly effective.
  • The Token Compression Effect: Visual graphs act as a highly efficient interface. In the abstract setting, the student model required only 226 output tokens on average to solve the problem using an image guide, compared to over 700 tokens when using text alternatives.
  • Topology is the Signal: Through ablation studies (forcing the graph into a linear chain or restricting node counts), the authors proved that the benefit stems from the preserved branching and convergence of the graph topology, not just the visual appeal of an image.

Key Results

In the critical Abstract Guidance setting, the visual modality demonstrated a massive advantage:

  • Immediate Guidance (Re-eval): The visual image guide achieved 70.80% accuracy, drastically outperforming the text guide (51.97%) and the graph-to-text control (46.40%).
  • Internalization: After learning from the visual scaffolds via KL distillation, the unguided student model retained an accuracy of 64.47%, compared to only 58.37% for the text-trained counterpart.
Figure 1. Overview of the Graph-Guided Reasoning framework. (a) Teacher Reasoning & Answer: A strong teacher model solves a multi-hop question and generates a detailed reasoning trace. (b) Guidance Generation: The teacher’s reasoning is transformed into four types of guidance artifacts: Textual vs. Visual modalities, and Direct vs. Abstract styles. (c) Student Answer: A student model utilizes the generated guidance to arrive at the correct answer. (d) Distillation: The student internalizes the structured reasoning via SFT or KL.

Limitations and Future Work

  • Limited Out-of-Domain Transfer: While the visual advantage holds structurally, absolute performance drops when the model is tested on entirely different reasoning families (like analytical or logic puzzles from AR-LSAT), indicating the pipeline remains somewhat task-specific.
  • Not a Total Replacement for CoT: While visual graph guidance is the superior interface under restricted/abstract conditions, it does not yet outperform direct, unconstrained training on the teacher's full Chain-of-Thought (CoT) text.

Future work will likely focus on scaling this visual scaffolding across more diverse reasoning tasks to build a generalized, structurally aware VLM.

Summary updated

BibTeX
@misc{lei2026visual,
  author = {Runlin Lei and Xiaokui Xiao and Zhewei Wei},
  title = {{Visual Graph Scaffolds for Structural Reasoning in Large Language Models}},
  year = {2026},
  eprint = {2606.02673},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.02673},
}
Figure