Abstract
Unsupervised graph representation learning aims to distill various graph information into a downstream task-agnostic dense vector embedding. However, existing graph representation learning approaches are designed mainly under the node homophily assumption: connected nodes tend to have similar labels and optimize performance on node-centric downstream tasks. Their design is apparently against the task-agnostic principle and generally suffers poor performance in tasks, e.g., edge classification, that demands feature signals beyond the node-view and homophily assumption. To condense different feature signals into the embeddings, this paper proposes PairE, a novel unsupervised graph embedding method using two paired nodes as the basic unit of embedding to retain the high-frequency signals between nodes to support node-related and edge-related tasks. Accordingly, a multi-self-supervised autoencoder is designed to fulfill two pretext tasks: one retains the high-frequency signal better, and another enhances the representation of commonality. Our extensive experiments on a diversity of benchmark datasets clearly show that PairE outperforms the unsupervised state-of-the-art baselines, with up to 101.1% relative improvement on the edge classification tasks that rely on both the high and low-frequency signals in the pair and up to 82.5% relative performance gain on the node classification tasks.
Introduction
Most Graph Representation Learning (GRL) techniques rely on the homophily assumption: the idea that connected nodes are likely to be similar (e.g., "friends share interests"). Consequently, popular models like Graph Convolutional Networks (GCNs) act as "low-pass filters," smoothing features across neighbors to capture commonalities. However, this approach fails in heterophily networks where connected nodes are intentionally different, and in task-agnostic settings where edge classification requires preserving node differences.
PairE addresses this by shifting the focus from individual nodes to node pairs as the basic unit of representation. By utilizing a multi-task autoencoder to capture both high-frequency (differences) and low-frequency (similarities) signals, it breaks the restrictive homophily assumption and achieves massive performance gains—up to 101% on edge classification and 82% on node classification.
Methodology
PairE departs from the standard node-view by using an ordered pair of nodes $(u, v)$ as the fundamental embedding unit. This approach treats an edge as a unique entity rather than just the sum of two nodes.
Pair-View Embeddings
Instead of embedding node $u$ and node $v$ separately and then combining them, PairE treats the pair's features as a single input. It uses direct concatenation ($X_u || X_v$) to ensure that the unique differences between the two nodes are not "averaged out" by smoothing operations.
Multi-Self-Supervised Autoencoder
The model uses two parallel reconstruction tasks to capture the full spectrum of graph signals:
- Ego-task: Reconstructs the pair's own features. This focuses on "high-frequency" signals—the specific attributes that distinguish this pair.
- Agg-task: Reconstructs the aggregated features of the pair's neighbors. This captures "low-frequency" signals—the broader context and similarities within the neighborhood.
To prevent over-smoothing, PairE employs skip connections and concatenation at the final layer, ensuring raw feature integrity is preserved in the latent vector. For node-level tasks, a "Sum" translator function aggregates all pair embeddings starting from a specific node to create a comprehensive node embedding.
Experimental Setup
The authors evaluated PairE across a diverse range of benchmarks to test its versatility:
- Homophily Citation Networks: Cora, Citeseer, Pubmed.
- Heterophily Webpages: Cornell, Wisconsin.
- Multi-label/Complex Graphs: DBLP, PPI (Protein-Protein Interaction), and Cuneiform (handwriting signs).
- Knowledge Graphs (Edge Labels): FB15k-237 and WN18RR.
Results and Discussion
PairE consistently outperformed state-of-the-art unsupervised baselines (like DeepWalk, GraphSAGE, and DGI) and even challenged semi-supervised models:
- Edge Classification: Achieved up to 101.1% relative improvement on complex datasets like WN18RR. It was particularly dominant on the FB15k-237 dataset, where traditional semi-supervised methods often fail due to extremely low label similarity.
- Node Classification: Showed an average performance gain of up to 82.5%. Even on classic homophily datasets like Cora, it remained highly competitive.
- Scalability: PairE is highly efficient. While advanced models like H2GCN and FAGCN suffered "Out of Memory" (OOM) errors on large graphs (e.g., the alchemy dataset with 2M nodes), PairE trained successfully and converged quickly (typically within 20 epochs).
Key Insights
The most significant innovation is treating the "pair" as an entity. By embedding the pair directly, the model avoids the information loss inherent in node-centric aggregation. Furthermore, framing graph signals in terms of frequency allows the model to capture both similarity (low-frequency) and difference (high-frequency), making it robust to local variations in homophily and heterophily.
Conclusion
PairE demonstrates that moving beyond node-centric homophily assumptions is critical for robust graph representation learning. While the current "Sum" translator for node embeddings is effective, future work may explore more sophisticated, non-linear ways to translate pair embeddings back to node views and integrate these designs into supervised message-passing GNNs.
Summary updated