potentialpaper

Faster Dynamic Graph Clustering with Hierarchical Contraction

Suranjan De, Steinar Laenen, He Sun

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We design a provably efficient algorithm for dynamic spectral clustering.

Abstract. We study clustering algorithms for dynamic evolving graphs {Gt}\{ G_t\}, in which new edges (and potentially new vertices) are added into a graph, and the underlying cluster structure of the graph gradually changes over time. By designing a hierarchical data structure for dynamically maintaining the cluster structure of {Gt}\{ G_t\}, we prove that the cluster structure of GTG_T can be maintained with O(d)O(d) amortised update time and O~(nT1/d)\widetilde{O}\left(n_T^{1/d}\right) amortised query time, for an arbitrary large constant dd. This significantly improves the previous state-of-the-art (Laenen and Sun, ICML 2024), which requires O(1)O(1) update time and O(nT/log⁡nT)O(n_T/\log n_T) amortised query time. We further demonstrate this improvement with experiments on both synthetic and real-world datasets.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper is about spectral clustering for dynamically changing graphs; at each point in time, a new edge arrives, possibly leading to a vertex not seen before. The authors' algorithm follows the paradigm of earlier work by Laenen-Sun '24, which is based upon the notion of cluster-preserving sparsification of graphs and which introduced much of the technical machinery. The present paper suggests modifications -- in particular, using a hierarchy of these contracted graphs, at different levels of compression -- that give better update and query times.

The paper is borderline; acceptance would depend heavily on addressing reviewer questions carefully. For instance,

  1. Can the authors give some guidance for selecting the hierarchy level d? Is it possible for d to grow with n (why or why not)?

  2. Questions about the various "constants" in the theorem statements.

  3. In the experiments, is it possible to get a sense of the structural gap? There are also some questions about experimental results under noisier conditions.

Final justification

The detailed author response and discussion between authors and reviewers have addressed most of the reviewers' concerns. The disposition of the paper is now (borderline) accept.

Area Chair HTgV · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper is about spectral clustering for dynamically changing graphs; at each point in time, a new edge arrives, possibly leading to a vertex not seen before. The authors' algorithm follows the paradigm of earlier work by Laenen-Sun '24, which is based upon the notion of cluster-preserving sparsification of graphs and which introduced much of the technical machinery. The present paper suggests modifications -- in particular, using a hierarchy of these contracted graphs, at different levels of compression -- that give better update and query times.

The paper is borderline; acceptance would depend heavily on addressing reviewer questions carefully. For instance,

  1. Can the authors give some guidance for selecting the hierarchy level d? Is it possible for d to grow with n (why or why not)?

  2. Questions about the various "constants" in the theorem statements.

  3. In the experiments, is it possible to get a sense of the structural gap? There are also some questions about experimental results under noisier conditions.

Final justification

The detailed author response and discussion between authors and reviewers have addressed most of the reviewers' concerns. The disposition of the paper is now (borderline) accept.

1 comment
Authors · CommentOpenReview ↗

We thank the Area Chair for the thoughtful summary. Throughout the discussion, we have tried to respond to every concern as clearly and thoroughly as possible, including conducting the additional experiments requested by the reviewers. As a summary for the questions posed:

Q1: Can the authors give some guidance for selecting the hierarchy level dd? Is it possible for dd to grow with nn?

The choice of dd gives a trade-off between query time, update time, and clustering quality. Increasing dd reduces the query cost to O~(n1/d)\widetilde{O}(n^{1/d}), but increases the update cost by an O(d)O(d) factor and weakens the clustering guarantee. Our depth-arbitration experiment in the paper demonstrates this trade-off. We use d=4d=4 as a practical default. For query-heavy tasks, a larger constant dd can reduce total runtime; for update-heavy or accuracy-sensitive tasks, a smaller constant d>2d>2 is preferable.

Our theorem requires dd to be a fixed constant independent of nn. Although the algorithm can technically be run with growing dd, the assumptions become increasingly stronger and the guarantee becomes weak. For fixed ℓ≥2\ell\ge 2, choosing d=Θ(log⁡n)d=\Theta(\log n) would require

ρG(ℓ)=O(ℓ−(18+5d)log⁡−γn)=n−Θ(1)log⁡−γn.\rho_G(\ell)=O\left(\ell^{-(18+5d)}\log^{-\gamma}n\right)=n^{-\Theta(1)}\log^{-\gamma}n.

For example, if d=log⁡2nd=\log_2 n, then ℓ−5d≤n−5\ell^{-5d}\le n^{-5}, making the required conductance o(1/n2)o(1/n^2). However, every nontrivial cut in a connected unweighted simple graph has conductance at least Ω(1/n2)\Omega(1/n^2). Hence, this requirement cannot generally hold. This is why our theoretical results treat dd as a small fixed constant rather than allowing it to grow with nn.

Q2: Questions about the various constants in the theorem statements.

We apologize for the confusion. The constant mentioned by Reviewer 37cU is α\alpha, which currently appears in Theorem 3. This constant comes from the theoretical analysis of the hierarchy, where α\alpha is used to express the conductance of small clusters in the form

