Abstract
Graph Representation Learning (GRL) is an influential methodology, enabling a more profound understanding of graph-structured data and aiding graph clustering, a critical task across various domains. The recent incursion of attention mechanisms, originally an artifact of Natural Language Processing (NLP), into the realm of graph learning has spearheaded a notable shift in research trends. Consequently, Graph Attention Networks (GATs) and Graph Attention Auto-Encoders have emerged as preferred tools for graph clustering tasks. Yet, these methods primarily employ a local attention mechanism, thereby curbing their capacity to apprehend the intricate global dependencies between nodes within graphs. Addressing these impediments, this study introduces an innovative method known as the Graph Transformer Auto-Encoder for Graph Clustering (GTAGC). By melding the Graph Auto-Encoder with the Graph Transformer, GTAGC is adept at capturing global dependencies between nodes. This integration amplifies the graph representation and surmounts the constraints posed by the local attention mechanism. The architecture of GTAGC encompasses graph embedding, integration of the Graph Transformer within the autoencoder structure, and a clustering component. It strategically alternates between graph embedding and clustering, thereby tailoring the Graph Transformer for clustering tasks, whilst preserving the graph's global structural information. Through extensive experimentation on diverse benchmark datasets, GTAGC has exhibited superior performance against existing state-of-the-art graph clustering methodologies.
Introduction
Graph clustering aims to group nodes in a network based on both their attributes and their structural connections. While Graph Representation Learning (GRL) has advanced significantly, most current methods—like Graph Attention Networks (GATs)—suffer from "neighborhood myopia." They primarily use local attention mechanisms, meaning a node only "looks" at its immediate neighbors to update its representation. This approach often fails to capture global dependencies: long-range relationships between nodes that might be far apart in the graph's structure but are semantically or functionally similar. Disregarding this global context leads to suboptimal clustering, especially in complex real-world networks where the "big picture" matters as much as the local neighborhood.
Methods
The proposed Graph Transformer Auto-Encoder for Graph Clustering (GTAGC) synergizes three key components: Graph Embedding, Graph Transformers, and a dedicated Clustering Module.
- Preprocessing with Laplacian Filtering: The model uses a Laplacian filter to smooth node features, effectively aggregating initial information from immediate neighbors.
- Positional Encoding: Since Transformers are permutation-invariant, the authors use Laplacian eigenvectors to encode the position of each node. This provides the spatial context necessary for the Transformer to understand the graph's topology.
- Graph Transformer Encoder: Unlike standard GNNs, the Graph Transformer uses a global self-attention mechanism. This allows every node to attend to every other node in the graph, regardless of distance, enabling the model to learn intricate, long-range dependencies.
- Clustering Module: Inspired by the DAEGC model, this component translates learned embeddings into a probability distribution across clusters. It uses a self-supervised loss function to refine these clusters without needing manual labels.
Experimental Results
GTAGC was evaluated on three classic benchmark datasets: Cora, Citeseer, and Pubmed. These citation networks are standard for testing how well a model can group documents based on text content (attributes) and citation links (structure).
GTAGC consistently outperformed or matched existing state-of-the-art (SOTA) methods like S2GC, GC-VAE, and DAEGC. On Citeseer, GTAGC achieved an Accuracy (ACC) of 0.708 and a Normalized Mutual Information (NMI) of 0.452. On Cora, it led in ACC (0.717) and NMI.
A key finding was the importance of balancing local and global information. The authors introduced a hyperparameter, $\gamma$, to manage this trade-off. Sensitivity analysis (shown above) found that an optimal balance (specifically a 3:1 ratio favoring local info at $\gamma=0.75$) yields the best results, suggesting that while global context is the "missing piece," local structure remains the foundation of graph identity.
Conclusion
GTAGC demonstrates that global vision is vital for boosting clustering accuracy. By embedding a Transformer inside an auto-encoder framework, the model overcomes traditional limitations of Transformers in clustering tasks. Future work may address scalability for massive graphs using linear Transformer variants and explore the application of this global-attention approach to dynamic, time-varying graphs.
Summary updated