Bootstrap Latents of Nodes and Neighbors for Graph Self-Supervised Learning

Yunhui Liu, Huaisong Zhang, Tieke He, Tao Zheng, Jianhua Zhao · DOI

Abstract

Graph Self-Supervised Learning (GSSL) has emerged as a powerful paradigm for learning node representations without manual labels. However, existing methods often struggle with either high computational costs and "class collision" in contrastive frameworks or the neglect of local structural information in non-contrastive frameworks. This paper introduces BLNN (Bootstrap Latents of Nodes and Neighbors), a non-contrastive GSSL framework that leverages the principle of homophily. By treating neighbors as additional "soft" positive pairs and weighting their influence through a cross-attention-based supportiveness module, BLNN achieves state-of-the-art performance in node classification and clustering while maintaining linear scalability.

1. Introduction

In Graph Self-Supervised Learning, the goal is to learn robust node embeddings by exploiting the inherent structure and features of the graph. Two dominant strategies have emerged: contrastive learning and non-contrastive learning. Contrastive methods, such as GRACE or GCA, rely on pulling positive pairs (different views of the same node) together while pushing negative pairs (different nodes) apart. This approach often suffers from "class collision," where nodes of the same semantic class are mistakenly pushed apart, and requires significant computational resources to manage large sets of negative samples.

Non-contrastive methods, exemplified by Bootstrapped Graph Latents (BGRL), eliminate negative samples by predicting one view of a node from another using an asymmetric architecture. While efficient, these methods typically focus on individual nodes in isolation, failing to fully exploit the graph's local topology—specifically the fact that connected nodes often share the same label (homophily).

2. The Challenge of Noisy Connectivity

A naive approach to incorporating structural information is to treat all neighbors of a node as additional positive pairs. However, real-world graphs contain "noisy" edges—connections between nodes of different classes (inter-class edges). The authors' empirical study using a "Clean Positives" oracle demonstrated that while adding ground-truth same-class neighbors as positives leads to dramatic performance gains, adding raw, unfiltered neighbors provides only marginal improvements. This highlights the need for a mechanism to distinguish between "supportive" (same-class) and "unsupportive" (different-class) neighbors during the self-supervised training process.

3. Methodology: The BLNN Framework

BLNN builds upon the asymmetric BGRL architecture, which consists of an online encoder and a target encoder (updated via a moving average of the online encoder's weights). The framework introduces two primary innovations:

3.1 Positive Pair Expansion

Beyond aligning a node’s online representation with its own target representation (self-alignment), BLNN expands the set of positive pairs to include the node’s immediate neighbors. This encourages the model to learn representations that are locally smooth across the graph structure.

3.2 Cross-Attention Supportiveness Module

To mitigate the impact of noisy edges, BLNN employs a cross-attention mechanism to calculate a supportiveness score ($w_j$) for each neighbor $j$ of an anchor node $i$. This score is derived from the cosine similarity between the anchor's online representation and the neighbor's target representation, normalized via a temperature-scaled softmax.

This module acts as a "soft filter," allowing the model to adaptively prioritize neighbors that appear semantically similar in the embedding space. The final objective function is a weighted combination of the standard self-alignment loss and the supportiveness-weighted neighbor alignment loss.

4. Experimental Results

4.1 Performance Benchmarks

BLNN was evaluated on five benchmark datasets: WikiCS, Amazon Photo, Amazon Computer, Co-author CS, and Co-author Physics.

  • Node Classification: BLNN consistently outperformed both contrastive (GRACE, GCA) and non-contrastive (BGRL, CCA-SSG) baselines.
  • Node Clustering: The method showed significant improvements in Normalized Mutual Information (NMI), particularly on the WikiCS and Computer datasets, where it surpassed the base BGRL model by 5-8%.

4.2 Efficiency and Scalability

Despite the addition of neighbor-based computations, BLNN maintains a time complexity of $O(|E|)$, where $|E|$ is the number of edges. This linear scalability makes it significantly more efficient than methods requiring $O(|V|^2)$ comparisons or those involving expensive global clustering steps.

4.3 Representation Quality

Qualitative analysis using t-SNE visualizations confirms that BLNN produces tighter, more distinct clusters compared to standard BGRL. By pulling supportive neighbors together, the model increases intra-class compactness, which directly benefits downstream classification tasks.

5. Conclusion and Future Work

BLNN demonstrates that the "neighbor-as-positive" strategy is highly effective for GSSL when coupled with an intelligent filtering mechanism. By using cross-attention to identify supportive neighbors, BLNN captures local structural nuances that standard non-contrastive methods miss.

While highly effective on homophilous graphs, future research is needed to adapt this logic for heterophilous graphs, where connected nodes are expected to be different. Additionally, exploring the sensitivity of the attention temperature parameter ($\tau$) and extending the framework to multi-relational graphs remain promising avenues for further development.

Summary updated

BibTeX
@inproceedings{liu2024bootstrap,
  author = {Yunhui Liu and Huaisong Zhang and Tieke He and Tao Zheng and Jianhua Zhao},
  title = {{Bootstrap Latents of Nodes and Neighbors for Graph Self-Supervised Learning}},
  booktitle = {Ecml/pkdd},
  year = {2024},
  doi = {10.1007/978-3-031-70352-2\_5},
}
Figure