CypherGuard fixes structurally wrong LLM Cypher queries, hitting 88.5% on CypherBench
JeremyCMorgan · x · 2026-11-12
- Problem: LLM-generated Cypher queries can be syntactically valid and schema-compliant yet return zero rows—e.g., traversing a relationship against its stored direction. On Cypher-Bench a small model scores only 31.4%, and even a strong model plateaus at 71.76%; dominant failures are structural, not linguistic.
- Method: CypherGuard is a training-free framework with two core pieces: a graph-native error taxonomy guiding repair, and a mined rule library guiding query generation. At inference it first rewrites schema-detectable faults, then re-executes each draft and repairs only when the query errors or returns nothing.
- Results: Across seven graphs on CypherBench test questions, CypherGuard reaches 88.50% overall execution accuracy—+25.08% over the same-backbone zero-shot floor—surpassing an RL-fine-tuned 7B specialist and the strongest training-based system compared.
- Takeaway: A practical database-grounded validate-and-repair pattern for production Text2Cypher pipelines.
More from coding & agent
- Google team hiring engineers for Agent Substrate, spanning agentic systems and compute infrastructure — rakyll · 2026-11-12
- Agentic Web roundtable: websites expose tools via WebMCP, bring your own agent — jnbrymn · 2026-11-12
- CMU and JetBrains study: doubling AI token spend yields only ~10% more commits — rohanpaul_ai · 2026-11-12
- Rime's MCP recipe gives AI agents a phone line to call hotels for you — aakashgupta · 2026-11-12
- OpenAI demos voice controls and cloud handoffs for Codex — rhiever · 2026-11-12
- Founder: my workday is now one repeated decision — delegate this task to an agent or not — daniel_mac8 · 2026-11-12