# Connectivity-certified matching pruning

- ID: 1755
- Canonical URL: https://synthcore.org/idea/1755/connectivity-certified-matching-pruning
- API JSON: https://synthcore.org/api/idea/1755.json
- API Markdown: https://synthcore.org/api/idea/1755.md
- Verification status: unverified
- Source: [arXiv:2608.03643](https://arxiv.org/abs/2608.03643)
- Category: architecture
- Solves: memory, scalability, stability
- ML areas: pruning, architecture, graph-nn
- Math tags: graph-theory, combinatorics, connectivity
- Ratings: usefulness 6/10; difficulty 5/10; novelty 7/10

## Idea description

Represent a neural architecture as an undirected support graph and prune a matching of edges, so no two simultaneously removed edges share an endpoint. Use the paper's degree/connectivity theorem as a certificate that the pruned architecture retains k-edge-connectivity, preserving multiple routes between computational units instead of relying on unconstrained magnitude pruning.

## Mathematical statement

Theorem 1.4 states: if G=(V,E) is a k-edge-connected graph with k>=2 and minimum degree delta(G)>=k+1, then there exists a matching M with |M|=2 such that G-M is k-edge-connected. Here V is the set of neural computational units or blocks, E is the set of skip, message-passing, or inter-block connections, G-M means deleting every edge in M, and k-edge-connected means every nontrivial cut has at least k edges crossing it. The abstract gives the scalable version: if G is k-edge-connected, has at least 2m vertices, and delta(G)>=k+m, then there is a matching M of size m for which G-M remains k-edge-connected. We use this as a pruning constraint: select a matching of removable edges, with m chosen below the theorem's degree slack, and reject any candidate whose empirical minimum cut falls below k. The theorem is a sufficient existence condition, not an efficient construction algorithm, so the implementation uses greedy matching plus connectivity checks to find a witness.

## Key formulas

- $$\delta(G)\ge k+1\quad\Longrightarrow\quad \exists\,M\subseteq E:\ |M|=2,\ M\text{ is a matching, and }G-M\text{ is }k\text{-edge-connected}.$$
- $$|V|\ge 2m,\quad \delta(G)\ge k+m\quad\Longrightarrow\quad \exists\,M\subseteq E:\ |M|=m,\ M\text{ is a matching, and }G-M\text{ is }k\text{-edge-connected}.$$
- $$\lambda(G-M)=\min_{\emptyset\ne S\subsetneq V}|\delta_{G-M}(S)|\ge k,$$

## Implementation notes

1. Integration point: apply this after constructing a residual Transformer, message-passing GNN, or sparse mixture-of-experts routing graph, before training or periodically during magnitude pruning. Let each vertex be a block, expert, token-cluster, or channel group, and let an edge represent a trainable communication path; use undirected connectivity only as a structural certificate, while retaining the original directed computation for execution. 2. Pseudocode: build G=(V,E) from nonzero trainable paths; estimate d_min=min_v degree_G(v); choose k>=2 and matching size m such that |V|>=2m and d_min>=k+m; score each edge e by low magnitude, low Fisher saliency, or low gate usage; greedily scan edges in ascending score, adding e=(u,v) only if u and v are unused; after each batch M, compute the minimum cut lambda(G-M), and accept the batch only when lambda(G-M)>=k; permanently delete accepted edges and fine-tune. A compact loop is `M={}; used=set(); for e in sorted(E,key=score): if endpoints(e) not in used and len(M)<m: M.add(e); used.update(endpoints(e)); if mincut(G-M)>=k: prune(M) else: remove_last_candidate()`. 3. Computed from the paper: the target matching size and the sufficient degree slack k+m; estimated empirically: edge saliency, degrees, and lambda(G-M), using a max-flow/min-cut routine or a fast approximate cut estimator. 4. First experiment: use a 12-layer residual MLP or a 4-layer GCN on CIFAR-10 or Cora, compare unstructured magnitude pruning, random matching pruning, and theorem-constrained matching pruning at equal parameter count and FLOPs. Test k=2 and remove batches of m=2 or m=4 edges per pruning round. Success means higher accuracy after equal fine-tuning, fewer disconnected activation paths, and no observed collapse of gradient flow; measure validation accuracy, minimum cut, active-path count, and loss recovery. A secondary test should deliberately prune to the same sparsity and check whether the connectivity-certified model is more robust to additional edge failures.

## Disclaimer

AI-generated research hypothesis, automatically tested. Not peer-reviewed.
