# Confidence-Set Trust-Region Optimizer

- ID: 800
- Canonical URL: https://synthcore.org/idea/800/confidence-set-trust-region-optimizer
- API JSON: https://synthcore.org/api/idea/800.json
- API Markdown: https://synthcore.org/api/idea/800.md
- Verification status: unverified
- Source: [arXiv:2607.12343](https://arxiv.org/abs/2607.12343)
- Category: optimization
- Solves: stability, sample-efficiency, accuracy
- ML areas: optimizer, training-dynamics, mlp, scheduler
- Math tags: control-theory, optimization, dynamical-systems, probability, spectral-theory
- Ratings: usefulness 6/10; difficulty 5/10; novelty 7/10

## Idea description

Use nested parameter-confidence sets to control how far a neural optimizer may move when its local loss dynamics are uncertain. Estimate a local linear model of parameter or gradient evolution, propagate a homothetic tube for possible next iterates, and impose a trust-region radius that shrinks when the estimated contraction margin is insufficient. This gives a model-based alternative to heuristic gradient clipping and predicts a sharp learning-rate boundary tied to the largest uncertain closed-loop gain.

## Mathematical statement

Let $p_k$ be a vector of trainable parameters or optimizer-state coordinates, and approximate local evolution by $p_{k+1}=A p_k+B u_k+d_k$, where $u_k$ is the proposed optimizer update and $d_k$ is bounded modeling error. Estimate $(A,B)$ online using regularized least squares with $z_k=[p_k^\top,u_k^\top]^\top$, $V_k=\lambda I+\sum_{s<k}z_sz_s^\top$, and a nested polytope $\Theta_k=\bar\Theta_k^{\mathrm p}\cap\Theta_{k-1}$ containing the unknown dynamics with high probability. For update feedback $u_k=Kp_k+v_k$, define $F_\theta=A_\theta+B_\theta K$. A template tube $\mathcal S$ contracts if $\gamma_k=\max_{\theta\in\mathcal V(\Theta_k)}\|F_\theta\|_{\mathcal S}<1$. With disturbance support bound $w_{\mathcal S}$, the radius obeys $\alpha_{j+1}\le\gamma_k\alpha_j+w_{\mathcal S}$ and has steady-state bound $w_{\mathcal S}/(1-\gamma_k)$. The optimizer should reduce the proposed step or learning rate whenever this bound exceeds a permitted radius $\alpha_{\max}$.

## Key formulas

- $$V_k=\lambda I+\sum_{s=0}^{k-1}z_sz_s^\top,\qquad z_s=\begin{bmatrix}p_s\\u_s\end{bmatrix},\qquad \hat\theta_k=V_k^{-1}\sum_{s=0}^{k-1}z_sp_{s+1}^\top.$$
- $$\Theta_k=\bar\Theta_k^{\mathrm p}\cap\Theta_{k-1},\qquad \bar\Theta_k^{\mathrm p}=\{\theta\mid H_k\theta\le h_k\},\qquad \gamma_k=\max_{\theta\in\mathcal V(\Theta_k)}\|A_\theta+B_\theta K\|_{\mathcal S}.$$
- $$\gamma_k<1\ \Longrightarrow\ \alpha_j\leq\gamma_k^j\alpha_0+\frac{w_{\mathcal S}(1-\gamma_k^j)}{1-\gamma_k},\qquad \alpha_\infty\leq\frac{w_{\mathcal S}}{1-\gamma_k}.$$
- $$r_k\leq r_{\max}\min\left\{1,\frac{\alpha_{\max}-w_{\mathcal S}/(1-\gamma_k)}{c_K}\right\},\qquad \alpha_{\max}>\frac{w_{\mathcal S}}{1-\gamma_k},$$

## Implementation notes

Integrate this controller between gradient computation and the parameter update of SGD or Adam. Initially restrict $p_k$ to a low-dimensional subspace, such as the final-layer weights or a random projection of all parameters, and let $u_k$ be the raw proposed update. At each training step, record $z_k=[p_k;u_k]$ and the observed next parameter vector $p_{k+1}$. Update $V\leftarrow V+z_kz_k^\top$ and the least-squares target accumulator, construct coordinate confidence intervals from residual bounds, and intersect them with the prior intervals. Enumerate interval-box vertices, compute $\gamma_k$ for a fixed stabilizing gain $K$ such as $-\eta I$, and predict $\alpha_{k+1}=\gamma_k\alpha_k+w_{\mathcal S}$. If the predicted tube exceeds $\alpha_{\max}$, scale the raw update by $r_k/\|u_k\|$ or backtrack the learning rate until the tube constraint passes. RLS statistics, interval intersections, and clipping are computed exactly; residual bounds require an empirical high quantile plus a safety multiplier; local linearity is only trusted inside the current trust region. Test a 2-layer MLP on MNIST or CIFAR-10 against SGD, Adam, and gradient clipping across learning rates. Plot divergence probability and loss oscillation against estimated $\gamma_k$. The predicted transition is near $\gamma_k=1$: below one, parameter deviations approach $w_{\mathcal S}/(1-\gamma_k)$; at or above one, the predicted radius grows geometrically or linearly and instability frequency increases sharply. The measured boundary should agree within approximately 20 percent.

## Disclaimer

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