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.
Alex: Welcome to another episode of ResearchPod.
Sam: Computers spot text in math diagrams perfectly, like reading words off a photo. But they miss the hidden links between shapes, such as one bar being exactly three times longer than another. This creates a precision paradox: clear reading, but weak grasp of the logic.
Alex: Like those bar diagrams for word problems?
Sam: Imagine a mother rabbit sharing carrots with her bunny. Bars show what the bunny got, the bunny's total, and what's left with mom—maybe three times longer. Computers read numbers and labels using OCR, like scanning notes from a picture. But they ignore how bar lengths reveal ratios, like "three times longer," since that's in the layout, not the text.
Alex: The picture holds the relationships, but computers treat it as flat words. Drawing new diagrams doesn't help?
Sam: No. Generated images look okay but have off sizes or alignments—no exact math. Current systems copy text without logic or draw roughly. The paper suggests optical decompression: unpacking visual details into exact logical structure, like unzipping a file to reveal the blueprint.
Alex: Rebuilding logic from the image. How?
Sam: They break the image into basic parts that capture logic—like lines for bar lengths, as if stacking carrot piles, and vertical dashes for equal alignments. These relational primitives force notice of shared edges, not separate pieces.
Alex: Like connecting dots to uncover math rules in the layout. Does that let computers reason visually about equals and parts?
Sam: Yes. Spotting connections is the reasoning. They call it "parsing is reasoning": turning the messy image into clean structure reveals logic like ratios from alignments. Unlike text-reading that skips geometry or loose drawings, this builds an exact scaffold.
Alex: Parsing as structured steps from seeing. But what about image shifts messing up pixel positions?
Sam: Topological abstraction helps. Picture an invisible grid: up-down splits into logical rows, like shelves for quantities; left-right uses relative spots, not exact pixels. This focuses on order and links. A fixed renderer then makes a perfect diagram for checks, ignoring wobbly details.
Alex: The grid ignores layout wobbles but catches alignments. And that guides solving?
Sam: Yes. The structure guides calculations in a closed loop—called DSL-conditioned inference—where the model checks its diagram visually before answering. This verifies logic on the fly, unlike vague text or blurry images. The paper shows more reliable math from visuals.
Alex: The self-checking diagram builds trust. How did they test it?
Sam: They made VisAlg: over 11,000 bar diagram problems, each with code for the right structure. It checks if computers solve and rebuild logic—like matching a blueprint. Their approach scored highest, edging top models by nailing structure.
Alex: VisAlg tests full logic rebuild. Why does structure beat just right numbers?
Sam: Numbers alone fail without layout proof, like wrong boundaries in set problems despite correct counts. Text stays vague, images get fuzzy, scanning skips shapes. Here, code renders verifiable diagrams. The paper notes strong human agreement, suggesting reliable gains.
Alex: The loop makes visuals provable. Does it work beyond bars, like sets?
Sam: It handles set overlaps well, fixing hallucinations. But code is tuned for bars, not graphs or 3D—future work needed. Still, visuals as verifiers build broader reasoning.
Alex: How did they build VisAlg so reliably?
Sam: A three-step pipeline with models and humans. First, models plan diagrams for word problems, drafting code with rules for bars, alignments, brackets. Second, checklists fix lengths, labels. Third, verifiers score for perfection; math teachers review with five rules—like diagram-alone solvability and exact alignments. Disagreements get third checks.
Alex: Drafts, checklists, human review—pure logic, no cheats. How does this highlight differences from usual thinking?
Sam: Text chains guess without proof. Images drift in scale. Scanning skips layout. Here, code reconstructs exactly, blending picture geometry, positions, words into verifiable flow. The paper suggests this loop generalizes for reliable answers.
Alex: Visual output tests its own logic. What mistakes do other systems make?
Sam: They erase structures—like losing repeated units for "three times more." Or add labels without shape matches. Or misalign lines. The paper calls these semantic erasure, label injection, alignment conflict—math looks right, but diagrams fail checks.
Alex: Pictures lie about logic even if answers match. The paper flags risks for education?
Sam: Yes. Neat diagrams risk automation bias—trusting form over semantics. Or cognitive offloading, weakening diagram-building skills. Scoped to bars now.
Alex: Verifiable visuals improve on loose methods, but caution against over-trust and skill loss. A meaningful advance for computer reasoning from math pictures. Thanks for listening to ResearchPod.