Manuscript Offprint
arXiv:2609.05919A dictionary learning framework for graphs via filters and optimal transport
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
We propose a graph dictionary learning (GDL) framework where each graph is represented as a zero-mean Gaussian distribution derived from its filtered Laplacian. Each observed graph is approximated by a barycenter over learned atom graphs, computed under the filter graph distance (fGOT) – a graph comparison metric sensitive to global structural properties. The reconstruction error between the observed graph and its barycenter is measured by the surrogate fGOT (sfGOT) distance, a tractable approximation of fGOT that handles graphs without known node correspondence, and is minimized end-to-end via backpropagation. We further provide a novel interpretation of sfGOT through the lens of the Hilbert-Schmidt Independence Criterion, showing that minimizing the sfGOT distance between two graphs is equivalent to maximizing statistical dependence between the spectral embedding of their nodes. Experiments on benchmark datasets demonstrate competitive performance over existing GDL methods on graph clustering and classification tasks.
Index Terms— Dictionary Learning; Graph Optimal Transport.
1. INTRODUCTION
Learning with graph-structured data has attracted significant interests from the machine learning and signal processing communities, with applications in bioinformatics, cheminformatics, and social network analysis [1–3]. Approaches to this problem typically rely on graph kernels, distances and latent space representations, applied in supervised, unsupervised or semi-supervised settings [4–10].
In this work, we focus on dictionary learning (DL) for graphs, which is an unsupervised learning framework that learns a set of basis, called atoms, constituting dictionary [11, 12]. Atoms are inferred by minimizing a reconstruction error when approximating each input as a weighted combination of atoms. The resulting combination coefficients serve as latent representations for downstream tasks such as classification and clustering. For graph-structured data, graph dictionary learning (GDL) frameworks based on Gromov-Wasserstein (GW) discrepancy [13] have been proposed to handle graphs of varying sizes and without node correspondence [14, 15]. However, GW compares graphs via pairwise node distances (e.g., shortest-path distances), which primarily reflect local neighborhood structure rather than global patterns, thus failing to capture the global structure of graphs.
Graph Optimal Transport (GOT) [16] offers an alternative by representing each graph as a zero-mean Gaussian distribution whose covariance is derived from the graph Laplacian pseudo-inverse, enabling comparison via the Wasserstein distance. This was extended to filter graph distances (fGOT) [17], which introduces a spectral filter providing flexible spectral control over which structural scales are emphasized. To handle unknown node correspondence, [17] further
introduced surrogate fGOT (sfGOT) as a tractable upper bound of fGOT. Despite its practical utility, the structural meaning of sfGOT as a graph distance remains underexplored.
Contributions. (1) We provide a novel interpretation of sfGOT through the lens of Hilbert-Schmidt Independence Criterion (HSIC) [18], showing that minimizing sfGOT between two graphs is equivalent to maximizing statistical dependence between the spectral embeddings of their nodes. (2) We propose fGOT-GDL, a GDL framework that uses fGOT as the barycenter comparison metric to capture global structural properties, and uses sfGOT as the tractable reconstruction loss for graphs without known node correspondence. (3) Experiments on benchmark datasets demonstrate competitive performance over existing GDL methods on clustering and classification.
2.1. Graph Dictionary Learning (GDL)
Given the observed graphs , GDL jointly learns a dictionary , and embeddings , such that each is well approximated by a reconstruction built from and :
where is the feasible constraint set, is a distance measure between the (possibly different-sized) reconstruction and observed graph , and is the order. The reconstruction is defined as the barycenter of the atoms weighted by :
where is a distance between atom-sized graphs and is its order. When all graphs share the same size, setting
(where is the Frobenius norm), reduces the barycenter to a linear combination , but this cannot handle graphs of varying sizes or unknown node correspondence. This is addressed in [14, 15] by instantiating and with the GW discrepancy [13], yielding the GW Factorization (GWF) model, which aligns nodes to handle size mismatch but, as discussed in Section 1, relies on pairwise distances, failing to reflect global structural properties of graphs.
2.2. Graph optimal transport (GOT) and its variants
GOT. GOT [16] represents a graph with Laplacian as a distribution over smooth graph signal – signals that vary slowly across connected nodes. Such smoothness is naturally encoded by a zero-mean Gaussian with the Laplacian pseudo-inverse as covariance, , since low-frequency (smallest-eigenvalue) modes of dominate and encode global connectivity, while high-frequency modes capture local variation. For two graphs of the same size with distributions and , the GOT distance is computed by the Bures-Wasserstein (BW) distance [19]:
fGOT. To control which spectral scales are emphasized, fGOT [17] generalizes GOT via a graph filter , defined spectrally as for , where with is the frequency response applied elementwise to the eigenvalues. Passing while noise through the filter yields . The fGOT distance is then computed by the BW distance between two graphs' filtered-signal distributions and :
(4)
Common choices of filters include , , and , each prioritizing a different spectral scale.
sfGOT. Both distances in (3) and (4) assume known node correspondence. Under unknown alignment, we optimize over permutations , comparing to the permuted distribution :
Since appears under a matrix square root, solving (5) is computationally intractable. [17] instead replaces with a tractable surrogate , giving the surrogate fGOT (sfGOT) distance:
Lemma 1 shows that is an upper bound of , implying that (5) is upper bounded by (6).
Lemma 1 ([17]). For any graph filter and , ; consequently, .
3. PROPOSED METHOD
We present two main contributions: a novel interpretation of the sfGOT distance (6) through the lens of the Hilbert-Schmidt independence criterion (HSIC) [18], and fGOT-GDL, a GDL model using fGOT and sfGOT as the graph comparison metrics.
3.1. HSIC-based interpretation of sfGOT
As shown in Lemma 1, the sfGOT distance is a tractable upper bound of fGOT, circumventing the matrix square root in (5). However, its structural meaning as a graph distance remains underexplored. We now provide a new interpretation of sfGOT via HSIC.
Definition 1 (HSIC [18]). Let and be random variables on domains and , with RKHS kernels and . HSIC is defined as the squared Hilbert-Schmidt norm of the cross-covariance operator : HSIC . Given i.i.d. samples , the empirical estimator is:
where , are the Gram matrices and is the centering matrix. HSIC iff and are independent (for universal kernels).
Rather than viewing a graph as a generator of smooth graph signals (as in GOT/fGOT), we treat each graph's nodes, embedded via the filtered spectrum, as samples of a random vector, and interpret , as kernel Gram matrices over the nodes of and , respectively. Since , the filtered Laplacian is centered, i.e., , so no additional centering is required. Using the identity for [17], the empirical HSIC between and the permuted defines a similarity:
(7)
i.e., finds the node alignment that maximizes the statistical dependence between the spectral embeddings of 's nodes and 's nodes. Comparing (7) to the sfGOT objective (6), we obtain:
where we used from Lemma 1 of [17], and . So minimizing sfGOT between and is equivalent to maximizing —the dependence between these two graphs' filtered spectral embeddings. Proposition 1 gives an eigenmode decomposition of .
Proposition 1. Let and be eigendecompositions with orthonormal , and eigenvalues , . Then

