---
title: Expander Pruning in Dynamic Graphs
url: https://www.emergentmind.com/topics/expander-pruning
type: topic
---

# Expander Pruning in Dynamic Graphs

Expander pruning is a dynamic graph primitive for maintaining a robustly connected remainder of a graph after adversarial deletions by growing a monotone set of disabled or pruned vertices. In the standard formulation, one starts from a $\phi$-expander and seeks an online algorithm that preserves an induced subgraph of comparable expansion while keeping both the cumulative pruned volume and the per-update recourse small. Recent work has extended the objective beyond conductance preservation to the maintenance of routing structure, short paths, and explicit path access under deletions, while a separate line of neural-network research uses “expander pruning” to denote sparsification rules that preserve expander-like connectivity or spectral gap in layer graphs [1812.08958, 2504.00544, 2507.13044, 2403.11100, 2508.09471].

## 1. Formal problem and terminology

For an undirected graph $G=(V,E)$, the volume of a set $S \subseteq V$ is
$$
\mathrm{vol}(S)=\sum_{v \in S}\deg(v),
$$
and the conductance of a cut is
$$
\phi(S)=\frac{|E(S,\bar S)|}{\min\{\mathrm{vol}(S),\mathrm{vol}(\bar S)\}}, \qquad \bar S = V \setminus S.
$$
The conductance of the graph is
$$
\phi(G)=\min_{\emptyset \neq S \subset V}\phi(S).
$$
A $\phi$-expander is a graph with $\phi(G)\ge \phi$. In dynamic settings, the expander pruning problem asks for a monotone pruning set $P \subseteq V$ such that, after each deletion, the induced graph on the remaining vertices continues to satisfy an expansion guarantee of roughly the original quality. The central performance measures are the growth of $P$, the recourse per update, and the update time [2504.00544].

This notion is closely related to, but distinct from, expander decomposition. Expander decomposition partitions a graph into clusters that are internally well connected and sparsely connected to one another; expander pruning is the repair mechanism that removes a small set of vertices so that a damaged cluster, or the whole graph, remains an expander after deletions [1812.08958].

A second formulation, developed for routing-sensitive settings, measures not only conductance but routability. In that setting, a demand $D:V \times V \to \mathbb{R}_{\ge 0}$ is unit if
$$
\mathrm{load}_D(v)=\sum_u (D(u,v)+D(v,u)) \le \deg_G(v)
\quad \text{for all } v,
$$
and a graph is an $h$-length $\kappa$-congestion router for a node weighting $A$ if every $A$-respecting demand admits a length-$h$ multicommodity flow of congestion at most $\kappa$. The same line distinguishes worst-case pruning ratio, meaning the maximum number of additional pruned vertices caused by a single deletion, from amortized pruning ratio, meaning total pruned vertices divided by the number of deletions [2507.13044].

## 2. Classical decremental expander pruning

A foundational formulation appears in “Expander Decomposition and Pruning: Faster, Stronger, and Simpler” [1812.08958]. The paper works in an online deletion model on undirected, unweighted, simple graphs and uses the induced subgraph with self-loops $G\{S\}$, namely $G[S]$ augmented so that every $v \in S$ retains its degree in $G$. This convention preserves volume while trimming vertices and is central to the dynamic guarantees.

Its main expander pruning theorem considers a $\phi$-expander $G=(V,E)$ with $m$ edges and an edge deletion sequence of length $k \le \phi m/10$. The algorithm deterministically maintains sets $P_i$ such that $P_0=\emptyset$ and $P_i \subseteq P_{i+1}$, while for every prefix of deletions
$$
\mathrm{vol}(P_i) \le \frac{8i}{\phi}, \qquad |E(P_i,V \setminus P_i)| \le 4i,
$$
and the remainder $G_i\{V \setminus P_i\}$ is a $\phi/6$ expander. The total update time over $k$ deletions is
$$
O\Big(\frac{k\log m}{\phi^2}\Big),
$$
equivalently amortized $O(\log m/\phi^2)$ per deletion [1812.08958].

The same work provides a weighted extension. If $G=(V,E,w)$ is a weighted $\phi$-expander with total weight $W=\sum_e w_e$, and the total deleted weight is at most $\phi W/10$, then for cumulative deleted weight $W_i$ the maintained pruning set satisfies
$$
\mathrm{vol}(P_i)\le \frac{8W_i}{\phi}, \qquad |E(P_i,V\setminus P_i)| \le 4W_i,
$$
and $G_i\{V \setminus P_i\}$ remains a $\phi/6$ expander, with total time $O(m\log m/\phi)$ [1812.08958].

