Goal-Driven Reasoning in DatalogMTL with Magic Sets

Authors

  • Shaoyu Wang School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University, China
  • Kaiyue Zhao School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University, China
  • Dongliang Wei School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University, China
  • Przemysław Andrzej Wałęga Department of Computer Science, University of Oxford, UK School of Electronic Engineering and Computer Science, Queen Mary University of London, UK
  • Dingmin Wang Department of Computer Science, University of Oxford, UK
  • Hongming Cai School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University, China
  • Pan Hu School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University, China

DOI:

https://doi.org/10.1609/aaai.v39i14.33668

Abstract

DatalogMTL is a powerful rule-based language for temporal reasoning. Due to its high expressive power and flexible modeling capabilities, it is suitable for a wide range of applications, including tasks from industrial and financial sectors. However, due its high computational complexity, practical reasoning in DatalogMTL is highly challenging. To address this difficulty, we introduce a new reasoning method for DatalogMTL which exploits the magic sets technique—a rewriting approach developed for (non-temporal) Datalog to simulate top-down evaluation with bottom-up reasoning. We have implemented this approach and evaluated it on publicly available benchmarks, showing that the proposed approach significantly and consistently outperformed state-of-the-art reasoning techniques.

Downloads

Published

2025-04-11

How to Cite

Wang, S., Zhao, K., Wei, D., Wałęga, P. A., Wang, D., Cai, H., & Hu, P. (2025). Goal-Driven Reasoning in DatalogMTL with Magic Sets. Proceedings of the AAAI Conference on Artificial Intelligence, 39(14), 15203–15211. https://doi.org/10.1609/aaai.v39i14.33668

Issue

Section

AAAI Technical Track on Knowledge Representation and Reasoning