Φ(C)≤ℓ−αlog⁡−ϵ(nT).\Phi(C)\leq \ell^{-\alpha}\log^{-\epsilon}(n_T).

The parameter α\alpha is not used or estimated by the algorithm; it is only an auxiliary exponent in the proof. We will revise the theorem statement to make this role explicit.

The other constants mentioned by the reviewers are dd and γ\gamma, which are used in our dynamic-gap assumption. The parameter dd is the hierarchy depth, while γ>0\gamma>0 controls the strength of the gap assumption: a larger γ\gamma requires smaller cluster conductance and hence more clearly separated clusters as the graph grows.

Q3: In the experiments, is it possible to get a sense of the structural gap? What happens under noisier conditions?

Please see our responses to Questions 7 and 8 from Reviewer 37cU, and our additional experiments on ogbn-arxiv, where we provide gap measurements and results on additional noisy synthetic and real-world graphs.

Reviewer hYTgOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies a clustering algorithm for dynamic evolving graphs and the underlying cluster structure of the graph gradually changes over time. The main idea is to maintain compact graph representations that approximately preserve the cluster structure of the evolving graph. They prove that the cluster structure of GTG_T can be maintained with O(d)O(d) amortised update time and O~(nT1/d)\widetilde{O}(n_T^{1/d}) amortised query time, for an arbitrarily large constant dd.

Strengths and weaknesses

Strengths

  • The problem is well motivated.
  • The paper clearly positions the contribution as an improvement over this dynamic spectral clustering framework.

Weaknesses

  • The empirical evaluation could be strengthened by adding more baselines and a more complete experimental design, such as sensitivity studies on the number of clusters and memory usage.
Questions
  • The empirical evaluation could be strengthened by adding more baselines and a more complete experimental design, such as sensitivity studies on the number of clusters and memory usage.
  • Could the authors provide additional experimental results using different clustering-quality metrics, such as NMI, clustering accuracy, in addition to ARI?
  • The manuscript would benefit from careful proofreading to fix typos, such as the notation C2.1/C_{2.1}/ in Lemma 2.1.
Limitations

Could the authors discuss whether the theoretical assumptions are satisfied on the real-world datasets used in the experiments, and provide empirical result?

Final justification

I am satisfied with the authors’ response and will maintain my positive score.

Formatting concerns

No

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the constructive assessment and helpful suggestions for strengthening the empirical evaluation. We address each point below.

Question/Weakness 1 We selected Laenen and Sun (LS24) as the primary baseline because it is the closest prior method operating under the same dynamic model and providing comparable theoretical guarantees. Many other incremental spectral-clustering methods assume a fixed vertex set or do not provide guarantees in our setting. We will clarify this choice and add full spectral clustering on the current graph as an accuracy and runtime reference. We will also add experiments varying the number of clusters while controlling graph size and density. To evaluate memory usage, we will report the sizes of the maintained representations and their peak memory consumption for LS, Semi-Contracted, and Hierarchy.

We added a dynamic SBM experiment with k∈{4,8,12}k\in \{4,8,12 \}, and 1,000 vertices per cluster, p=0.05p=0.05, and q=0.01q=0.01. Starting with k−1k-1 clusters, we introduce the final 1,000-vertex cluster in five batches. All methods receive the same updates. We compare Semi and C4C_4 against Full SC and LS24.

The table reports mean ARI across query times and peak incremental memory in MiB:

KK Full SC ARI LS24 ARI Semi ARI C4C_4 ARI
4 0.9998 0.9998 0.9998 0.9998
8 0.9996 0.9996 0.9996 0.9996
12 0.9996 0.9996 0.9996 0.9996
KK Full SC LS24 Semi C4C_4
4 53.63 154.20 170.70 175.11
8 165.59 442.60 481.61 530.32
12 297.27 891.27 971.23 1070.32

The results are averaged over three independent runs. All methods maintain essentially the same clustering quality as kk and the graph size increases. Memory grows with the number of vertices and edges. The dynamic methods use more memory than Full SC because they maintain additional sparsifiers and contraction mappings.

Question/Weakness 3 We thank the reviewer for identifying the notation issue in Lemma 2.1. We will replace the constant C2.1C_{2.1} with the simpler notation CC and carefully proofread the manuscript for further notation and typographical issues.

Limitation

Theoretical assumptions on real-world datasets.

The experimental section already evaluates our runtime and clustering-quality claims on real datasets. However, we agree that we did not empirically report whether the dynamic gap is preserved. We therefore added the following experiment.

We use all available images in the MNIST and EMNIST 5050-NN graphs. For MNIST, we start with five classes and add one class. For EMNIST, we start with ten classes and add one class. Each class is introduced in five equal batches. We report the consecutive eigengap

Δℓt(H)=λℓt+1(LH)−λℓt(LH).\Delta_{\ell_t}(H)=\lambda_{\ell_t+1}(L_H)-\lambda_{\ell_t}(L_H).

For C4C_4, we measure at query times when ∣V(C4)∣≥ℓt+1|V(C_4)|\ge \ell_t+1, so both eigenvalues are defined. All representations are evaluated at the same update time.