This line established the strong induced-expander guarantee as a practical dynamic objective. The remainder is not merely contained in some unknown expander; the induced graph itself is certified to be an expander. That distinction is important in downstream dynamic algorithms, because it permits local repair and recursion without an additional recovery step.

## 3. Worst-case recourse and update time

The next major step is “Expander Pruning with Polylogarithmic Worst-Case Recourse and Update Time” [2504.00544], which moves from amortized guarantees to worst-case guarantees per deletion. The paper considers an initially $\phi$-expander $G=(V,E)$ with $m$ edges under an online sequence of up to $\tilde{\Omega}(\phi m)$ edge deletions and gives a deterministic algorithm that, for each deletion, runs in worst-case time $\tilde{O}(1/\phi^2)$, adds at most $\tilde{O}(1/\phi^2)$ vertices to the pruning set, and maintains that
$$
G[V \setminus A]
$$
is an
$$
\Omega\!\big(\phi/\log^4 m\big)
$$
-expander at all times [2504.00544].

The paper also gives an amortized stepping-stone result with the same worst-case recourse bound but total processing time $\tilde{O}(D/\phi^2)$ over $D$ deletions. The significance is not merely asymptotic. Earlier dynamic expander-pruning routines had good total guarantees but no non-trivial worst-case recourse bound; the 2025 result explicitly addresses that gap by growing the pruning set “slowly and explicitly” instead of rebuilding in the background and switching wholesale to a new solution [2504.00544].

A key technical convenience in the paper is expansion measured with respect to starting volume. If $G^{(0)}$ is the initial graph, then one says that $G$ is a $\phi$-expander with respect to starting volume if every $S \subset V$ with $\mathrm{vol}_{G^{(0)}}(S) \le \mathrm{vol}_{G^{(0)}}(\bar S)$ satisfies
$$
|E_G(S,\bar S)| \ge \phi \cdot \mathrm{vol}_{G^{(0)}}(S).
$$
This formulation is used to stabilize accounting as deletions reduce current degrees [2504.00544].

The paper also uses worst-case pruning as a building block for dynamic sparse graph primitives. Combined with recent techniques, it yields randomized algorithms that explicitly maintain an $\tilde{O}(n \log(mW))$-edge graph $H$ under fully dynamic updates, with at most $\tilde{O}(\log(mW))$ edge updates per adversarial update, supporting distance spanners, cut sparsifiers, and spectral sparsifiers with worst-case randomized update time $\tilde{O}(\log(mW))$ and high-probability guarantees against adaptive adversaries [2504.00544].

## 4. Self-pruning expanders and routing preservation

“Maintaining Routing Structures under Deletions via Self-Pruning” [2507.13044] reframes expander pruning around routing rather than pure conductance. The paper starts from the standard expander paradigm that a $\phi$-expander routes any unit demand with congestion at most $O((\log n)/\phi)$ over paths of length at most $O((\log n)/\phi)$, then asks for a dynamic object that preserves these routing properties under deletions rather than merely preserving an expansion parameter.

Its core graph family is the $(k,d)$-semi-hypercube, whose vertex set is $[k]^d$. Clusters are prefixes $\sigma \in [k]^{\le d}$, and between each pair of distinct child clusters $\sigma+i$ and $\sigma+i'$ there is a perfect matching. The degree is $(k-1)d$. On top of this base family, the paper defines noncritical and general $(k,d,\tau)$-semi-hypercubes by constraints on critical clusters, degenerate clusters, and marked vertices, with the invariant that each cluster has at most one $\tau$-critical child and that a critical child remains well connected to its siblings in aggregate [2507.13044].

For routing, the paper proves that if $G$ is a general $(k,d,\tau)$-semi-hypercube with $\tau \le 1/(27d)$ and $k \ge 27 \cdot 2^d$, then there exists an oblivious routing $R$ with
$$
\dil(R)=O(d^3), \qquad \cong(R,D)=O\big(kd \cdot 10^d\big)
$$
for unit demands $D$, and path sampling takes expected time $O(d^3)$. A matching lower bound shows that for $k \ge 2$ and $\tau \ge 1/k$, some $(k,d,\tau)$-semi-hypercubes require congestion at least $k \cdot 2^{\Omega(d)}$ for some unit demand, so the exponential-in-$d$ congestion factor is necessary up to constants [2507.13044].

