arXiv:2610.31114cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31114

What Comes Next and Why: Interpretable Next-Event Prediction with Neuro-Symbolic Rules

Tim Nico Bauerschmidt, Isabel Valera, Jilles Vreeken

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In real-world applications, being able to explain why a prediction is made is often as important—if not more so—than achieving high accuracy. However, existing methods for sequential event prediction typically prioritize accuracy at the expense of interpretability. Neuro-symbolic approaches offer a promising direction to improve interpretability by learning symbolic rules, but extending them to next-event prediction is challenging due to the presence of temporal dependencies. We introduce RULES, a neuro-symbolic model that learns sequential rules directly from data, and combine it with a residual network to form RUNES (Rule Network for Event Sequences). RULES accurately recovers ground-truth rules from synthetic data and discovers compact, interpretable rule sets on real data. RUNES combines these rules additively with a residual network, achieving competitive accuracy while providing transparent access to active rules and how residuals adjust predictions. Our code is available at https://github.com/IamginE/runes-rules.

1 Introduction

Next-event prediction is the task of predicting the next categorical element in a temporally ordered sequence. Beyond next-token prediction in language models—where token positions can be seen as discrete event times—next-event prediction arises in many domains, including e-commerce (Nasir and Ezeife, 2023), healthcare (Pishgar et al., 2022; Ramirez-Alcocer et al., 2023), and process log analysis (Tama and Comuzzi, 2019; Bukhsh et al., 2021). Neural sequence models provide accurate predictions across domains and are thus increasingly adopted in practice. However, their internal representations are opaque, making predictions difficult to interpret or justify. This is especially problematic in safety- and regulation-sensitive contexts, where interpretability is key.

Symbolic approaches (Mannila et al., 1997; Fournier-Viger et al., 2012; Chen et al., 2021; Siji et al., 2026) instead focus on describing event dependencies using sequential rules. A sequential rule A⇒BA \Rightarrow B expresses that when the antecedent A has been observed, the consequent B is likely to occur later in the sequence. In e-commerce, such a rule might specify that customers who purchased a computer case and a computer processor are likely to subsequently purchase a motherboard or a power supply unit. However, existing rule-discovery methods focus on enumerating frequent or high-confidence rules without a principled way to integrate them into a unified predictive model.

∗^{*}Correspondence to bauerschmidt@cs.uni-saarland.de.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Neuro-symbolic models offer a promising approach to address the accuracy–interpretability tension. For instance, recent neuro-symbolic methods for tabular data use differentiable relaxations to learn interpretable and accurate prediction rules (Qiao et al., 2021; Wang et al., 2021; Walter et al., 2024; Xu et al., 2025). However, their reliance on binarized tabular inputs hinders applicability to sequential data, where temporal structure is central. Naively flattening sequences leads to sparse, high-dimensional representations, limiting both scalability and expressiveness.

To fill this gap, we define a class of sequential rules that incorporate temporal information and can be efficiently integrated into neural network layers for prediction. We then propose RULES, a neuro-symbolic model that learns these rules directly from data, and its extension RUNES, which combines RULES with a residual network. Training proceeds in two phases using a self-supervised next-event prediction objective. In the symbolic phase, we train RULES using temperature annealing (Jang et al., 2017) to enable gradient-based rule learning. After annealing, the layers of RULES represent symbolic conditions over events and their relative offsets to the predicted event, yielding meaningful binary representations for sequences. In the predictive phase, we obtain RUNES by training a residual network that corrects the predictions of the frozen RULES through additive logit residuals. This phase improves predictive performance while preserving rule-level interpretability.

We evaluate RULES and RUNES on synthetic and real-world datasets, showing that RULES recovers ground-truth generative rules on synthetic data and learns compact, meaningful rule sets on real data. The residual network enables RUNES to achieve competitive accuracy by capturing structure not explained by RULES. Importantly, RUNES allows tracing the impact of the residual network, which is mostly used to correct errors of RULES, maintaining interpretability when learned rules are reliable.