atlas

Research map / Large language models / Retrieval and knowledge

Optimised Storage for Datalog Reasoning

AAAI 2024 · Large language models › Retrieval and knowledge · approach: Knowledge graph reasoning with LLMs · 1 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.

Proposes a multi-scheme framework that integrates compressed storage (interval-based transitive closure and union tables) with semi-naive materialisation, enabling Datalog materialisation that fits in memory where standard approaches fail.

Problem

Datalog materialisation stores all derived facts, which becomes infeasible in memory for transitive and union rules over large fact sets (e.g., DBpedia broader relation transitive closure with 8.5 billion facts).

Approach

A general framework separating storage from reasoning so that specialised storage schemes (interval-tree-based transitive closure with incremental insertion support, and virtual union tables) can be plugged into semi-naive/modular materialisation, with schemes exposing schedule, derive and merge functions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use TC and Union storage schemes with a plain tableMultiScheme reasoning · DBpedia DB25%time (s): 33.42 -> 31.39No clear effect
Use TC and Union storage schemes with a plain tableMultiScheme reasoning · DBpedia DB50%time (s): 12,879.90 -> 479.35Helped
Use TC and Union storage schemes with a plain tableMultiScheme reasoning · DBpedia DB50%peak memory (GB): 30.8 -> 8.7Helped
Use TC and Union storage schemes with a plain tableMultiScheme reasoning · DAG-Rtime (s): 3,973.21 -> 26.45Helped
Use TC and Union storage schemes with a plain tableMultiScheme reasoning · Relationspeak memory (GB): 11.0 -> 4.9Helped
Store transitive closure in the TC storage schemeDBpedia broader materialisation · DBpedia broader, 159,561 ▷ 29,086,642time (s): 2,845.08 -> 8.44Helped
Store transitive closure in the TC storage schemeDBpedia broader materialisation · DBpedia broader, 159,561 ▷ 29,086,642peak memory (MB): 1,480.58 -> 249.64Helped
Store transitive closure in the TC storage schemeDBpedia broader materialisation · DBpedia broader, 1,426,588 ▷ 1,949,306,188time (s): >38h -> 443.80Helped
Store transitive closure in the TC storage schemeDBpedia broader materialisation · DBpedia broader, 1,426,588 ▷ 1,949,306,188peak memory (MB): 97,940.15 -> 2,447.91Helped
Use TC storage scheme instead of plain fact storageMultiScheme query answering · DBpedia 50%, TC query Q0 (140M)query time (s): 8.38 -> 22.43Hurt
Use Union storage scheme instead of plain fact storageMultiScheme query answering · DBpedia 50%, Union query Q4 (337)query time (s): 0.03 -> 0.03No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: DBpedia SKOS broader relation Relations Ontology synthetic dataset DAG-R synthetic benchmark

Benchmarks: DBpedia DAG-R Relations

Metrics: materialisation time (s) peak memory (GB/MB) static memory query answering time (s)

Baselines: Standard semi-naive materialisation TC Module (modular seminaive)

Builds on: semi-naive evaluation interval-based transitive closure compression modular materialisation (TC module)

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