Thinking with Drafting: Optical Decompression via Logical Reconstruction

Jingxuan Wei, Honghao He, Caijun Jia, Siyuan Li, Zheng Sun, Yuhang Xu, Yuanyuan Lin, Linzhuang Sun, Yuchen Wu, Bihui Yu, Xiangxiang Zhang, Cheng TanarXiv 2026 · arXiv · OpenReview

TL;DR

This paper introduces "Thinking with Drafting" (TWD), a novel approach to visual reasoning that reframes it as "optical decompression." TWD reconstructs latent logical structures from visual inputs into a minimalist Domain-Specific Language (DSL), enabling deterministic visual proofs for self-verification. This method addresses a "precision paradox" in current multimodal models, where high visual fidelity often lacks rigorous logical accuracy.

What Problem Does This Paper Address?

Current multimodal large language models (MLLMs) excel at visual perception and generation, but struggle with complex reasoning tasks requiring precise logical understanding. This is a "precision paradox": optical character recognition (OCR) systems can accurately transcribe symbols but miss their underlying logical relationships, while generative models can create visually plausible diagrams that are mathematically inaccurate. This gap hinders reliable visual reasoning, especially in domains like mathematical problem-solving. The authors propose to bridge this by reconceptualizing reasoning as "optical decompression" – reconstructing latent logical structures from visual tokens.

Methods

The core of the proposed method is the "Thinking with Drafting" (TWD) paradigm. TWD operates by:

  • Optical Decompression: The model first parses visual input (images with text) and natural language queries to decompress the implicit logical topology into an explicit structural draft.
  • Minimalist Domain-Specific Language (DSL): This draft is represented in a custom, minimalist DSL designed for geometric and logical constraints. This DSL is symbolic and executable, unlike pixel-based representations.
  • Drafting and Verification Loop: The generated DSL draft serves as a "drafting context" for the model. This structured representation allows the model to perform step-by-step reasoning and generate deterministic visual proofs. These proofs are then used for self-verification, enabling the model to detect logical conflicts and refine its output.
  • Programmatic Drafting: Instead of directly generating answers, TWD forces the model to draft its mental model into executable code, which is then rendered into a visually verifiable diagram. This ensures mathematical exactness and logical validity.

Datasets

The authors introduce VisAlg, a new benchmark specifically designed for evaluating logic-aware visual reasoning through optical decompression. VisAlg consists of 15,000 bar-model word problems, each paired with a structured intermediate representation in their DSL, defining the ground-truth logical parse. The dataset construction involves a multi-stage pipeline including drafting, refining, and scoring/filtering to ensure high quality and adherence to specific criteria.

Key Insights and Ideas

  • Parsing is Reasoning: The paper's central axiom is that the act of parsing visual information into a structured, logical representation is the reasoning process itself.
  • Optical Decompression: Reframing visual reasoning as decompression from compressed visual tokens to explicit logical structures is a novel perspective.
  • Deterministic Visual Proofs: TWD's ability to generate executable DSL code that renders into verifiable diagrams is crucial for ensuring logical correctness, moving beyond visually plausible but potentially incorrect outputs.
  • DSL as a Cognitive Scaffold: The minimalist DSL acts as an explicit, structured intermediate representation that guides and constrains the model's reasoning process, preventing hallucination and ensuring logical integrity.
  • Closed-Loop System: TWD establishes a closed loop where visual generation is not just an output but a logical verifier, enabling iterative refinement and correction.

Key Results

  • TWD, when initialized from a compact 8B model and fine-tuned on VisAlg, outperforms leading proprietary models (including Gemini-3-Pro and Gemini-2.5-Pro) on the VisAlg benchmark, achieving an overall score of 82.63.
  • The model demonstrates strong performance across various visual algebra schemas, particularly excelling in structure-intensive tasks like proportional distribution and difference analysis.
  • TWD shows a strong correlation (r = 0.9575) with expert human ratings, validating its verifier as a reliable proxy for human judgment.
  • The approach successfully handles complex logical topologies, including set-theoretic reasoning, where other models often exhibit topological hallucination.

Limitations and Future Work

  • Limited Scope of Structural Representation: The current DSL is designed primarily for bar-model visual algebra, emphasizing linear topological relations. Extending this DSL to support broader classes of scientific diagrams is identified as a key direction for future research.
  • Potential for Automation Bias: The structured DSL and visual proofs might lead users to conflate structural validity with semantic correctness, assuming a correct diagram implies a correct solution.
  • Risk of Cognitive Offloading: Over-reliance on TWD's automated drafting could potentially lead to skill atrophy in diagrammatic reasoning for learners, undermining their ability to independently translate textual constraints into spatial representations.

Summary updated

Abstract

Existing multimodal large language models have achieved high-fidelity visual perception and exploratory visual generation. However, a precision paradox persists in complex reasoning tasks: optical perception systems transcribe symbols without capturing logical topology, while pixel-based generative models produce visual artifacts lacking mathematical exactness. To bridge this gap, we propose that reasoning over visual inputs be reconceptualized as optical decompression-the process of reconstructing latent logical structures from compressed visual tokens. Guided by the axiom that Parsing is Reasoning, we introduce Thinking with Drafting (TwD), which utilizes a minimalist Domain-Specific Language (DSL) as a grounding intermediate representation. Unlike standard approaches that hallucinate answers directly, TwD forces the model to draft its mental model into executable code, rendering deterministic visual proofs for self-verification. To validate this, we present VisAlg, a visual algebra benchmark. Experiments demonstrate that TwD serve as a superior cognitive scaffold. Our work establishes a closed-loop system where visual generation acts not as a creative output but as a logical verifier, offering a generalizable path for visual reasoning.
BibTeX
@misc{wei2026thinking,
  author = {Jingxuan Wei and Honghao He and Caijun Jia and Siyuan Li and Zheng Sun and Yuhang Xu and Yuanyuan Lin and Linzhuang Sun and Yuchen Wu and Bihui Yu and Xiangxiang Zhang and Cheng Tan},
  title = {{Thinking with Drafting: Optical Decompression via Logical Reconstruction}},
  year = {2026},
  eprint = {2602.11731},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.11731},
}
Figure