Research map / Large language models / Reasoning and chain of thought
Cypher-RI: Reinforcement Learning for Integrating Schema Selection into Cypher Generation
Hanchen Su, Xuyuan Li, Yan Zhou, zhuoyi lu, Ziwei Chai, Haozheng Wang, Chen Zhang, Yang Yang
Zhejiang University · Zhejiang Createlink Technology · Westlake University · DT Master Carbon · Hong Kong University of Science and Technology
Read the paperPlace an idea next to itCheck your own paper ↗
Cypher-RI uses reinforcement learning to jointly train schema selection and Cypher query generation for text-to-Cypher translation over graph databases.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
Translating natural language into Cypher queries for graph databases is difficult, and schema selection, which is critical for query generation in relational text-to-SQL, has been under-explored for graph databases.
Approach
Integrates schema selection into Cypher generation and trains the combined pipeline with reinforcement learning, drawing on insights from schema selection in text-to-SQL.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add schema selection to RL rollouts (ablation) | Cypher-RI (Qwen2.5-Coder-7B) · CypherBench test | EX: 58.35 -> 69.59 | Improved |
| add schema selection to RL rollouts (ablation) | Cypher-RI (Qwen2.5-Coder-7B) · CypherBench test | PSJS: 66.55 -> 75.21 | Improved |
| use RL instead of SFT on self-generated trajectories (ablation) | Cypher-RI (Qwen2.5-Coder-7B) · CypherBench test | EX: 44.34 -> 69.59 | Improved |
| use RL instead of SFT (ablation) | Qwen2.5-Coder-7B · CypherBench training data | EX: 85.66 -> 84.59 | Hurt |
| add schema selection to RL rollouts (ablation) | Cypher-RI · CypherBench training data | EX: 80.89 -> 84.59 | Hurt |
| train with Cypher-RI | Qwen2.5-Coder-7B · CypherBench | EX: 13.12 -> 69.59 | Improved |
| train with Cypher-RI | Qwen2.5-Coder-7B · CypherBench | executable %: 62.95 -> 99.28 | Improved |
| Cypher-RI (7B) vs GPT-4o | Cypher-RI · CypherBench | EX: 60.18 -> 69.59 | Improved |
| Cypher-RI (7B) vs GPT-4o | Cypher-RI · CypherBench | PSJS: 76.87 -> 75.21 | Hurt |
| Cypher-RI (7B) vs GPT-4o | Cypher-RI · Neo4j-Text2Cypher | EX: 31.73 -> 30.61 | No clear effect |
| Cypher-RI vs GPT-4o on Google-BLEU | Cypher-RI · Neo4j-Text2Cypher | Google-BLEU: 62.93 -> 60.13 | Hurt |
Open problems in test-time compute scaling
When does spending more compute at inference pay off, and how should it be spent?
- The gain depends on a verifier that is itself unreliable. · 36 papers state it
- Tested on math and code with checkable answers. · 28 papers state it
- Search and voting act on final answers, not steps. · 10 papers state it
Closest papers by meaning
- CypherSmith: Transforming Text-to-Cypher Generation for LLMs with Synthetic Data (ACL 2026 · similarity 0.88)
- Auto-Cypher: Improving LLMs on Cypher generation via LLM-supervised generation-verification framework (NAACL 2025 · similarity 0.87)
- MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQL (ICML 2026 · similarity 0.87)
- G1: Teaching LLMs to Reason on Graphs with Reinforcement Learning (NeurIPS 2025 · similarity 0.86)
- SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learning (NeurIPS 2025 · similarity 0.86)
- GraphRouter: A Graph-based Router for LLM Selections (ICLR 2025 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.