Policy-Guided Terminal Trust Region for Optimizers
Implementation & benchmark of arXiv:2609.02628 — Economic Model Predictive Control with Policy-Guided Terminal Ingredients
Source paper: Economic Model Predictive Control with Policy-Guided Terminal Ingredients arXiv:2609.02628 ⓘ · analyzed Sep 3, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Treat neural-network parameters as the state of a controlled dynamical system and optimize a short sequence of parameter updates instead of committing immediately to the next optimizer step. A cheap guiding optimizer, such as Adam or SGD, is rolled out to produce a moving terminal center; the lookahead optimizer is penalized or constrained when its endpoint leaves a neighborhood of that center. This transfers the paper's policy-relative feasibility and performance idea without requiring a stationary optimum or fixed parameter target.
Formulas
Mathematical statement
Let theta_k in R^d be network parameters, v_k in R^d be chosen update controls, and F(theta_k,v_k)=theta_k+v_k be the parameter dynamics. Let pi_g(theta) be a guiding update policy, such as an Adam step, and let c_0=theta_k and c_{j+1}=F(c_j,pi_g(c_j)) be its H-step rollout. The terminal center is c_H. For candidate controls v_0,...,v_{H-1}, define theta_{j+1}=F(theta_j,v_j), stage loss ell(theta_j) as the minibatch training loss, and terminal cost V_f(theta_H,c_H)=rho/2 ||theta_H-c_H||_2^2. The finite-horizon objective is J=sum_{j=0}^{H-1} gamma^j ell(theta_j)+gamma^H V_f(theta_H,c_H), optionally subject to ||theta_H-c_H||_2 <= r. The policy-guided construction is useful when the terminal set X_f(c_H)={theta:||theta-c_H||<=r} is forward feasible under pi_g; empirically, estimate a local contraction factor q from ||F(theta,pi_g(theta))-F(c_H,pi_g(c_H))|| <= q||theta-c_H||. If q<1, terminal deviations decay geometrically under fallback guiding updates, giving a measurable stability signature rather than relying on convergence to a fixed point.
Implementation notes
1. Integration point: add a short differentiable lookahead wrapper around an existing optimizer. At training step k, keep the real network parameters theta_k fixed, roll out the baseline policy pi_g for H steps to obtain c_1,...,c_H, and optimize H candidate update vectors v_0,...,v_{H-1}. Apply only v_0 to the real model, then repeat at the next minibatch. Use H=2 or 3 initially. 2. Pseudocode: compute baseline centers with c[0]=theta; for j in 0,...,H-1 set c[j+1]=c[j]+adam_update(c[j], batch_j). Initialize candidate controls from the corresponding baseline updates. Unroll theta[j+1]=theta[j]+v[j]. Evaluate J=sum(gamma**j*loss(theta[j],batch_j))+gamma**H*rho/2*norm(theta[H]-c[H])**2. Perform several inner gradient steps on v. Reject or project the candidate if norm(theta[H]-c[H]) exceeds r, and apply theta <- theta+v[0]. 3. Computed quantities are the policy rollout, terminal deviation, and objective. Estimate q by collecting pairs of nearby parameter perturbations around c_H and measuring the ratio of next-step deviations under Adam; do not assume q analytically. Choose r as the 90th percentile of baseline minibatch-induced deviations. 4. First cheap experiment: train a two-layer MLP on MNIST or CIFAR-10 with Adam as the baseline, H=2, gamma=1, and compare standard Adam, lookahead without terminal penalty, and this method at equal numbers of forward and backward evaluations. Sweep rho and r. The predicted signature is that runs with measured q<1 maintain terminal deviation below r and show geometric decay after candidate rejection or fallback, while instability or highly oscillatory loss should appear near the empirical boundary q approximately equal to 1. Test whether the measured deviation ratio after t fallback steps follows q^t within 20 percent and whether loss spikes decrease without increasing average gradient evaluations by more than 2x.
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.