(a) Synthetic SBM illustration

(b) Recovery metrics
Fig. 1: Comparison of GW-based GDLs and fGOT-GDL in recovering two-class SBM community structure.
Proof. By substituting the eigendecompositions and applying cyclicity of trace:
where , with . Expanding the trace over indices gives,
□
Proposition 1 shows that measures how well the -th eigenmode of aligns with the -th permuted eigenmode of , weighed by their spectral energies . Furthermore, the filter controls which eigenmodes dominate this weighting: a low-pass filter emphasizes global structure (e.g., connectivity and community membership), while a high-pass filter emphasizes local variation (e.g., node degrees).
3.2. GDL with filters and optimal transport
We propose fGOT-GDL, which sets , , p = 2, q = 2. Training runs for T epochs, each repeating three steps: (1) estimate each input graph's barycenter via fGOT; (2) compute the reconstruction loss via sfGOT; (3) update parameters via backpropagation to minimize the total reconstruction loss.
Barycenter via fGOT. Setting in (2) gives the Bures–Wasserstein Fréchet mean of , where is the Laplacian of atom . This is estimated by the fixed-point
Table 1: K-means clustering accuracy (%).
| AIDS | PROTEIN | PROTEIN-F | IMDB-BINARY | |
|---|---|---|---|---|
| #Graphs | 2,000 | 1,113 | 1,113 | 1,000 |
| Avg. #Nodes | 15.69 | 39.06 | 39.06 | 19.77 |
| Avg. #Edges | 16.20 | 72.82 | 72.82 | 96.53 |
| Node attr. dim. | 4 | 1 | 29 | - |
| Baselines from [14] | ||||
| FGWK | ||||
| GWB-KM | ||||
| GWF-BADMM | ||||
| GWF-PPA | ||||
| fGOT-GDL variants | ||||
| Pure | ||||
| Attr | - | |||
| MF | ||||
| MFMS | ||||
Table 2: Graph classification accuracy (%)
| Methods | PROTEIN | IMDB-BINARY |
|---|---|---|
| Baselines from [14] | ||
| HOPPERK / GCK | ||
| PROPAK / SPK | ||
| FGWK | ||
| GWF-BADMM | ||
| GWF-PPA | ||
| fGOT-GDL variants | ||
| Pure | ||
| Attr | - | |
| MF | ||
| MFMS | ||
iteration [20]. For each ,
(8)
After iterations, the barycenter Laplacian is , with adjacency .
Reconstruction loss via sfGOT. Setting in (1), the main difficulty is that the constraint makes (6) a discrete optimization with factorially many feasible solutions. Following [16,17], we relax to the convex set of possible soft assignments for each pair of and of possibly different sizes and :
The sfGOT distance (6) is then approximated as:
Since the first two terms are constant in , this reduces to the quadratic optimization problem: , solved via the Sinkhorn-Knopp algorithm [21,22] over outer iterations. At outer iteration ( ), we fix one ,

