A line graph-based metric learning framework for robust link prediction in complex networks
摘要
Link prediction is a fundamental task in network analysis, yet existing methods face two key limitations: they capture edge relationships only indirectly through node-level comparisons and are sensitive to the severe class imbalance inherent in sparse graphs. Reformulating link prediction as node classification on line graphs addresses both issues by elevating edges to first-class entities, thereby enabling direct relationship modeling. This transformation, however, can lead to quadratic growth in the number of nodes and edges, rendering naive implementations computationally infeasible at scale. To address this challenge, we propose LineML, a scalable line graph framework built on three complementary components: (i) a GraphSAGE-based architecture for multi-hop structural aggregation, (ii) an adaptive metric learning module with degree-biased negative sampling to mitigate class imbalance, and (iii) a spectral pruning strategy combined with multi-GPU training to manage computational complexity. Evaluated on 18 benchmark datasets against 14 state-of-the-art baselines, LineML achieves the best average rank on social and biological networks with strong statistical dominance (Cliff’s