Introduction
Traditional network embedding methods, such as DeepWalk and node2vec, typically treat connections between nodes as simple binary links. By focusing exclusively on graph topology, these methods ignore the rich semantic information often present in edge labels—such as relationship types in social networks or topic categories in citation graphs. This paper introduces a joint optimization framework that leverages these edge labels to learn more expressive node representations, significantly outperforming purely structural baselines in downstream tasks.
Proposed Framework
The authors propose a framework that minimizes a joint loss function consisting of two primary components:
- Structural Loss ($\mathcal{L}_s$): This unsupervised component uses a random walk strategy to define node neighborhoods and employs a Skip-gram objective with negative sampling. This ensures the embeddings capture the global and local structure of the graph.
- Relational Loss ($\mathcal{L}_r$): This novel supervised component predicts labels for edges that possess them. To represent an edge $e=(u,v)$, the model concatenates the embeddings of its endpoints: $\Phi(e) = \Phi(u) \oplus \Phi(v)$. This concatenated vector is fed into a feed-forward neural network with a sigmoid output layer to handle multi-label edge classification.
The total loss is a weighted sum: $\mathcal{L} = (1 - \lambda)\mathcal{L}_s + \lambda\mathcal{L}_r$, where $\lambda$ balances the importance of structure versus semantics. The model is trained using mini-batch Adam, alternating between structural and relational updates.
Experimental Evaluation
The method was evaluated on two real-world datasets where edge semantics are naturally present: ArnetMiner (a researcher collaboration network with topic-based edge labels) and AmazonReviews (a user-item bipartite graph with review-based edge labels).
As shown in the results below, the proposed method demonstrated substantial performance gains over state-of-the-art baselines, including DeepWalk, LINE, node2vec, and Graph Convolutional Networks (GCN).
On the ArnetMiner dataset, the framework achieved a Macro $F_1$ score of 40.97 at a 10% training ratio, nearly doubling the performance of node2vec (21.77) and DeepWalk (21.34). Similar improvements were observed on the AmazonReviews dataset, where the method consistently outperformed all baselines.
Key Insights and Sensitivity Analysis
A central finding of the research is that edge semantics act as a powerful proxy for node similarity. Even with sparse labeling (as low as 1-5% of edges), the inclusion of relational loss significantly boosts performance. Furthermore, the method is independent of external node features, learning purely from the graph's internal structure and edge metadata.
The parameter $\lambda$ is critical for balancing topological and relational information. Sensitivity analysis reveals that while the model is relatively robust, performance peaks when both losses are well-represented, typically around $\lambda = 0.8$.
As illustrated in the sensitivity plot, excluding edge labels ($\lambda = 0.0$) results in significantly lower Macro $F_1$ scores, particularly when the number of training examples is limited. The addition of even a small relational component ($\lambda = 0.2$) leads to immediate and dramatic performance gains.
Conclusion
By integrating edge labels into the embedding process, the proposed joint optimization framework creates more nuanced node representations that better reflect real-world relationships. While the method introduces some computational overhead compared to simple random-walk methods, the significant gains in classification accuracy justify the complexity. Future work may explore more sophisticated edge composition functions to capture directional or hierarchical relationships more effectively.
Summary updated