Many event logs, such as music plays, forum posts, course clicks and purchases, arrive in bursts. A user does several things in quick succession, goes quiet for hours or days, then starts a new burst. Models of such data predict two things for each next event: when it happens and what kind of event it is. Recent work shows that letting the predicted category depend on the time gap improves both accuracy and the reliability of the predicted probabilities. Our hypothesis is that, on bursty data, most of that dependence comes from one fact. The length of the gap tells you whether you are still inside the current burst or starting a new one. The right evidence for "what comes next" differs between those two cases. Inside a burst, the last few events matter. After a long silence, the user's long-run habits matter.
We propose a model that makes this explicit. It is a marked temporal point process, meaning a probabilistic model over a stream of timestamped events that each carry a discrete label, or "mark." The model keeps two memories: a fast one for the current burst and a slow one for long-run habits. The time-gap distribution is a mixture of a short-gap component and a long-gap component. The category prediction then reads from whichever memory the observed gap points to. The likelihood is exact and cheap to compute. A short training schedule moves from a fixed gap threshold to a learned soft split, so the two components do not collapse into one. The test case is LastFM. There, a classical Hawkes process still beats neural models, and the authors attribute this to extreme clustering. If our hypothesis is right, that gap should close, and the gains should concentrate on events that start a new burst.
Core Claim
Coupling time and category and modeling time hierarchically are usually treated as separate design choices. On bursty streams, they are the same choice. The observed gap is the variable that should decide which level of history the category prediction uses.
Write $\tau$ for the time since the previous event, $k$ for the next event's category, $s \in \{\text{fast}, \text{slow}\}$ for a latent scale, $\mathbf{h}^{\text{fast}}$ and $\mathbf{h}^{\text{slow}}$ for the two recurrent memory states, and $\pi_s$ for the history-dependent weight on scale $s$. The model defines
$$p(k, \tau \mid \mathcal{H}) = \sum_{s} \pi_s(\mathcal{H})\, p_s(\tau \mid \mathbf{h}^{s})\, p_s(k \mid \mathbf{h}^{s}, \log \tau),$$
where each $p_s(\tau)$ is a log-normal mixture and each $p_s(k \mid \cdot)$ is a small classifier over categories. Because the sum has only two terms, the joint likelihood, the marginal over times, and the posterior responsibility $r_s(\tau) \propto \pi_s p_s(\tau)$ are all available in closed form. No numerical integration is needed. The slow memory is updated in proportion to $r_{\text{slow}}$ of each observed gap, so session boundaries are soft and learned rather than imposed.
Three lines of prior work feed this design. CLNM (Revisiting the Mark Conditional Independence Assumption) concatenates $\log \tau$ with a single flat history state before the category classifier. It reports the best mark likelihood on 5 of 6 datasets and better calibration, but it loses to Hawkes on LastFM. This paper both motivates the proposal and supplies its conditioning technique. Our model differs in one respect: the gap does not only enter as a feature. It selects which history state the classifier reads.
THRNN (Time is of the Essence) builds an intra-session and an inter-session recurrent network, with an item head and a return-time intensity head sharing those states. It is the closest prior system. However, its sessions are fixed in advance, its category head ignores the gap, and its intensity head needs numerical integration. We learn the session split from the time distribution itself, couple the category to it, and keep the likelihood closed form.
Hierarchical temporal convolutions (Temporal Convolutional Networks for Action Segmentation) and two-level phase/step recognition (Challenges in multi-centric generalization) show that separating coarse and fine time scales prevents blurred boundaries. Both assume uniform frame grids, which irregular event streams do not have.
Research Program
The first piece is the model above, built inside EasyTPP (resource, paper) so that data splits, preprocessing and metrics match existing baselines. The two memories are gated recurrent units (GRUs). The fast memory updates on every event. The slow memory updates with weight $r_{\text{slow}}(\tau)$. A variant with more than two scales is a follow-up, not part of the core claim.
The second piece is the training schedule. This is where curriculum learning enters, and it enters for a different reason than in the language-model literature. GrowLength (GrowLength) and Dataset Decomposition (Dataset Decomposition) grow context length to save attention compute. The latter itself notes that the benefit is marginal at short target lengths, and the benchmark event sequences here are short. We therefore do not expect speedups. Instead, the schedule addresses a known failure of two-component latent models: one component absorbs all the data and the hierarchy disappears.
Training starts with responsibilities fixed by a hard gap threshold $c$, set at a high quantile of the training gaps. This is a THRNN-style sessionization, and it gives each memory a clean job. The hard assignment is then annealed into the learned soft responsibility over a fixed fraction of training. This mirrors the move from fixed to learned temporal partitions that Improving Event Time Prediction by Learning to Partition the Event Time Space found beneficial for survival models. We also test a cheap analogue of a horizon curriculum: weighting the slow-component loss more heavily late in training. It is kept only if it helps.
The third piece is analysis. We record the learned gap threshold implied by the responsibilities and check it against session boundaries visible in the data. We also break every metric down by the gap regime of the predicted event: within-burst versus burst-start. The hypothesis makes a sharp prediction here. Almost all of the improvement over CLNM should appear on burst-start events, where a flat history state is dominated by the just-finished burst.
Baselines
The naive reference is a multivariate Hawkes process. This is a classical model in which each past event adds a decaying bump to the future rate of each category. We include it because it is the model neural methods failed to beat on LastFM, according to Bosser et al.. It is fit by maximum likelihood with an exponential kernel, and its decay rate is tuned on validation data. Beating it on LastFM mark likelihood is the minimum bar for the hierarchical claim.
The decoupled log-normal mixture model (LNM) predicts category and gap independently from one recurrent state. It is the standard practice that CLNM improved on, and it shows how much coupling alone buys.
The strongest existing competitor is CLNM. It is the published method that already couples the category to the gap, and it wins on 5 of 6 of the same datasets. The file does not give its numbers: no reported result found on Lacuna for CLNM's mark negative log-likelihood on any dataset, since the values are only in table images. We therefore rerun CLNM ourselves with the same splits and a hidden size raised to match our parameter count. It receives the same hyperparameter search budget, measured in trials per dataset, and the same five seeds. Beating it means lower mark negative log-likelihood and lower expected calibration error on at least four of the six datasets, with no loss in time likelihood, and with differences outside the seed spread. We also run a CLNM variant on an attention-based history encoder, because attention could in principle learn to look back past a burst unaided.
THRNN represents prior hierarchical point-process work. Its only reported figures are relative improvements over GRU4REC on Reddit, about 31% in Recall@20 and 35% in MRR@20 (THRNN). We reimplement it with the same budget and report both its ranking metrics and likelihoods.
The ablations isolate the key ingredient. In "hierarchy without coupling," the two memories and the time mixture are kept, but the category head reads a fixed average of both memories. In "coupling without hierarchy," the two-component time mixture is kept, but both components share one memory. "Hard threshold only" never anneals. "No schedule" learns soft responsibilities from the first step.
Why not just…?
Why not just make CLNM bigger or give it attention? This is the main threat. A flat model given $\log \tau$ can in principle learn "after a long gap, ignore recent events," and attention can retrieve older context. The parameter-matched and attention-based CLNM runs test this directly. If either matches our model on burst-start events, the hierarchy is unnecessary and we will report that. Our expectation of a gap rests on the LastFM result, where the existing neural models, flat recurrent encoders conditioned on the gap, still lost to Hawkes. That suggests the structure is not being found unaided, but it is not proof.
Why not just split sessions with a fixed gap threshold and put a CLNM head on THRNN? This is a serious, simpler alternative, and it is exactly our "hard threshold only" ablation. If it ties the full model, the contribution reduces to "THRNN plus gap conditioning," which is still a useful and publishable negative result. The learned split should matter most where burst length varies across users, as on Reddit and Taobao. Fixed discretization was beaten by learned partitions in the survival setting (Learning to Partition).
Why not just use Hawkes on clustered data and neural models elsewhere? Model selection per dataset is legitimate. However, Hawkes excitation is additive and its mark structure is rigid, and Hawkes loses to neural models on the other five datasets (Bosser et al.). One model that wins on both kinds of data is more useful. This would be shown by our model matching Hawkes on LastFM while keeping CLNM-level results elsewhere.
Why not just use a length curriculum for speed, as in language models? Benchmark event sequences are short, and Dataset Decomposition reports that length curricula help little when attention is not the bottleneck. We do not claim a speedup. Our schedule exists to prevent component collapse, and the "no schedule" ablation measures whether it does.
Proposed Experiments
The real-data study uses LastFM, Reddit, MOOC, StackOverflow, Retweet and Taobao under EasyTPP splits. We report time and mark negative log-likelihood, mark error rate, time root-mean-square error, expected calibration error with reliability diagrams, and the size of 90% joint prediction regions built with C-HDR (Distribution-Free Conformal Joint Prediction Regions). The last metric matters because a two-scale joint density should be bimodal in time, with different category sets in each mode, which should yield tighter valid regions than CLNM's. Every metric is reported separately for within-burst and burst-start events.
The controlled study uses synthetic streams generated from a two-level Hawkes-style process, adapted from EasyTPP's synthetic Hawkes generator. Within-burst categories follow the last few events, and burst-start categories follow a per-user long-run distribution. Because the true scale of every event is known, we can measure whether the learned responsibilities recover it. We can also vary how distinct the two regimes are, to find where the hierarchy stops paying off.
The decisive checks are four. First, on LastFM the model must reach or beat Hawkes mark likelihood, where CLNM did not. Second, gains over parameter-matched CLNM must concentrate on burst-start events; uniform small gains would point to extra capacity rather than the proposed mechanism. Third, the full model must beat "hard threshold only" on datasets with variable burst lengths. Fourth, across five seeds, the annealing schedule must reduce the rate at which one component collapses, measured as average responsibility above 0.95 for a single scale, compared with "no schedule." If the second check fails, the core claim is wrong even if the averages improve.
References
- Revisiting the Mark Conditional Independence Assumption in Neural Marked Temporal Point Processes
- Time is of the Essence: A Joint Hierarchical RNN and Point Process Model for Time and Item Predictions
- Temporal Convolutional Networks for Action Segmentation and Detection
- Challenges in multi-centric generalization: phase and step recognition in Roux-en-Y gastric bypass surgery
- EasyTPP: Towards Open Benchmarking Temporal Point Processes
- GrowLength: Accelerating LLMs Pretraining by Progressively Growing Training Length
- Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculum
- Improving Event Time Prediction by Learning to Partition the Event Time Space
- Distribution-free conformal joint prediction regions for neural marked temporal point processes