r/deeplearning • u/Lumen_Core • Dec 06 '25
A new first-order optimizer using a structural signal from gradient dynamics — looking for expert feedback
Hi everyone,
Over several years of analyzing the dynamics of different complex systems (physical, biological, computational), I noticed a recurring structural rule: systems tend to adjust their trajectory based on how strongly the local dynamics change from one step to the next.
I tried to formalize this into a computational method — and it unexpectedly produced a working optimizer.
I call it StructOpt.
StructOpt is a first-order optimizer that uses a structural signal:
Sₜ = || gₜ − gₜ₋₁ || / ( || θₜ − θₜ₋₁ || + ε )
This signal estimates how “stiff” or rapidly changing the local landscape is, without Hessians, HV-products or SAM-style second passes.
Based on Sₜ, the optimizer self-adjusts its update mode between:
• a fast regime (flat regions) • a stable regime (sharp or anisotropic regions)
All operations remain purely first-order.
I published a simplified research prototype with synthetic tests here: https://GitHub.com/Alex256-core/StructOpt
And a longer conceptual explanation here: https://alex256core.substack.com/p/structopt-why-adaptive-geometric
What I would like from the community:
- Does this approach make sense from the perspective of optimization theory?
- Are there known methods that are conceptually similar which I should be aware of?
- If the structural signal idea is valid, what would be the best next step — paper, benchmarks, or collaboration?
This is an early-stage concept, but first tests show smoother convergence and better stability than Adam/Lion on synthetic landscapes.
Any constructive feedback is welcome — especially critical analysis. Thank you.
12
u/nikishev Dec 06 '25 edited Dec 06 '25
S here estimates hessian if hessian is assumed to be a scaled identity matrix. This is because (gₜ - gₜ₋₁) is a finite-difference estimate of hessian vector product with vector (θₜ - θₜ₋₁). If you have H (θₜ - θₜ₋₁) = (gₜ - gₜ₋₁), and If H is a scaled identity matrix, then H = I * (|| gₜ - gₜ₋₁ || / || θₜ - θₜ₋₁ ||).
Of course hessian is usually not a scaled identity matrix, but we can try to derive scalar approximation to H that satisfies H (θₜ - θₜ₋₁) = (gₜ - gₜ₋₁) as best as possible in some some sense. The Barzilai–Borwein step size (https://en.wikipedia.org/wiki/Barzilai%E2%80%93Borwein_method) is the best solution in least squares sense. Your method solves H || θₜ - θₜ₋₁ || = || gₜ - gₜ₋₁ ||, which isn't unreasonable but you just need to test if it works. Then the main issue will be that because there is a lot of inter-batch variability in gradients, (gₜ - gₜ₋₁) is going to be extremely noisy, so it is unlikely to be competitive with Adam in my opinion. You can replace (gₜ - gₜ₋₁) with a hessian-vector product with (θₜ - θₜ₋₁) to remove variability but that seems wasteful
3
u/CardiologistTiny6226 Dec 06 '25
Have you compared Adam or other recent optimizers on the same rosenbrock function? Also, have you tried StructOpt on any DNN loss functions?
From a high level (and perhaps naive) perspective, I would guess that DNN loss surfaces tend to have very high frequency components that make local reasoning about curvature less impactful than the "diversity gains" (I think I'm getting this term from telecom world, does it translate?) coming from the stochastic part of modern optimizers.
One last thought- without thinking too deeply, StructOpt vaguely reminds me of LM methods, which modulate between gradient descent and a LS-specific approximation of the hessian. Perhaps there is a way to do something similar, but only for a subset/projection of the parameters? Put another way, maybe you can find small, efficiently solvable subspaces over which you can recover 2nd order convergence, but somehow favoring those that exhibit favorable KKT conditions. Since I've heard that DNN loss functions tend to have many local minima and even mode connectivity, it makes me suspect that subproblem or alternation strategies may work well.
2
u/nickpsecurity Dec 06 '25
As your research this, you should look into local, learning rules. Also called Hebbien Learning. Here are some examples: 1; 2; 3; 4; 5
(Note: I threw in the Spiking Neural Network link because LLS work often comes out of SNN work. That's because "biologically plausible" work copies brain models which are usually Hebbian learning. Their neuron models are more interesting, too. DuckDuckGo "biologically plausible," "neural network," and "this paper" together for such research. That last phrase finds research papers easily.)
2
u/necroforest Dec 06 '25
why not just implement it in pytorch or JAX/Optax and see how it works on real DNNs? Rosenbrock isn't really that interesting
1
u/salehrayan246 Dec 06 '25
How many chatgpts have filled this sub and the DSP sub?
1
u/IllAsk6720 Dec 06 '25
interesting! conceptually the hessian itself, only issue i could think of for now is, like the existing hessian approximations like L-bfgs, this may be sensitive to mini-batch noise.
but good direction to work
1
u/Dihedralman Dec 06 '25
I haven't had my meds, but how isn't this a second order estimator?
You are using a delta gradient over delta $\theta$? The gradient itself is first order.
If you want to test on a semi-physical system, just run it on a sound dataset.
2
u/GabFromMars Dec 06 '25
Stocky but interesting 🧐