Natural-Language-to-GPML: Dual-Oracle Witness Synthesis, Orthogonal Subspace Merging, and Live Schema-Constrained Decoding for ISO/IEC 39075 Graph Queries
Abstract
ISO/IEC 39075:2024 (GQL) and SQL/PGQ standardize sixteen Graph Pattern Matching Language (GPML) path modes pairing restrictors (WALK, TRAIL, ACYCLIC, SIMPLE) with endpoint-partitioned selectors (ALL, ANY, ALL SHORTEST, ANY SHORTEST), twelve of which yield distinct answers on cyclic multigraphs. Yet public Text-to-Cypher datasets omit GPML modes, mix unexecuted outputs or proprietary procedures, and test acyclic graphs where omitting restrictors accidentally returns identical rows. We introduce Natural-Language-to-GPML for samyama-graph using 312.1M- and 1,065.1M-parameter open-weight models trained with 0.0% Neo4j-scraped or non-commercial data. First, we release Samyama-GPML-Bench-100 (v2) and Samyama-RealKG-NLQ-Bench-160, dual-oracle benchmarks co-verified against the SIGMOD 2022 GPML reference evaluator and samyama-graph (100.0% canonical agreement; 0.0% pass rate across 260 foils; 0 SHA-256 leaks across 913 tasks). Second, per-row infinite-schema synthesis, quarter-epoch NLQPipeline slow-fitting (95.83% peak at 1.25 epochs), Jacobi SVD KnOTS merging, Step-GRPO, and dialect-shift AdvKD () lift unconstrained GPML-Bench-50 from 0.0% to 72.0% on Shoonya-Cypher-1.3B-v2.4 (64.0% on GPML-Bench-100 v2, 36.88% on RealKG-NLQ-160, 20.0% on Cypher-Bench-100, 24/24 ideal layers) and 54.0% on 350M-v1.5 (33.46% MBPP-Sanitized). Third, Schema-FSM v5.8 and MVCC verification solve 100.0% (36/36) of Samyama-InProc-36 in 390.3 MiB INT8 RSS at 0.0% leak, while shoonya-nlq-server reaches 80.0% on unseen NLQPipeline GPML and 35.63% on RealKG-NLQ-160.
Create a lesson
Metadata
- Categories
- cs.DB, cs.LG
- Comments
- 15 pages, 4 figures, 3 tables. Companion to arXiv:2611.28502 and arXiv:2609.23032. Open weights (Apache-2.0), GPML/RealKG benchmarks, and spectral certificates: https://huggingface.co/VaidhyaMegha/Shoonya
Related papers
Shoonya: Zero-Socket In-Process Small Language Models for Graph Databases with Schema-Epoch KV Caching, Live Catalog Logit Masking, and Verifier-Advantage Distillation
Shared title terminologycs.DBMadhulatha Mandarapu, Sandeep Kunkunuru
Shape-Aware Three-Way Merge for RDF Knowledge Graphs: The schema defines the conflict: an implementation and evaluation
Shared title terminologycs.DBSteve Brown
Mixed-Type Relational Database Synthesis with Graph-Prompted Language Model
Shared title terminologycs.DBYuxiang Sun, Mengshi Chen, Jianwei Wang et al.
Adaptive-Elbow Graph Traversal for Schema Retrieval in Text-to-SQL
Shared title terminologycs.DBFabio Picariello, Salvatore Cipolla, Susanna Bonura et al.
FlinkEval: A Synthetic Corpus for Evaluating Natural Language Interfaces to Streaming SQL
Shared title terminologycs.DBAlfio Massimiliano Gliozzo, Nandana Mihindukulasooriya, Gaetano Rossiello et al.
ZeroGR: Filtering-First Constrained Decoding for Generative Recommendation
Shared title terminologycs.DBXiangrui Yang, Jiawei Yang, Liang Zeng et al.