Manuscript Offprint
arXiv:2611.06052Alleviating Limited Effectiveness and Multi-Class Collapse in Deep Graph-level Clustering
Xiaoyang Lin
Hong Kong Baptist University Hong Kong SAR, China csxylin@comp.hkbu.edu.hk
Yuqi Chen
Hong Kong Baptist University Hong Kong SAR, China csyqchen@comp.hkbu.edu.hk
Renchi Yang*
Hong Kong Baptist University Hong Kong SAR, China renchi@hkbu.edu.hk
Xin Huang
Hong Kong Baptist University Hong Kong SAR, China xinhuang@comp.hkbu.edu.hk
Abstract
Given a collection of graphs, graph-level clustering (GLC) seeks to partition the graphs into semantically meaningful groups, which serves as a fundamental task in analyzing graph-structured data. While Graph Isomorphism Networks (GINs) have become the de facto encoders for GLC, they still fail to distinguish graphs due to their neglect of global topology. On top of that, existing deep clustering frameworks suffer from severe “clustering collapse” issues, particularly in imbalanced multi-class scenarios.
To address these challenges, we propose GLC, a novel framework that integrates global topological characteristics with local neighborhood features for balanced GLC. Theoretically, we leverage the Hoffman-Wielandt inequality to construct Spectral Signature as a rigorous lower bound for graph edit distance (GED), providing a computationally efficient proxy for global topological features. We additionally propose a joint manifold-preserving sparse regression module to fuse Spectral Signature with Spatial Representation, eliminating noise while preserving the complementary information. Furthermore, to mitigate clustering collapse, we introduce a balanced clustering objective based on optimal transport, harnessing the Sinkhorn-Knopp normalization to enforce equipartition constraints on cluster assignments. Extensive experiments on 10 real-world datasets demonstrate that GLC significantly outperforms 15 state-of-the-art baselines, achieving remarkable improvements on benchmark datasets such as REDDIT-12K and OGBG-PPA.
1 Introduction
Graph-level clustering (GLC) [38, 72, 76] involves partitioning a collection of graphs into disjoint groups where graphs within the same cluster (resp. distinct clusters) exhibit high (resp. low) semantic similarity in topological structure or attributes. The unsupervised paradigm of GLC bypasses the need for expert priors [72, 76] and is critical in domains where label acquisition is cost-prohibitive or impractical [26, 61], such as screening molecular compounds for drug discovery [1, 7, 56], typological analysis of social communities [29, 44, 67], and analyzing states in brain networks [32, 33].
As illustrated in Fig. 1, molecular clustering primarily depends on functional groups (e.g., Benzene rings). Molecules that contain similar functional groups are regarded as belonging to the same
compound (e.g., Aromatic). This highlights the importance of preserving key subgraph structures when learning graph representations. Therefore, effective GLC relies on graph representation learning (GRL) to encode such structural characteristics into informative feature vectors. However, relying solely on spectral methods [2, 75] to capture global topology overlooks the importance of subgraph structure, causing graphs that share the same subgraphs to fail to obtain similar graph-level representations. Meanwhile, most subgraph-matching-based approaches are inflexible and have high time complexity [27]. Moreover, as shown in the social network clustering in Fig. 1, graphs with similar structures often differ in scale. For example, in the cluster Open Forums, the two graphs are structurally similar but have different numbers of nodes (9 vs. 17). Since many methods based on GINs commonly use sum pooling [11, 12, 60], differences in graph size tend to overshadow structural differences, making the graph-level embeddings less discriminative. In summary, obtaining graph embeddings solely with spectral methods or with GINs has non-negligible drawbacks, as a subtask of unsupervised GRL, GLC inevitably inherits these challenges.
Prior work on graph-level clustering have evolved from early graph-kernel methods [8, 9, 20, 28, 43, 50, 50, 51] to recent GNN-based contrastive learning-based methods [16, 23, 31, 42, 58, 73] and end-to-end clustering frameworks [11, 12, 14]. Although these approaches have substantially improved graph representation learning and clustering efficiency, two fundamental challenges remain: limited expressivity and multi-class collapse. First, as discussed in §4.1, GINs cannot surpass the 1-WL test and thus fail to distinguish certain non-isomorphic graphs (see Fig. 2). Unfortunately,

Figure 1: Example GLC applications.
*Corresponding Author this limitation stems from the inability of GNNs to perceive the global structure and cannot be remedied by contrastive learning or hierarchical pooling [37]. Graph edit distance (GED) [48] can precisely measure the similarity between two graphs and distinguish graphs that the 1-WL test fails to tell apart. However, its computation is NP-hard. Second, to enable end-to-end clustering, both SOTA methods minimize the Kullback–Leibler (KL) divergence between cluster assignments and pseudo-labels, but this strategy lacks cluster-size constraints, leading to cluster collapse. In §4.2, we quantify the imbalance between ground-truth labels and the predicted labels of these SOTA methods on 10 real-world datasets and find that collapse is prevalent (see Fig. 3), especially pronounced on multi-class datasets such as ENZYMES [45].
To address the two fundamental challenges above, we present S³GLC, a novel Spectral Self-Supervised Graph-Level Clustering framework that jointly tackles limited expressivity and multi-class collapse in a unified, end-to-end pipeline. We introduce Spectral Signature based on the Hoffman-Wielandt inequality, proving that adjacency eigenvalue distances constitute a rigorous lower bound on GED and enable efficient global topology encoding beyond the 1-WL limit, complementing GIN-based Spatial Representation (Fig. 2). We propose joint manifold-preserving sparse regression (JMPSR) to fuse spectral and spatial views through row-sparse projections and manifold preservation, together with GED-guided contrastive learning that aligns spatial embeddings via topology-aware positive pairs. Finally, we formulate balanced pseudo-label generation as an optimal transport problem with equipartition constraints, solved efficiently by the Sinkhorn-Knopp (SK) algorithm to ensure balanced cluster assignments. In summary, our contributions are threefold:
-
We derive Spectral Signature from the Hoffman-Wielandt inequality, establishing it as a computationally tractable yet rigorous lower bound for GED that breaks the 1-WL expressivity ceiling without incurring NP-hard pairwise matching.
-
We propose JMPSR together with GED-guided contrastive learning to integrate global spectral and local spatial views, preserving critical complementary semantics through manifold structure while suppressing redundancy via row-sparse projections.
-
We introduce an optimal-transport-based balanced clustering objective with SK normalization, which enforces equipartition constraints on cluster assignments and mitigates the multi-class collapse prevalent in existing SOTA methods.
Extensive experiments on 10 real-world datasets against 15 competitive baselines demonstrate that S³GLC establishes new state-of-the-art results, with particularly pronounced gains on challenging multi-class benchmarks (e.g., +14.6% ACC on REDDIT-12K and +35.2% NMI on DD), validating the effectiveness of topology-enhanced, balanced GLC.
2.1 Graph-level Representation Learning
Current frameworks for unsupervised GRL can be broadly categorized into two streams: mutual information-based methods [40, 46, 68] and contrastive learning-based approaches [16, 23, 58]. Regarding the former, InfoGraph [53] learns graph embeddings by maximizing the mutual information between the global graph representation and multi-scale substructures. Similarly, HeGCL [52]
enhances the mutual information between similar views through a cross-view contrastive mechanism. The second category, contrastive learning, has gained significant traction. GraphCL [73] employs diverse graph augmentations with a contrastive loss to yield highly transferable and robust graph embeddings. GraphACL [42] introduces an adversarial branch to generate hard negative samples. Beyond these, several approaches emphasize capturing global graph semantics [39, 41, 54, 71]. GraphLog [66] enhances instance-level contrast with hierarchical prototypes representing global semantic clusters. These frameworks provide robust and transferable graph embeddings without supervision.
2.2 Graph-level Clustering
GLC aims to partition a set of unlabeled graphs into distinct groups based on semantic similarity. Traditional approaches typically employ graph kernels [8, 28, 43, 50, 51] to measure pairwise similarities via subgraph structures, subsequently applying spectral clustering algorithms to perform the partition. In recent years, GNNs have become the dominant approach for graph encoding [30, 64]. Inspired by advancements in deep learning [14, 21, 70], end-to-end clustering frameworks have been widely adopted. For instance, DGLC [11] and DCGLC [12] utilize pseudo-labels to supervise the clustering process within a unified framework. However, this self-training paradigm can inadvertently exacerbate the risk of clustering collapse. Furthermore, to effectively integrate global structural features with local node attributes, multi-view graph clustering methods [22, 36] have been proposed. However, existing approaches often fail to fully address the challenge of effectively aligning and exploiting the complementary information in different views.
3 Preliminaries
3.1 Graph Nomenclature and Terminology
Symbols and Problem Statement. Given a set of graphs , where the -th graph is associated with a node set , an edge set , and a node attribute matrix , denoted by . For each node , we use to represent the set of neighboring nodes of node . The adjacency matrix of graph is symbolized by . We denote by and the Laplacian and normalized Laplacian of graph , respectively. Throughout this paper, sets are denoted by calligraphic letters, e.g., . Matrices (resp. vectors) are written in bold uppercase (resp. lowercase) letters, e.g., (resp. ). We use and to represent the th row and column of , respectively. denotes the Frobenius norm of matrix , as for the computation of , is defined as the sum of the -norms of its rows. Table 1 summarizes frequently used symbols.
The goal of graph-level clustering (GLC) is to partition the graph set into disjoint groups: and for any , such that graphs within the same cluster are similar to each other in terms of topology and attribute semantics, while those across clusters are dissimilar to each other.
Manifold Structure. Given a data matrix , the manifold structure underlying it can be characterized by its graph Laplacian [6], . Particularly, a lower-dimensional matrix is said to preserve the
Table 1: Frequently used notations.
| Symbol | Description |
|---|---|
| The -th graph sample and its node and edge sets. | |
| The total number of graphs, clusters and batch size. | |
| The node attribute matrix and adjacency matrix of . | |
| The vector of sorted eigenvalues of | |
| The Spatial Representation and Spectral Signature of graphs. | |
| The consensus matrix and fused embeddings of graphs. | |
| The dimensions of , respectively | |
| The sparse projection matrices for and . | |
| The soft cluster assignment and the target distribution. |
manifold structure of if for any node pair with the lower value in , is minimized.
Sparse Regression. The sparse regression [25] eliminates feature redundancy by jointly evaluating feature subsets via sparse multi-output regression against the target matrix , formulated as:
Intuitively, the -norm induces row-sparsity on the projection matrix . Since each row of corresponds to a feature dimension, driving a row's -norm to zero effectively eliminates that feature.
3.2 Graph Isomorphism, WL test, and GED
Given two graphs and , we say they are isomorphic if there exists a bijective mapping function such that an edge iff the edge exists in . The graph isomorphism problem involves determining whether two graphs are isomorphic, i.e., topologically identical, which has no known polynomial-time algorithms for it yet [4].
The Weisfeiler-Lehman (WL) test of graph isomorphism [35] is an effective and fast (polynomial-time) tool for distinguishing a broad class of graphs. Its 1-dimensional form (1-WL test) iteratively (i) aggregates the labels of nodes and their neighbors, and (ii) hashes the aggregated labels into unique new labels. The test determines that two graphs are non-isomorphic if, at some iteration, the labels of the nodes between the two graphs are different.
In the literature, graph edit distance (GED) [48] generalizes isomorphism and acts as a standard continuous measure for quantifying the topological similarity of a graph pair. More concretely, the GED between two graphs and is defined as the minimum number of edit operations to make isomorphic to :
where denotes the set of all valid edit paths transforming to . An edit operation can be either one of the following node-wise/edge-wise operations of cost : (i) insert or delete an isolated vertex; and (ii) insert or delete an edge.