Dataset HH 20%20\% 40%40\% 60%60\% 80%80\% 100%100\%
MNIST 5→65\to6 GtG_t 0.0173 0.0171 0.0151 0.0182 0.1902
Semi 0.0212 0.0223 0.0154 0.0125 0.1788
C4C_4 0.0212 0.0204 0.0376 0.0153 0.4702
EMNIST 10→1110\to11 GtG_t 0.0011 0.0007 0.0007 0.0004 0.1324
Semi 0.0049 0.0248 0.0164 0.0116 0.1501
C4C_4 0.0049 0.0119 0.0059 0.0081 0.3041

The above table shows that our data structures approximately preserves the spectral gap during these edge/vertex updates certifying the theory.

Authors · CommentOpenReview ↗

**Question/Weakness 2 **

Q2: Additional clustering-quality metrics. We thank the reviewer for this helpful suggestion. We added a small supplementary evaluation using NMI and clustering accuracy (ACC), in addition to ARI.

We use the same dynamic SBM experiments as in the paper, with a medium-scale graph of 10k10k-nodes. In the merge-cluster setting, the graph contains 3 large clusters of 3000 nodes and 10 small clusters of 100 nodes, with 5 merge steps. In the new-cluster setting, the initial graph contains 10 clusters of 1000 nodes, and each step introduces a new 100-node cluster. In both settings, we use p=0.1p=0.1, q=0.01q=0.01, r=0.65r=0.65, 3 independent runs, and the same algorithmic parameters as in the original experiments. We report both the average over all query points and the final query point. Values are mean (standard deviation).

Average over all query points.

Setting Method ARI NMI ACC
Merge clusters LS24 0.5863 (0.2579) 0.7257 (0.1782) 0.5643 (0.2660)
Merge clusters Semi 0.5863 (0.2580) 0.7254 (0.1788) 0.5666 (0.2661)
Merge clusters C4C_4 0.4993 (0.2263) 0.6499 (0.1738) 0.4935 (0.2205)
New clusters LS24 0.9987 (0.0007) 0.9972 (0.0015) 0.9990 (0.0006)
New clusters Semi 0.9985 (0.0007) 0.9969 (0.0015) 0.9988 (0.0006)
New clusters C4C_4 0.9830 (0.0118) 0.9756 (0.0164) 0.9855 (0.0101)

Final query point.

Setting Method ARI NMI ACC
Merge clusters LS24 0.9998 (0.0001) 0.9993 (0.0003) 0.9999 (0.0001)
Merge clusters Semi 0.9998 (0.0002) 0.9995 (0.0005) 0.9999 (0.0001)
Merge clusters C4C_4 0.7732 (0.1359) 0.8422 (0.0775) 0.7874 (0.0837)
New clusters LS24 0.9978 (0.0007) 0.9954 (0.0015) 0.9983 (0.0006)
New clusters Semi 0.9978 (0.0004) 0.9955 (0.0008) 0.9982 (0.0004)
New clusters C4C_4 0.9865 (0.0003) 0.9810 (0.0007) 0.9888 (0.0003)

The additional metrics support the similar qualitative conclusion as ARI. We will add these extra metrics for all of our experiments in the next version of the paper.

Reviewer 37cUOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The authors propose new algorithms for maintaining a clustering of a graph in a dynamic setting, which is restricted to inserting edges with at most one new end-vertex. The dynamic model and the algorithmic approach build on Laenen and Sun (2024), and the paper improves upon their query-time bounds. The main idea is to maintain a hierarchy of graph representations in which some parts of the graph are contracted. In these semi-contracted graphs, queries can be answered much faster than in the original graph. The paper also contains experiments on synthetic instances that empirically support the theoretical improvements.

Strengths and weaknesses

Strengths: (S1) Dynamic graph clustering is highly relevant.

(S2) The idea of the contraction hierarchy is novel for clustering

(S3) It seems that this paper and the one by Laenen and Sun, is among the few papers that provide guarantees on the quality of the output of spectral clustering in this dynamic setting

(S4) The improvement over the previous query-runtime bounds is substantial.

Weaknesses: (W1) The authors consider a restricted dynamic setting, in which only certain edge insertions are allowed (incident with at least one existing node) and no edge deletions.

(W2) My main concern is the modelling assumption. The quality guarantees and the runtime bounds need to have a so-called dynamic gap assumption under which, within every window of ntβn_t^\beta updates, there exists some time step t′t' at which the graph satisfies a strong spectral clusterability condition. This is a rather specific assumption.

(W3) It took me a lot of time to understand Theorems 2 and 3, and I still have problems in interpreting it (see questions below).

(W4) Theorem 3 (Main result) uses a constant α\alpha: \emph{for some constant α\alpha}; it does not become clear that α\alpha will be determined by the assumption in Appendix Lemma D.5. The statement should make this dependency explicit.

(W5) Is is also unclear what is meant by the assumption in Theorem 3: \emph{at query time TT the graph GTG_T contains ll clusters.} Does this mean that the theorem only applies to query times TT at which GTG_T itself satisfies the dynamic gap condition? If so, this seems stronger than the model assumption, which only requires that such a condition holds at some time step within every sufficiently long update window.

