Residual TPP: A Unified Lightweight Approach for Event Stream Data Analysis

Ruoxin Yuan, Guanhua FangICML 2025

TL;DR

Residual TPP is a hybrid framework that decomposes event stream data into "easy" patterns captured by simple statistical models and "hard" residuals handled by neural networks. By focusing the heavy lifting of neural Temporal Point Processes (TPPs) only on the data points that simple models miss, this approach achieves state-of-the-art accuracy while being significantly more computationally efficient than pure neural approaches.

The Challenge with Event Stream Data

Event stream data—sequences of discrete events occurring at irregular intervals, such as financial trades, social media posts, or earthquakes—is notoriously difficult to model. Researchers typically use Temporal Point Processes (TPPs) to predict the "intensity" (the instantaneous rate) of these events.

The field currently faces a dilemma between two primary approaches:

  1. Classical Statistical Models (e.g., Hawkes Processes): These are fast and mathematically elegant but rely on rigid assumptions. They struggle with noise, outliers, and complex, long-term dependencies.
  2. Neural TPPs (e.g., RNN or Transformer-based): These are highly expressive and can capture complex patterns, but they are computationally expensive, prone to overfitting, and often act as "black boxes" that fail to leverage known statistical properties of the data.

Unlike standard time-series analysis, which uses techniques like Seasonal-Trend Decomposition to simplify data, TPPs have historically lacked a robust way to decompose event streams into simpler components.

The Residual TPP Framework

To bridge this gap, the authors introduce Residual TPP, a framework that operates in three distinct steps:

  1. Statistical Baseline: The model first fits a simple Hawkes process to the data. This captures the "self-exciting" nature of many event streams (e.g., where one event makes another more likely, like an aftershock following an earthquake).
  2. Residual Events Decomposition (RED): This is the core innovation. The authors propose a "weight function" based on an influence function that evaluates how well the Hawkes process fits each individual event. Events that are poorly explained by the baseline (such as outliers or complex patterns) are flagged as "residual events."
  3. Neural Refinement: An arbitrary neural TPP is then trained only on these residual events.
Residual TPP Framework

The final model relies on superposition: the total predicted intensity is a weighted combination of the simple statistical intensity and the neural residual intensity. Because RED is a "plug-and-play" module, it can be integrated with almost any existing neural TPP architecture.

Key Innovations

  • The "Residual" Analogy: The paper successfully ports the concept of "residual learning" and "data decomposition" from time-series and computer vision directly into the mathematical framework of point processes.
  • Efficiency through Sparsity: By filtering out events that are already well-explained by a simple Hawkes process, the neural network is left with a much smaller, more specific dataset to learn from. This makes the overall system remarkably lightweight.
  • Theoretical Unbiasedness: The authors provide a mathematical proof demonstrating that their specific weight function design ensures the model's gradients remain asymptotically unbiased. The decomposition does not "break" the underlying math of the point process.
  • Handling Outliers: The framework naturally treats unexpected events as residuals, allowing the neural component to specialize in modeling anomalies while the Hawkes process handles "normal" background behavior.

Experimental Results

The researchers evaluated their approach on a diverse mix of six real-world benchmarks (MIMIC-II, Retweet, Earthquake, Stack Overflow, Amazon, and Volcano) and three synthetic datasets.

Goodness-of-Fit Results

The Residual TPP framework demonstrated strong improvements across several key metrics:

  • Superior Fit: Residual TPP consistently achieved higher Log-Likelihood scores (a measure of goodness-of-fit) across all datasets compared to standalone neural TPPs. For example, on the MIMIC-II dataset, upgrading the standard RMTPP model to a "Residual" RMTPP improved the log-likelihood from -2.626 to -2.045.
  • Better Predictions: The framework lowered the Root Mean Squared Error (RMSE) for predicting the time of the next event and improved the accuracy of predicting the event type.
  • Computational Speedup: Because the neural component processes fewer events, training is drastically faster. On the Retweet dataset, the standard AttNHP model took 9,475 seconds to train, while the Residual AttNHP took only 7,195 seconds—yielding a more accurate model in significantly less time.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Hyperparameter Sensitivity: The RED weight function relies on tuning parameters that define the "transition points" for what constitutes a residual. While the model is robust, these still require per-dataset adjustment.
  • Baseline Simplicity: The current implementation uses a standard Hawkes process as the baseline. Using more sophisticated baselines that explicitly model periodicity (common in finance or neuroscience) could further improve performance.
  • Two-Stage Training: The approach currently requires fitting the baseline first and then the neural component. A fully end-to-end joint optimization might be a future area of exploration, though it could potentially sacrifice some of the framework's "lightweight" benefits.

Summary updated

BibTeX
@inproceedings{yuan2025residual,
  author = {Ruoxin Yuan and Guanhua Fang},
  title = {{Residual TPP: A Unified Lightweight Approach for Event Stream Data Analysis}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=AUkBFMtyUs},
}
Figure