For self-pruning, the paper gives a deterministic routine, EfficientSelfPruningSHC, initialized on a $(k,d)$-semi-hypercube $H=([k]^d,E)$ with $k \ge 16d$ and $\tau \le 1/(4350d)$. Under vertex deletions Delete$(v)$, it maintains an induced $(k,d,\tau)$-semi-hypercube $H[V]$ while pruning additional vertices $V^{\mathrm{prune}}$ with worst-case ratio
$$
|V^{\mathrm{prune}}| \le O\Big(\frac{\log n}{\tau}\Big)^d
$$
per deletion, worst-case per-update work
$$
\mathrm{poly}\Big(k \cdot \Big(\frac{\log n}{\tau}\Big)^d\Big),
$$
and depth $\mathrm{poly}\log n$ [2507.13044].

The same paper also maintains explicit deterministic routings. For a $(k,d,\tau)$-semi-hypercube with $\tau \le 1/4$ and an integral load-$L$ demand $D$, it maintains a routing of congestion at most $\max(k,L)\cdot 20^d$ and length at most $4^d$, with per-update recourse
$$
(\max(k,L)\Delta_G + \Delta_{D^-})\cdot 2^{O(d)} + \Delta_{D^+}
$$
and work
$$
(\Delta_G+\Delta_D)\cdot 2^{O(d)} \cdot L \cdot \mathrm{poly}(k).
$$
This explicit path maintenance distinguishes the routing-sensitive setting from earlier expander-pruning results, which preserve expansion but not direct path access [2507.13044].

Through embeddings, the semi-hypercube machinery transfers to arbitrary graphs. If a $(k,d)$-semi-hypercube $H$ is embedded into a graph $G$ with path-length $h$ and congestion $\kappa$, then under adversarial edge deletions one can deterministically maintain a vertex set $V' \subseteq V$ and an oblivious routing on $G[V']$ with congestion at most $\kappa h k 2^{O(d)}$, dilation $O(hd^3)$, path-sampling time $O(hd^3)$, and worst-case pruning ratio at most
$$
\kappa h k \, O((\log n)^{2d})
$$
vertices per deletion. For constant-degree $\phi$-expanders, the resulting corollary gives worst-case pruning ratio and per-update work roughly $n^{o(1)}/\phi^2$ while maintaining routing length $O(\log^{1+o(1)}n/\phi)$ [2507.13044].

## 5. Algorithmic techniques and proof architecture

The 2018 algorithm is based on local flow infeasibility and trimming. Given a candidate set $A$, it sets source mass on boundary edges, sink capacity $\deg(v)$ at vertices, and edge capacity $2/\phi$ on edges of $G\{A\}$. A push-relabel-style primitive, Unit-Flow, runs with height
$$
h=\frac{40\ln(2m)}{\phi}.
$$
If the flow is feasible, $G\{A\}$ is certified as a $\phi/6$ expander; if not, Unit-Flow returns a level cut $S$ that is trimmed from $A$. The amortized analysis shows that total work can be charged to total source mass, yielding the $O(k\log m/\phi^2)$ bound over $k$ deletions [1812.08958].