(a) AIDS
(b) IMDB-BINARY
(c) PROTEIN
Fig. 2: Visualization of the adjacency matrices of atoms learned by fGOT-GDL, using three datasets: AIDS, IMDB-BINARY, PROTEIN.
and solve the following entropy-regularized problem by inner Sinkhorn iterations [21,23]:
The final plan is then used to evaluate .
Reparameterization. Solving (1) is challenging due to the constraints on and . To handle these constraints, we reformulate (1) as an unconstrained optimization problem via
where and are unconstrained parameters; zeroes the diagonal elements; ensures is nonnegative, symmetric, zero-diagonal; ensures . This yields an unconstrained optimization problem, , where is estimated by minimizing , and . The parameters are updated end-to-end via backpropagation.
4. EXPERIMENTS
4.1. Synthetic experiments
We evaluate whether the learned embedding can distinguish two community-structure regimes using stochastic block model (SBM) graphs (Fig. 1): Strong community ( , , well-separated) and Weak community ( , , subtler). Each class has 25 graphs of 32 nodes (50 total), over 3 data-generation and 2 training seeds (6 runs). Embeddings are clustered via K-means (two clusters and 10 random initializations) and scored by Adjusted Rand Index (ARI) and balanced accuracy.
Baselines. GWF-PPA [14] learns atoms and via GW discrepancy for both barycenter and reconstruction loss, solved with the Proximal Point Algorithm ( , , , five PPA layers, one-dimensional node embedding, Adam optimizer with learning rate of 0.1, and training epochs). BW-GW uses fGOT for the barycenter (as in fGOT-GDL) but GW discrepancy for reconstruction loss, isolating the effect of sfGOT vs. GW as the loss.
fGOT-GDL setup. We use , , training epochs, barycenter iterations, learning rate of 0.05, , , and . We evaluate two filter choices: a high-pass filter , and a low-pass heat kernel filter . Results. The low-pass filter substantially outperforms the high-pass filter (ARI 0.140 vs. 0.007) and both baselines (ARI - 0.002 GWF-PPA, 0.013 BW-GW; balanced accuracy 0.690 vs. 0.543/0.567).
Distinguishing community strength requires sensitivity to global topology, which GW's local pairwise distances fail to capture, while fGOT-GDL's low-frequency eigenmodes naturally detect it.
4.2. Real-world experiments
We evaluate on AIDS, PROTEIN, PROTEIN-F, and IMDB-BINARY (statistics in Table 1) using four fGOT-GDL variants: Pure (structural Laplacian, single heat kernel filter), Attr (attribute-mixed Laplacian , where with and the row-wise -normalized , tuned via Bayesian optimization), MF (concatenated embeddings across 3 heat-kernel bandwidths), and MFMS (MF across two random seeds). Setup. We use the heat kernel filter throughout. For single-filter experiments, the bandwidth is (AIDS), (IMDB-BINARY), and (PROTEIN, PROTEIN-F). For multi-filter experiments, three bandwidths are used: (AIDS), (IMDB-BINARY), and (PROTEIN, PROTEIN-F). The number of atoms is with support sizes (AIDS), (IMDB-BINARY), and (PROTEIN, PROTEIN-F). Dictionary learning uses learning rate of 0.003, fGOT barycenter iterations, outer iterations, and inner iterations with for computing the sfGOT distance. Atom graphs are initialized by randomly selecting observed graphs, cropped to nodes by degree-based ranking if larger, or zero-padded otherwise. Results are reported over 10 random seeds.
Evaluation. For clustering, K-means with two clusters and 20 random initializations is applied to ; accuracy is reported after matching cluster labels to ground-truth classes by the best label permutation. We compare against FGWK [24], GWB-KM [21], and GWF-BADMM/GWF-PPA [14]. For classification, an RBF kernel matrix is constructed from and a kernel SVM is trained under stratified 10-fold cross-validation. We compare against SPK [25], HOPPERK [26], PROPAK [27], GCK [28], FGWK, GWF-BADMM, and GWF-PPA [14].
Results. Pure already matches GW-based baselines on AIDS (98.09%) and IMDB-BINARY (63.36%); Attr improves further when node attributes are informative. MF consistently outperforms Pure, confirming multi-bandwidth filters capture complementary spectral information; MFMS reduces initialization variance and achieves the best overall results: 99.50% (AIDS), 71.84%/71.73% (PROTEIN-F), 64.00% (IMDB-BINARY) clustering accuracy (Table 1), and 74.31%/64.60% classification accuracy (Table 2) — outperforming GWF-BADMM/PPA and competitive with the strongest baseline, FGWK (75.1%/64.2%). Fig. 2 visualizes learned atom graphs as adjacency heatmaps, offering qualitative insight into recovered structural prototypes.
5. CONCLUSIONS
We proposed fGOT-GDL, a graph dictionary learning framework using fGOT as the barycenter metric and sfGOT as the reconstruction loss to capture global graph structure. We further showed that minimizing sfGOT is equivalent to maximizing HSIC-based statistical dependence between spectral embeddings, with experiments confirming competitive performance on clustering and classification.
Acknowledgment
This work was supported by MEXT KAKENHI Grant Number 26K21294.
6. REFERENCES
[1] Andreas D. Baxevanis, Gary D. Bader, and David S. Wishart, Bioinformatics: A Practical Guide to the Analysis of Genes and Proteins, John Wiley & Sons, 2020.
[2] Andrew R. Leach and Valerie J. Gillet, An Introduction to Chemoinformatics, Springer, 2007.
[3] Alexandra Marin and Barry Wellman, "Social network analysis: An introduction," in The SAGE Handbook of Social Network Analysis, pp. 11–25. 2011.
[4] S. V. N. Vishwanathan, Nicol N. Schraudolph, Risi Kondor, and Karsten M. Borgwardt, "Graph kernels," J. Mach. Learn. Res., vol. 11, pp. 1201–1242, 2010.
[5] Hai Nguyen, Shin ichi Maeda, and Kenta Oono, "Semi-supervised learning of hierarchical representations of molecules using neural message passing," arXiv preprint arXiv:1711.10168, 2017.
[6] Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl, "Neural message passing for quantum chemistry," in Proc. Int. Conf. Mach. Learn. (ICML), 2017, pp. 1263–1272.
[7] Dai Hai Nguyen, Canh Hao Nguyen, and Hiroshi Mamitsuka, "Learning subtree pattern importance for Weisfeiler-Lehman based graph kernels," Mach. Learn., vol. 110, no. 7, pp. 1585–1607, 2021.
[8] Dai Hai Nguyen, Canh Hao Nguyen, and Hiroshi Mamitsuka, "Adaptive: learning data-dependent, concise molecular vectors for fast, accurate metabolite identification from tandem mass spectra," Bioinformatics, vol. 35, no. 14, pp. i164–i172, 2019.
[9] Dai Hai Nguyen, Canh Hao Nguyen, and Hiroshi Mamitsuka, "Recent advances and prospects of computational methods for metabolite identification: a review with emphasis on machine learning approaches," Briefings in bioinformatics, vol. 20, no. 6, pp. 2028–2043, 2019.
[10] Dai Hai Nguyen and Koji Tsuda, "On a linear fused Gromov-Wasserstein distance for graph structured data," Pattern Recognit., vol. 138, pp. 109351, 2023.
[11] Ivana Tošić and Pascal Frossard, "Dictionary learning," IEEE Signal Process. Mag., vol. 28, no. 2, pp. 27–38, 2011.
[12] Kenneth Kreutz-Delgado, Joseph F. Murray, Bhaskar D. Rao, Kjersti Engan, Te-Won Lee, and Terrence J. Sejnowski, "Dictionary learning algorithms for sparse representation," Neural Comput., vol. 15, no. 2, pp. 349–396, 2003.
[13] Facundo Mémoli, "Gromov-Wasserstein distances and the metric approach to object matching," Found. Comput. Math., vol. 11, no. 4, pp. 417–487, 2011.
[14] Hongteng Xu, "Gromov-Wasserstein factorization models for graph clustering," in Proc. AAAI Conf. Artif. Intell. (AAAI), 2020, vol. 34, pp. 6478–6485.
[15] Cédric Vincent-Cuaz, Titouan Vayer, Rémi Flamary, Marco Corneli, and Nicolas Courty, "Online graph dictionary learning," in Proc. Int. Conf. Mach. Learn. (ICML), 2021, pp. 10564–10574.
[16] Hermina Petric Maretic, Mireille El Gheche, Giovanni Chierchia, and Pascal Frossard, "GOT: An optimal transport framework for graph comparison," in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), 2019, vol. 32.
[17] Hermina Petric Maretic, Mireille El Gheche, Giovanni Chierchia, and Pascal Frossard, "fGOT: Graph distances based on filters and optimal transport," in Proc. AAAI Conf. Artif. Intell. (AAAI), 2022, vol. 36, pp. 7710–7718.
[18] Arthur Gretton, Olivier Bousquet, Alex Smola, and Bernhard Schölkopf, "Measuring statistical dependence with Hilbert-Schmidt norms," in Proc. Int. Conf. Algorithmic Learn. Theory (ALT), 2005, pp. 63–77.
[19] Rajendra Bhatia, Tanvi Jain, and Yongdo Lim, "On the bures-wasserstein distance between positive definite matrices," Expositions mathematicae, vol. 37, no. 2, pp. 165–191, 2019.
[20] Isabel Haasler and Pascal Frossard, "Bures-Wasserstein means of graphs," in Proc. Int. Conf. Artif. Intell. Statist. (AISTATS), 2024, pp. 1873–1881.
[21] Gabriel Peyré, Marco Cuturi, and Justin Solomon, "Gromov-Wasserstein averaging of kernel and distance matrices," in Proc. Int. Conf. Mach. Learn. (ICML), 2016, pp. 2664–2672.
[22] Philip A. Knight, "The Sinkhorn-Knopp algorithm: Convergence and applications," SIAM J. Matrix Anal. Appl., vol. 30, no. 1, pp. 261–275, 2008.
[23] Marco Cuturi, "Sinkhorn distances: Lightspeed computation of optimal transport," Advances in neural information processing systems, vol. 26, 2013.
[24] Vayer Titouan, Nicolas Courty, Romain Tavenard, and Rémi Flamary, "Optimal transport for structured data with application on graphs," in Proc. Int. Conf. Mach. Learn. (ICML), 2019, pp. 6275–6284.
[25] Karsten M. Borgwardt and Hans-Peter Kriegel, "Shortest-path kernels on graphs," in Proc. 5th IEEE Int. Conf. Data Min. (ICDM), 2005, pp. 8–15.
[26] Aasa Feragen, Niklas Kasenburg, Jens Petersen, Marleen De Bruijne, and Karsten Borgwardt, "Scalable kernels for graphs with continuous attributes," in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), 2013, vol. 26, pp. 216–224.
[27] Marion Neumann, Roman Garnett, Christian Bauckhage, and Kristian Kersting, "Propagation kernels: Efficient graph kernels from propagated information," Mach. Learn., vol. 102, no. 2, pp. 209–245, 2016.
[28] Nino Shervashidze, S. V. N. Vishwanathan, Tobias Petri, Kurt Mehlhorn, and Karsten Borgwardt, "Efficient graphlet kernels for large graph comparison," in Proc. Int. Conf. Artif. Intell. Statist. (AISTATS), 2009, pp. 488–495.