(W6) The experimental evaluation is not convincing, since the synthetic experiments are done on graphs with a very clear cluster structure (edge probabilities are very large within the clusters and much smaller between the clusters), and a whole cluster is added at every time step (different from the theoretical part in which only one edge is added).

Questions

(Q1) What is meant by the assumption in Theorem 3: \emph{at query time TT the graph GTG_T contains ll clusters}. Does this mean that the theorem only applies to query times TT at which GTG_T itself satisfies the dynamic gap condition?

(Q2) The quality guarantees and the runtime bounds need to have a dynamic gap assumption under which, within every window of ntβn_t^\beta updates, there exists some time step t′t' at which the graph satisfies a strong spectral clusterability condition. This is a rather specific assumption. Can you motivate this assumption? Do you expect that there are areal applications obeying this assumption?

(Q3) The dynamic gap assumption uses the constants dd and gammagamma. Please clarify the quantitative meaning of this assumption? Is the exponent 18+5d18+5d merely a proof artifact needed to absorb losses across the hierarchy levels, or does it have algorithmic significance?

(Q4) Theorem 3 (Main result) uses a constant α\alpha: \emph{for some constant α\alpha}; is it correct that α\alpha will be determined by the assumption in Appendix Lemma D.5. The statement should make this dependency explicit. Are there dependencies between α\alpha and the hierarchy depth dd?

(Q5) Can the hierarchy depth dd grow with nn, or is it essential for the analysis that dd is a fixed constant? In particular, what breaks if one chooses d=Θ(log⁡n)d=\Theta(\log n) (this would formally suggest polylogarithmic or even constant query time)?

(Q6) How essential is it to model also deletions or adding edges with two new end vertices?

(Q7) The experiments are based on synthetic and on k-NN graphs in which new classes (clusters) are introduced gradually. Could the authors report empirical values for the dynamic gap condition over time?

(Q8) How robust is the method when the dynamic process is noisier, when clusters evolve more gradually, or when the graph temporarily deviates substantially from the assumed clusterable structure? Can you add additional experiments?

Limitations

No. The authors state that they discuss the dynamic gap assumption, but it does not sufficiently discuss its practical restrictiveness, the apparent need for the gap condition at query time (if so), or the fact that the experiments are quite aligned with those assumptions.

Final justification

The rebuttal and the additional experiments substantially improved my assessment of the paper. In particular, the ogbn-arxiv and Reddit experiments address my main concern about the practical relevance of the method beyond the clean synthetic setting of the original submission. The per-checkpoint evaluation also resolves my concern about the previously large pooled standard deviations and shows that C4C_4 tracks Full SC and LS24 closely at most query points.

The remaining transient drops during class insertion are relevant for the intended dynamic setting, but the authors have committed to quantifying their frequency and recovery time, and to including 10-seed runs and full per-query figures in the revision. I consider these remaining issues appropriate for revision rather than acceptance-critical.

Overall, my main concerns about practical relevance and empirical robustness have been addressed sufficiently, and I therefore raise my score to 4 (Borderline Accept).

Formatting concerns

I did not find major issues.

8 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful and constructive assessment of our manuscript and for recognizing the novelty and significance of our contributions. We address the reviewer’s questions and suggestions below.

Q1/W5: Does the guarantee require the query graph itself to satisfy the gap condition? For a guarantee on the conductance of the returned clusters we do require the graph itself to satisfy some gap condition. Note that this is also a requirement for spectral clustering in the static setting. A sufficient heuristic to check whether the query graph satisfies the gap condition is by computing the spectral gap between λk+1\lambda_{k+1} and λk\lambda_{k}. If no such a gap exists, then our algorithm has no guarantee on the conductance of the output clusters, which is equivalent to results in the static setting.

Notice that there are two different gap assumptions. Firstly, as stated in Section 2.3, a dynamic gap assumption is imposed at reference time tt, when the data structure is rebuilt: $ \lambda_{k+1}(L_{G_t})=\Omega(1)$ and $\rho_{G_t}(k)=O\left(k^{-(18+5d)}\log^{-\gamma}(n_t)\right). $ Secondly, for a query during the following ntβn_t^\beta updates, we allow the weaker condition $ \lambda_{\ell+1}(L_{G_T})=\Omega(1)$ and $\rho_{G_T}(\ell)=O\left(\ell^{-\alpha}\log^{-\epsilon}(n_T)\right), $ where 0<ϵ≤γ0<\epsilon\leq\gamma. Since ϵ\epsilon may be smaller than γ\gamma, log⁡−ϵ(nT)\log^{-\epsilon}(n_T) is a weaker assumption. Therefore, “GTG_T contains ℓ\ell clusters” means only that GTG_T has some identifiable cluster structure at query time; it does not mean that GTG_T must satisfy the original strong gap assumption. We will make this distinction more explicit in Theorem 3.

