Cypher-RI: Reinforcement Learning for Integrating Schema Selection into Cypher Generation

Hanchen Su, Xuyuan Li, Yan Zhou, Zhuoyi Lu, Ziwei Chai +3 more
1/1/2025
rl

No confident code implementation found for this paper.

Abstract

The increasing utilization of graph databases across various fields stems from their capacity to represent intricate interconnections. Nonetheless, exploiting the full capabilities of graph databases continues to be a significant hurdle, largely because of the inherent difficulty in translating natural language into Cypher.

Show full abstract

Recognizing the critical role of schema selection in database query generation and drawing in-spiration from recent progress in reasoning-augmented approaches trained through reinforcement learning to enhance inference capabilities and generalization, we introduce Cypher-RI, a specialized framework for the Text-to-Cypher task. Distinct from conventional approaches, our methodology seamlessly integrates schema selection within the Cypher generation pipeline, conceptualizing it as a critical element in the reasoning process. The schema selection mechanism is guided by textual context, with its outcomes recursively shaping subsequent inference processes. Impressively, our 7B-parameter model, trained through this RL paradigm, demonstrates superior performance compared to baselines, exhibiting a 9.41% accuracy improvement over GPT-4o on CypherBench. These results underscore the effectiveness of our proposed reinforcement learning framework, which integrates schema selection to enhance both the accuracy and reasoning capabilities in Text-to-Cypher tasks.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{su2025cypherri,
  title  = {Cypher-RI: Reinforcement Learning for Integrating Schema Selection into Cypher Generation},
  author = {Hanchen Su and Xuyuan Li and Yan Zhou and Zhuoyi Lu and Ziwei Chai and Hao-Zheng Wang and Chen Zhang and Yang Yang},
  year   = {2025},
  doi    = {10.52202/085713-3349},
  url    = {https://doi.org/10.52202/085713-3349},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/254f765da6cde1dee0681e0fd2558857a8cdb870.svg)](https://codeofpaper.com/paper/254f765da6cde1dee0681e0fd2558857a8cdb870)

Discussion