Agent That Rewrites Optimizer Code on the Fly Matches Best Hand-Tuned Recipes

ChengleiSi · x · 2026-10-22

Researchers propose a "reactive optimizer": an agent watches training dynamics and rewrites the optimizer's source code while the network trains, letting optimization decisions adapt in real time.

Across language and image settings without a tuned recipe, it matches or beats the best one-shot recipe, and it autonomously guards against loss spikes and overfitting. The authors argue optimization decisions may soon belong to agents rather than humans. Paper and runnable code are available.

Related event: MIT's Reactive Optimizer Lets an Agent Rewrite Optimizer Source Code During Training(5 posts)→

Original post →

More from coding & agent

coding & agent channel →