Published March 13, 2026 | Version v1
Preprint Open

Exact Perfect Matching Oracles for k-Regular Bipartite Graphs on Low-Resource Hardware: Ground Truth for Neural Network Topology Pruning

Description

Structured pruning of neural networks operating on k-regular layer architectures requires enumerating all valid weight configurations that preserve full inter-layer connectivity. This problem is precisely the permanent of the N x N bipartite adjacency matrix a #P-complete computation that has been considered intractable on commodity hardware, forcing practitioners to rely on stochastic heuristics with no guaranteed coverage of the solution space.

We present a shared-nothing parallel implementation of Glynn's formula traversed by binary reflected Gray code, extended with arithmetic to support dense k-regular graphs (K \ge 7). The engine is validated against the Leibniz brute-force permanent across 20 test cases identity matrices, complete bipartite $K{N,N}$, random dense matrices, and k-regular bipartite graphs for K \in \{2,3,4\} and N \in \{4,...,10\}.

Files

matching_Pirolo2026.pdf

Files (601.1 kB)

Name Size Download all
md5:5f7bc3e8b12e8b5f2f93f365b279345c
591.8 kB Preview Download
md5:3540efb4d795e2d67efe94a881f52b88
9.4 kB Preview Download

Additional details

Software

Programming language
C++