arXiv

CYGNET: Cypher Gate for Neural Execution Triage and Cost Containment

Title: CYGNET: A Cypher Gate for Neural Execution Triage and Cost Containment

Abstract:

When language models operate as agents over knowledge graphs, they frequently generate Cypher queries that suffer from structural failures—causing database crashes—or semantic errors, where queries execute but yield incorrect results. To address this, we introduce a pre-execution gate positioned between query generation and a production Neo4j database. This gate ensures structural integrity via a four-backend validation chain, culminating in execution against a mirror graph with a median latency of just 5.6 ms. Queries that fail structural checks are directed to a corrector, which leverages a language model to iteratively process structured error feedback.

Evaluated across seven CypherBench schemas (comprising 2,348 questions from ACL 2025), the pipeline preserves generation accuracy for every model tested, demonstrating its efficacy as a reliable defensive layer. The corrector component achieves success rates ranging from 81% to 95% across five different models, with a mean performance of 89%. Furthermore, testing on a template-generated corpus spanning nine schemas revealed that the gate successfully identifies 100% of parse errors, constraint violations, and schema-reference errors in path queries with labeled endpoints, recording zero false positives across 1,135 queries. Notably, property sibling-swaps—where the substituted name remains valid for the target label—score 0%, highlighting the formal threshold where structural validation concludes and semantic validation must take over. Additionally, a planner-based cost gate is employed to detect catastrophic plan structures prior to execution.


Source: arXiv Generated at: 2026-06-04 00:00:00 UTC

Related Articles

Exelon CEO Sees Daily Cybersecurity Threats
Bloomberg

Exelon CEO Sees Daily Cybersecurity Threats

Exelon’s CEO warns of daily cybersecurity threats, highlighting persistent risks to the energy giant.

TechCrunch

Ramp raises $750M at $44B valuation as investors hunger for fintechs with an AI story

Ramp secured $750M at a $44B valuation, driven by AI integration and $1.5B+ revenue. The fintech firm now serves 70,000 ...

TechCrunch

Is Silicon Valley ready to put robots in people’s homes? Hello Robot is.

Hello Robot’s Stretch avoids Silicon Valley hype, focusing on practical home deployment to gather essential real-world d...

Canada to Provide Funding, Buy Equity Stakes in AI Startups
Bloomberg

Canada to Provide Funding, Buy Equity Stakes in AI Startups

Canada will fund and buy equity stakes in AI startups to boost the sector. This investment aims to strengthen the nation...

TechCrunch

Chinese spies are using LinkedIn to lure Westerners into sharing sensitive information

A joint Western security alert warns that Chinese spies use LinkedIn to impersonate recruiters and extract sensitive dat...

Peter Thiel’s Family Office Pays Record Rent for Top Miami Tower
Bloomberg

Peter Thiel’s Family Office Pays Record Rent for Top Miami Tower

Peter Thiel’s family office set a record rent for a Miami tower lease. This deal establishes a new benchmark for the cit...