Q2/W2: Motivation and practical scope of the dynamic-gap assumption. Our dynamic-gap assumption follows the framework introduced by Laenen and Sun (2024) [7]. Provable guarantees for spectral clustering require a clusterability condition. The two components of our assumption have standard spectral-clustering interpretations. The upper bound on ρG(ℓ)\rho_G(\ell) ensures an ℓ\ell-partition with small outer conductance, while λℓ+1(LG)=Ω(1)\lambda_{\ell+1}(L_G)=\Omega(1) rules out an additional low-conductance component. Together, they describe a graph with exactly ℓ\ell well-separated clusters. The dynamic part is weaker than requiring clusterability at every time: it permits transition periods, lasting up to ntβn_t^\beta updates, in which communities merge or split. This is intended to model networks that repeatedly return stable community states between transitions. We agree, however, that this requirement does not hold for all dynamic graphs. However, since the number of vertices and edges in the underlying graph might grow in our setting, we believe that this model covers many practical applications (e.g., social network analysis) during which new clusters could be generated over time.

Q3: Meaning of dd, γ\gamma, and the exponent 18+5d18+5d. The parameter dd is the hierarchy depth, while γ>0\gamma>0 controls the strength of the gap assumption: a larger γ\gamma requires smaller cluster conductance and hence more clearly separated clusters as the graph grows. The exponent 18+5d18+5d arises from the analysis rather than the algorithm itself. Each contraction level incurs an ℓ5\ell^5 loss in Lemma D.7, so the initial factor ℓ−(18+5d)\ell^{-(18+5d)} is the accumulated loss across dd levels and leaves ℓ−18\ell^{-18} at the deepest level. The algorithm does not use or estimate this exponent.

Q4/W4: What is α\alpha, and how does it depend on dd? The parameter α\alpha is introduced in Lemma D.5 to express the conductance of the small clusters considered at each contraction level: $ \Phi(C)\leq \ell^{-\alpha}\log^{-\epsilon}(n_T). $ Thus, α\alpha is not determined by Lemma D.5 or used by the algorithm; it simply parameterizes the conductance of these small clusters. There is no assumed relationship between α\alpha and dd: α\alpha describes cluster conductance, whereas dd is the chosen hierarchy depth. They interact only in the final guarantee because each contraction level incurs an ℓ5\ell^5 loss, producing ℓ−α+5d\ell^{-\alpha+5d} after dd levels. Because Theorem 3 appears before the formal distinction between large and small clusters, this role of α\alpha was not sufficiently clear. We will revise the theorem to explain it explicitly.

Q5: Can the hierarchy depth(d) grow with nn? We thank the reviewer for this insightful question. Our analysis requires dd to be a fixed constant. If d=Θ(log⁡n)d=\Theta(\log n), the dynamic-gap assumption would require $ \rho_G(\ell) = O(\ell^{-(18+5d)}\log^{-\gamma}n) = n^{-\Theta(1)}\log^{-\gamma}n $ for fixed ℓ≥2\ell\geq2. For d=log⁡nd=\log n, this requirement becomes o(1/n2)o(1/n^2). In a connected unweighted simple graph, however, every cut has conductance at least Ω(1/n2)\Omega(1/n^2). Thus, this condition cannot generally hold in the unweighted setting. Moreover, increasing dd raises the update time to O(d)O(d) and drives the output exponent (0.49)dγ(0.49)^d\gamma toward zero, eventually making the conductance guarantee uninformative. Therefore, one cannot set d=Θ(log⁡n)d=\Theta(\log n) in our theorem to obtain constant query time; the result applies only to fixed constant dd.

Q6/W1: Deletions and edges with two new endpoints. These restrictions are needed for our current analysis, although they are not necessary to the general hierarchical-contraction idea. Deletions break the monotonicity of degrees and cluster volumes used by the sparsifier, unfolding rules, and amortized analysis. Supporting deletions would therefore require a fully dynamic sparsifier and new mechanisms for handling decreasing volumes and re-contraction. An edge with two new endpoints creates a component that is initially disconnected from the maintained graph, whereas our model preserves connectivity by introducing each new vertex through an edge to an existing vertex. Note that for disconnected graphs, the spectral gap is infinite, and as such many aspects of our theoretical analysis don’t hold anymore. We view both extensions, particularly deletions, as important future work and will state these more clearly.

Q7: Empirical dynamic-gap values over time. We thank the reviewer for this suggestion. We evaluated the gap during gradual cluster introduction on both synthetic and 5050-NN graphs.

For the synthetic experiment, we start with four clusters of 2,500 vertices (p=0.02p=0.02, q=10−5q=10^{-5}) and gradually add one 100-vertex cluster with external edges. We use d=4d=4, β=0.5\beta=0.5, and three independent runs. We report

R5(H)=λ6(LH)λ5(LH).R_5(H)=\frac{\lambda_6(L_H)}{\lambda_5(L_H)}.

HH n=5n=5 n=25n=25 n=45n=45 n=65n=65 n=85n=85 n=100n=100
GtG_t 6.99 36.48 65.93 95.34 124.72 154.05
Semi 7.77 40.61 73.40 106.16 138.87 171.52
C4C_4 7.77 49.08 88.99 128.86 168.65 193.70

Across all runs, λ6\lambda_6 remains at least 0.7200.720, 0.8210.821, and 0.8210.821 for GtG_t, Semi, and C4C_4, respectively. Their empirical five-way conductance decreases from 0.11110.1111 to 0.00480.0048.

