Kemeny-Regularized Message Passing
Implementation & benchmark of arXiv:2608.08797 — On two conjectures concerning Kemeny's constant of graphs
Source paper: On two conjectures concerning Kemeny's constant of graphs arXiv:2608.08797 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Regularize a learned GNN adjacency so that its random walk mixes rapidly, reducing graph bottlenecks and isolated regions that make information propagation inefficient. Use a thresholded penalty rather than minimizing Kemeny's constant to zero, because excessively fast mixing can produce oversmoothing.
Formulas
Mathematical statement
The paper defines Kemeny's constant for a connected undirected graph G by \(\mathcal{K}(G)=\sum_j \frac{d_G(j)}{2m}E_iT_j\), where \(d_G(j)\) is the degree of vertex j, m is the number of edges, and \(E_iT_j\) is the expected simple-random-walk hitting time from starting vertex i to target vertex j; the value is independent of i. Its main estimate is \(\mathcal{K}(G)\leq(3+\sqrt{5})(n-1)\) when G has n vertices and diameter two. For an undirected reversible transition matrix P with eigenvalues \(1=\lambda_1>\lambda_2\geq\cdots\geq\lambda_n>-1\), Kemeny's constant is equivalently \(\sum_{r=2}^n(1-\lambda_r)^{-1}\). Small spectral gaps therefore create a large value. In a neural graph, A is a symmetrized nonnegative learned affinity, D is its diagonal degree matrix with \(D_{uu}=\sum_v A_{uv}+\epsilon\), and \(P=D^{-1}A\). Penalize only values above a target threshold tau.
Implementation notes
Integrate the regularizer into a message-passing GNN immediately after the layer that produces pairwise edge logits and before normalization into propagation weights. For node embeddings z_u, compute candidate-edge logits s_uv with an MLP, symmetrize them as a_uv=softplus((s_uv+s_vu)/2), add self-loop weights, and form A from these affinities. Set D_uu=sum_v A_uv+epsilon and P=D^{-1}A. For small graphs, construct the symmetric similar matrix S=D^{-1/2}AD^{-1/2}, compute its eigenvalues with a differentiable symmetric eigensolver, and evaluate K_hat=sum_{r=2}^n 1/(1-lambda_r). Add alpha times max(0,K_hat-tau)^2 to the task loss. For larger graphs, estimate the dominant reciprocal-gap terms with Lanczos iterations, or estimate the trace of the pseudoinverse using Rademacher vectors and iterative linear solves. The theorem constant is used only as a calibration reference; the learned weighted graph need not have diameter exactly two. First test a three-layer GCN or GraphSAGE on Cora and on a synthetic two-community graph with long-range labels. Compare the baseline with threshold values tau equal to the baseline Kemeny estimate, 1.5 times it, and 2 times it. Track validation accuracy, long-range accuracy, Kemeny estimate, smallest nontrivial spectral gap, gradient variance across layers, and final-state cosine similarity. Success requires a lower Kemeny estimate and larger spectral gap without increased oversmoothing, together with improved long-range accuracy or smoother loss curves at equal FLOPs.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.