Essential-Edge Harmonic Attention
Implementation & benchmark of arXiv:2607.26378 — Essential Simplices Dominate in Harmonic Representatives of One-Dimensional Persistent Classes
Source paper: Essential Simplices Dominate in Harmonic Representatives of One-Dimensional Persistent Classes arXiv:2607.26378 ⓘ · analyzed Aug 31, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Compute one-dimensional persistent homology and minimum-norm harmonic representatives, then use their absolute edge coefficients as topology-aware saliency in a graph transformer. Add the saliency to attention logits or use it as a soft regularizer so the model preferentially propagates information along edges that are essential to persistent cycles.
Formulas
Mathematical statement
For a simple persistent bar b, let z=\sum_{\sigma}c_{\sigma}\sigma be a representative cycle and let E_b be its essential simplices. The paper defines \(\mathrm{content}(z)=\left(\frac{\sum_{\sigma\in E_b}c_{\sigma}^{2}}{\sum_{\sigma}c_{\sigma}^{2}}\right)^{1/2}\) and proves that a harmonic representative z_0 maximizes this quantity among all representatives: \(\mathrm{content}(z)\leq\mathrm{content}(z_0)\). Its new one-dimensional generic-bar result is stronger: if \(z_0=\sum_e c_e e\), then all essential edges have equal absolute coefficient and every essential edge satisfies \(|c_e|>|c_f|\) for every non-essential edge f. To implement this, let \(\mathcal R_b=\{z:A_bz=d_b\}\) be the affine space of chains satisfying the bar's cycle and filtration constraints, with one coordinate per graph edge. The harmonic representative is the least-Euclidean-norm solution \(z_b=\arg\min_{z\in\mathcal R_b}\|z\|_2^2\). Aggregate normalized scores as \(q_e=\sum_{b\in B_1}w_b|c_{b,e}|\), where B_1 is the retained set of one-dimensional bars and w_b is persistence or 1. The theorem justifies q as a discriminative essential-edge score for generic one-dimensional bars; it gives no analogous guarantee for higher-dimensional simplices.
Implementation notes
Integrate the method at the edge-logit computation of a graph transformer or graph attention network. First construct a fixed filtration for every input graph, preferably by increasing edge weight, geometric distance, or a supplied node/edge scalar. Compute one-dimensional persistent bars and retain the top K bars or bars whose persistence \(t_b-s_b\) exceeds a threshold. For every retained bar, construct a linear constraint system \(A_bz=d_b\), with one variable per graph edge and constraints encoding the representative cycle and the filtration endpoints. Compute the least-norm representative with the pseudoinverse formula \(z_b=A_b^{\mathsf T}(A_bA_b^{\mathsf T}+\lambda I)^{-1}d_b\), where \(\lambda\) is a small numerical ridge, then normalize z_b by its Euclidean norm. Accumulate \(q_e=\sum_bw_b|z_{b,e}|\), standardize q independently within each graph, and stop gradients through q in the initial experiment. Replace each attention logit \(Q_iK_j^{\mathsf T}/\sqrt d\) by that logit plus \(\alpha\log(q_{ij}+\epsilon)\), with learnable \(\alpha\) initialized at zero. Also test a regularizer \(L_{\mathrm{harm}}=-\sum_{ij}q_{ij}\bar a_{ij}\), where \(\bar a_{ij}\) is mean attention over heads. The paper supplies the least-norm objective, essential-content inequality, and one-dimensional coefficient-gap rationale; filtration choice, K, threshold, ridge, and alpha are empirical. Begin with synthetic graphs containing one predictive cycle and distractor chords, using a small graph transformer. Compare against the unmodified model, Laplacian positional encodings, explicit cycle-count features, and randomized q with the same histogram. Measure accuracy, attention mass on known essential edges, robustness after adding non-essential shortcuts, and performance after essential-edge deletion. Success is higher test accuracy or stronger edge-deletion robustness at equal FLOPs, with attention and learned edge masks concentrating on essential cycle edges.
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.