# Star-Delta Hub Elimination

- ID: 279
- Canonical URL: https://synthcore.org/idea/279/star-delta-hub-elimination
- API JSON: https://synthcore.org/api/idea/279.json
- API Markdown: https://synthcore.org/api/idea/279.md
- Verification status: mech_ok_no_baseline
- Source: [arXiv:2606.31596](https://arxiv.org/abs/2606.31596)
- Category: memory
- Solves: memory, inference-speedup, scalability
- ML areas: attention, transformer, graph-nn, memory
- Math tags: stochastic-processes, graph-theory, linear-algebra, numerical-analysis
- Ratings: usefulness 7/10; difficulty 5/10; novelty 7/10

## Idea description

Remove a latent relay or hub token from an attention or graph layer and replace its two-hop influence by direct effective edges between retained tokens. The correction is a normalized rank-one update, so it can preserve hub-mediated communication while reducing the number of stored and processed states.

## Mathematical statement

For a star graph with hub s and surviving vertices \(\widehat V=V\setminus\{s\}\), the generalized star-delta reduction replaces the hub by effective weights \(\widehat r(x,x')=r(x,x')+r^*(x,x')\). Here \(r(x,s)\) is the incoming weight from surviving vertex x to hub s, \(r(s,x')\) is the outgoing hub weight, and \(r^{\mathrm{out}}(s)=\sum_{z\in\widehat V}r(s,z)\) is the total outgoing hub weight. The indirect contribution \(r^*(x,x')=r(x,s)r(s,x')/r^{\mathrm{out}}(s)\) is the normalized product of entering and leaving weights. In matrix form this is a rank-one outer product. For neural attention, A is a nonnegative directed attention or routing matrix, s is a relay token, and the retained-token matrix is \(A'_{xx'}=A_{xx'}+A_{xs}A_{sx'}/\sum_{z\neq s}A_{sz}\), followed by row normalization.

## Key formulas

- $$\widehat r(x,x^{\prime})=r(x,x^{\prime})+r^{*}(x,x^{\prime}),\qquad x,x^{\prime}\in\widehat V,\ x\neq x^{\prime}.$$
- $$r^{*}(x,x^{\prime})=\frac{r(x,s)r(s,x^{\prime})}{r^{\mathrm{out}}(s)},\qquad r^{\mathrm{out}}(s)=\sum_{x\in\widehat V}r(s,x).$$
- $$A'_{xx'}=A_{xx'}+\frac{A_{xs}A_{sx'}}{\sum_{z\neq s}A_{sz}},\qquad x,x'\neq s.$$
- $$H'=\operatorname{softmax}_{x'}\!\left(\frac{Q_xK_{x'}^{\top}}{\sqrt d}+\log(A'_{xx'}+\varepsilon)\right)V_{x'}.$$

## Implementation notes

Apply the reduction to a Transformer or graph neural network containing one or more designated relay tokens. At the attention stage, compute nonnegative weights A from the existing attention probabilities or from softplus routing logits. Choose a hub index s, retain all other tokens, and compute d_s=sum_{z != s} A[s,z]. Form the rank-one correction B=outer(A[keep,s], A[s,keep])/(d_s+epsilon), set A_prime=A[keep,keep]+B, and renormalize every surviving row. Then compute attention logits as Q_keep K_keep^T/sqrt(d) plus log(A_prime+epsilon), and multiply the resulting normalized attention by V_keep. For a strict Markov interpretation, build A from row-stochastic transition weights and apply row normalization after elimination; for numerical stability clamp d_s and epsilon to 1e-8. The mathematical quantities supplied by the paper are the normalized hub correction and its rank-one factorization; no spectral or probabilistic constant needs to be estimated. Start with a 6-layer small Transformer on Long Range Arena or a mesh-graph benchmark, using 1-4 relay tokens per layer. Compare full attention, naive relay-token deletion, and a learned low-rank approximation at matched training steps. Measure peak activation memory, attention FLOPs, wall-clock latency, validation accuracy, and long-context perplexity. The target is near-linear memory savings in the number of removed relay tokens, substantially smaller accuracy loss than deletion, and at least 1.3x inference speedup at iso-accuracy.

## Verification

- Status: mech_ok_no_baseline
- Mechanism evidence: yes
- Mechanism confirmed: yes
- Practical verdict: inconclusive
- Verdict: Built and numerically verified star-delta hub elimination using a rank-one correction and row normalization. The mechanism predictions were confirmed: exact rank-one factorization and output preservation at machine precision, indirect mass scaling exactly with p (slope 1.0, R²=1.0), and correction Frobenius norm scaling linearly with p (R²=1.0). Naive deletion error increased with p, while the proposed reduction stayed near zero; however, one removed hub gives only a 1.6% theoretical attention-entry reduction and no measured NumPy wall-clock win.

### Mechanism check

- Verdict: Built and numerically verified star-delta hub elimination using a rank-one correction and row normalization. The mechanism predictions were confirmed: exact rank-one factorization and output preservation at machine precision, indirect mass scaling exactly with p (slope 1.0, R²=1.0), and correction Frobenius norm scaling linearly with p (R²=1.0). Naive deletion error increased with p, while the proposed reduction stayed near zero; however, one removed hub gives only a 1.6% theoretical attention-entry reduction and no measured NumPy wall-clock win.
- Confidence: 9/10
- Limitations: Only a controlled linear Markov/attention-value toy setting was tested. No trained Transformer, task accuracy, softmax-logit attention experiment, GPU memory measurement, multi-hub case, or realistic end-to-end latency benchmark was evaluated.

### Practical benchmark

- Paired seeds: 8
- Baseline mean: 0
- Idea mean: 0
- p-value: 0.3087
- Paired wins: 5/8
- Benchmark verdict: no significant win

## Artifacts

- [bench_report.json](https://synthcore.org/code/110/bench_report.json)
- [bench_star_delta.py](https://synthcore.org/code/110/bench_star_delta.py)
- [experiment.py](https://synthcore.org/code/110/experiment.py)
- [report.md](https://synthcore.org/code/110/report.md)
- [report_bench_2026-08-30T143421.md](https://synthcore.org/code/110/report_bench_2026-08-30T143421.md)
- [results.json](https://synthcore.org/code/110/results.json)
- [Download all files as ZIP](https://synthcore.org/download/110)

## Disclaimer

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