# LVRE: A Local Visual Reasoning and Editing Agent for Optical Chemical Structure Recognition

arXiv: https://arxiv.org/abs/2611.18717 · HTML: https://mlsanity.com/paper/2611.18717/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 14 of its 22 references that are in the map.
- Submitted 8 Nov 2026.

## Placed in

- LLM reasoning
- LLM agents and tool use

## Builds on (most cited first, 14 of 14)

- [ReAct: Synergizing Reasoning and Acting in Language Models](https://mlsanity.com/paper/2210.03629/) (2022)
- [Self-Consistency Improves Chain of Thought Reasoning in Language Models](https://mlsanity.com/paper/2203.11171/) (2022)
- [Reflexion: Language Agents with Verbal Reinforcement Learning](https://mlsanity.com/paper/2303.11366/) (2023)
- [Self-Refine: Iterative Refinement with Self-Feedback](https://mlsanity.com/paper/2303.17651/) (2023)
- [Large Language Models Cannot Self-Correct Reasoning Yet](https://mlsanity.com/paper/2310.01798/) (2023)
- [ViperGPT: Visual Inference via Python Execution for Reasoning](https://mlsanity.com/paper/2303.08128/) (2023)
- [V*: Guided Visual Search as a Core Mechanism in Multimodal LLMs](https://mlsanity.com/paper/2312.14135/) (2023)
- [Visual Sketchpad: Sketching as a Visual Chain of Thought for Multimodal Language Models](https://mlsanity.com/paper/2406.09403/) (2024)
- [MolScribe: Robust Molecular Structure Recognition with Image-To-Graph Generation](https://mlsanity.com/paper/2205.14311/) (2022)
- [Large Language Models Can Self-Correct with Key Condition Verification](https://mlsanity.com/paper/2405.14092/) (2024)
- [MolNexTR: A Generalized Deep Learning Model for Molecular Image Recognition](https://mlsanity.com/paper/2403.03691/) (2024)
- [GTR-CoT: Graph Traversal as Visual Chain of Thought for Molecular Structure Recognition](https://mlsanity.com/paper/2506.07553/) (2025)
- [Atom-Level Optical Chemical Structure Recognition with Limited Supervision](https://mlsanity.com/paper/2404.01743/) (2024)
- [MolRecBench-Wild: A Real-World Benchmark for Optical Chemical Structure Recognition](https://mlsanity.com/paper/2605.05832/) (2026)

## Abstract (arXiv)

Optical chemical structure recognition (OCSR) demands strict all-or-nothing graph fidelity, where a single misidentified bond order or formal charge makes the predicted graph differ from the reference structure. While vision-language models (VLMs) can reinspect ambiguous visual regions, unconstrained full-graph regeneration often introduces regressive errors into previously correct substructures. We present LVRE, a training-free visual agent that refines molecular graphs via targeted visual inspection and reversible transactional editing. Rather than regenerating the entire graph sequence, LVRE examines a high-resolution crop alongside the global diagram and local graph neighborhood, proposing modifications to named graph records that a deterministic controller checks. A controller executes each proposed modification as an isolated transaction, and a visual review module arbitrates which edits to commit or roll back. Across four foundation VLMs, LVRE improves graph accuracy by 8.0-8.5 percentage points over single-pass recognition and by 3.0-3.3 points over fixed local review. In a paired evaluation of 1,000 diagrams using Gemini 3.8 Flash, LVRE achieves 100 successful repairs while introducing only 15 regressive errors, in contrast to global reflection which yields 65 repairs against 30 introduced errors. On this paired set, LVRE introduces half as many errors on initially correct predictions as global reflection.
