ONSEP: A Novel Online Neural-Symbolic Framework for Event Prediction Based on Large Language Model
Xuanqing Yu, Wangtao Sun, Jingwei Li, Kang Liu, Chengbao Liu, Jie Tan
TL;DR
ONSEP tackles temporal knowledge graph forecasting by enabling test-time adaptation through dynamic causal rule mining (DCRM) and dual history augmented generation (DHAG). DCRM continuously updates a causal rule base while DHAG fuses short-term patterns with long-term causal trajectories via a long short-term bi-branch retriever and a hybrid inference strategy, enabling self-improvement without fine-tuning. Empirical results on ICEWS datasets show consistent Hit@1 gains over In-Context Learning across model scales (e.g., InternLM2-7B) and demonstrate inductive generalization of mined rules, indicating strong robustness to data drift. The approach highlights the potential of neural-symbolic methods to augment black-box LLMs for dynamic event prediction, with broad applicability to domains requiring rapid adaptation and interpretable causal reasoning.
Abstract
In the realm of event prediction, temporal knowledge graph forecasting (TKGF) stands as a pivotal technique. Previous approaches face the challenges of not utilizing experience during testing and relying on a single short-term history, which limits adaptation to evolving data. In this paper, we introduce the Online Neural-Symbolic Event Prediction (ONSEP) framework, which innovates by integrating dynamic causal rule mining (DCRM) and dual history augmented generation (DHAG). DCRM dynamically constructs causal rules from real-time data, allowing for swift adaptation to new causal relationships. In parallel, DHAG merges short-term and long-term historical contexts, leveraging a bi-branch approach to enrich event prediction. Our framework demonstrates notable performance enhancements across diverse datasets, with significant Hit@k (k=1,3,10) improvements, showcasing its ability to augment large language models (LLMs) for event prediction without necessitating extensive retraining. The ONSEP framework not only advances the field of TKGF but also underscores the potential of neural-symbolic approaches in adapting to dynamic data environments.
