TL;DR
This paper introduces HyperHawkes, a novel framework for continually learning time-to-event models. It addresses the challenge of adapting to new event sequences without forgetting past knowledge, a crucial problem for real-world applications like social media analysis and anomaly detection. HyperHawkes leverages hypernetworks to generate sequence-specific parameters for Hawkes processes, combined with a regularization technique to prevent catastrophic forgetting.
What Problem Does This Paper Address?
Many real-world phenomena generate event sequences, where events occur at specific times. Examples include social media posts, financial transactions, and disease outbreaks. Temporal point processes (TPPs), particularly Hawkes processes, are powerful tools for modeling these event sequences. However, these models often struggle in dynamic environments where new types of event sequences continuously emerge. Traditional TPPs, when retrained on new data, tend to forget previously learned patterns, a phenomenon known as catastrophic forgetting. This paper tackles the problem of building TPP models that can learn from new event sequences sequentially while retaining knowledge from past sequences, a setting they term "continual learning for time-to-event modeling."
Methods
The core of the proposed solution is HyperHawkes, which builds upon the Fully Neural Hawkes Process (FNHP). FNHP uses recurrent neural networks (RNNs) to capture event history and feedforward neural networks (FNNs) to model the intensity function.
HyperHawkes introduces a descriptor-conditioned hypernetwork. This hypernetwork takes a "sequence descriptor" (a feature representation of the event sequence) as input and generates the specific parameters (weights) for the RNN and FNN components of the FNHP. This allows the model to adapt its parameters to the characteristics of each new sequence.
To address catastrophic forgetting, HyperHawkes incorporates a regularization term into the training loss. This regularization penalizes changes to the hypernetwork parameters that were learned from previous sequences. Essentially, it encourages the hypernetwork to maintain its ability to generate parameters for older sequences while learning to generate parameters for new ones. The authors propose two variants:
- HyperHawkes-FNN: The hypernetwork is used only for the FNN modeling the cumulative hazard function.
- HyperHawkes-FNN-RNN: Separate hypernetworks are used for both the RNN (history modeling) and the FNN (intensity modeling).
Datasets
The paper uses two real-world datasets:
- Yelp: This dataset contains business information and check-in data. Each business is represented by a vector of 1229 attributes, which serves as the sequence descriptor.
- Meme: This dataset tracks popular phrases in news media and blogs. For each meme, a Doc2Vec representation of its content (length 100) is used as the sequence descriptor.
The authors note the paucity of standard datasets for event modeling tasks that include sequence descriptors.
Key Insights and Ideas
- Sequence Descriptors are Key: The ability to represent an event sequence with a descriptor is crucial for enabling adaptive parameter generation in a continual learning setting.
- Hypernetworks for Adaptability: Hypernetworks are a natural fit for generating sequence-specific parameters, allowing a single model to handle diverse event sequence types.
- Regularization as a Forgetting Stopper: The proposed regularization technique effectively prevents the hypernetwork from completely overwriting its knowledge of past sequences, enabling knowledge retention.
- Continual Learning is Underexplored for TPPs: The paper highlights a significant gap in research, demonstrating the need for continual learning approaches in time-to-event modeling.
Key Results
The experiments demonstrate that HyperHawkes, especially with the proposed regularization, significantly outperforms baselines in continual learning scenarios.
- Improved Performance: Both HyperHawkes variants (with continual learning regularization) achieve better performance (lower Mean Negative Log-Likelihood (MNLL) and Mean Absolute Error (MAE)) compared to HyperHawkes without regularization and a continually trained FNHP.
- Avoidance of Catastrophic Forgetting: Figures 1a and 1b show that as new tasks are learned, the MNLL and MAE for HyperHawkes with regularization remain relatively stable or improve, indicating that past knowledge is retained. In contrast, the model without regularization shows increasing error, signifying forgetting.
- Forward and Backward Transfer: Figure 1c suggests that the model can not only retain past knowledge (backward transfer) but also leverage it to improve performance on new tasks (forward transfer), which are desirable properties for continual learning.
Limitations and Future Work
- Memory Expense: While the proposed method is more realistic than naive data replay, storing and replaying previous data is acknowledged as memory-intensive and unrealistic. The HyperHawkes approach aims to mitigate this.
- Sequence Descriptor Quality: The performance of HyperHawkes is dependent on the quality and informativeness of the sequence descriptors.
- Future Work: The paper implicitly suggests exploring more sophisticated regularization techniques or hypernetwork architectures for even better continual learning performance. Further investigation into the types of sequence descriptors that are most effective would also be valuable.
Summary updated