AttrE2vec: Unsupervised Attributed Edge Representation Learning

Piotr Bielak, Tomasz Kajdanowicz, Nitesh V. ChawlaInformation Sciences 2020 · DOI

In graph representation learning, nodes have traditionally been the primary focus. While numerous methods exist for embedding nodes in social or biological networks, edge representations are frequently treated as secondary, often derived through simple heuristics like averaging the embeddings of their endpoint nodes. However, this "node-centric" paradigm overlooks critical information inherent in the connections themselves.

The framework AttrE2vec, proposed by Bielak et al., shifts the focus to edges. It provides an unsupervised, inductive approach to learning low-dimensional edge embeddings that simultaneously capture graph topology and rich edge attributes.

Addressing the Limitations of Node-Centric Embeddings

Standard approaches to edge embedding suffer from two major drawbacks. First, they often ignore edge attributes—such as interaction types or timestamps—which are vital in real-world graphs. Second, many existing models are transductive, requiring retraining to generate embeddings for new edges. AttrE2vec addresses these by treating the edge as the fundamental unit and enabling inductive generalization to unseen data.

Methodology: The AttrE2vec Framework

The core philosophy of AttrE2vec is that an edge $(u, v)$ is defined by its own attributes and the local neighborhoods of its endpoints.

The AttrE2vec framework architecture, illustrating the flow from random walks to the dual-loss optimization.

1. Contextual Exploration

The model captures the context of an edge $(u, v)$ by performing multiple random walks starting from nodes $u$ and $v$. These walks aggregate the attributes of encountered edges into neighborhood summaries ($S_u$ and $S_v$). Various aggregation strategies, including Gated Recurrent Units (GRUs), were explored to capture the sequential nature of these walks.

2. Encoder-Decoder and Dual-Loss Optimization

An attention-based encoder fuses the edge’s own features with its neighborhood summaries. To train the model without labels, a dual-loss function is employed:

  • Structural Loss ($L_{cos}$): Ensures that edges appearing in similar contexts (random walks) have similar embeddings.
  • Feature Reconstruction Loss ($L_{MSE}$): A decoder reconstructs the original edge features from the embedding, preventing the loss of raw attribute information.

A mixing parameter, $\lambda$, balances these two objectives. Empirical results suggest that a balanced approach ($\lambda = 0.5$) yields the most robust representations.

Key Results and Insights

AttrE2vec was evaluated on citation networks (Cora, Citeseer, Pubmed) against established baselines like Node2vec and GraphSAGE.

Performance in Classification and Clustering

In edge classification tasks, AttrE2vec consistently outperformed inductive baselines, achieving an AUC of approximately 87.7% on the Pubmed dataset. Qualitatively, the model's advantage is most evident in unsupervised clustering.

T-SNE visualizations comparing AttrE2vec with Node2vec and Line2vec on a barbell graph with edge attributes.

As shown in the T-SNE visualizations, AttrE2vec produces clear group separation on complex graphs where traditional methods like Node2vec and Line2vec result in overlapping clusters. This demonstrates the model's ability to effectively integrate structural noise with attribute-driven signals.

Conclusion

AttrE2vec represents a significant step toward more expressive edge-level learning. By combining random-walk-based context with attribute reconstruction in an inductive framework, it provides a practical solution for dynamic networks where relationships are as data-rich as the entities they connect. Future work may focus on improving scalability for billion-edge graphs and deeper integration of heterogeneous node features.

Summary updated

BibTeX
@article{bielak2020attre,
  author = {Piotr Bielak and Tomasz Kajdanowicz and Nitesh V. Chawla},
  title = {{AttrE2vec: Unsupervised Attributed Edge Representation Learning}},
  journal = {Information Sciences},
  year = {2020},
  doi = {10.1016/j.ins.2022.01.048},
}
Figure