For the real-world kk-NN experiments, we use k=50k=50. We initialize MNIST with five classes and EMNIST with ten classes, and then introduce one additional class to each dataset in five equal batches. We report the consecutive eigengap:

Δℓt(H)=λℓt+1(LH)−λℓt(LH).\Delta_{\ell_t}(H)=\lambda_{\ell_t+1}(L_H)-\lambda_{\ell_t}(L_H).

For C4C_4, we measure at query times when ∣V(C4)∣≥ℓt+1|V(C_4)|\ge \ell_t+1, so both eigenvalues are defined. All representations are evaluated at the same update time.

Dataset HH 20%20\% 40%40\% 60%60\% 80%80\% 100%100\%
MNIST 5→65\to6 GtG_t 0.0173 0.0171 0.0151 0.0182 0.1902
Semi 0.0212 0.0223 0.0154 0.0125 0.1788
C4C_4 0.0212 0.0204 0.0376 0.0153 0.4702
EMNIST 10→1110\to11 GtG_t 0.0011 0.0007 0.0007 0.0004 0.1324
Semi 0.0049 0.0248 0.0164 0.0116 0.1501
C4C_4 0.0049 0.0119 0.0059 0.0081 0.3041

The above two tables show that our data structures approximately preserve the spectral gap during edge and vertex insertions, providing empirical support for our theoretical analysis.

Q8: Robustness to noisy and weakly clusterable graphs. We thank the reviewer for this suggestion. We added a dynamic SBM experiment with five clusters of 2,000 vertices each. The initial graph uses within-cluster probability p=0.025p=0.025 and cross-cluster probability q0=0.001q_0=0.001, and is connected. We then gradually increase qq by inserting uniformly random cross-cluster edges. The graphs are nested, and every method receives exactly the same updates. We use hierarchy depth d=4d=4 and report mean ARI (standard deviation) over five independent runs.

qq Full SC LS24 Semi C4C_4
0.0010 1.000 (0.000) 1.000 (0.000) 1.000 (0.000) 1.000 (0.000)
0.0073 1.000 (0.000) 1.000 (0.000) 1.000 (0.000) 0.999 (0.000)
0.0104 0.997 (0.001) 0.988 (0.002) 0.990 (0.002) 0.937 (0.005)
0.0135 0.920 (0.001) 0.778 (0.003) 0.776 (0.003) 0.557 (0.006)
0.0166 0.390 (0.010) 0.054 (0.010) 0.047 (0.014) 0.004 (0.002)
0.0198 0.002 (0.001) 0.001 (0.000) 0.001 (0.000) 0.000 (0.000)

All methods remain highly accurate through q=0.0104q=0.0104. Under stronger noise, C4C_4 degrades earlier, consistent with its more aggressive compression. At q=0.0166q=0.0166, even Full SC drops to 0.3900.390, and by q=0.0198q=0.0198 the planted cluster structure is too weak for spectral clustering on the full graph. So, by the above table we can say the clustering quality is approximately preserved by our data structures under this noisy model.

Reviewer 37cU · CommentOpenReview ↗

Thanks you for your response. Many of my questions have been answered. I also like your new experiments with noise. However, also they were done on initially synthetic graphs, in which you kept the number of clusters fixed. Also the MNIST and the EMNIST graphs are small, but dynamic algorithms only make sense if the runtime of initial clustering takes long. My concern still is that your method will have only restricted impact in practice, since most instances will not fulfill your dynamic gap condition. Your experiments with adding noise show that indeed if this condition is no more fulfilled, the approach does not work anymore for th instances you tested. But maybe it is different for instances that are more practical. Have you tested your approach with other benchmark sets for clustering, such as ogbn-arxiv (growing fields, this should have some natural clustering structure, too; but maybe will not fulfill your condition), com-DBLP (here, you could show if there is a runtime advantage with your incremental approach),

Authors · CommentOpenReview ↗

We thank the reviewer for these insightful suggestions. Our new experiments show that while the dynamic gap assumption is needed for our theoretical analysis, in practice our algorithm also works when this assumption is not satisfied.

We added experiments on two substantially larger real-world benchmarks: ogbn-arxiv [2] and the Reddit GraphSAGE benchmark [1]. We did not use com-DBLP because its communities overlap: an author may belong to multiple communities, which violates the single ground-truth label assumption of ARI/NMI metrics. Instead, we use the Reddit GraphSAGE benchmark, which has substantially more edges(57M+) than com-DBLP(1M+) and provides 41 fixed, non-overlapping classes. This allows us to evaluate both runtime and clustering quality on a large-scale graph.

For all experiments, we report each metric as mean (standard deviation). ARI and NMI are calculated using all queries from all runs, while total runtime is averaged over the three runs.

ogbn-arxiv

ogbn-arxiv is originally a directed citation graph. We convert it into an undirected graph by replacing each directed citation with an undirected edge. We initialize the graph with all papers published through 2014 and then insert papers chronologically in five batches: 2015, 2016, 2017, 2018, and 2019+. Within each year, we use the following insertion order: papers and their original incident edges are added only when they keep the active graph connected. We do not create any additional edges. We query 10 times per batch, giving 50 queries in total. The final graph contains 169,343 vertices and 1,157,799 undirected edges, with 40 subject labels used as ground truth.