Figure 2: A toy example for 1-WL test.
3.3 Graph Isomorphism Networks
Compared to generic GNNs, graph isomorphism networks (GINs) [65] achieve higher discriminative power through an injective neighborhood aggregation scheme. That is, the rule for updating node representations therein is formulated as:
where represents the latent embedding for node at the -th layer (), and is a weighting coefficient. Distinct from generic GNNs that employ mean operators, GINs aggregates the features from neighborhood via a summation (i.e. ), which guarantees the injectivity of the aggregation function over multisets, thereby allowing the model to achieve discriminative power equivalent to the 1-WL test. Subsequently, GINs derive the Spatial Representation for each graph by applying global summation pooling over all final-layer node embeddings in : .
4 Design Motivation
In this section, we elaborate on our motivation for proposing SGLC by analyzing the inherent deficiencies of existing solutions.
4.1 Limited Effectiveness of GINs
While GINs match the theoretical limit of the 1-WL test, and thus, surpass generic GNNs in discriminability, the nature of their aggregation mechanism inherently makes them blind to global topological properties. Particularly, some graphs cannot be distinguished by the 1-WL test, e.g., distinct graphs with similar neighborhoods but different global topologies are possibly mapped to identical embeddings by GINs (Theorem 4.1).
THEOREM 4.1. If and cannot be distinguished by the 1-WL test, then their Spatial Representations by GINs are indistinguishable.
We use a toy example in Fig. 2 for illustration. It can be observed that and present distinct structures, i.e., are non-isomorphic, given that contains 4-cycles and is bipartite, whilst contains 3-cycles and is non-bipartite. Initially, nodes in graphs and are labeled with 1 or 2. After neighborhood aggregations, each node in the updated graph and possesses a
We consider the case where nodes/edges are unlabeled.

Figure 3: The PCR of existing models on real datasets.
new set of labels (c or o). At the graph level, the label multi-sets of and are identical, i.e., , which corroborates our above claim and implies that the Spatial Representations produced by GINs cannot solely represent the graphs effectively due to its inability to capture the global topology.
LEMMA 4.2 ([48]). and , iff and are isomorphic ().
According to Lemma 4.2, the GED can be used as an effective indicator for graph isomorphism and quantitative metric for measuring the topological differences between and , particularly where GINs fails. However, integrating the GED as augmented features into the representation learning of graphs presents a prohibitive computational barrier. The exact computation of GED is known to be NP-hard [10, 74], and even the approximation of a single pair of graphs with dozens of nodes is intractable [19], not to mention for the graph pairs.
4.2 Imbalanced Multi-Class Clustering
The SOTA GLC models DCGLC [12] and DGLC [11] enable end-to-end training for effective self-supervised clustering by minimizing the Kullback-Leibler (KL) divergence between a soft cluster assignment Q and a sharpened target distribution T [62].
Despite sharpening the soft cluster assignments, this mechanism suffers from a critical flaw: it lacks explicit global constraints on the cluster sizes and tends to produce imbalanced clusters, which is particularly severe in multi-class scenarios. To be specific, unlike binary clustering (widely adopted in previous GLC works [11, 12]), where assignments are naturally antagonistic, in multi-class settings, existing models can easily collapse the majority of samples into a few dominant groups while leaving others empty [3, 13].
As empirical evidence, we quantify the discrepancy in distributional imbalance between the ground-truth class distribution and the predicted clustering results by DCGLC and DGLC. To this end, we employ a metric derived from the Normalized Shannon Entropy [49], referred to here as the Partition Collapse Ratio (PCR), defined as:
Here, denotes the proportion of samples assigned to the k-th cluster, and the denominator represents the maximum possible entropy. The PCR of clusters ranges from 0 to 1, and the larger (resp. smaller) value indicates a higher

