paper-with-me

Papers

Extending Confidence-Based Text2Cypher with Grammar and Schema Aware Filtering

2026-05-11 · Makbule Gulcin Ozsoy arxiv

Large language models (LLMs) allow users to query databases using natural language by translating questions into executable queries. Despite strong progress on tasks such as Text2SQL, Text2SPARQL, and Text2Cypher, most existing methods focus on better prompting, fine-tuning, or iterative refinement. However, they often do not explicitly enforce structural constraints, such as syntactic validity and schema consistency. This can reduce reliability, since generated queries must satisfy both syntax rules and database schema constraints to be executable. In this work, we study how structured constraints can be used in test-time inference for Text2Cypher. We focus on post-generation validation to improve query correctness. We extend a confidence-based inference framework with a sequential filtering process that combines confidence scoring, grammar validation, and schema constraints before final aggregation. This lets us analyze how different constraint types affect generated queries. Our experiments with two instruction-tuned models show that grammar-based filtering improves syntactic validity. Schema-aware filtering further improves execution quality by enforcing consistency with the database structure. However, stronger filtering also increases the number of empty predictions and reduces execution coverage. Overall, we show that adding simple structural checks at test time improves the reliability of Text2Cypher generation, and we provide a clearer view of how syntax and schema constraints contribute differently.

📄 PDF Abstract BibTeX arXiv:2605.10318

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Enhancing Text2Cypher with Schema Filtering

2025-05-08 · Makbule Gulcin Ozsoy

Knowledge graphs represent complex data using nodes, relationships, and properties. Cypher, a powerful query language for graph databases, enables efficient modeling and querying. Recent advancements in large language mo…

Knowledge Graphs

PIPE-Cypher: Automatic Enterprise Benchmark Generation for Text-to-Cypher Systems

2026-06-07 · Suraj Ranganath, Anish Raghavendra arxiv

Enterprise property graphs vary widely in schema structure, internal terminology, domain assumptions, governance constraints, and user interaction patterns. A deployment-relevant Text2Cypher benchmark therefore reflects …

KG2Cypher: Data-Centric Pipeline for Building Enterprise Text-to-Cypher Systems

2026-06-26 · Minjun Choi, Yerin Kim, Junghyuk Seo, Sujin Mo 외 arxiv

Enterprise Knowledge Graphs (KGs) are increasingly used for internal search, analytics, and question answering, but building natural-language interfaces for private enterprise graphs remains costly. We present KG2Cypher,…

Question AnsweringKnowledge Graphs

SpCQL: A Semantic Parsing Dataset for Converting Natural Language into Cypher

2022-10-17 · CIKM 2022 10 · Aibo Guo, Xinyi Li, Guanchen Xiao, Zhen Tan 외

The Neo4j query language Cypher enables efficient querying for graphs and has become the most popular graph database language. Due to its complexities, semantic parsing (similar to Text-to-SQL) that translates natural la…

Natural Language QueriesSemantic Parsingtext-to-CypherText to SQL+1

Text2Cypher: Bridging Natural Language and Graph Databases

2024-12-13 · Makbule Gulcin Ozsoy, Leila Messallem, Jon Besga, Gianandrea Minneci

Knowledge graphs use nodes, relationships, and properties to represent arbitrarily complex data. When stored in a graph database, the Cypher query language enables efficient modeling and querying of knowledge graphs. How…

Knowledge GraphsNatural Language Queries