Method ARI NMI Total time
Full SC 0.3457  (0.0506)0.3457\;(0.0506) 0.4032  (0.0213)0.4032\;(0.0213) 2669.7  (18.8)2669.7\;(18.8)s
LS24 0.3473  (0.0495)0.3473\;(0.0495) 0.4028  (0.0210)0.4028\;(0.0210) 1493.5  (28.9)1493.5\;(28.9)s
Semi 0.3473  (0.0495)0.3473\;(0.0495) 0.4028  (0.0210)0.4028\;(0.0210) 1122.4  (30.0)1122.4\;(30.0)s
C4C_4 0.3180  (0.0521)0.3180\;(0.0521) 0.3793  (0.0253)0.3793\;(0.0253) 516.0  (3.1)516.0\;(3.1)s

The main graph is relatively sparse relative to its size and has weak community structure with respect to its subject labels, as reflected by the moderate performance of Full SC. More importantly, the normalized-Laplacian eigengap λ41−λ40\lambda_{41}-\lambda_{40} is small: its minimum, mean, and maximum over the all queries are 4.17×10−64.17\times10^{-6}, 1.84×10−41.84\times10^{-4}, and 4.94×10−44.94\times10^{-4}, respectively which does not satisfy our dynamic-gap assumption. Still, C4C_4 achieves an ARI of 0.31800.3180, compared with 0.34570.3457 for Full SC, while reducing total mean runtime from 2669.72669.7s to 516.0516.0s. This directly demonstrates useful empirical performance outside the theoretical regime.

Reddit

The Reddit GraphSAGE graph contains 232,965 vertices, 52,307,946 undirected edges, and 41 classes. It has substantially more edges than ogbn-arxiv and exhibits a clear cluster structure. Because timestamps are unavailable, we turn this graph into a dynamic graph as follows: we initialize the graph with 38 random classes and then insert three held-out classes sequentially keeping the evolving graph connected. We split each class arrival into 10 incremental batches and query after each batch, giving nine query checkpoints per run. We repeat the experiment over three runs.

Method ARI NMI Total time
Full SC 0.8341  (0.154)0.8341\;(0.154) 0.8311  (0.0047)0.8311\;(0.0047) 4410.3  (48.5)4410.3\;(48.5)s
LS24 0.7878  (0.191)0.7878\;(0.191) 0.8097  (0.0081)0.8097\;(0.0081) 2910.9  (20.2)2910.9\;(20.2)s
Semi 0.7878  (0.191)0.7878\;(0.191) 0.8097  (0.0081)0.8097\;(0.0081) 2050.5  (32.3)2050.5\;(32.3)s
C4C_4 0.7616  (0.146)0.7616\;(0.146) 0.7980  (0.177)0.7980\;(0.177) 1040.4  (8.5)1040.4\;(8.5)s

Full SC obtains an ARI of 0.83410.8341 and an NMI of 0.83110.8311, confirming that there is a strong cluster structure. While C4C_4 obtains an ARI of 0.76160.7616 and an NMI of 0.79800.7980. Moreover, it reduces total mean runtime from 4410.34410.3s to 1040.41040.4s, corresponding to a 4.2×4.2\times speedup, and is also substantially faster than LS24 and Semi.

Together, with these experiments we try to address both aspects of the reviewer’s concern. The ogbn-arxiv results show that the strong dynamic-gap assumption is not necessary for empirical performance, while Reddit GraphSAGE demonstrates a substantial runtime advantage with limited loss in clustering quality at a large scale. We will add these experiments to the revised paper to demonstrate the practical effectiveness of our algorithm.

References

[1] Hamilton, W. L., Ying, R., & Leskovec, J. (2017). Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems (NeurIPS) (pp. 1024-1034).

[2] Hu, W., Fey, M., Zitnik, M., Dong, Y., Ren, H., Liu, B., Catasta, M., & Leskovec, J. (2020). Open graph benchmark: Datasets for machine learning on graphs. In Advances in Neural Information Processing Systems (NeurIPS) (pp. 22118-22133).

Reviewer 5mduOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies dynamic spectral clustering for evolving graphs where edges and potentially vertices are inserted over time. The main contribution is a semi-contracted graph representation that keeps stable clusters compressed and the hierarchical graph contraction scheme that reduces the query cost. Under cluster-separation assumptions, authors provide theoretical results showing that proposed algorithms improve the amortized query time significantly over prior work while maintaining comparable clustering quality.

Strengths and weaknesses

The paper tackles the dynamic spectral graph clustering. The proposed methods are clearly motivated, and the theoretical analysis appears solid. Specifically, the semi-contracted graph representation and the hierarchical graph contraction scheme are original and significant from a computational perspective, improving query efficiency for large evolving graphs.

