Reinforcement Logic Rule Learning for Temporal Point Processes

Chao Yang, Lu Wang, Kun Gao, Shuang Li

TL;DR

This paper introduces an end-to-end framework that learns interpretable temporal logic rules directly from continuous-time event sequences using Temporal Point Processes (TPPs). By framing rule discovery as a bi-level optimization problem and solving the combinatorial subproblem with a risk-seeking reinforcement learning (RL) policy, the method discovers human-readable, predictive logic rules without relying on intractable brute-force enumeration.

What Problem Does This Paper Address?

Many high-stakes domains, such as clinical healthcare and finance, rely on irregular, continuous-time event data. While neural temporal point processes (such as RMTPP and Transformer Hawkes processes) effectively predict future event timing, they are black boxes that cannot explain why an event occurs.

Temporal Logic Point Processes (TLPPs) incorporate human-interpretable logic rules (e.g., "If low blood pressure occurs before high blood urea nitrogen, the likelihood of low urine output increases"). However, learning these rules automatically has remained a major bottleneck: existing approaches either require rules to be hand-crafted in advance or rely on combinatorial enumeration (e.g., branch-and-bound or column generation heuristic searches), which fail when rules are long or complex.

Methods

The authors formulate rule discovery as a regularized maximum likelihood estimation (MLE) problem that alternates between two stages:

  1. Restricted Master Problem (Rule Evaluator): Given a current subset of candidate rules, the algorithm optimizes their continuous weights and base intensity. Because TLPP models intensity as a log-linear function of rule-derived features, this master problem is convex and solved via standard gradient descent.
  2. Subproblem (Rule Generator): Proposes a new temporal logic rule that maximizes the likelihood gain (derived via Karush-Kuhn-Tucker optimality and complementary slackness conditions).

Rather than enumerating combinatorial candidates, the subproblem is framed as an RL environment:

  • Autoregressive Token Generation: An LSTM generates rule tokens in a pre-order traversal sequence from predefined libraries of property predicates and temporal relations (Before, After, Equal, None). Dynamic masking ensures all generated token sequences adhere to proper logic syntax.
  • Risk-Seeking Policy Gradient: Because rule discovery seeks the single best-fitting rule rather than high average performance, the authors optimize the $(1 - \epsilon)$-quantile reward rather than the standard expected reward.
  • Policy Transferability: Because the neural search policy encodes how to navigate the candidate rule space, trained policies can be warm-started and transferred to new tasks.
       ┌────────────────────────┐
       │ Restricted Master Prob │ ◄── Add best rule
       │   (Convex Rule Weights)│
       └──────────┬─────────────┘
                  │ Gradient / Dual Signals
                  ▼
       ┌────────────────────────┐
       │ Neural Rule Generator  │
       │ (LSTM + Risk-Seeking RL│
       └────────────────────────┘

Datasets

  • Synthetic Event Sequences: 6 groups of synthetic data with varying ground-truth rule lengths (up to 8 body predicates), distinct structures, and predicate libraries ranging from 8 to 24 predicates (testing robustness to background noise).
  • MIMIC-III Clinical Database: 2,023 ICU sepsis patient sequences (average 79 events across 392 hours) with 63 predicates (medications, fluid inputs, and vital signs) predicting two key target events: LowUrine (sign of septic shock) and NormalUrine.
  • Eye Fixation Dataset: 2,966 choice trials across 30 shoppers evaluating products by gaze fixations to explain how viewing habits and perceived value drive final purchases.

Key Insights and Ideas

  • Turning Combinatorial Search Differentiable: Instead of treating rule discovery as discrete branch-and-price enumeration, framing search as sequential token generation allows policy gradient methods to explore exponentially large search spaces efficiently.
  • Optimizing for the Best, Not the Average: Standard policy gradients prioritize average episode performance, which hurts discovery problems where you only care about finding extreme high-performing candidates. The risk-seeking formulation optimizes top-percentile outcomes, successfully uncovering intricate 8-predicate rules where standard RL fails.
  • Knowledge Reuse Across Tasks: Unlike heuristic search methods that must restart from scratch on every run, the neural generator retains exploration patterns in its weights, dramatically accelerating convergence on downstream datasets.

Key Results

  • Higher Accuracy in Event Timing: On MIMIC-III, the proposed model outperformed both black-box neural baselines and rule-based methods in event time prediction (MAE in hours):
  • LowUrine: 1.622 vs. 1.658 (Transformer Hawkes), 1.887 (TELLER), and 1.989 (RMTPP).
  • NormalUrine: 1.305 vs. 1.532 (TELLER) and 1.759 (Transformer Hawkes).
  • Ground-Truth Rule Recovery: On synthetic benchmarks with up to 24 distractor predicates, the model achieved near-perfect Jaccard similarity scores (1.0 in most cases) and discovered rules substantially faster than heuristic enumeration (TELLER) and brute-force methods.
  • Clinical Interpretability: ICU doctors verified that the mined rules aligned with sepsis pathology (e.g., linking specific lab markers like systolic BP, blood urea nitrogen, and central venous pressure with acute kidney injury/low urine output).

Limitations and Future Work

  • Memory Reset Heuristic: When rules in a dataset are completely dissimilar, keeping LSTM policy memory across subproblem iterations slowed down convergence; knowing when to reset versus fine-tune the generator still requires empirical judgment or prior domain knowledge.
  • Scalability to Massive Predicate Spaces: While testing up to 24 predicates showed robust performance, Jaccard scores degrade slightly as distractors grow, and extreme predicate counts (e.g., thousands of medical codes) remain challenging.
  • Manual Human Revision: While expert clinical feedback was integrated post-hoc into the master problem, future work could integrate interactive clinician feedback loops directly into the subproblem reward structure.

Summary updated

BibTeX
@inproceedings{yang2023reinforcement,
  author = {Chao Yang and Lu Wang and Kun Gao and Shuang Li},
  title = {{Reinforcement Logic Rule Learning for Temporal Point Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=ynD_LAMwar2},
}
Figure