The 2025 worst-case algorithm retains the flow-certificate viewpoint but de-amortizes it by layering certificates across batches and repairing them incrementally. One central lemma states that if a flow in
$$
G' = G[V \setminus A] \setminus B
$$
routes source
$$
\Big(\frac{8}{\phi}(\deg_G-\deg_{G'})\Big)[V \setminus A]
$$
to sinks $2\deg_G[V \setminus A]$ with edge capacities $32/\phi$, then $G'$ is a $\phi/10$-expander. To compose certificates over levels, the paper forms
$$
F = F_\lambda + 2F_{\lambda-1} + \cdots + (\lambda+1)F_0,
$$
where $\lambda = k + \lceil \log_2(1/\phi)\rceil + 1 \le 4\log_2 m$. Link-cut trees support worst-case backtracking of certificate flow when deleted edges invalidate old routes, and vertices are added to the global pruning set only after a threshold counter exceeds $(i+1)\deg_G(r)$ at a level-$i$ certificate [2504.00544].

The self-pruning framework of 2025 uses a different architecture. Each cluster $\sigma$ stores a target child $t_\sigma$, a non-target set $S_\sigma$, shadow mark sets $M^{\mathrm{shadow}}_{\sigma,\sigma',j}$, mark-source information $\mathrm{minfo}_\sigma$, size$_\sigma$, a cycle length $\mathrm{rcycle}=2d+1$, and a multiplier
$$
\rho=\Theta((H_k \cdot \mathrm{rcycle})/\tau).
$$
The algorithm alternates between Retarget, Trim, and Delete. Retarget selects a new target child either by smallest nonempty size or by largest number of inherited marks, depending on the alternation schedule. The key invariant is “$\le 1$ critical child per cluster” together with a bounded fraction of marked vertices in the target child. Harmonic bounds show that with the stated $\rho$, no non-target child becomes $\tau$-critical and marks remain within a $1/20$ fraction even through degenerate cascades. For routing, greedy paths are supplemented by escape moves that reduce isolation until the path reaches the root’s home cluster; for explicit routing, bucketed load balancers maintain per-matching balance within $\pm 1$ of average [2507.13044].

Taken together, these techniques show three distinct proof paradigms. Classical expander pruning uses local flow infeasibility to identify cuts to trim. Worst-case pruning uses precomputed and repairable certificates to control recourse at every deletion. Self-pruning replaces generic repair by a graph family whose combinatorial structure is itself dynamically maintainable.

## 6. Neural-network uses, misconceptions, and open directions

In neural-network sparsification, “expander pruning” refers to a different object. The goal is not to maintain a pruning set under adversarial graph deletions, but to prune weights while preserving expander-like connectivity or spectral expansion of the layer graph. In “Graph Expansion in Pruned Recurrent Neural Network Layers Preserve Performance” [2403.11100], recurrent layers are modeled as graphs with adjacency built either from the binary mask of nonzeros or from $|w_{ij}|$. The paper monitors two surrogates,
$$
\Delta_R = 2\sqrt{d_{\mathrm{avg}}-1} - |\lambda_2(A)|,
\qquad
\Delta_S = 2\sqrt{\lambda_1(A)-1} - |\lambda_2(A)|,
$$
and prunes $W_{xh}$ and $W_{hh}$ by iterative magnitude pruning while keeping $W_{hy}$ dense. Its empirical claim is that test accuracy is largely preserved while $\Delta_S$ and $\Delta_R$ remain positive, and that accuracy degradation begins at the first zero crossing, especially on noisy inputs and long sequences [2403.11100].

A structured post-training variant appears in “EGGS-PTP: An Expander-Graph Guided Structured Post-training Pruning Method for Large Language Models” [2508.09471]. There, a linear layer is modeled as a bipartite graph between input and output channels, and $N\!:\!M$ sparsity is imposed row-wise over contiguous groups of $M$ columns:
$$
\sum_{j \in C_g} M_{ij} = M-N.
$$
The method combines channel permutation, Row Relative Importance, Relative Importance and Activation, and a connectivity-aware diagonal selection inside $M \times M$ blocks. The paper proves that the pruned bipartite graph is a two-sided $(c,a_I,a_O)$-expander for some $c \in (0,1)$ with $a_I>1$ and $a_O>1$, and reports, for example, a runtime reduction on NVIDIA A40 GPUs for LLaMA2-13B from $52.14\,\mathrm{s}$ dense to $31.82\,\mathrm{s}$ under EGGS-PTP $2\!:\!4$, a $1.64\times$ speedup [2508.09471].

A common misconception is therefore that expander pruning always means preserving a conductance certificate under deletions. In graph algorithms, it is a decremental maintenance problem on an initially expanding graph. In neural-network pruning, it is a sparsification heuristic or structural rule guided by expansion or spectral-gap surrogates. The shared intuition is robustness of sparse connectivity, but the formal models, guarantees, and adversarial assumptions are different.

Several open directions remain explicit in the recent literature. In routing-sensitive pruning, achieving both worst-case pruning and near-original $\phi'$ while preserving short path access remains open, as do distributed implementations and extensions beyond undirected, uncapacitated graphs [2507.13044]. In worst-case expander pruning for conductance, improving the retained expansion from $\Omega(\phi/\log^4 m)$ toward $\tilde{\Omega}(\phi)$, and sharpening the $1/\phi^2$ dependence or proving matching lower bounds, remain open problems [2504.00544]. These questions indicate that expander pruning has shifted from a repair subroutine inside dynamic decompositions to a broader framework for maintaining sparse, high-connectivity structure under stringent update and path-access constraints.

Source: https://www.emergentmind.com/topics/expander-pruning