The main weakness is that the paper could provide more explanation and interpretation to improve clarity and practical usability. For example,

  • After Theorem 3, the paper should more explicitly discuss the trade-off between hierarchy depth and clustering accuracy. While deeper hierarchies improve query efficiency, the theoretical bound contains depth-dependent terms, suggesting that the hierarchy level may also affect approximation quality.

  • The paper would benefit to provide practical guidance on hyperparameter tuning, especially how to choose the hierarchy level dd for a new real-world dataset. Adding discussion about the practical implementation of proposed method enlarge the method impact in real applications.

  • The ARI trajectory of the hierarchy method in Figure 2 appears somewhat unexpected. Additional explanation of this behavior would help readers better understand the practial performance of the algorithm.

Questions
  • Can the semi-contracted and hierarchical contraction ideas be applied to other spectral clustering variants beyond the standard k-means procedure? If so, what assumptions should be modified and what properties of the clustering method are needed for the theoretical guarantees to hold?

  • The current theoretical analysis is stated for undirected weighted graphs, while the SBM in simulations generate unweighted binary graphs. Could the authors clarify this connection and, if feasible, add a small experiment on weighted dynamic graphs to demonstrate the range of applicability?

Limitations

yes

Formatting concerns

It may be better for visualization to have larger legends in plots.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thoughtful feedback and positive assessment of our approach. We address the questions and suggestions below.

Weakness 1: Hierarchy depth: efficiency–accuracy trade-off: Increasing the hierarchy depth dd improves the amortized query time to O~(nT1/d)\widetilde O(n_T^{1/d}), but increases the amortized update time to O(d)O(d). It also weakens the theoretical conductance guarantee through the depth-dependent factors ℓ5d\ell^{5d} and (0.49)d(0.49)^d. Thus, deeper hierarchies lead to better query time, while shallow hierarchies lead to better update times and stronger approximation guarantees on the returned clusters. We will discuss this trade-off explicitly after Theorem 3.

Weakness 2: In practice, dd should remain a small constant. A shallow hierarchy is preferable for update-heavy or accuracy-sensitive workloads, whereas a deeper hierarchy is more useful when queries are frequent and expensive. We use d=4d=4 as a practical default in our experiments. In practice, dd can be set on a validation set of the data which minimises total run time, while maintaining a desired clustering guarantee. We will add this practical guidance to the paper.

Weakness 3: ARI trajectory in Figure 2. Figure 2 evaluates a graph whose cluster structure changes over time. New clusters are gradually added, or existing clusters are merged, through batches of edge insertions. During these transitions, the graph may not yet contain enough information to clearly represent the new clustering. The hierarchical method may also show temporary changes in ARI because its deeper levels are more compressed and are updated periodically. As more edges arrive and the hierarchy is refreshed, the clustering quality recovers. We will clarify this behavior in the discussion of Figure 2.

Question 1: The semi-contracted and hierarchical representations are not inherently tied to kk-means. However, our theoretical analysis requires the clustering subroutine to satisfy two main properties: Under the assumed spectral clusterability condition, it needs to return a partition with bounded outer conductance. Its output also needs to have sufficient volume overlap with the target clusters so that stable clusters can be safely contracted. Therefore, another clustering procedure could replace kk-means if it provides analogous approximation and stability guarantees. Without these properties, the contraction framework may still be applied algorithmically, but our theoretical analysis would not transfer automatically.

Question 2: An unweighted graph is a special case of our weighted formulation, obtained by assigning weight 11 to every present edge. Thus, our theoretical results cover the unweighted SBM experiments. Weighted graphs are more challenging because a single high-weight insertion can abruptly change the cluster structure - e.g. adding one edge ee with weight we=O(poly(n))w_e = O(\mathrm{poly}(n)) would lead to a new cluster after one update. Our guarantees continue to apply whenever the resulting graph satisfies the stated clusterability condition; if a heavy edge destroys this structure, no query-time quality guarantee is claimed. We will clarify this scope and add a weighted experiment with bounded edge weights to illustrate the weighted setting.

Experiment on weighted graph: To demonstrate the weighted setting empirically, we compare weighted and unweighted versions of the same dynamic SBM. The graph has five clusters of 2,000 vertices, with p=0.03p=0.03 and q=0.01q=0.01. We initialize the graph with four clusters and introduce the fifth cluster in five equal batches. Both settings use exactly the same graph topology and update sequence. In the unweighted setting, we=1w_e=1; in the weighted setting, each edge receives a fixed independent weight we∼Uniform[1,50]w_e\sim\mathrm{Uniform}[1,50]. We use d=4d=4, and report mean ARI (sample standard deviation) over five query times and two independent runs.

Edge weights Full SC LS24 Semi C4C_4
we=1w_e=1 0.9816 (0.0054) 0.9816 (0.0054) 0.9816 (0.0054) 0.9816 (0.0054)
we∼Uniform[1,50]w_e\sim\mathrm{Uniform}[1,50] 0.9701 (0.0008) 0.9701 (0.0007) 0.9701 (0.0008) 0.9701 (0.0010)

In the above table the ARI values for weighted and unweighted graphs are almost similar. These results demonstrate that the proposed methods apply effectively to weighted dynamic graphs as well as unweighted graphs.

Reviewer 5mdu · CommentOpenReview ↗

Thank you to the authors for the detailed response. I believe the point-by-point response has addressed all of my concerns and questions. Since my initial assessment was already positive, I would like to keep my current score unchanged.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…