Temporal Logic Point Processes (TLPP) is a novel framework that integrates first-order temporal logic rules into continuous-time point processes. By allowing domain knowledge to guide the intensity functions of event models, TLPP achieves superior performance in "small data" regimes and provides high interpretability compared to "black-box" neural models.
The Challenge with Existing Models
Modeling discrete events in continuous time—such as hospital admissions or financial transactions—is typically handled by temporal point processes. While recent deep learning variants (e.g., neural Hawkes processes) offer flexibility, they suffer from two major drawbacks:
- Data Hunger: They require massive amounts of data to learn complex patterns from scratch.
- Lack of Interpretability: They act as "black boxes," making it difficult for domain experts (like clinicians) to understand why a specific prediction was made.
In many fields, experts already rely on a rich set of established rules (e.g., "if a patient has sepsis and their blood pressure drops, the risk of septic shock increases"). Standard models ignore this prior knowledge. TLPP bridges this gap by creating a model capable of "reading" these logic rules and using them to inform its predictions.
Fusing Logic with Point Processes
The core innovation of TLPP is the fusion of First-Order Temporal Logic with the intensity functions of point processes. This is achieved through several key technical advancements:
- Two-State Predicates: Traditional point processes only model instantaneous events. TLPP expands this by modeling events with duration (e.g., a patient being on a specific drug for several days). It treats these durations as two-state stochastic processes, transitioning from 0 to 1 (start) and 1 to 0 (end).
- Softened Temporal Constraints: Instead of relying on "hard" logic where a rule is strictly 100% true or false, TLPP uses softened versions of temporal relations like Before, After, or Overlaps. This flexibility allows the model to handle noisy or imprecisely recorded timestamps gracefully.
- Intensity Guided by Logic: The rate at which an event occurs (the intensity $\lambda^*$) is modeled as an exponential function of weighted logic rules. Each rule acts as a "template" to gather evidence from the event history.
Key Insights and Performance
The authors evaluated TLPP across synthetic data, healthcare records (MIMIC-III), and credit card fraud logs (UCSD-FICO). The inclusion of logic rules yielded several major advantages:
- Logic as a Regularizer: In small datasets, the logic rules act as a powerful prior that prevents the model from overfitting to noise.
- Interpretable Weights: The learned weights ($w_f$) for each logic rule represent the "confidence" or real-world importance of that rule. For example, in the MIMIC-III sepsis study, the model successfully identified which specific antibiotics were most effective for survival, even if they were rarely administered.
- Knowledge Transfer: Because the model learns weights for general logic rules rather than just raw data correlations, it can transfer knowledge across domains. Weights learned on one patient population (e.g., young adults) can be used to "warm-start" a model for a different demographic (e.g., seniors).
Empirical Results
- Survival Prediction: On the MIMIC-III dataset, TLPP consistently outperformed RNNs, LSTMs, and Bayesian Networks. With only 50 training samples, TLPP achieved a survival prediction accuracy of 0.584, significantly higher than an LSTM's 0.405.
- Time-to-Event Accuracy: When predicting when a patient might die, TLPP achieved a Mean Absolute Error (MAE) of 0.233 days, nearly halving the error of the state-of-the-art RMTPP model (0.464 days) in small-data scenarios.
- Fraud Detection: TLPP achieved a detection accuracy of 0.762, outperforming LSTMs and RNNs, which typically struggle with the highly imbalanced nature of fraud data.
Limitations and Future Work
While powerful, the authors note a few areas for future improvement. First, the likelihood function involves numerical integration; while manageable for one-dimensional time, this could become a computational bottleneck for extremely large-scale systems. Second, the current model assumes all relevant predicates are observed. Introducing latent predicates (unobserved factors) could make the model even more flexible for capturing complex, real-world phenomena.
Summary updated