Figure 4: The overall framework of S³GLC.
(resp. lower) degree of cluster collapse or imbalance. Fig. 3 reports the PCR values calculated upon ground-truth clusters and those output by baselines DCGLC and DGLC over 10 real datasets with multiple classes (see Table 2). It can be observed that the PCRs achieved by DCGLC and DGLC are consistently and conspicuously higher than the ground-truth PCR values. For example, on ENZYMES dataset, the PCR values by DCGLC and DGLC are over 0.55, whereas the ground-truth PCR is almost 0. This significant gap demonstrates that the baseline models suffer from severe clustering collapse problems on multi-class graph datasets, which, in turn, hinders them from gaining further inroads on clustering performance.
5 Methodology
In this section, we present our proposed S³GLC model to cope with the foregoing limitations of existing works in GLC. We begin with a synoptic overview of S³GLC in §5.1, followed by elaborating on the algorithmic details for constructing Spectral Signature in §5.2, the fusion of graph feature vectors in §5.3, and training and balanced clustering loss functions in §5.4. Lastly, §5.5 provides the complexity analysis of S³GLC.
5.1 Synoptic Overview
As illustrated in Fig. 4, the major stages S³GLC include learning the final graph representations and deriving clusters therefrom. More concretely, the representation learning involves three main components. The first is to construct the Spectral Signature for graphs, whose high-level idea is to derive the spectral signatures of each graph's adjacency matrix to approximate the GED, and thus, capture the global structural signatures. In the meantime, Spatial Representation that encodes both node attributes and local neighborhoods in each graph is generated by classic GINs models:
Afterwards, S³GLC seeks to fuse and into the final representations so as to retain complementarity while eliminating redundancy. Towards this end, S³GLC learns two projection matrices and through JMPSR module, which projects and into a unified lower-dimensional space, i.e.,
Based thereon, the unified representation Z is obtained by
In the first stage, S GLC facilitates the learning of H via a GED-guided contrastive learning objective, and includes a self-supervised clustering loss that explicitly harnesses the Sinkhorn-Knopp normalization to avert cluster collapse.
5.2 Spectral Signature for Graphs
Instead of calculating the GED of graph pairs for the construction of embedding vectors [5], which entails prohibitive computational and training overhead, S GLC resorts to directly deriving signatures from the spectrum of each graph independently as the GED-approximate embedding for the graph.
More concretely, we reformulate the GED computation as an equivalent problem of finding the optimal permutation matrix P that optimizes the following objective [77]:
where denotes the set of all valid permutation matrices and represents the permutations of the rows and columns in for node matching between and . Note that when , we can simply pad zero rows and columns to the smaller adjacency matrices to ensure the dimension consistency.
LEMMA 5.1 (SPECTRAL PERMUTATION INVARIANCE). Let A be the adjacency matrix of a graph. For any permutation matrix , the spectrum of the permuted matrix is identical to that of A.
THEOREM 5.2 (HOFFMAN-WIELANDT INEQUALITY [24]). Let denote the eigenvalues of a real symmetric matrix sorted in descending order. For any two such matrices and , the following inequality holds: .
The direct optimization of Eq. (8) is still NP-hard. Our core idea is to leverage our Lemma 5.1 and the Hoffman-Wielandt theorem [24] (Theorem 5.2) for an approximate solution. More precisely, from Lemma 5.1, the eigenvalue sequences correspond exactly under any permutation:
Using Theorem 5.2, our optimization objective in Eq. (8) can be lower bounded as follows:
where and denote the vectors containing the respective sorted eigenvalues of and , referred to as Spectral Signature hereafter.
Eq. (9) reveals that the Euclidean distance between Spectral Signature serves as a rigorous lower bound for the GED of graph pair , which accurately captures the topological similarity between graphs. On top of that, the Spectral Signature of each graph can be very efficiently computed by merely applying the high-performance eigenvalue solvers [34] in common numeric computation libraries over its small and sparse adjacency matrix (often with only dozens of nodes and edges) in GLC tasks. Since the small eigenvalue part is negligible, we pick the top-r largest eigenvalues in of each graph to act as its Spectral Signature :
We revisit the example in Fig. 2. With the Spectral Signature and for and , respectively, these two graphs can be easily distinguished now.
5.3 Joint Manifold-Preserving Sparse Regression Feature Fusion
We fuse two complementary graph views, i.e., Spatial Representation H and Spectral Signature F, whose discrepant information is critical for discriminating graphs. Accordingly, our fusion preserves view-specific information while suppressing noisy information.
5.3.1 Fusion Objectives. To suppress noisy information during fusion, we introduce a latent consensus space Y, which can guide the learning of the projection matrices and , specifically, we propose the joint sparse regression scheme:
where the regression term aligns both views to the same consensus space, while the sparse regularization term promotes row-sparsity in and , which is formally justified in Appendix A.5. This row-wise sparsification can act as a denoising function during fusion.
In multi-view fusion, discrepant information is often treated as noise and removed [59], so we expect the consensus representation Y to guide the Spatial Representation H and Spectral Signature F to preserve view-specific complementary information during projection.
THEOREM 5.3 ([47]). For , minimizing can force preserve the manifold structure of .
Inspired by Theorem 5.3, we further require Y capturing both the shared and view-specific manifold structures of the Spatial Representation H and Spectral Signature F, which minimizes the weighted pairwise distances in both feature spaces [25]. The corresponding joint manifold structure preservation objective can be formulated as:
where and the represents the consensus affinity matrix of projected features and defined in Eq. (13).
Finally, we keep and set the remaining entries to 0 via element-wise thresholding. The cross-affinity terms preserve the shared manifold structure, whereas the self-affinity terms preserve the view-specific manifold structure.
In a nutshell, the overall fusion objective is formulated as:
5.3.2 Closed-form Solutions. Notice that our optimization objective in Eq. (14) is not jointly convex with respect to all variables. However, it is convex with respect to each variable when the others are fixed. Therefore, we resort to an alternating optimization strategy to iteratively update the latent feature space Y, and projection matrices and .
Update and . When fixing Y, the optimization for (resp. ) becomes a standard sparse regression problem. Taking the derivative of the objective function with respect to and setting it to zero, we obtain , where is a diagonal matrix whose the k-th diagonal element is , which essentially re-weights the features during. Accordingly, the closed-form solution is:
Analogously, we can derive , where is a diagonal matrix whose the -th diagonal element is .
Update Y. When the projection matrices and are fixed, the optimization problem w.r.t. Y can be rewritten by substituting the optimal W back into the original objective, yielding
where the auxiliary matrix M is defined as:
The detailed derivative steps are deferred to Appendix A.7 for the interest of space. As per Ky Fan's trace maximization principle [18], the trace minimization problem in Eq. (16) can be optimized by computing the smallest eigenvectors of as , and the shape of depends on the batch size , i.e. .
5.4 Self-Supervised Training and Clustering
To facilitate the learning of Spatial Representation H by GINs and its resulting representations (Eq. (7)), as well as the clustering of , we include two self-supervised training objectives: GED-guided contrastive learning loss and balanced graph-level clustering loss , leading to our overall training loss: .
5.4.1 GED-guided Contrastive Learning. To create discriminative Spatial Representation H from GINs, we propose to introduce a new graph contrastive learning objective [63] to incorporate the topological relevance (i.e., GED) of graph samples, which is shown to be preserved in their Spectral Signature. Specifically, given the Spectral Signature F, for each anchor graph sample , we pick its -nearest neighbors in terms of their embedding similarities in F, constituting its positive neighbor set as follows:
where is an operator that retrieves the top- elements based on the similarity. For simplicity, we fix in all experiments.
The contrastive loss is then formulated to maximize the similarity between positive pairs in the neighbor set:
where denotes the cosine similarity, and is a temperature parameter controlling the smoothness of the distribution. Notably, is subtracted in the denominator to eliminate the self-similarity effect of the anchor sample itself [15].
5.4.2 Balanced Graph-level Clustering. We also adopt the following loss [62] for deep clustering:
which is to minimize the KL divergence between the soft assignment Q and the target distribution T. In particular, we follow [62] to construct the soft assignment Q, but propose to achieve cluster balance by explicitly constraining the target distribution T.
Specifically, after obtaining the final representations , we partition the graphs into groups by applying -Means over , yielding initial cluster cluster centroids: . Following the standard practice in [3, 62], we utilize the Student's -distribution kernel to quantify the probability of assigning the -th graph to the -th cluster:
This formulation ensures that , forming a valid probability distribution for each sample.
To cope with the multi-class imbalance issue stated in §4.2, we take inspiration from the optimal transport [17]. That is, we first impose the following constraint over the target distribution T, i.e., , , which forces the probability distribution in T to be doubly normalized. Most importantly, the target distribution T should optimize the following objective:
where and denotes the Frobenius dot-product. The first term corresponds to the cross-entropy loss, encouraging to align with high-confidence predictions, whereas the second term acts as an entropic regularizer with coefficient , which ensures the problem is strictly convex and solvable. The solution space is restricted to the transport polytope . By setting the marginals to and , we strictly enforce the equipartition constraint, theoretically guaranteeing that no cluster collapses.
LEMMA 5.4. Let and , where is the kernel matrix and denotes the element-wise division. The optimal solution to Eq. (22) is .
According to Lemma 5.4, the target distribution T can be constructed through a dual scaling of the kernel matrix K, which is efficiently solved using the celebrated Sinkhorn-Knopp algorithm [17] as outlined in Algorithm 1.
5.5 Complete Algorithm and Analysis
Algorithm 2 summarizes the training pipeline of . Given a graph dataset and hyperparameters , the method first initializes the GINs parameters and the projection matrices , and then computes Spectral Signatures for each graph. For each epoch, it extracts Spatial Representations using
Algorithm 1: Sinkhorn-Knopp Normalization [17]
Input: , , .
Output: .
1 Calculate ;
2 Initialize ;
3 Define and ;
4 for step = 1 to do
5 ;
6 ;
7 end
8 Calculate ;
9 return
GINs with sum pooling. Next, it performs alternating optimization to fuse views by iteratively updating and the consensus matrix until convergence, and then obtains the fused embedding . Based on , it computes the topology-aware contrastive loss , derives soft cluster assignments , and computes an OT-based transport plan to enforce balanced clustering, yielding . The parameters are updated by backpropagation with the joint loss. After training, hard clustering labels are obtained from by row-wise argmax (one-hot).
Algorithm 2: The pipeline of SGLC
Input: Dataset , Clusters .
Output: Clustering results .
/* Initialization & Preprocessing */
1 Initialize ; Initialize randomly;
2 Compute via Eq. (10) ;
/* Joint Training Loop */
3 for step = 1 to do
4 ;
5 repeat
6 via Eq. (15);
7 via Eq. (17);
8 until Convergence;
9 Calculate via Eq. (7);
10 Compute via Eq. (19);
11 Obtain via Eq (21);
12 Obtain via Algorithm 1;
13 Compute via Eq. (20);
14 Update via Backpropagation;
15 end
16 Invoke to ;
17 return
Complexity Analysis. We analyze the complexity of SGLC based on the complete algorithm above. Following [65], and assuming as the average number of nodes per graph, the complexity of GINs is . The updates of and are performed within mini-batches of size . Specifically, constructing the affinity matrix
Table 2: The statistics of tested datasets
| Dataset | #Graphs | #Avg. Nodes | #Avg. Edges | #Clusters |
|---|---|---|---|---|
| BZR | 405 | 35.8 | 38.4 | 2 |
| MUTAG | 188 | 17.9 | 19.8 | 2 |
| PTC-MR | 344 | 14.3 | 14.7 | 2 |
| PTC-MM | 336 | 13.97 | 14.32 | 2 |
| ENZYMES | 600 | 32.6 | 62.1 | 6 |
| DD | 1178 | 284.3 | 715.7 | 2 |
| AIDS | 2000 | 15.7 | 16.2 | 2 |
| COLLAB | 5,000 | 74.5 | 2457.8 | 3 |
| REDDIT-12K | 11,929 | 391.4 | 456.9 | 11 |
| OGBG-PPA | 20,000 | 238.7 | 2266.1 | 13 |
and updating Y involve operations on matrices, costing per batch, the total complexity for the fusion module is . Similarly, the cost for is reduced to linear dependence on N via batching. The number of Sinkhorn-Knopp iterations is set to a constant, each of which operate on an matrix and thus costs . Overall, the time complexity of is , which is linear with respect to N.
6 Experiments
This section experimentally evaluates S GLC against 15 competitors regarding clustering quality and efficiency on 10 real GLDs of varied volumes. All experiments are conducted on a Linux machine with an NVIDIA Ampere A100 GPU (80 GB memory), AMD EPYC 7513 CPUs (2.6 GHz), and 1TB RAM. The codes of all algorithms are collected from their respective authors.
6.1 Experimental Setup
Datasets. We evaluate across three dataset families [45, 55, 69]: molecular datasets (BZR, MUTAG, PTC-MR, PTC-MM, AIDS), biological datasets (ENZYMES, DD, OGBG-PPA), and social networks datasets (COLLAB, REDDIT-12K). All datasets include node attributes except COLLAB. The class labels range from binary to multi-class (e.g., ENZYMES: 6, REDDIT-12K: 11, COLLAB: 3). Relatively large collections by graph count are REDDIT-12K and OGBG-PPA (>10k graphs). For detailed statistics of these datasets, please refer to Table 2.
Baselines. We select methods with state-of-the-art results and implement them using their recommended hyperparameter settings. The baselines fall into three categories: (1) Graph Kernels (GK): SP [8], RW [43], WL [50], LT [28], GLK [51]; (2) Unsupervised Graph Representation Learning (UGRL): InfoGraph [53], GraphCL [73], CuCo [16], MVGL [23], GZL [41], and (3) Graph-Level Clustering (GLC): GWF [64], GLCC [30], DGLC [11], DCGLC [12], GPC [14]. For GK and UGRL, clustering is performed with KMeans on the eigenvectors of kernel-based similarity matrix and learned graph embeddings, respectively.
6.2 Clustering Quality Evaluation
We conduct a comprehensive evaluation of clustering quality on 10 graph datasets against 15 baselines. When a method encounters out-of-memory (OOM) or its runtime exceeds 48 h on a dataset, we mark the entry as "-". We categorize datasets by the number of graphs, datasets with more than (resp. less than) 1000 graphs are categorized as Large datasets (resp. Small datasets). For each metric column, the top-1 result is highlighted in dark blue and the top-2 result in
Table 3: Clustering quality on small datasets (best is highlighted in blue and best baseline underlined).
| Method | PTC-MM | BZR | PTC-MR | ENZYMES | MUTAG | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | |
| SP [8] | 61.0±0.0 | 0.8±0.0 | 2.6±0.0 | 52.5±0.0 | 1.6±0.0 | 2.7±0.0 | 60.4±0.0 | 1.3±0.0 | 1.5±0.0 | 23.9±0.0 | 5.0±0.0 | 2.0±0.0 | 68.2±0.0 | 28.7±0.0 | 11.8±0.0 |
| RW [43] | 65.3±0.0 | 0.2±0.0 | 0.8±0.0 | 73.6±0.0 | 0.3±0.0 | 1.2±0.0 | 59.2±0.0 | 0.4±0.0 | 0.1±0.0 | 17.7±0.0 | 1.9±0.0 | 0.0±0.0 | 68.9±0.0 | 0.3±0.0 | 0.9±0.0 |
| WL [50] | 62.3±0.0 | 0.2±0.0 | 1.8±0.0 | 50.7±0.0 | 1.4±0.0 | 1.2±0.0 | 55.3±0.0 | 0.1±0.0 | -0.1±0.0 | 23.5±0.0 | 3.7±0.0 | 1.7±0.0 | 71.9±0.0 | 25.4±0.0 | 18.4±0.0 |
| LT [28] | 64.6±0.0 | 2.2±0.5 | 5.0±1.1 | 78.3±3.8 | 12.1±0.2 | 18.2±1.4 | 59.2±1.2 | 0.9±0.0 | 2.2±0.1 | 24.1±0.04 | 4.0±0.1 | 1.2±0.1 | 55.6±2.8 | 5.6±0.8 | 0.6±0.2 |
| GLC [51] | 63.3±0.0 | 0.1±0.0 | 0.9±0.0 | 69.8±0.0 | 8.1±0.0 | 7.7±0.0 | 57.9±0.0 | 0.1±0.0 | 0.0±0.0 | 26.1±0.0 | 5.2±0.0 | 2.8±0.0 | 67.4±0.0 | 23.8±0.0 | 11.8±0.0 |
| InfoGraph [53] | 61.8±1.1 | 2.5±0.9 | 3.8±1.6 | 62.8±1.8 | 1.2±0.3 | 2.4±0.2 | 57.5±0.8 | 0.6±0.2 | 1.4±0.3 | 23.9±0.8 | 4.4±0.2 | 2.3±0.1 | 77.8±1.6 | 34.2±2.8 | 30.5±2.4 |
| GraphCL [73] | 58.9±0.6 | 0.4±0.2 | 0.8±0.3 | 73.2±1.5 | 8.5±0.7 | 10.3±1.4 | 60.0±0.2 | 1.0±0.0 | 2.4±0.1 | 21.2±0.7 | 3.1±0.3 | 0.9±0.1 | 74.7±1.8 | 23.7±2.3 | 22.7±0.8 |
| CuCo [16] | 60.2±0.3 | 0.3±0.0 | 2.2±0.0 | 68.3±0.1 | 1.1±0.1 | 0.6±0.0 | 53.6±0.1 | 0.0±0.0 | 0.0±0.0 | 23.9±0.3 | 4.8±0.2 | 2.1±0.1 | 73.3±0.4 | 29.8±1.2 | 21.1±0.4 |
| MVGRL [23] | 61.6±0.7 | 0.2±0.0 | 0.7±0.2 | 62.2±0.3 | 1.7±0.0 | 2.7±0.0 | 55.3±0.1 | 0.0±0.0 | 0.0±0.0 | 24.5±0.3 | 5.0±0.2 | 2.0±0.0 | 68.9±0.7 | 22.5±2.4 | 13.3±1.2 |
| GZL [41] | 54.8±1.1 | 2.0±0.1 | 0.1±0.0 | 71.3±0.1 | 13.1±0.8 | 4.1±0.2 | 59.0±0.0 | 4.9±0.0 | 2.1±0.0 | 25.2±0.6 | 5.5±0.2 | 1.6±0.2 | 69.7±0.1 | 6.9±0.0 | 7.0±0.0 |
| GWF [64] | 56.3±2.7 | 1.4±0.7 | 2.1±0.7 | 58.8±1.2 | 0.9±0.2 | 2.0±0.1 | 58.1±0.3 | 1.5±0.3 | 2.3±0.4 | 21.5±1.3 | 1.5±0.2 | 0.2±0.0 | 77.7±5.2 | 29.5±3.4 | 30.3±6.8 |
| GLCC [30] | 61.8±3.1 | 1.2±0.8 | 1.8±1.1 | 63.3±6.4 | 3.3±0.2 | 2.4±0.1 | 55.6±0.2 | 1.3±0.1 | 0.9±0.0 | 23.6±0.7 | 2.2±0.2 | 0.6±0.1 | 63.1±1.2 | 6.8±1.3 | 4.5±0.6 |
| DGLC [11] | 63.8±0.2 | 2.7±0.5 | 5.5±0.6 | 81.2±1.1 | 11.4±0.3 | 20.4±0.3 | 59.5±2.7 | 2.4±0.6 | 3.3±0.8 | 24.1±1.2 | 5.4±0.3 | 1.6±0.2 | 84.4±2.1 | 33.1±1.3 | 46.1±1.8 |
| DCGLC [12] | 64.9±0.7 | 3.8±1.2 | 6.0±0.6 | 81.7±1.7 | 15.2±1.1 | 20.6±1.3 | 58.2±1.4 | 2.1±0.1 | 2.3±0.3 | 26.6±1.1 | 5.1±0.6 | 2.4±0.7 | 86.7±0.8 | 42.4±3.2 | 53.2±2.3 |
| GPC [14] | 61.5±1.2 | 4.6±0.3 | 4.9±0.4 | 81.0±0.0 | 9.3±0.0 | 18.6±0.0 | 51.8±0.1 | 2.3±0.0 | 2.1±0.0 | 26.8±0.3 | 6.9±0.1 | 3.4±0.1 | 75.5±0.5 | 31.4±0.2 | 25.6±0.1 |
| S³GLC Improv. | 67.9±0.6 +2.6 | 3.3±0.9 -1.3 | 6.2±0.5 +0.2 | 79.7±0.0 -2.0 | 16.1±0.0 +0.9 | 23.5±0.2 +2.9 | 64.0±1.5 +3.6 | 6.2±2.8 +1.3 | 6.0±1.6 +2.7 | 36.5±2.3 +9.7 | 26.0±2.3 +19.1 | 11.3±2.2 +7.9 | 87.4±0.8 +0.7 | 41.4±2.0 -1.0 | 55.0±2.4 +1.8 |
Table 4: Clustering quality on large datasets (best is highlighted in blue and best baseline underlined).
| Method | AIDS | DD | COLLAB | REDDIT-12K | OGBG-PPA | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | ACC ↑ | NMI ↑ | ARI ↑ | |
| SP [8] | 83.6±0.0 | 35.4±0.0 | 38.0±0.0 | 58.5±0.0 | 0.2±0.0 | 0.1±0.0 | 55.7±0.0 | 8.1±0.0 | 2.9±0.0 | 19.2±0.0 | 7.8±0.0 | 1.3±0.0 | 15.6±0.0 | 6.7±0.0 | 1.8±0.0 |
| RW [43] | 72.3±0.0 | 7.6±0.0 | 5.7±0.0 | 58.7±0.0 | 0.1±0.0 | 0.2±0.0 | 52.1±0.0 | 1.1±0.0 | 0.1±0.0 | — | — | — | — | — | — |
| WL [50] | 87.2±0.0 | 45.7±0.0 | 50.7±0.0 | 58.4±0.0 | 0.4±0.0 | -0.1±0.0 | 55.4±0.0 | 6.7±0.0 | 2.8±0.0 | 20.6±0.0 | 12.7±0.0 | 5.1±0.0 | 15.9±0.0 | 7.2±0.0 | 2.5±0.0 |
| LT [28] | 53.2±1.3 | 5.6±0.6 | 3.4±0.1 | — | — | — | — | — | — | — | — | — | — | — | — |
| GLK [51] | 83.5±0.0 | 35.2±0.0 | 37.1±0.0 | 57.9±0.0 | 1.5±0.0 | 1.1±0.0 | — | — | — | 18.3±0.0 | 7.3±0.0 | 0.0±0.0 | — | — | — |
| InfoGraph [53] | 82.8±2.7 | 26.0±2.4 | 37.2±3.8 | 58.4±0.0 | 0.3±0.0 | 0.0±0.0 | 56.7±1.1 | 16.3±1.4 | 7.3±0.9 | 22.3±1.1 | 4.2±0.3 | 0.5±0.2 | 13.2±0.2 | 1.7±0.4 | 0.1±0.0 |
| GraphCL [73] | 84.8±0.5 | 38.7±0.6 | 42.7±1.1 | 57.6±1.3 | 1.5±0.4 | 0.0±0.0 | 55.2±0.3 | 9.1±0.1 | 3.1±0.1 | 22.1±0.6 | 3.3±0.0 | 0.3±0.0 | 16.2±0.8 | 4.3±0.3 | 1.1±0.2 |
| CuCo [16] | 84.1±0.6 | 36.7±0.2 | 39.6±0.3 | 58.4±0.3 | 0.4±0.1 | 0.0±0.0 | 56.7±0.5 | 9.5±1.1 | 3.4±0.7 | 22.4±0.1 | 4.2±0.0 | 0.5±0.0 | 14.1±0.5 | 3.0±0.4 | 0.8±0.2 |
| MVGRL [23] | 87.4±2.1 | 46.3±1.4 | 51.3±1.4 | — | — | — | — | — | — | — | — | — | — | — | — |
| GZL [41] | 78.4±1.2 | 26.5±0.7 | 15.3±1.2 | 62.3±0.0 | 3.3±0.0 | 4.2±0.0 | 59.3±0.7 | 18.6±0.6 | 15.9±0.7 | 19.2±1.1 | 11.2±0.5 | 5.2±0.3 | 17.4±0.1 | 7.9±0.0 | 2.8±0.0 |
| GWF [64] | 82.1±5.4 | 31.8±4.9 | 39.1±6.4 | 50.8±0.3 | 0.3±0.0 | 0.6±0.1 | 48.5±3.2 | 9.2±2.1 | 2.4±0.3 | — | — | — | — | — | — |
| GLCC [30] | 70.7±3.4 | 6.1±1.3 | 0.1±0.0 | 64.8±3.3 | 3.2±0.4 | 3.5±0.2 | 52.8±3.3 | 13.5±2.2 | 9.6±1.8 | 22.6±0.2 | 10.8±0.4 | 5.6±0.0 | 16.1±0.4 | 4.3±0.3 | 2.4±0.1 |
| DGLC [11] | 88.5±3.4 | 39.8±2.3 | 47.6±2.3 | 58.7±1.4 | 1.7±0.3 | 2.1±0.2 | 61.2±2.1 | 23.5±1.8 | 16.0±0.9 | 23.2±0.6 | 11.5±1.4 | 7.2±0.7 | 14.9±0.8 | 3.6±0.3 | 0.0±0.0 |
| DCGLC [12] | 95.5±2.3 | 64.8±3.4 | 78.4±3.3 | 74.2±1.3 | 12.8±0.1 | 20.3±0.2 | 55.2±0.0 | 9.1±0.0 | 3.1±0.0 | 22.2±0.1 | 3.2±0.0 | 0.2±0.0 | 17.6±0.3 | 8.2±1.4 | 6.7±1.4 |
| GPC [14] | 84.2±0.3 | 20.6±0.4 | 23.8±0.3 | 60.9±0.2 | 3.2±0.0 | 2.1±0.0 | 60.4±0.3 | 19.9±0.1 | 11.5±0.1 | 21.9±0.1 | 9.3±0.3 | 1.7±0.0 | 16.1±0.2 | 4.0±0.1 | 1.7±0.1 |
| S³GLC Improv. | 99.3±0.2 +3.8 | 93.6±1.6 +28.8 | 96.9±0.9 +18.5 | 84.1±0.7 +9.9 | 48.0±3.6 +35.2 | 46.4±1.8 +26.1 | 69.3±0.5 +8.1 | 29.5±2.9 +6.0 | 25.5±1.1 +9.5 | 37.8±0.6 +14.6 | 39.5±1.2 +26.8 | 18.9±0.5 +11.7 | 25.8±2.1 +8.2 | 24.8±2.8 +16.6 | 10.9±1.7 +4.2 |
light blue; the best-performing baseline is underlined. The last row ("Improv.") reports the absolute improvement (in percentage points) of our method over the strongest baseline in that column.
S³GLC establishes a new state-of-the-art by delivering substantial improvements across datasets of varying sizes and complexities. Specifically, it achieves remarkable boosts on widely used binary datasets in UGRL and GLC. For instance, on AIDS and DD, it increases NMI by 28.8% and 35.2%, and ARI by 18.5% and 26.1%, respectively, culminating in a near-perfect 99.3% ACC on AIDS. Unlike many GLC methods that yield limited gains on complex multi-class tasks, our approach proves highly effective. On ENZYMES, a representative multi-class benchmark, S³GLC markedly outperforms the runner-up method GPC by improving ACC, NMI, and ARI by 9.7%, 19.1%, and 7.9%, respectively.
Most notably, S³GLC demonstrates robust scalability on large graphs where SOTA baselines frequently fail or degrade drastically. On massive datasets with over ten classes, such as REDDIT-12K and OGBG-PPA, our method consistently maintains leading capabilities. Specifically, it improves ACC by 14.6% and 8.2%, NMI by 26.8% and 16.6%, and ARI by 11.7% and 4.2% on REDDIT-12K and OGBG-PPA, respectively, validating its superiority in handling large-scale graph clustering.
6.3 Ablation Study
To verify the effectiveness of each critical component within the S³GLC framework, we conducted a comprehensive ablation analysis as presented in Table 5 and Table 6.
As discussed in §4.2, multi-class datasets are prone to clustering collapse. Empirically, removing causes substantial degradation: ACC drops by 5.3% on ENZYMES (6) and 2.5% on REDDIT-12K (11), whereas fluctuations are negligible on binary datasets like MUTAG. This confirms that balanced constraints via Sinkhorn-Knopp algorithm successfully prevent trivial solutions. An intuitive manifestation of the cluster-balancing effect induced by can be found in the visualization results reported in Appendix B.4.
To evaluate the JMPSR, we replaced it with standard MLP reduction. Results reveal significant declines on complex datasets like DD and REDDIT-12K, where ACC decreases by 10.7% and 13.2%, respectively. As designed in §5.3, our mechanism filters noise while preserving complementary semantics between Spatial Representation and Spectral Signature. Furthermore, removing degrades clustering consistency; on ENZYMES, the NMI of w/o drops by 7.6%.
To demonstrate the effectiveness of Spectral Signature, we replaced the global structural features with common GK methods, and
Table 5: Ablation study.
| Dataset | w/o | JMPSR | |||
|---|---|---|---|---|---|
| ENZYMES | ACC ↑ | 31.2 2.7 | 34.3 3.2 | 26.9 0.8 | 36.5 2.3 |
| NMI ↑ | 18.4 6.3 | 18.4 6.2 | 5.8 0.7 | 26.0 2.3 | |
| ARI ↑ | 7.3 2.8 | 9.9 3.8 | 3.1 0.4 | 11.3 2.2 | |
| MUTAG | ACC ↑ | 86.5 0.9 | 86.2 0.4 | 86.5 0.5 | 87.4 0.8 |
| NMI ↑ | 39.4 2.2 | 38.7 0.9 | 38.8 1.7 | 41.4 2.0 | |
| ARI ↑ | 51.8 3.0 | 51.3 1.4 | 52.2 1.7 | 55.0 2.4 | |
| DD | ACC ↑ | 82.9 1.2 | 82.8 1.1 | 73.4 2.3 | 84.1 0.7 |
| NMI ↑ | 38.0 6.3 | 43.4 5.0 | 26.4 4.3 | 48.0 3.6 | |
| ARI ↑ | 43.2 3.2 | 43.1 2.9 | 22.3 3.8 | 46.4 1.8 | |
| REDDIT-12K | ACC ↑ | 35.3 3.0 | 37.7 2.5 | 24.6 1.5 | 37.8 0.6 |
| NMI ↑ | 39.2 1.7 | 39.2 1.7 | 15.8 0.6 | 39.5 1.2 | |
| ARI ↑ | 17.5 0.9 | 18.2 1.3 | 6.4 0.7 | 18.9 0.5 |
Table 6: The effectiveness of Spectral Signature.
| Dataset | Structural Features | ACC ↑ | NMI ↑ | ARI ↑ |
|---|---|---|---|---|
| ENZYMES | SP [8] | 33.2 2.2 | 16.3 2.7 | 10.1 2.5 |
| RW [43] | 26.4 2.3 | 6.7 2.3 | 4.2 2.2 | |
| WL [50] | 32.9 0.9 | 13.4 0.6 | 9.8 1.0 | |
| GLK [51] | 33.9 2.5 | 15.3 4.0 | 9.7 2.4 | |
| ours | 36.5 2.3 | 26.0 2.3 | 11.3 2.2 | |
| MUTAG | SP [8] | 82.2 3.8 | 31.7 7.0 | 25.2 7.5 |
| RW [43] | 82.7 3.9 | 24.8 9.7 | 30.7 11.0 | |
| WL [50] | 84.5 1.9 | 34.2 2.4 | 41.6 3.8 | |
| GLK [51] | 81.0 3.1 | 29.4 11.6 | 35.1 6.5 | |
| ours | 87.4 0.8 | 41.4 2.0 | 55.0 2.4 | |
| DD | SP [8] | 71.0 5.3 | 21.4 8.3 | 18.5 8.8 |
| RW [43] | 72.3 5.6 | 20.2 12.7 | 20.5 10.8 | |
| WL [50] | 68.7 3.7 | 12.8 6.0 | 14.4 6.1 | |
| GLK [51] | 69.5 6.3 | 20.2 8.0 | 16.4 9.8 | |
| ours | 84.1 0.7 | 48.0 3.6 | 46.4 1.8 | |
| REDDIT-12K | SP [8] | 23.2 1.1 | 16.5 2.1 | 4.4 1.3 |
| RW [43] | - | - | - | |
| WL [50] | 22.4 1.2 | 11.2 3.4 | 2.1 0.8 | |
| GLK [51] | 20.7 0.8 | 8.8 2.3 | 1.3 0.5 | |
| ours | 37.8 0.6 | 39.5 1.2 | 18.9 0.5 |

