Introduction
Link prediction is a fundamental task in network analysis, traditionally framed as a binary classification problem: will a connection form between two nodes? However, in dynamic environments like social networks or recommendation systems, the timing of link formation is often as critical as its existence. Predicting when a link will appear presents unique challenges, including the need to model network evolution over time and the presence of "censored" data—links that have not yet formed but might in the future.
Furthermore, most existing temporal link prediction methods rely on rigid parametric assumptions, such as Exponential or Weibull distributions. If the underlying data deviates from these shapes, model performance degrades. This paper introduces the Non-Parametric Generalized Linear Model (NP-GLM), a robust approach that learns the probability distribution of link formation times directly from data without pre-defined assumptions.
The NP-GLM Framework
The core of NP-GLM is the modeling of the intensity function $\lambda(t|x)$, representing the instantaneous rate of link formation at time $t$ given node features $x$. The authors propose a factorized form: $$\lambda(t|x) = g(w^T x)h(t)$$ where $g(\cdot)$ is a link function capturing feature influences via weights $w$, and $h(t)$ is a time-dependent base intensity.
Non-Parametric Time Modeling
To avoid the pitfalls of parametric models, NP-GLM approximates $h(t)$ as a piecewise constant function. This flexibility allows the model to adapt to various temporal patterns, whether the connection probability spikes early, grows steadily, or follows a complex multi-modal distribution.
Learning with Censored Data
A key innovation of NP-GLM is its treatment of censored data. In a finite observation window $[0, T]$, many potential links will not have formed. Rather than ignoring these, NP-GLM incorporates them into the likelihood function by modeling the probability that their formation time exceeds $T$. This ensures that "non-events" provide valuable training signals about the rate of link formation.
Experimental Evaluation
The model was tested on both synthetic datasets (generated via Rayleigh and Gompertz distributions) and real-world data from Sina Weibo. For the Weibo dataset, features were extracted using meta-paths to capture heterogeneous relationships, such as shared followers or common mentions.
The Value of Censored Data
Experiments on synthetic data confirm that censored samples are highly informative. As shown in Figure 4, increasing the number of censored samples ($N_c$) while keeping the number of observed samples ($N_o$) constant leads to a significant reduction in Mean Absolute Error (MAE).
Performance and Robustness
NP-GLM demonstrates superior accuracy and robustness across different underlying distributions. Figure 3 illustrates that as the total number of training samples ($N$) increases, the MAE consistently decreases. Notably, the model maintains high performance even with high censoring ratios (e.g., 50%), where half of the training data consists of links that haven't formed yet.
On the Sina Weibo dataset, NP-GLM outperformed the best parametric baseline (POW-GLM) by reducing the Mean Absolute Error (MAE) by approximately 13% and the Mean Relative Error (MRE) by 23%. It also excelled in providing reliable confidence intervals, achieving 73.83% accuracy for 25%-75% ranged probability queries, compared to ~51% for the next best model.
Conclusion
NP-GLM offers a powerful, distribution-agnostic framework for temporal link prediction. By leveraging censored data and employing a non-parametric approach to time modeling, it achieves significantly higher accuracy and interpretability than traditional parametric models. Future work may focus on reducing computational complexity for massive graphs and automating feature extraction through dynamic graph embeddings.
Summary updated