An Efficient Loop and Clique Coarsening Algorithm for Graph Classification
Xiaorui Qi, Qijie Bai, Yanlong Wen, Haiwei Zhang, Xiaojie Yuan
TL;DR
Graph classification with Graph Transformers often treats graph structure as ancillary guidance rather than explicit edge representations. The paper introduces LCC4GC, a linear-time Loop and Clique Coarsening approach that condenses loops and cliques into hypernodes to form a coarsened view, complemented by a line-graph conversion view to incorporate edge-centric information. Three views—original, coarsened, and line-graph—are learned with a GT backbone (U2GNN) and concatenated for final prediction, achieving state-of-the-art performance across eight real-world datasets and 31 baselines. Through extensive ablations, the authors demonstrate the crucial roles of both the LCC and LGC components, as well as the benefits of edge-centric position information, while maintaining practicality through linear-time complexity. The work suggests promising directions for dynamic graphs and broader higher-level structures in graph representation learning.
Abstract
Graph Transformers (GTs) have made remarkable achievements in graph-level tasks. However, most existing works regard graph structures as a form of guidance or bias for enhancing node representations, which focuses on node-central perspectives and lacks explicit representations of edges and structures. One natural question arises as to whether we can leverage a hypernode to represent some structures. Through experimental analysis, we explore the feasibility of this assumption. Based on our findings, we propose an efficient Loop and Clique Coarsening algorithm with linear complexity for Graph Classification (LCC4GC) on GT architecture. Specifically, we build three unique views, original, coarsening, and conversion, to learn a thorough structural representation. We compress loops and cliques via hierarchical heuristic graph coarsening and restrict them with well-designed constraints, which builds the coarsening view to learn high-level interactions between structures. We also introduce line graphs for edge embeddings and switch to edge-central perspective to alleviate the impact of coarsening reduction. Experiments on eight real-world datasets demonstrate the improvements of LCC4GC over 31 baselines from various architectures.
