Semiglobal-PL Phase Scheduler
Implementation & benchmark of arXiv:2608.08849 — Smooth globally PLI functions are nonlinear least-squares, and so are their gradient-dominated cousins
Source paper: Smooth globally PLI functions are nonlinear least-squares, and so are their gradient-dominated cousins arXiv:2608.08849 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Monitor the ratio between gradient norm and square-root loss suboptimality, and use it to distinguish the far-from-optimum linear-decay regime from the near-optimum exponential regime predicted by semiglobal PŁI. Apply conservative updates or gradient clipping while the ratio is small, then switch to a larger stable learning rate, reduced gradient noise, or early stopping once the local PŁI regime is detected.
Formulas
Mathematical statement
Let \(f(\theta)\) be a differentiable neural-network objective, \(f^*=\inf_\theta f(\theta)\), and \(s(\theta)=f(\theta)-f^*\). The semiglobal PŁ condition is \(\|\nabla f(\theta)\|\geq \alpha(s(\theta))\), where \(\alpha(s)>0\) for \(s>0\) and \(\alpha(s)\geq c\sqrt{s}\) for sufficiently small \(s\), with \(c>0\). Under gradient flow \(\dot\theta=-\nabla f(\theta)\), \(\dot s=-\|\nabla f\|^2\leq-\alpha(s)^2\); therefore the local bound gives \(s(t)\leq s(t_0)e^{-c^2(t-t_0)}\). In the scalar continuous-time LQR example, \(f(k)=(1+k^2)/(2k)\), \(k>0\), \(f^*=1\), and \(|f'(k)|^2=(1-k^{-2})^2/4\), which approaches \(1/4\) as \(k\to\infty\) while \(f(k)-1\) diverges. Thus the global square-root PŁ bound fails, but a local exponential regime remains. The empirical diagnostic is \(q(\theta)=\|\nabla f(\theta)\|/\sqrt{\max(f(\theta)-\widehat f^*,\varepsilon)}\); a positive lower plateau in \(q\) estimates the local constant \(c\).
Implementation notes
Integrate the method into the optimizer after the backward pass and before the parameter update. Maintain an estimate \(\widehat f^*\) as the lowest exponentially smoothed training loss seen so far, and compute the global gradient norm \(g=\|\nabla_\theta f\|_2\) by aggregating per-parameter squared norms. Compute \(q=g/\sqrt{\max(f-\widehat f^*,\varepsilon)}\), maintain a rolling 10th percentile \(c_{\mathrm{low}}\) over the last 100 steps, and define the local-regime flag as true when the loss gap is below a chosen percentile and \(q\geq c_{\mathrm{low}}/2\) for five consecutive steps. Pseudocode: loss.backward(); g=sqrt(sum(p.grad.pow(2).sum())); gap=max(loss-fstar_hat,eps); q=g/sqrt(gap); update_history(q,gap); if local and not previously_local: lr*=gamma (gamma=1.5); else if q<q_floor: clip_grad_norm_(max_norm); optimizer.step(); fstar_hat=min(fstar_hat,loss). Use AdamW and SGD baselines, but compare against a fixed-learning-rate control with identical clipping. The paper supplies the differential inequality and predicts that, after entering the local regime, the slope of \(\log(f-\widehat f^*)\) versus update count should become approximately constant and no greater than \(-c^2\) in continuous-time units; for discrete SGD with sufficiently small step size \(\eta\), estimate the slope as \(-\eta c^2\). First test on a small MLP for MNIST or CIFAR-10 and on the exact scalar LQR objective. On LQR, measure the transition from nearly constant absolute loss decrease at large \(k\) to linear decay in log-gap near \(k=1\), and require the estimated exponential rate to agree with the measured local \(q^2\) within 20%. On the MLP, test whether the detected transition predicts a reduction in validation-loss variance or permits the scheduled learning-rate increase without divergence.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗
Stage 2 · Practical benchmark result: Significant win ✓
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
How to read this: The implementation beat the baseline, but the claimed mechanism did not reproduce at benchmark scale. The gain may come from another effect; treat the cause as unresolved.
Stage 1 — Mechanism check agent confidence 7/10
Built the Semiglobal-PL Phase Scheduler with gradient-norm/loss-gap diagnostics, rolling percentile detection, clipping, and a one-time 1.5x learning-rate increase. The LQR checks confirmed the claimed math: q-formula relative error was 1.3e-10, gradient-flow log-gap rates agreed with -q² within 0.07%, discrete rates agreed within 0.1%, and the far-field absolute rate approached 0.25. On the small synthetic MLP, scheduled SGD improved mean final validation loss from 0.3226 to 0.2403 and reduced tail validation standard deviation from 0.0164 to 0.0128 across three seeds, providing a promising but not definitive practical signal.
- Agent confidence
- 7/10
- Baseline
- Fixed SGD, lr=0.08, identical norm clipping: final validation loss 0.32265 +/- 0.02972; last-100 validation std 0.01642 +/- 0.00202.
- Idea
- Scheduled SGD: lr increased to 0.12 at step 23 in all three runs; final validation loss 0.24034 +/- 0.01743; last-100 validation std 0.01283 +/- 0.00193. LQR checks passed with maximum reported relative rate error 0.00064.
Limitations: The neural experiment used a tiny synthetic 2D classification task and full-batch SGD, not MNIST/CIFAR-10 or AdamW. Only three seeds and 500 updates were tested; the scheduler switched unusually early and clipping was inactive, so the gain may partly reflect the learning-rate increase rather than robust phase detection. No larger-scale generalization or FLOP study was performed.
How to run: python3 experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2608.08849)
Beats the tuned baseline by 7.3% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).
- Benchmark
- Tabular regression (Friedman)
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 200.0606
- Idea mean
- 185.3659
- Effect (Δ)
- -14.6948 (−7.3%; negative = idea better)
- Wins
- 8 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±0.8%
- Mechanism
- Not confirmed ✗
- Practical effect
- Helps
- Baseline tuning
- swept over 3 configs
Only the registered tabular optimizer track was tested; vision, sequence, and dynamics were not run. The benchmark used the small 400/200 Friedman#1 split, mlp_tiny, SGD, 18 epochs, batch 128, and three learning rates. The q diagnostic was numerically degenerate near the loss floor because the smoothed running f* estimate made the gap extremely small, so the mechanism signature was not confirmed despite the significant end-to-end win.
How to run: python3 bench_run.py > bench_report.json
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Worked ✓
Agent confidence: 8/10
The Semiglobal-PL scheduler was implemented as a matched SGD intervention on the registered tabular Friedman#1 track. It significantly improved test MSE across all eight paired seeds, but its neural-scale q-to-log-gap mechanism signature was not confirmed quantitatively.
- Baseline
- Fixed SGD, mlp_tiny, best lr=0.009: test MSE 200.0606 +/- 11.0770.
- Idea
- Semiglobal-PL scheduler, same setup, best lr=0.009: test MSE 185.3659 +/- 11.0952; paired delta -14.6948; p=0.0081; 8/8 wins.
Benchmark result
Beats the tuned baseline by 7.3% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).
- Benchmark
- Tabular regression (Friedman)
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 200.0606
- Idea mean
- 185.3659
- Effect (Δ)
- -14.6948 (−7.3%; negative = idea better)
- Wins
- 8 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±0.8%
- Mechanism
- Not confirmed ✗
- Practical effect
- Helps
- Baseline tuning
- swept over 3 configs
Only the registered tabular optimizer track was tested; vision, sequence, and dynamics were not run. The benchmark used the small 400/200 Friedman#1 split, mlp_tiny, SGD, 18 epochs, batch 128, and three learning rates. The q diagnostic was numerically degenerate near the loss floor because the smoothed running f* estimate made the gap extremely small, so the mechanism signature was not confirmed despite the significant end-to-end win.
How to run: python3 bench_run.py > bench_report.json
Artifacts
- bench_report.json 5.5 KB View Raw
- bench_run.py 6.1 KB View Raw
- experiment.py 6.1 KB View Raw
- report.md 1.7 KB View
- report_bench_2026-09-02T161942.md 4.5 KB View
- results.json 4.9 KB View Raw