aiqbench analysis
DatalogBench establishes a rigorous, execution-grounded benchmark for evaluating large language models on text-to-Datalog synthesis, revealing that current systems struggle significantly with recursive reasoning and type consistency. The study highlights that while coding agents can reduce compile-time errors, semantic failures in complex decomposition tasks remain a critical barrier for reliable program analysis automation. This work provides essential metrics for researchers aiming to advance LLM capabilities in formal logic and software verification.
DatalogBench: Evaluating Large Language Models on Text-to-Datalog Synthesis
arXiv:2609.37233v1 Announce Type: cross Abstract: Datalog underpins reasoning tasks such as program analysis, but its programs are hard to write. Existing synthesizers automate this task but require users to state their intent as input-output examples. Large language models (LLMs) suggest a more natural route, text-to-Datalog synthesis from a natural-language question, yet how well they do so has not been systematically evaluated. We present DatalogBench, a benchmark of 136 text-to-Datalog synthesis tasks curated from existing Datalog-based artifacts. Synthesized programs are graded by execution on held-out inputs against an oracle validated by mutation analysis. Across six LLMs and four prompting configurations, exact match peaks at 68.4%, and relation descriptions or an input-output example have only modest, model-dependent effects. Under direct prompting, most failures occur at compile time, typically because a model invents auxiliary predicates that it never declares or types consistently. Two coding agents reach up to 83.8% and eliminate nearly all such failures, leaving mostly semantic errors concentrated in recursive tasks. DatalogBench thus identifies recursive reasoning and decomposition as open challenges for current LLMs and agents, and offers a reliable, execution-grounded measure of both.
Abstract:Datalog underpins reasoning tasks such as program analysis, but its programs are hard to write. Existing synthesizers automate this task but require users to state their intent as input-output examples. Large language models (LLMs) suggest a more natural route, text-to-Datalog synthesis from a natural-language question, yet how well they do so has not been systematically evaluated. We present DatalogBench, a benchmark of 136 text-to-Datalog synthesis tasks curated from existing Datalog-based artifacts. Synthesized programs are graded by execution on held-out inputs against an oracle validated by mutation analysis. Across six LLMs and four prompting configurations, exact match peaks at 68.4%, and relation descriptions or an input-output example have only modest, model-dependent effects. Under direct prompting, most failures occur at compile time, typically because a model invents auxiliary predicates that it never declares or types consistently. Two coding agents reach up to 83.8% and eliminate nearly all such failures, leaving mostly semantic errors concentrated in recursive tasks. DatalogBench thus identifies recursive reasoning and decomposition as open challenges for current LLMs and agents, and offers a reliable, execution-grounded measure of both.
Programming Languages (cs.PL); Artificial Intelligence (cs.AI)
arXiv:2609.37233 [cs.PL]
(or arXiv:2609.37233v1 [cs.PL] for this version)
https://doi.org/10.48550/arXiv.2609.37233 Focus to learn more arXiv-issued DOI via DataCite (pending registration)
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 275 words
Related coverage

[AINews] not much happened today
Latent Space · Sep 18, 2026
OpenBibleTTS: Large-Scale Speech Resources and TTS Models for Low-Resource Languages
arXiv · Jun 9, 2026
Links #3: 2026/06 Part 1
LessWrong · Jun 15, 2026
Text2GraphQuery-Bench: A Text to Graph Query Benchmark
arXiv · Aug 6, 2026