atlas

Research map / Large language models / Agents, code and math

Goal-Driven Reasoning in DatalogMTL with Magic Sets

AAAI 2025 · Large language models › Agents, code and math · approach: LLM planning with symbolic tools · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Extends magic set rewriting to DatalogMTL, producing goal-driven rewritten programs that are then reasoned over with a finite-representation (MeTeoR-style) materialisation, and shows large speedups on LUBM_t, iTemporal and meteorological benchmarks.

Problem

Reasoning in DatalogMTL is computationally very expensive, and bottom-up materialisation derives many temporal facts irrelevant to a specific query, which can exhaust memory.

Approach

A temporal variant of magic set rewriting that adds diamond operators to magic-predicate body atoms and boxminus/boxplus head adjustments (via MagicHeadAtoms) so that query-relevant time points are preserved; the query interval is replaced by (-inf,+inf) so the rewriting is query-time independent, and termination is retained for bounded programs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply temporal magic-set rewritingDatalogMTL reasoning on LUBM_t · LUBM_t, 10^6 facts, all queriesquery speedup: 1.95 times speedup at minimumHelped
Apply temporal magic-set rewritingDatalogMTL reasoning on LUBM_t · LUBM_t, 10^6 facts, entailed queriesquery speedup: more than 3.46 times; more than 112 times; 2,110 timesHelped
Apply temporal magic-set rewritingDatalogMTL reasoning on LUBM_t · LUBM_t, 10^6 facts, not-entailed queriesquery speedup: more than 12 times; more than 128 times; more than 9,912 times; 111,157 timesHelped
Apply temporal magic-set rewritingDatalogMTL reasoning on meteorological data · Meteorological data, ten yearsquery speedup: 1.58 times; more than 3.54 times; more than 1 million timesHelped
Apply temporal magic-set rewritingDatalogMTL reasoning on iTemporal · iTemporal, 10^5 factsquery speedup: more than 69,000 times; some over a million timesHelped
Apply temporal magic-set rewritingDatalogMTL canonical-model computation · LUBM_t, dataset scalabilitymaterialisation timeHelped
Apply temporal magic-set rewritingDatalogMTL canonical-model computation · iTemporal, dataset scalabilitymaterialisation timeHelped

Limitations

Experimental setup

Datasets: LUBM_t iTemporal meteorological data

Benchmarks: LUBM_t iTemporal meteorological

Metrics: query answering time speedup ratio scalability (materialisation time)

Baselines: MeTeoR

Builds on: magic sets DatalogMTL MeTeoR

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy