HyperHawkes: Hypernetwork based Neural Temporal Point Process

Manisha Dubey, P. K. Srijith, Maunendra Sankar DesarkararXiv 2022

TL;DR

HyperHawkes introduces hypernetworks to Neural Temporal Point Processes (NHPs) to solve two major bottlenecks in time-to-event modeling: generalizing to entirely unseen event sequences (zero-shot learning) and adapting to streaming data without forgetting the past (continual learning). By using metadata descriptors to generate sequence-specific network weights, HyperHawkes achieves superior predictive accuracy on unseen sequences and effectively mitigates catastrophic forgetting.

What Problem Does This Paper Address?

From predicting earthquake aftershocks and financial market fluctuations to tracking user activity logs on social media, time-to-event data is everywhere. Temporal Point Processes (TPPs), particularly the self-exciting Hawkes process, provide the mathematical foundation for modeling these asynchronous event sequences over continuous time. Recent advances have replaced classical parametric Hawkes processes with Neural Hawkes Processes (NHPs), which leverage recurrent neural networks (RNNs) to capture complex, non-linear historical dependencies.

Despite their success, standard NHPs face two critical real-world limitations:

  1. The Zero-Shot Challenge: NHPs require massive amounts of data for each specific entity or sequence they model. If a new entity appears with little to no historical data (e.g., a newly registered user or a fresh stock), standard models cannot make accurate predictions.
  2. The Continual Learning Challenge: Real-world data arrives sequentially in continuous streams. When an NHP is fine-tuned on new sequences, it suffers from catastrophic forgetting—rapidly losing the ability to predict events for previously learned sequences.

The authors address these gaps by asking: Can we build a neural Hawkes process that generalizes to unseen sequences using only high-level metadata, and can it learn new sequences continuously without forgetting the past?

Methods

The core innovation of the paper is HyperHawkes, which integrates hypernetworks (meta-networks that generate weights for another network) with a base NHP model.

The Base Model

The authors adopt a fully neural network-based Hawkes process where an RNN processes past inter-arrival times to generate a hidden representation ($h_j^i$). This representation, along with the elapsed time, is passed to a Feed-Forward Neural Network (FNN) to compute the cumulative hazard function, which determines the probability of the next event occurrence.

Hypernetwork Integration

Instead of learning a single set of static weights for all sequences, HyperHawkes uses a hypernetwork conditioned on a sequence descriptor ($d^i$)—a vector containing meta-information about the sequence—to dynamically generate sequence-specific weights ($W^i$).

The authors propose two architectural variants:

  • HyperHawkes-FNN: The hypernetwork generates weights only for the FNN that models the cumulative hazard function.
  • HyperHawkes-FNN-RNN: Two separate hypernetworks are used—one to generate weights for the history-tracking RNN, and another for the hazard-modeling FNN.
Figure 1: Framework for the proposed model HyperHawkes 1a) shows hypernetwork being used only for FNN and is called HyperHawkes-FNN, 1b) shows hypernetworks used for FNN and RNN and is called HyperHawkes-FNN-RNN

Continual Learning via Regularization

To prevent catastrophic forgetting during sequential training, the authors introduce an output-regularized loss function. When training on a new sequence $s$, the loss function includes a penalty term that minimizes the $L_2$ difference between the NHP weights generated for past sequences using the current hypernetwork parameters versus the stored, older hypernetwork parameters. This forces the meta-network to retain the knowledge required to generate accurate parameters for older tasks.

Datasets

The authors evaluated HyperHawkes on two real-world datasets containing both event timestamps and sequence metadata:

  1. Yelp: A dataset of business check-ins. Each business is treated as a sequence, and its descriptor is a 1,229-dimensional vector capturing 82 attributes (e.g., "Wheelchair Accessible", category, operating hours).
  2. Meme: A dataset tracking the appearance of popular phrases and quotes across news media and blogs. Each phrase is a sequence, and its descriptor is a 100-dimensional doc2vec representation of the meme's textual content.

Key Insights and Ideas

  • Metadata Concatenation is Insufficient: A naive baseline approach (FNHP-Descriptor) that simply concatenates the sequence descriptor with the time input performs poorly—often worse than a standard NHP that ignores metadata entirely. Generating network weights via a hypernetwork is mathematically necessary to properly leverage sequence descriptors.
  • Meta-Level Regularization Works: Instead of storing raw historical data (which is memory-intensive) or regularizing the base network weights directly, regularizing the output of the hypernetwork effectively preserves past knowledge.
  • Dual Transfer Capabilities: The regularized HyperHawkes model demonstrates both backward transfer (retaining or improving performance on old tasks) and forward transfer (using knowledge from past sequences to model new sequences more effectively).

Key Results

Performance was evaluated using Mean Negative Log-Likelihood (MNLL, where lower/more negative is better) and Mean Absolute Error (MAE).

Zero-Shot Learning

In the strict zero-shot setting (predicting entirely unseen sequences), HyperHawkes significantly outperformed the baselines:

  • On the Yelp dataset, HyperHawkes-FNN achieved an MNLL of -5.7045, compared to -4.2023 for standard FNHP.
  • On the Meme dataset, HyperHawkes-FNN-RNN achieved the lowest MAE (0.0018) compared to standard FNHP (0.0056).

Continual Learning

When sequences were introduced one after another, standard training without continual learning (WithoutCL) saw a massive performance degradation due to catastrophic forgetting. Incorporating the proposed regularization (WithCL) stabilized the network:

  • For Meme, the MNLL improved from -2.8550 (WithoutCL) to -5.1462 (WithCL) for the HyperHawkes-FNN variant, proving that the model successfully retained historical knowledge across streaming tasks.

Limitations and Future Work

While HyperHawkes breaks new ground, a few limitations are apparent:

  • Sensitivity to Hyperparameters: The continual learning performance is highly sensitive to the regularization parameter $\beta$. If $\beta$ is too small, the model forgets past sequences; if it is too large, the model becomes rigid and fails to learn from new sequences.
  • Dependence on Quality Descriptors: The zero-shot capabilities rely entirely on the quality and expressiveness of the sequence descriptors ($d^i$). In domains where clean metadata is unavailable, the model's advantage may diminish.

Future research directions could explore automated ways to learn sequence descriptors jointly with the point process or dynamically tuning the regularization strength $\beta$ per task.

Summary updated

BibTeX
@misc{dubey2022hyperhawkes,
  author = {Manisha Dubey and P. K. Srijith and Maunendra Sankar Desarkar},
  title = {{HyperHawkes: Hypernetwork based Neural Temporal Point Process}},
  year = {2022},
  eprint = {2210.00213},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00213},
}
Figure