Search arXiv⌕ Search

arXiv · 2611.39540

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 ($β_{\mathrm{anc}}=0.0$) 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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Madhulatha Mandarapu, Sandeep Kunkunuru. 2026-11-29. Natural-Language-to-GPML: Dual-Oracle Witness Synthesis, Orthogonal Subspace Merging, and Live Schema-Constrained Decoding for ISO/IEC 39075 Graph Queries. https://searcharxiv.org/abs/2611.39540

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Realistic Performance-Aware Query Generation

Database research and development rely heavily on representative workloads for benchmarking, regression testing, and system evaluation. However, acquiring real-world SQL queries is notoriously difficult due to strict privacy constraints. While cloud database vendors have begun releasing anonymized performance traces, these traces typically expose only execution statistics rather than executable SQL queries, which limits their usefulness for end-to-end evaluation. Existing methods either operate at coarse granularity or fail to generate runnable workloads that reproduce per-query execution behavior with both high fidelity and efficiency. To address this gap, we propose ResQ, a fine-grained workload synthesis system that generates executable SQL workloads matching the per-query execution targets and operator composition of production traces. ResQ decomposes trace-driven synthesis into bounded query-graph construction and predicate instantiation, while using repetition-aware reuse and lightweight local models to make search practical and scalable. Across public cloud traces and a new industrial trace, ResQ substantially outperforms prior workload-generation baselines, reducing the 99th-percentile q-error by geometric-mean factors of 9.0x for CPU time and 120.4x for scanned bytes relative to the baseline method, while also cutting prompt-token usage and end-to-end generation time by 96.0% and 96.3%, respectively.

cs.DB↗

GenDB-V: AI-Generated and Formally Verified Database Systems

For over 50 years, the database community has developed many successful engines to answer two questions: how can database systems run faster, and how to ensure their correctness? Our experience shows that performance depends on hardware and workloads. As both change over time, we repeatedly redesign and rebuild database systems, a time-consuming and expensive process. Correctness remains another challenge: recent studies continue to uncover wrong-answer bugs even in mature engines, despite years of development and testing. We present GenDB-V, a system that enables AI agents to synthesize database engines specialized to hardware and workloads for performance, and formally verified for correctness. It supports specialized implementations of SQL templates and general-purpose engines. First, we develop SQLSpec to formalize SQL semantics and deterministically construct fixed, implementation-agnostic synthesis targets. Second, we enable joint synthesis of fast code and formal proofs through storage-execution co-optimization, performance-first exploration, three-layer modular proofs that bridge low-level execution to SQLSpec semantics, and robust code synthesis that generalizes verified code beyond the given database state. Third, we verify the synthesized code and proofs against the fixed synthesis targets in an isolated pipeline, proving SQL correctness and program safety. We evaluate GenDB-V on TPC-H and SEC-EDGAR. On TPC-H SF100, the robust verified code is 5.69x faster than DuckDB and 2.22x faster than Umbra, and it remains the fastest system on attack databases built by the agents and on held-out databases built independently. Joint storage and query optimization raises the speedups to 22.0-61.3x, and a verified general-purpose engine outperforms both systems by 1.09-5.02x. Our experiments expose incorrect answers in both a human-built engine and a testing-based LLM synthesis method.

cs.DB↗

Read Boundaries in Agent Memory: Consistency, Completeness, and Repair

Agent-memory services assemble evidence through several reads across connections or stores. An update between those reads can pair an assertion with source content from another revision. We protect the complete recall, including enrichment and materialization, and evaluate the resulting evidence and service behavior in Hindsight and Cognee. A 600-run Cognee study compares unprotected recall, a repeated recall, a read/write lock, and optimistic epoch validation under default incremental updates and full rebuilds. At approximately 20 recalls/s, unprotected default updates yield 199 conflicting responses among 12,010 scheduled recalls with spaced writes and 284 among 12,010 with bursts. The lock and epoch validation each deliver complete, compatible evidence for all 24,020 default-update recalls. With default bursts, epoch validation reduces update p95 by 109 ms while adding 290 ms to recall p95 relative to the lock. A separate 160-run incremental-failure study distinguishes mixed revisions from complete new derived content whose canonical source record remains old. Both protected policies refuse service after failure; the first default retry restores all 80 fault runs through native full-rebuild fallback. In Hindsight, a shared PostgreSQL snapshot removes the mismatch in ten controlled pairs, with recall p95 rising from 19 ms to 29 ms. These results identify the read boundary needed for coherent evidence and the publication and recovery conditions governing service after an update fails.

cs.DB↗