(a) ENZYMES
(b) DD
(c) REDDIT-12K
Figure 5: Varying r
the results are presented in Table 6. It can be seen that our method comprehensively outperforms traditional GK methods. Notably, on DD, compared to the best-performing SP, our method improves NMI by 26.6%, demonstrating that our method effectively captures global topological differences ignored by Spatial Representation and traditional GK methods.
6.4 Hyperparameter Analysis
We investigate the sensitivity of two pivotal hyperparameters: the Spectral Signature dimension r and the fused feature dimension d. As illustrated in Fig. (5), the model demonstrates strong robustness to variations in r, particularly on large-scale datasets like REDDIT-12K. This corroborates our theoretical basis relying on the Hoffman-Wielandt inequality: the top-r eigenvalues suffice as

Figure 6: Varying d
a rigorous lower bound for GED to capture core global topology without introducing excessive noise. Regarding d in Fig. (6), the performance exhibits minimal fluctuation. This stability is attributed to the JMPSR, which effectively filters multi-view redundancy, ensuring the learning of a compact and consistent manifold representation Y regardless of dimensional shifts.
6.5 Efficiency Analysis

(a) Runtime Analysis

(b) Memory Usage Analysis
Figure 7: Efficiency analysis across training stages. (a) Average runtime per epoch. (b) Peak memory usage.
Figure 7 presents a detailed efficiency analysis of S GLC. Specifically, Fig. 7 (a) reports the average runtime per mini-batch in each epoch, while Fig. 7 (b) records the global peak memory usage during training for each epoch. As illustrated, both JMPSR (Stage II) and Balanced clustering (Stage III) incur substantially lower time and memory overheads than GIN encoding (Stage I), demonstrating that our core methodological enhancements introduce negligible complexity.
7 Conclusion
In this paper, to address the limited expressivity of GINs in GLC and the clustering collapse in multi-class settings, we propose . The method leverages Spectral Signature to capture global topology, performs JMPSR with feature fusion, and introduces a constraint to achieve balanced clustering. Nevertheless, the current design is mainly tailored to homogeneous graphs and is limited to static graph structures. In future work, we will extend the algorithm to the analysis of heterogeneous or dynamic graph data.
References
[1] José María Amigo, Jorge Gálvez, and Vincent M Villar. 2009. A review on molecular topology: applying graph theory to drug discovery and design. Naturwissenschaften 96, 7 (2009), 749–761.
[2] Tejaswini Ananthanarayana, Lipisha Chaudhary, and Ifeoma Nwogu. 2022. SignNet: Single Channel Sign Generation using Metric Embedded Learning. 2023 IEEE 17th International Conference on Automatic Face and Gesture Recognition (FG) (2022), 1–7. https://api.semanticscholar.org/CorpusID:254274967
[3] Yuki M Asano, Christian Rupprecht, and Andrea Vedaldi. 2020. Self-labelling via simultaneous clustering and representation learning. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=B1esx6EYvr
[4] László Babai. 2016. Graph isomorphism in quasipolynomial time. In Proceedings of the forty-eighth annual ACM symposium on Theory of Computing. 684–697.
[5] Yunsheng Bai, Hao Ding, Song Bian, Ting Chen, Yizhou Sun, and Wei Wang. 2019. Simgn: A neural network approach to fast graph similarity computation. In Proceedings of the twelfth ACM international conference on web search and data mining. 384–392.
[6] Mikhail Belkin and Partha Niyogi. 2003. Laplacian eigenmaps for dimensionality reduction and data representation. Neural computation 15, 6 (2003), 1373–1396.
[7] Pietro Bongini, Monica Bianchini, and Franco Scarselli. 2011. Molecular generative graph neural networks for drug discovery. Neurocomputing 450 (2021), 242–252.
[8] Karsten M. Borgwardt and Hans-Peter Kriegel. 2005. Shortest-path kernels on graphs. Fifth IEEE International Conference on Data Mining (ICDM'05) (2005), 8 pp.-. https://api.semanticscholar.org/CorpusID:15503030
[9] Karsten M. Borgwardt, Cheng Soon Ong, Stefan Schönauer, S. V. N. Vishwanathan, Alex Smola, and Hans-Peter Kriegel. 2005. Protein function prediction via graph kernels. Bioinformatics 21 Suppl 1 (2005), i47–56. https://api.semanticscholar.org/CorpusID:8174592
[10] Horst Bunke. 1997. On a relation between graph edit distance and maximum common subgraph. Pattern Recognition Letters 18, 8 (1997), 689–694.
[11] Jinyu Cai, Yi Han, Wenzhong Guo, and Jicong Fan. 2023. Deep graph-level clustering using pseudo-label-guided mutual information maximization network. Neural Computing and Applications 36 (2023), 9551 – 9566. https://api.semanticscholar.org/CorpusID:271508506
[12] Jinyu Cai, Yunhe Zhang, Jicong Fan, Yali Du, and Wenzhong Guo. 2024. Dual Contrastive Graph-Level Clustering with Multiple Cluster Perspectives Alignment. In International Joint Conference on Artificial Intelligence. https://api.semanticscholar.org/CorpusID:271508506
[13] Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. 2018. Deep clustering for unsupervised learning of visual features. In Proceedings of the European Conference on Computer Vision (ECCV). 132–149.
[14] Mansheng Chen, Pei-Yuan Lai, De-Zhang Liao, Changdong Wang, and Jian-Huang Lai. 2025. Graph Prompt Clustering. IEEE Transactions on Pattern Analysis and Machine Intelligence 47 (2025), 5794–5805. https://api.semanticscholar.org/CorpusID:277189865
[15] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. In International conference on machine learning. PMLr, 1597–1607.
[16] Guanyi Chu, Xiao Wang, Chuan Shi, and Xunqiang Jiang. 2021. CuCo: Graph Representation with Curriculum Contrastive Learning. In International Joint Conference on Artificial Intelligence. https://api.semanticscholar.org/CorpusID:235671564
[17] Marco Cuturi. 2013. Sinkhorn distances: Lightspeed computation of optimal transport. In Advances in Neural Information Processing Systems (NIPS), Vol. 26. 2292–2300.
[18] Ky Fan. 1949. On a theorem of Weyl concerning eigenvalues of linear transformations I. Proceedings of the National Academy of Sciences 35, 11 (1949), 652–655.
[19] Stefan Fankhauser, Kaspar Riesen, and Horst Bunke. 2011. Speeding up graph edit distance computation through fast bipartite matching. In International Workshop on Graph-Based Representations in Pattern Recognition. Springer, 102–111.
[20] Thomas Gärtner, Peter Flach, and Stefan Wrobel. 2003. On graph kernels: Hardness results and efficient alternatives. In Learning theory and kernel machines: 16th annual conference on learning theory and 7th kernel workshop, COLT/kernel 2003, washington, DC, USA, August 24–27, 2003. proceedings. Springer, 129–143.
[21] Renda Han, Wenxuan Tu, Junlong Wu, Wenxin Zhang, Jingxin Liu, Haotian Wang, Jieren Cheng, Huajie Lei, Guangzhen Yao, Lingren Wang, Mengfei Li, and Yu Li. 2025. Dual Boost-Driven Graph-Level Clustering Network. 2025 International Joint Conference on Neural Networks (IJCNN) (2025), 1–8. https://doi.org/10.1109/ijcnn64981.2025.11228488
[22] Renda Han, Guangzhen Yao, Wenxin Zhang, Yu Li, Wen Xin, Huajie Lei, Mengfei Li, Zeyu Zhang, and Yahe Tian. 2025. Multi-Relation Graph-Kernel Strengthen Network for Graph-Level Clustering. 2025 International Joint Conference on Neural Networks (IJCNN) (2025), 1–8. https://doi.org/10.1109/ijcnn64981.2025.11227596
[23] Kaveh Hassani and Amir Hosein Khas Ahmadi. 2020. Contrastive Multi-View Representation Learning on Graphs. In International Conference on Machine Learning. https://api.semanticscholar.org/CorpusID:219558740
[24] Alan J Hoffman, Helmut W Wielandt, et al. 1953. The variation of the spectrum of a normal matrix. Duke Math. J 20, 1 (1953), 37–39.
[25] Chenping Hou, Feiping Nie, Xuelong Li, Dong yun Yi, and Yi Wu. 2014. Joint Embedding Learning and Sparse Regression: A Framework for Unsupervised Feature Selection. IEEE Transactions on Cybernetics 44 (2014), 793–804. https://api.semanticscholar.org/CorpusID:15474528
[26] Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay S. Pande, and Jure Leskovec. 2019. Strategies for Pre-training Graph Neural Networks. arXiv: Learning (2019). https://api.semanticscholar.org/CorpusID:213085920
[27] Akihiro Inokuchi, Takashi Washio, and Hiroshi Motoda. 2000. An Apriori-Based Algorithm for Mining Frequent Substructures from Graph Data. In European Conference on Principles of Data Mining and Knowledge Discovery. https://api.semanticscholar.org/CorpusID:7847517
[28] Fredrik D. Johansson, Vinay Jethava, Devdatt P. Dubhashi, and Chiranjib Bhattacharyya. 2014. Global graph kernels using geometric embeddings. In International Conference on Machine Learning. https://api.semanticscholar.org/CorpusID:6718308
[29] Simon Jones and Eamonn O'Neill. 2010. Feasibility of structural network clustering for group-based privacy control in social networks. In proceedings of the sixth symposium on usable privacy and security. 1–13.
[30] Wei Ju, Yiyang Gu, Binqi Chen, Gongbo Sun, Yifang Qin, Xing Liu, Xiao Luo, and Ming Zhang. 2022. GLCC: A General Framework for Graph-level Clustering. In AAAI Conference on Artificial Intelligence. https://api.semanticscholar.org/CorpusID:253080427
[31] Wei Ju, Yiyang Gu, Xiao Luo, Yifan Wang, Haochen Yuan, Huasong Zhong, and Ming Zhang. 2023. Unsupervised graph-level representation learning with hierarchical contrasts. Neural networks : the official journal of the International Neural Network Society 158 (2023), 359–368. https://doi.org/10.1016/j.neunet.2022.11.019
[32] Sofia Ira Ktena, Sarah Parisot, Enzo Ferrante, Martin Rajchl, Matthew Lee, Ben Glocker, and Daniel Rueckert. 2017. Distance metric learning using graph convolutional networks: Application to functional brain networks. In International conference on medical image computing and computer-assisted intervention. Springer, 469–477.
[33] Sofia Ira Ktena, Sarah Parisot, Enzo Ferrante, Martin Rajchl, Matthew Lee, Ben Glocker, and Daniel Rueckert. 2018. Metric learning with spectral graph convolutions on brain connectivity networks. NeuroImage 169 (2018), 431–442.
[34] Richard B Lehoucq and Danny C Sorensen. 1996. Deflation techniques for an implicitly restarted Arnoldi iteration. SIAM J. Matrix Anal. Appl. 17, 4 (1996), 789–821.
[35] Andrei Leman and Boris Weisfeiler. 1968. A reduction of a graph to a canonical form and an algebra arising during this reduction. Nauchno-Technicheskaya Informatiya 2, 9 (1968), 12–16.
[36] Zeyi Li, Renda Ira, Tianyu Hu, Mengfei Li, and Caimao Li. 2025. Multi-View Enhancement Graph-Level Clustering Network. IEEE Access 13 (2025), 47996–48006. https://doi.org/10.1109/access.2025.3550185
[37] Zhipeng Li, Si-Guo Wang, Qinhu Zhang, Yi-Jie Pan, Naian Xiao, Jia-Yang Guo, Chang-An Yuan, Wen-Jian Liu, and De-Shuang Huang. 2024. Graph pooling for graph-level representation learning: a survey. Artificial Intelligence Review 58 (2024). https://api.semanticscholar.org/CorpusID:274944366
[38] Zhi-Peng Li, Si-Guo Wang, Qin-Hu Zhang, Yi-Jie Pan, Nai-An Xiao, Jia-Yang Guo, Chang-An Yuan, Wen-Jian Liu, and De-Shuang Huang. 2024. Graph pooling for graph-level representation learning: a survey. Artificial Intelligence Review 58, 2 (2024), 45.
[39] Yixin Liu, Yu Zheng, Daokun Zhang, Hongxu Chen, Hao Peng, and Shirui Pan. 2022. Towards Unsupervised Deep Graph Structure Learning. Proceedings of the ACM Web Conference 2022 (2022). https://doi.org/10.1145/3485447.3512186
[40] Ziwen Liu, Chenguang Wang, Congying Han, and Tiande Guo. 2021. Learning graph representation by aggregating subgraphs via mutual information maximization. Neurocomputing 548 (2021), 126392. https://doi.org/10.1016/j.neucom.2023.126392
[41] Ziyang Liu, Chaokun Wang, Yunkai Lou, and Hao Feng. 2023. Fast Unsupervised Graph Embedding via Graph Zoom Learning. In 2023 IEEE 39th International Conference on Data Engineering (ICDE). 2551–2564. https://doi.org/10.1109/ICDE555.2023.00196
[42] Xiao Luo, Wei Ju, Yiyang Gu, Zhengyan Mao, Luchen Liu, Yuhui Yuan, and Ming Zhang. 2023. Self-supervised Graph-level Representation Learning with Adversarial Contrastive Learning. ACM Transactions on Knowledge Discovery from Data 18 (2023), 1–23. https://doi.org/10.1145/3624018
[43] Pierre Mahé, Nobuhisa Ueda, Tatsuya Akutsu, Jean-Luc Perret, and Jean-Philippe Vert. 2004. Extensions of marginalized graph kernels. Proceedings of the twenty-first international conference on Machine learning (2004). https://api.semanticscholar.org/CorpusID:18350669
[44] Giovanna Menardi and Domenico De Stefano. 2022. Density-based clustering of social networks. Journal of the Royal Statistical Society Series A: Statistics in Society 185, 3 (2022), 1004–1029.
[45] Christopher Morris, Nils M. Kriege, Franka Bause, Kristian Kersting, Petra Mutzel, and Marion Neumann. 2020. TUDataset: A collection of benchmark datasets for learning with graphs. ArXiv abs/2007.08663 (2020). https://api.semanticscholar.org/CorpusID:220633407
[46] Zhen Peng, Wenbing Huang, Minnan Luo, Q. Zheng, Yu Rong, Tingyang Xu, and Junzhou Huang. 2020. Graph Representation Learning via Graphical Mutual Information Maximization. Proceedings of The Web Conference 2020 (2020). https://doi.org/10.1145/3366423.3380112
[47] Patrick Rubin-Delanchy. 2020. Manifold structure in graph embeddings. ArXiv abs/2006.05168 (2020). https://api.semanticscholar.org/CorpusID:219558619
[48] Alberto Sanfeliu and King-Sun Fu. 1983. A distance measure between attributed relational graphs for pattern recognition. IEEE transactions on systems, man, and cybernetics 3 (1983), 353–362.
[49] Claude E Shannon. 1948. A mathematical theory of communication. The Bell System Technical Journal 27, 3 (1948), 379–423.
[50] Nino Shervashidze, Pascal Schweitzer, Erik Jan van Leeuwen, Kurt Mehlhorn, and Karsten M. Borgwardt. 2011. Weisfeiler-Lehman Graph Kernels. J. Mach. Learn. Res. 12 (2011), 2539–2561. https://api.semanticscholar.org/CorpusID:1797579
[51] Nino Shervashidze, S. V. N. Vishwanathan, Tobias Petri, Kurt Mehlhorn, and Karsten M. Borgwardt. 2009. Efficient graphlet kernels for large graph comparison. In International Conference on Artificial Intelligence and Statistics. https://api.semanticscholar.org/CorpusID:17557614
[52] Gen Shi, Yifan Zhu, Jian K. Liu, and Xia Li. 2023. HeGCL: Advance Self-Supervised Learning in Heterogeneous Graph-Level Representation. IEEE Transactions on Neural Networks and Learning Systems 35 (2023), 13914–13925. https://doi.org/10.1109/tnls.2023.3273255
[53] Fan-Yun Sun, Jordan Hoffmann, and Jian Tang. 2019. InfoGraph: Unsupervised and Semi-supervised Graph-Level Representation Learning via Mutual Information Maximization. ArXiv abs/1908.01000 (2019). https://api.semanticscholar.org/CorpusID:199441876
[54] Xuecheng Sun, Zonghui Wang, Zheming Lu, and Ziqian Lu. 2024. Self-supervised graph representations with generative adversarial learning. Neurocomputing 592 (2024), 127786. https://doi.org/10.1016/j.neucom.2024.127786
[55] Damian Szklarczyk, Annika L. Gable, David Lyon, Alexander Junge, Stefan Wyder, Jaime Huerta-Cepas, Milan Simonovic, Nadezhda T. Doncheva, John H. Morris, Peer Bork, Lars Juhl Jensen, and Christian von Mering. 2018. STRING v11: protein-protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets. Nucleic Acids Research 47 (2018), D607 – D613. https://api.semanticscholar.org/CorpusID:53751796
[56] Ichigaku Takigawa and Hiroshi Mamitsuka. 2013. Graph mining: procedure, application to drug discovery and recent advances. Drug discovery today 18, 1-2 (2013), 50–57.
[57] Rita Vázquez, Avenilde Romo, Rebeca Romo-Vázquez, and María Trigueros. 2016. La separación ciega de fuentes: un puente entre el algebra lineal y el análisis de señales. Educación matemática 28, 2 (2016), 31–57.
[58] Liangtian Wan, Zhenqiang Fu, Lu Sun, Xianpeng Wang, Gang Xu, Xiaoran Yan, and Feng Xia. 2023. Self-Supervised Teaching and Learning of Representations on Graphs. Proceedings of the ACM Web Conference 2023 (2023). https://doi.org/10.1145/3543507.3583441
[59] Ren Wang, Haoliang Sun, Yuxiu Lin, Chuanhui Zuo, Yongshun Gong, Yilong Yin, and Wenjia Meng. 2025. SeqMvRL: A Sequential Fusion Framework for Multi-view Representation Learning. In Proceedings of the Computer Vision and Pattern Recognition Conference. 25822–25831.
[60] Shangyou Wang, Zezhong Ding, and Xike Xie. 2025. SamGoG: A Sampling-Based Graph-of-Graphs Framework for Imbalanced Graph Classification. arXiv:2507.13741 [cs.LG] https://arxiv.org/abs/2507.13741
[61] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S. Yu. 2019. A Comprehensive Survey on Graph Neural Networks. IEEE Transactions on Neural Networks and Learning Systems 32 (2019), 4–24. https://api.semanticscholar.org/CorpusID:57375753
[62] Junyuan Xie, Ross Girshick, and Ali Farhadi. 2016. Unsupervised deep embedding for clustering analysis. In International conference on machine learning. PMLR, 478–487.
[63] Binbin Xu, Jun Yin, and Nan Zhang. 2024. Graph based Consistency Learning for Contrastive Multi-View Clustering. Proceedings of the 32nd ACM International Conference on Multimedia (2024). https://api.semanticscholar.org/CorpusID:273643520
[64] Hongteng Xu, Jiachang Liu, Dixin Luo, and Lawrence Carin. 2022. Representing Graphs via Gromov-Wasserstein Factorization. IEEE Transactions on Pattern Analysis and Machine Intelligence 45 (2022), 999–1016. https://api.semanticscholar.org/CorpusID:247083430
[65] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. 2018. How Powerful are Graph Neural Networks? ArXiv abs/1810.00826 (2018). https://api.semanticscholar.org/CorpusID:52895589
[66] Minghao Xu, Hang Wang, Bingbing Ni, Hongyu Guo, and Jian Tang. 2021. Self-supervised Graph-level Representation Learning with Local and Global Structure. ArXiv abs/2106.04113 (2021).
[67] Xiaowei Xu, Nurcan Yuruk, Zhidan Feng, and Thomas AJ Schweiger. 2007. Scan: a structural clustering algorithm for networks. In Proceedings of the 13th ACM SIGKDD international conference on Knowledge discovery and data mining. 824–833.
[68] Yuhua Xu, Junli Wang, Mingjian Guang, Chungang Yan, and Changjun Jiang. 2024. Graph contrastive learning with min-max mutual information. Inf. Sci. 665 (2024), 120378. https://doi.org/10.1016/j.ins.2024.120378
[69] Pinar Yanardag and S. V. N. Vishwanathan. 2015. Deep Graph Kernels. Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (2015). https://api.semanticscholar.org/CorpusID:207227372
[70] Jinbin Yang, Jinyu Cai, Yunhe Zhang, Sujia Huang, and Shipping Wang. 2025. Towards Adaptive Masked Structural Learning for Graph-Level Clustering. IEEE Transactions on Network Science and Engineering 12 (2025), 2021–2032. https://doi.org/10.1109/tnse.2025.3543194
[71] Yining Yang, Ke Xu, and Ying Tang. 2024. GAN-based self-supervised message passing graph representation learning. Expert Syst. Appl. 251 (2024), 124012. https://doi.org/10.1016/j.eswa.2024.124012
[72] Zhenyu Yang, Ge Zhang, Jia Wu, Jian Yang, Quan Z Sheng, Shan Xue, Chuan Zhou, Charu Aggarwal, Hao Peng, Wenbin Hu, et al. 2024. State of the art and potentialities of graph-level learning. Comput. Surveys 57, 2 (2024), 1–40.
[73] Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, and Yang Shen. 2020. Graph Contrastive Learning with Augmentations. ArXiv abs/2010.13902 (2020). https://api.semanticscholar.org/CorpusID:225076220
[74] Zhiping Zeng, Anthony KH Tung, Jianyong Wang, Jianhua Feng, and Lizhu Zhou. 2009. Comparing stars: On approximating graph edit distance. Proceedings of the VLDB Endowment 2, 1 (2009), 25–36.
[75] Mingda Zhang, Chun-Te Chu, Andrey Zhmoginov, Andrew G. Howard, Brendan Jou, Yukun Zhu, Li Zhang, Rebecca Hwa, and Adriana Kovashka. 2021. BasisNet: Two-stage Model Synthesis for Efficient Inference. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) (2021), 3075–3084. https://api.semanticscholar.org/CorpusID:234094277
[76] Sheng Zhou, Hongjia Xu, Zhuonan Zheng, Jiawei Chen, Zhao Li, Jiajun Bu, Jia Wu, Xin Wang, Wenwu Zhu, and Martin Ester. 2024. A comprehensive survey on deep clustering: Taxonomy, challenges, and future directions. Comput. Surveys 57, 3 (2024), 1–38.
[77] Wei Zhuo and Guang Tan. 2022. Efficient graph similarity computation with alignment regularization. Advances in Neural Information Processing Systems 35 (2022), 30181–30193.
A Theoretical Proofs
A.1 Proof of Theorem 4.1
PROOF. Our goal is to prove that for any iteration , if two nodes and have the same WL label, i.e., , then they must also have the same GINs node representation, i.e., .
• We initialize and .
• In the b-1 step in 1-WL test, if holds, then also holds.
- (b) At iteration , if two nodes and have the same label (), it implies that their labels at the previous iteration were identical i.e. , and the multisets of their neighbors' labels from the previous iteration, i.e. and , were also identical. In that case, we can deduce that , according to Eq. 3, we have .
When all node representations in two graphs are identical, the Spatial Representation is also identical. In conclusion, if a pair of graphs cannot be identical by 1-WL test, it also cannot be identical by the GINs model.
A.2 Proof of Lemma 4.2
PROOF. was defined in §3.2.
(Sufficiency): Assume with isomorphism . Let .
(Necessity): Assume with optimal path . Let be the set of insertion/deletion operations.
Thus, .
A.3 Proof of Lemma 5.1
PROOF. A permutation matrix is by definition an orthogonal matrix, satisfying . consequently, the transformation of the adjacency matrix under node permutation can be rewritten as a similarity transformation:
In linear algebra, similar matrices share the same characteristic polynomial. We derive the characteristic polynomial of as follows:
Since and have identical characteristic polynomials, they yield the exact same set of eigenvalues. Thus, for any .
A.4 Proof of Theorem 5.2
PROOF. Let and be two real symmetric matrices with spectral decompositions and , where are orthogonal matrices, and , contain eigenvalues sorted in descending order.
First, we expand the squared Frobenius norm of the difference:
Similarly, expanding the summation term in the inequality gives:
Comparing the two expansions, proving the inequality is equivalent to proving:
Now, we analyze the term :
where . Since and are orthogonal, is also an orthogonal matrix. Let . Since is orthogonal, we have and . Thus, is a doubly stochastic matrix.
Expanding the trace term element-wise:
According to the Hardy-Littlewood-Pólya rearrangement inequality [57] generalized to doubly stochastic matrices (Birkhoff's theorem), the weighted sum is maximized when the weights align the largest with the largest . Specifically, since both sets of eigenvalues are sorted in descending order, the maximum is attained when S is the identity matrix I:
Substituting this back into Eq. (28), we confirm that , which implies:
Finally, adding to both sides completes the proof:
A.5 Proof of row-sparsity in Eq. (11)
LEMMA A.1 ( INDUCES ROW-SPARSITY). In the optimization problem
where is convex and differentiable (e.g., a least-squares regression loss), the regularizer drives many entire rows of the optimal to be exactly zero (i.e., row-sparsity / group sparsity).
PROOF. Since is convex differentiable and is convex, a matrix is optimal iff it satisfies the first-order (subgradient) optimality condition
Because is separable across rows, its subdifferential is also row-separable:
and for each row i,
Plugging the above into (34) and examining the i-th row gives two cases:
(i) Nonzero row. If , then is a singleton and
which implies .
(ii) Zero row. If , then there exists some with such that
Equivalently, whenever , the KKT condition can only be satisfied by .
Therefore, imposes a row-wise thresholding effect: rows whose contribution to decreasing is insufficient (i.e., with small row-gradient norm) are set exactly to zero, yielding row-sparsity (group-wise feature selection) in .
A.6 Proof of Theorem 5.3
PROOF. Let
Set
so that
Since M is symmetric p.s.d. and
we have as an eigenvalue of M. Order the eigenpairs so that
orthonormal.
Consider the constrained problem
By the Courant–Fischer theorem, the minimizer is given (up to an orthogonal transform) by the eigenvectors corresponding to the d smallest nonzero eigenvalues of M:
On the other hand, let be an isometric coordinate chart of the underlying -manifold, and define
By construction of via local linear reconstruction on sufficiently small neighborhoods one shows and , (up to a global scale). Uniqueness of the above minimizer then implies
i.e. recovers the manifold coordinates up to scale and rotation. This completes the proof.
A.7 The Derivation of Eq (17)
To optimize Y, we start with the overall objective function defined in Eq. (14). By fixing the projection matrices and , the objective function related to Y can be expanded as:
where the -norm terms are reformulated using the auxiliary diagonal matrices and (e.g., ).
We first focus on the terms associated with the view H. Substituting the optimal solution derived in Eq. (15) into the regression and regularization terms:
(36)
Let . Then . Substituting this back:
Analogously, for the spectral view F, we obtain:
Combining , , and the manifold preservation term , the total objective becomes:
So we define the auxiliary matrix M as:
Thus, the optimization problem is reduced to Eq. (16), which can be solved by performing eigendecomposition on M.
A.8 Proof of Lemma 5.4
PROOF. To derive the optimal solution for the objective function in Eq. (22), we employ the method of Lagrange multipliers. The problem seeks to minimize the entropy-regularized transport cost subject to marginal constraints. Recall that the cost matrix is defined as .
Taking the partial derivative with respect to and setting it to zero yields the first-order optimality condition:
Rearranging terms to solve for :
Substituting the cost definition , we have:
To strictly enforce the marginal constraints, we introduce the scaling vectors u and v. By defining the kernel matrix K with entries , the optimal solution can be factorized into the matrix form:
Finally, substituting the optimal T back into the marginal constraints allows us to solve for u and v:
where denotes element-wise division. These equations correspond to the iterative updates in the Sinkhorn-Knopp algorithm provided in Algorithm 1.
B Additional Experimental Details
B.1 Experimental Settings
B.1.1 Datasets
BZR: Graphs represent benzodiazepine receptor ligands. Nodes are atoms, and edges are chemical bonds. The binary classification task determines whether the compound is active or inactive against the receptor.
- MUTAG: Graphs represent mutagenic aromatic and heterochromatic nitro compounds. Nodes denote atoms and edges represent chemical bonds. The binary classification task distinguishes between mutagenic and non-mutagenic effects on bacteria.
PTC-MR: Graphs depict chemical compounds tested for carcinogenicity. Nodes represent atoms and edges represent bonds. The binary task classifies compounds based on their carcinogenicity in male rats.
• AIDS: Graphs represent chemical compounds from an antiviral screen. Nodes are atoms and edges are bonds. The binary classification task predicts whether a compound is active or inactive against HIV.
-
ENZYMES: Graphs represent protein tertiary structures. Nodes are secondary structure elements (SSEs) and edges denote spatial or sequential neighbors. The task classifies proteins into one of six top-level EC enzyme types.
-
DD: Graphs represent protein structures where nodes are amino acids and edges indicate spatial proximity. The binary classification task distinguishes between enzymes and non-enzymes.
-
OGBG-PPA: Graphs represent protein-protein association networks. Nodes are proteins and edges denote biologically meaningful associations. The multi-class task predicts the taxonomic group from which the network originates.
-
COLLAB: Graphs are researcher ego-networks derived from bibliographies. Nodes represent researchers and edges denote collaboration. The multi-class task identifies the field of study: High Energy, Condensed Matter, or Astrophysics.
-
REDDIT-12K: Graphs represent discussion threads where nodes are users and edges denote replies. The classification task identifies which of the 11 subreddits a thread belongs to based on interaction structure.
B.1.2 Baselines
• SP [8]: To balance expressiveness and efficiency in graph kernels, the authors propose path-based kernels instantiated as shortest-path kernels, computable in polynomial time and positive definite. On protein graph classification, these kernels outperform walk-based kernels, achieving higher accuracy while preserving strong representational power.
• RW [43]: Positive definite graph kernels enable SVM-based analysis of labeled graphs by marginalizing path kernels over random walks. The authors enhance them via Morgan-enriched vertex labels and a no-backtracking random walk to reduce computation and improve similarity, yielding promising gains on chemical compound classification benchmarks.
• WL [50]: A graph kernel using the Weisfeiler–Lehman test to generate sequences of relabeled graphs that capture topology and labels. A subtree-like WL kernel runs in linear time in edges and sequence length, and experiments show superior accuracy and runtime, enabling large applications.
• LT [28]: This method introduces two graph kernels for unlabeled graphs that capture global properties via the Lovász number and its orthonormal representation, addressing limitations of local subgraph-based kernels. Providing a margin-based theory guiding kernel choice and showing on synthetic and benchmark datasets that these kernels achieve better or competitive accuracy.
• GLK [51]: To scale graph kernels to large graphs, the paper compares graphs via counts of graphlets. Since exhaustive enumeration is costly, they introduce theoretically grounded speedups: sampling and a bounded-degree method, and demonstrate efficient comparison of large graphs beyond the reach of existing kernels.
- InfoGraph [53]: The paper proposes a method learns graph-level representations by maximizing mutual information between
whole-graph embeddings and multi-scale substructure embeddings (nodes, edges, triangles), improving generalization over kernels and graph2vec.
-
GraphCL [73]: This is a graph contrastive learning framework that learns unsupervised graph representations via four principled graph augmentations. Across semi-supervised, unsupervised, transfer, and adversarial settings, GraphCL achieves comparable or superior generalization, transferability, and robustness without heavy tuning, with parameterized augmentations yielding further gains.
-
CuCo [16]: They study the role of negative samples in contrastive graph-level representation learning, using four augmentations, GNN encoders, and a scoring and pacing strategy to progressively select negatives.
-
MVGRL [23]: Proposing a self-supervised framework that learns node and graph representations by contrasting structural views. The method contrasts encodings from first-order neighbors with a graph diffusion, avoiding multi-view (>2) or multi-scale contrast that offer no gains.
-
GZL [41]: The work proposes a self-supervised, unsupervised graph embedding framework orthogonal to random-walk and contrastive paradigms, which comprises graph zoom-out to create a lightweight miniature graph for efficient training, and miniature-scale learning that injects community structure and employs negative-free point-to-point contrast to learn node/graph representations.
-
GWF [64]: Reconstructing each graph as a weighted combination of shared factors under GW discrepancy, producing permutation-invariant representations via factor weights. Jointly learn factors and weights by minimizing reconstruction error with unconstrained reparametrization, and compute GW via PPA or BADMM; extensions integrate GNN auto-encoding, node attributes, and semi-supervised regularization.
-
GLCC [30]: Performing graph-level clustering across multiple graphs by building an adaptive affinity graph and applying contrastive learning at instance and cluster levels. It employs a graph-Laplacian contrastive loss, neighbor-informed cluster representations, and neighbor-aware pseudo-labels in an alternating optimization.
-
DGLC [11]: Learning graph-level representations with a graph isomorphism network by maximizing mutual information between whole-graph embeddings and substructure representations. A clustering module supplies pseudo labels to regularize and enforce discriminative embeddings, enabling end-to-end joint representation learning and graph clustering.
-
DCGLC [12]: Clustering graphs via contrastive learning with two heads—Euclidean-based and subspace-based—to capture complementary cluster structures. A contrastive alignment mechanism fuses their cluster information, yielding end-to-end mutual enhancement of representation learning and clustering.
-
GPC [14]: Pretraining a graph model on a source dataset via mutual information maximization with self-supervised clustering regularization. It then freezes the model and learns dataset-specific prompt vectors to adapt graph-level representations to diverse target distributions.
Table 7: Hyper-parameters on different datasets.
| DS | lr | h | B | epochs | iter | seed | r | d |
|---|---|---|---|---|---|---|---|---|
| ENZYMES | 64 | 512 | 20 | 5 | 42 | 16 | 8 | |
| AIDS | 64 | 256 | 20 | 5 | 42 | 10 | 5 | |
| BZR | 64 | 512 | 20 | 5 | 42 | 6 | 4 | |
| MUTAG | 64 | 512 | 20 | 5 | 42 | 8 | 4 | |
| PTC-MR | 64 | 512 | 20 | 5 | 42 | 5 | 3 | |
| DD | 64 | 512 | 20 | 5 | 42 | 12 | 4 | |
| PTC-MM | 64 | 256 | 20 | 5 | 42 | 5 | 3 | |
| COLLAB | 128 | 4096 | 20 | 5 | 42 | 40 | 20 | |
| REDDIT-12K | 128 | 4096 | 20 | 5 | 42 | 70 | 20 | |
| OGBG-PPA | 128 | 4096 | 20 | 5 | 42 | 60 | 20 |
B.1.3 Hyper-parameters. Table 7 reports the hyper-parameters used for each dataset. For the GINs encoder, the learning rate (lr) controls the optimizer step size, h denotes the dimensionality of the Spatial Representation H, and batch-size is the number of training samples in each mini-batch. We run training for multiple repetitions (iter); all results in both the main text and the appendix are averaged over these iter runs. Within each run, epochs is the number of training epochs. seed fixes the random initialization and data shuffling for reproducibility. r is the dimensionality of F, and d is the dimensionality of the fused feature Z.
B.2 Ablation Study
Table 8 reports the ablation study of S³GLC by removing one key component at a time. Consistent with the motivation in § 4.2, the balanced clustering loss is crucial for preventing clustering collapse, especially on multi-class datasets. For example, on COLLAB and OGBG-PPA, removing leads to clear drops in ACC/NMI/ARI, showing that the Sinkhorn-Knopp equipartition constraint helps avoid degenerate assignments. Moreover, removing the GED-guided contrastive loss generally hurts performance, indicating that topology-aware positive sampling improves representation consistency. Finally, replacing the proposed Joint Manifold-Preserving Sparse Regression and manifold preservation module () results in the largest degradation on several datasets (e.g., BZR and COLLAB), validating that our fusion mechanism is necessary to remove redundancy while retaining complementary semantics from the Spatial Representation H and Spectral Signature F, as discussed in § 5.3.
Table 9 further verifies the effectiveness of Spectral Signature. Across all shown datasets, replacing our spectral features with classical GKs yields consistently worse clustering results. This supports our claim in § 4.1 that Spatial Representation alone may miss global topology, while the proposed Spectral Signature provides an efficient, permutation-invariant proxy of GED that captures global structural differences beyond 1-WL.
B.3 Parameter Analysis
Fig. 8 reports the sensitivity S³GLC to the Spectral Signature size r and the fused feature dimension d on AIDS. In Fig. 8 (a), ACC/NMI/ARI improve as r increases from 6 to about 10, indicating that the top-r eigenvalues already capture sufficient global topology as a GED proxy. When r becomes larger (e.g., ), performance drops, suggesting that extra eigenvalues contribute limited signal and
Table 8: Ablation study.
| Dataset | w/o | ||||
|---|---|---|---|---|---|
| ACC ↑ | 79.1 0.4 | 79.1 0.9 | 77.0 1.8 | 79.7 0.0 | |
| BZR | NMI ↑ | 14.3 1.3 | 14.5 2.1 | 11.1 3.7 | 16.1 0.0 |
| ARI ↑ | 25.1 0.8 | 24.6 1.5 | 20.3 4.0 | 23.9 0.2 | |
| PTC-MR | ACC ↑ | 63.8 0.3 | 63.3 1.8 | 63.2 2.1 | 64.0 1.5 |
| NMI ↑ | 3.9 0.3 | 3.8 1.5 | 3.6 1.4 | 6.2 2.8 | |
| ARI ↑ | 6.1 0.3 | 5.7 1.6 | 5.7 1.9 | 6.0 1.6 | |
| PTC-MM | ACC ↑ | 67.5 0.6 | 67.5 0.9 | 66.1 0.2 | 67.9 0.6 |
| NMI ↑ | 2.4 0.7 | 2.4 1.2 | 1.3 0.3 | 3.3 0.9 | |
| ARI ↑ | 5.5 0.3 | 5.3 1.0 | 4.1 0.6 | 6.2 0.5 | |
| AIDS | ACC ↑ | 98.7 0.4 | 98.7 0.5 | 99.3 0.4 | 99.3 0.2 |
| NMI ↑ | 89.9 2.9 | 90.1 3.0 | 94.0 2.8 | 93.6 1.6 | |
| ARI ↑ | 94.7 1.6 | 94.7 1.9 | 97.3 1.4 | 96.9 0.9 | |
| COLLAB | ACC ↑ | 65.5 4.5 | 69.2 0.7 | 55.3 1.2 | 69.3 0.5 |
| NMI ↑ | 25.7 4.5 | 29.3 3.2 | 18.7 1.2 | 29.5 2.9 | |
| ARI ↑ | 21.7 3.0 | 25.0 1.0 | 10.6 2.2 | 25.5 1.1 | |
| OGBG-PPA | ACC ↑ | 21.5 0.2 | 25.4 2.6 | 15.4 0.2 | 25.8 2.1 |
| NMI ↑ | 27.9 1.8 | 24.2 4.2 | 4.0 0.1 | 24.8 2.8 | |
| ARI ↑ | 8.2 1.0 | 10.8 3.8 | 2.7 0.1 | 10.9 1.7 | |
Table 9: The effectiveness of Spectral Signature.
| Dataset | Structural Features | ACC ↑ | NMI ↑ | ARI ↑ |
|---|---|---|---|---|
| BZR | SP [8] | 71.0 3.6 | 4.3 0.7 | 8.0 2.4 |
| RW [43] | 73.9 0.0 | 0.7 0.0 | 0.1 0.2 | |
| WL [50] | 72.9 2.0 | 3.9 1.5 | 7.9 3.6 | |
| GLK [51] | 72.5 2.1 | 3.1 0.7 | 5.0 3.8 | |
| ours | 79.7 0.0 | 16.1 0.0 | 23.5 0.2 | |
| PTC-MM | SP [8] | 62.4 4.6 | 1.7 0.7 | 3.1 2.3 |
| RW [43] | 67.4 0.6 | 3.5 1.7 | 3.5 1.2 | |
| WL [50] | 59.9 3.3 | 0.9 0.3 | 1.3 0.5 | |
| GLK [51] | 62.3 2.0 | 1.1 0.4 | 3.2 1.3 | |
| ours | 67.9 0.6 | 3.3 0.9 | 6.2 0.5 | |
| PTC-MR | SP [8] | 58.9 0.6 | 1.5 0.3 | 2.2 0.7 |
| RW [43] | 59.9 1.0 | 2.5 1.3 | 3.4 0.9 | |
| WL [50] | 58.0 1.7 | 1.7 0.3 | 1.5 0.5 | |
| GLK [51] | 59.2 0.2 | 1.8 0.4 | 2.1 0.7 | |
| ours | 64.0 1.5 | 6.2 2.8 | 6.0 1.6 | |
| AIDS | SP [8] | 91.4 5.6 | 46.5 6.1 | 51.4 9.7 |
| RW [43] | 78.4 0.5 | 13.3 1.1 | 17.9 2.4 | |
| WL [50] | 86.4 6.7 | 37.3 4.2 | 41.8 6.0 | |
| GLK [51] | 91.9 4.9 | 45.9 7.4 | 55.1 15.7 | |
| ours | 99.3 0.2 | 93.0 1.6 | 96.9 0.9 |


Figure 8: Clustering quality on AIDS
may introduce noise. In Fig. 8 (b), the best results are achieved around , while larger d degrades metrics, consistent with §5.3: the Joint Manifold-Preserving Sparse Regression favors a compact fused space that removes redundancy between H and F.
B.4 Cluster Visualizations
Fig. 9 reports t-SNE visualizations of the learned graph embeddings on four datasets. Compared with DGLC and DCGLC, S GLC

Figure 9: t-SNE visualization of graph embeddings learned by DGLC, DCGLC, and S GLC
yields clearer inter-cluster margins, notably in AIDS and DD. On ENZYMES and REDDIT-12K, S GLC maintains balanced, distinct cluster regions. Conversely, DGLC and DCGLC exhibit severe clustering collapse, with samples concentrated in a single dominant cluster, failing to preserve the intrinsic multi-cluster structure.