Forward-Chaining Temporal Point Process

Chao Yang, Wendi Ren, Shuang Li

In high-stakes domains such as healthcare, finance, and urban planning, event sequence data is often sparse, incomplete, and highly privacy-sensitive. While generative models offer a promising avenue to synthesize data and fill these gaps, standard neural architectures frequently produce "hallucinated" sequences. These sequences may appear statistically realistic on the surface but often violate fundamental domain rules—for instance, a synthetic patient record might show a treatment being administered before a diagnosis is ever made.

To address this critical gap, researchers have introduced the Forward-Chaining Temporal Point Process (FC-TPP). This novel neuro-symbolic framework integrates explicit logical reasoning directly into the generative pipeline, ensuring that generated events are not only statistically likely but also logically consistent with strict domain constraints.

The Challenge with Standard Temporal Point Processes

Temporal Point Processes (TPPs) are the standard mathematical framework for modeling sequences of events in continuous time (e.g., predicting that Event A will happen at 2:00 PM and Event B at 2:15 PM). While deep learning has significantly enhanced the flexibility of TPPs, these neural variants operate as "black boxes" that learn correlations purely from raw historical data.

This purely data-driven approach introduces three major hurdles:

  1. Data Scarcity: Real-world sequences are often too short or incomplete for neural models to accurately learn the underlying "physics" or rules of the system.
  2. Constraint Adherence: Purely neural models lack an inherent understanding of logical rules (e.g., "Event A must strictly precede Event B").
  3. Controllability: It is notoriously difficult to force a standard neural TPP to generate sequences that adhere to a new, specific logical constraint or a "what-if" scenario.

The FC-TPP Approach: Reasoning Before Generation

The core innovation of FC-TPP is its reasoning-before-generation architecture. Instead of mapping a raw event history directly to the next predicted event, the model employs a four-step pipeline that grounds the generation process in symbolic logic:

  1. Recurrent Encoding: A standard GRU-style recurrent unit processes the raw event history and summarizes it into a continuous hidden state.
  2. Predicate Matching: This hidden state is projected into a "predicate space." Each dimension in this space represents a high-level symbolic concept or condition (e.g., "Is the patient's blood pressure currently abnormal?").
  3. Differentiable Forward Chaining: This is the framework's defining feature. The model applies a set of soft logical rules (e.g., If Predicate A and B are true, then Predicate C must be true) over multiple reasoning "hops." This forward-chaining operator completes the latent state by inferring unobserved conditions. Because the logical operators (AND/OR) are mathematically smoothed, the entire reasoning chain remains fully differentiable and can be trained end-to-end via backpropagation.
  4. TPP Decoder: Finally, a temporal decoder generates the timing and type of the next event, conditioned specifically on this rule-completed, logically sound symbolic state.

Notably, the framework can leverage Large Language Models (LLMs) to "bootstrap" the initial set of domain rules from textual data descriptions, which are subsequently refined during the model's training phase.

Experimental Validation

The researchers evaluated FC-TPP across a diverse array of benchmarks to test its robustness and versatility:

  • Synthetic Datasets (Syn@5, Syn@10): Controlled environments with known ground-truth logic.
  • LogiCity: A semi-synthetic urban simulation governed by strict first-order logic.
  • MIMIC-IV: Real-world clinical records of ICU patients, focusing on complex sepsis-related sequences.
  • EPIC-100 & IKEA ASM: Real-world human action sequences from kitchen activities and furniture assembly, respectively.

Key Findings and Performance

FC-TPP consistently outperformed state-of-the-art neural TPPs (such as GNTPP) and LLM-based sequence generators across multiple dimensions:

  • Logic as a Regularizer: Symbolic rules act as a powerful inductive bias. The paper demonstrates that FC-TPP achieves high performance with substantially fewer parameters than purely neural baselines.
  • Superior Realism and Rule Adherence: On the MIMIC-IV dataset, FC-TPP achieved an 11% gain in Discriminator Score (DS) and a 17% improvement in GPTScore (a metric evaluating sequence plausibility). In synthetic tests, FC-TPP drastically reduced the Rule Violation Rate (RV) compared to baselines that routinely ignored domain constraints.
  • Data Efficiency: The forward-chaining mechanism allows the model to "infer" latent system states even when specific signaling events are missing. As a result, training FC-TPP with only 40% of the MIMIC-IV data yielded performance comparable to baseline models trained on the entire dataset.
  • The "Scrambled Rules" Test: To verify that the model relies on actual reasoning rather than just structural complexity, the authors tested it with "scrambled" rules (retaining the structure but swapping semantic meanings). Performance plummeted, confirming that the semantic correctness of the logic drives the generation quality.

Limitations and Future Directions

While FC-TPP represents a significant step forward for controllable sequence generation, the authors note a few limitations. The model's performance is inherently tied to the quality of the initial rules; biased or incomplete rules provided by an LLM or human expert will degrade generation quality. Additionally, while the reasoning hops are relatively shallow (typically 4 to 5 hops), they introduce computational overhead compared to simpler MLP decoders. Finally, using LLMs to both generate rules and evaluate outputs (via GPTScore) introduces a potential circularity, though the authors mitigated this by utilizing different LLM families for each task.

Future work will focus on expanding the framework to handle more complex logic (beyond Horn clauses) and developing robust, unsupervised methods to discover rules directly from raw, noisy data without relying on human or LLM intervention.

Summary updated

BibTeX
@inproceedings{yang2026forward,
  author = {Chao Yang and Wendi Ren and Shuang Li},
  title = {{Forward-Chaining Temporal Point Process}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=8tjGapjQ5J},
}
Figure