Agentic Geometry Problem Solving via Human-like Parallel Bidirectional Reasoning

Xiaokai Zhang, Ruiqing Xia, Liang Chen, Zhenhai Sun, Yuchang Yang, Tuo LengNeurIPS 2026

TL;DR

Think back to high school geometry: you rarely solved a tricky proof by marching blindly forward from the givens; instead, you worked from both ends—pushing facts forward while pulling the target goal backward—until the two paths met in the middle. RAVS (Reflect Agent Verified Solve) teaches AI to do the exact same thing, pairing an LLM "strategist" with a strict formal symbolic "calculator" capable of bidirectional search. The result is a system that solves over 96% of complex formal geometry problems with zero hallucinations and zero task-specific training.

What Problem Does This Paper Address?

Automated geometry problem solving is currently split between two flawed paradigms. First, you have general-purpose Large Language Models (LLMs) reasoning in natural language. They have great intuition, but they are notorious bluffers—inventing steps or violating theorem premises ("hallucinating") when a proof gets long.

Second, you have formal symbolic solvers paired with specialized neural networks. These guarantee 100% mathematical rigor, but they suffer from a brutal combinatorial explosion. Because existing formal systems only reason forward (deriving new facts from known conditions), a proof of depth $d$ using a library of $n$ theorems creates a search space of $O(n^d)$. Furthermore, training specialized networks to guide these solvers requires expensive, human-annotated formal datasets. The authors ask: how can we get the intuitive, training-free planning of an LLM with the ironclad verification of a symbolic solver, without drowning in an exponential search tree?

Methods

RAVS introduces a decoupled neuro-symbolic architecture built on a simple philosophy: let the LLM do high-level planning, and let the symbolic engine handle strict verification and algebra.

Figure 1: Overall Architecture of Reflect Agent Verified Solve (RAVS). Geometric problems are parsed into formal language by an Agentic Parser, then input into an Agentic Solver for solving. After the problem is solved, the reasoning graph is transformed into a human-readable solution by an Agentic Translator. The Agentic Solver is the core method introduced in this paper. It consists of an LLM-driven agent (high-level planning and abstract reasoning) and a formal bidirectional solver based on FormalGeo (rigorous verification and precise computation).

What is novel here boils down to two core mechanisms:

  1. Unified Bidirectional Symbolic Engine: Built on the FormalGeo framework, the authors standardize every theorem to have a premise and a single predicate conclusion. This symmetry makes every theorem reversible: the engine can apply a theorem forward to generate new facts, or decompose a goal backward into subgoals. As facts are generated forward, the solver checks a hash table of pending backward subgoals in $O(1)$ time. When a match hits, the two search frontiers meet, and the success propagates upward through the logic tree.
Bidirectional reasoning graph illustrating how forward fact application, hash-table meeting detection (Update), and backward goal propagation interact.
  1. The Agentic Reflection Loop: Rather than writing proofs directly, a frozen LLM (DeepSeek-V4-Pro) interacts with the solver via tool calls (apply, decompose, find_fact, etc.). Every move is verified by the solver, eliminating hallucinations at the architectural level. When the context window fills up (hit at 80k tokens) or the agent hits a dead end, a summarize tool compresses the trajectory, allowing the agent to reflect on failed paths and pivot strategies. If a problem isn't solved within 50 rounds, RAVS runs a fresh second-pass retry.

Datasets

Because RAVS is training-free, datasets are used strictly for evaluation (using standard test splits parsed into FormalGeo formal language):

  • FormalGeo7K: 7,000 diagram-and-text problems stratified into six difficulty levels (L1 to L6) based on the required proof length (from $\le 2$ theorems up to $\ge 11$).
  • Geometry3K (3,002 problems) and GeoQA (5,010 problems): Classic multimodal geometry benchmarks. No new datasets were introduced.

Key Insights and Ideas

  • Meeting in the middle beats exponential blowup: Just like digging a tunnel from both sides of a mountain reduces the volume of dirt you have to excavate, theoretical analysis and ablations show bidirectional search provides an exponential complexity advantage over unidirectional search. Removing bidirectional search barely affects easy L1 problems (-1.06%), but causes accuracy on deep L6 proofs to plummet by over 21 percentage points.
  • Agents can outsmart buggy tools: In one fascinating qualitative case (Problem 1421), the formal symbolic solver actually had a state-update bug—it derived the target value $x$, but failed to flip its internal status to solved. Instead of looping forever, the LLM agent inspected the state, realized the math was already finished despite the bug, and called finish() to successfully close the loop.
Figure 2: Three examples illustrating the advantages of RAVS. Case 1 illustrates that the agent’s reflection mechanism helps correct errors in long-chain reasoning. Case 2 illustrates that backward solving is an important solving method. Case 3 illustrates that the RAVS architecture can correct bugs in the solver and offers greater flexibility.

Key Results

RAVS sets a new state-of-the-art across all evaluated benchmarks without using any task-specific training data:

  • FormalGeo7K: Achieves 96.06% overall accuracy (note: a couple of early paragraphs in the paper draft mention 95.80%, while the abstract, main tables, and conclusion report 96.06%), beating the strongest training-free baseline (Pri-TPG at 89.29%), top training-based neuro-symbolic models (HyperGNet at 88.36%), and standalone frontier LLMs (Claude 4.5 Sonnet at 75.79%).
  • Crushing the long tail: On hard L5 problems (9–10 steps), RAVS hits 91.23% compared to Pri-TPG's 66.13%. On brutal L6 problems ($\ge 11$ steps), it reaches 61.70% (vs. Pri-TPG's 30.00% and HyperGNet's 51.61%).
  • Cross-benchmark generalization: Achieves 98.11% on Geometry3K and 94.64% on GeoQA, outperforming prior bests by 2.95 and 9.00 percentage points, respectively.

Limitations and Future Work

  • Token and dollar cost: Relying on a massive frontier LLM for multi-turn agentic loops isn't cheap—a full evaluation run costs roughly $55 USD in API calls.
  • Prompt bloat: Explaining the entire formal system and tool rules upfront eats up a massive chunk of the context window (~38k–40k tokens on average). The authors suggest dynamic prompt construction or "progressive disclosure" of rules as future fixes.
  • The L6 ceiling: While 61.70% on L6 is a major leap forward, very long reasoning chains still accumulate sprawling contexts and hit the 50-turn interaction cap, leaving room for tighter memory compression and smarter loop designs.

Summary updated

BibTeX
@inproceedings{zhang2026agentic,
  author = {Xiaokai Zhang and Ruiqing Xia and Liang Chen and Zhenhai Sun and Yuchang Yang and Tuo Leng},
  title = {{Agentic Geometry Problem Solving via Human-like Parallel Bidirectional Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uPyHEd0byJ},
}
Figure