Abstract
In this paper, we proposed the \textit{link injection}, a novel method that helps any differentiable graph machine learning models to go beyond observed connections from the input data in an end-to-end learning fashion. It finds out (weak) connections in favor of the current task that is not present in the input data via a parametric link injection layer. We evaluate our method on both node classification and link prediction tasks using a series of state-of-the-art graph convolution networks. Results show that the link injection helps a variety of models to achieve better performances on both applications. Further empirical analysis shows a great potential of this method in efficiently exploiting unseen connections from the injected links.
Introduction
Graph Neural Networks (GNNs) have become the standard for modeling relational data. However, their performance is heavily dependent on the quality of the input graph structure. Most GNNs utilize a message-passing mechanism that assumes the provided adjacency matrix is complete and accurate. In practice, real-world graphs are often noisy or incomplete, missing critical "key links" that facilitate information flow between relevant nodes. When these links are absent, the message-passing process is stifled, leading to suboptimal node embeddings.
Methodology
The proposed Link Injection method addresses this by introducing a learnable layer that allows the model to discover and utilize connections not present in the original input data.
As shown in the architecture diagram, the core innovation involves augmenting the original adjacency matrix $A$ with a learnable parameter matrix $J$ representing injected links. The modified adjacency matrix is defined as: $$A' = A + \text{ReLU}(J)$$ The ReLU activation ensures that injected connections maintain positive weights. During training, losses are backpropagated to both the GNN predictor parameters and the injection matrix $J$. This end-to-end approach allows the model to optimize the graph structure specifically for the downstream task. Clipping and regularization are applied to $A'$ to maintain realistic edge weights and encourage sparsity, preventing the graph from becoming overly dense.
Experimental Evaluation
The method was evaluated on two benchmark citation networks: Cora (2,708 nodes, 5,429 links) and CiteSeer (3,312 nodes, 4,732 links). The researchers tested Link Injection across three popular architectures: a standard GNN, Graph Convolutional Networks (GCN), and GraphSAGE.
Node Classification
On the CiteSeer dataset, Link Injection improved macro-accuracy for a basic GNN from 63.2% to 69.9%, a significant 6.7% absolute increase. Consistent gains of 2-3% were observed on the Cora dataset across all tested models. Notably, in an extreme "no-edge" experiment on Cora, the model achieved ~31% accuracy (vs. 14% random), demonstrating its ability to reconstruct functional topology from node features alone.
Link Prediction
The method significantly enhanced link prediction performance. For a standard GNN on Cora, precision increased from 95.92% to 97.46%, while recall improved from 80.87% to 87.42%. Analysis of the top-scored injected links showed they were often "hidden" neighbors in the true underlying graph, confirming that the model recovers missing structural information rather than adding random noise.
Discussion and Conclusion
Link Injection allows GNNs to transcend the limitations of fixed input data by learning task-specific structural augmentations. Different architectures exhibit unique preferences; for instance, GraphSAGE tends to favor links that bridge disconnected communities, while standard GCNs focus on local neighborhood strengthening.
While the current $O(N^2)$ complexity of the injection matrix $J$ poses scalability challenges for massive graphs, the results demonstrate a powerful paradigm for joint graph structure and representation learning. Future work will focus on negative link injection (removing noisy edges) and improving scalability through graph coarsening or inductive learning techniques.
Summary updated