← Timeline

@vincesitzmann

@vincesitzmann on X

3 captures, most recent first. Transcribed by hand from screenshots — see the timeline for what that means.

@vincesitzmann

— quoting @SimulatedAnneal — saved image

Vincent Sitzmann @vincesitzmann
Excited to introduce reactive optimizers: We let an
agent reactively adapt the optimizer code during the
training run! The agent acts like a team of scientists
constantly choosing the best algorithm, learning
rate, momentum, etc, based on its own analysis of
step-to-step training dynamics! The results are
really exciting. Besides out-performing standard
"best-practice" recipes across everything we threw
at it, the agent gains a few "superpowers" that no
human could have designed into the optimizer... (1/
n)

[quoted tweet] Xingjian Bai @SimulatedAnneal · 52m
1/9 Current optimizers are static during training. What if
the optimizer could think and react while the network
trains?

We let an agent watch the training dynamics and rewri... [cut off]
Note from Claude Sonnet 5

A tweet announcing "reactive optimizers", where an AI agent rewrites optimizer code during a training run based on its own analysis of training dynamics, claimed to beat standard recipes; quotes the first tweet of the lead author's 9-part thread.

reactive optimizersai agentsoptimizertraining dynamicsml researchx thread

@vincesitzmann

— saved image

Vincent Sitzma... @vincesitzma... · 37m
Below, you can see it noticing that it overshot the
minimum, then resetting the momentum and rolling
back a few steps! (2/n)

[embedded video/animation, 0:08, 2D/3D toggle: a loss landscape with a path and a marker labelled "minimum"; legend: momentum reset, back to best point; table "Best log10(f(x) - f*), average of 34 landscapes" with rows: reactive optimizer -11.6; gradient descent, lr 0.01 0.6; Nesterov 0.9, lr 0.01 [partly covered]; Adam, lr 0.001 [partly covered]; best default setting (Adam, lr 0.1) -2.2]
[1 reply, 1 like, 280 views]

Vincent Sitzma... @vincesitzma... · 37m
Here, Opal detects loss spikes, zeros them out, and
watches out for them thereafter! (3/n)

[embedded chart: "test loss (smoothed)" over update 0 to 10,000 with four shaded spike stretches numbered 1-4; lines for OPAL, Muon+clip, Stable-SPAM; markers for loss damping, clipping, batch gate. Right table "delta test accuracy before and after each corruption":]
             1      2      3      4
OPAL       -50.0  -66.3  -12.1   +0.7
Muon+clip  -74.4  -73.6  -75.5  -28.5
Muon       -73.6  -77.7  -69.1  -37.2
AdamW+clip -62.7  -60.0  -38.1  -42.0
AdamW      -61.4  -32.4  -53.8  -68.5
Stable-SPAM -54.0 -66.3  -69.8  -70.7
[caption] Figure 7. ResNet-18 on CIFAR-10 with four stretches of random images and labels, shaded. Left: test loss; hover a marker to read why OPAL changed its guard. Right: the change in test accuracy in each stretch. Reactive agents can defend against the designed type of loss spikes, induced by data corruption, after seeing it a few times.
[1 reply, 1 like, 186 views]

Vincent Sitzma... @vincesitzma... · 37m
Opal also designs highly sophisticated learning-rate
schedules, something that we can usually only
afford for the highest-impact, super-late training
runs like DeepSeek - now anyone can get the same
(or more?) sophistication :) (4/n)
Note from Claude Sonnet 5

Three tweets from the reactive-optimizers thread (2/n to 4/n) showing an animation of the agent noticing it overshot a minimum and resetting momentum, a figure of the OPAL optimizer detecting loss spikes on ResNet-18/CIFAR-10 with a comparison table against Muon, AdamW and Stable-SPAM, and the claim that OPAL designs sophisticated learning-rate schedules. A compose button overlaps the lower right.

reactive optimizersopaloptimizersloss spikesml researchx thread

@vincesitzmann

— saved image

Vincent Sitzma... @vincesitzma... · 37m
Opal also designs highly sophisticated learning-rate
schedules, something that we can usually only
afford for the highest-impact, super-late training
runs like DeepSeek - now anyone can get the same
(or more?) sophistication :) (4/n)

[embedded figure: "Designed by hand" DeepSeek-V3 learning rate schedule (left, with stages at 2K steps, 10T, 14.3T, 14.63T, 14.8T training tokens) vs "Set by OPAL" learning rates for SiT-B/2 (right; multiples 0.01x to 4x over 100 to 400K training steps; lines for block matrices, adaLN modulation, timestep embedder, patch and class embedders). "More OPAL runs: RAEv2-B, LightningDiT-XL/1, NanoGPT". Caption: Figure 4. DeepSeek-V3's learning rate, designed by hand (left), and learning rates OPAL set in four runs, as multiples of each recipe's rate.]
[2 replies, 1 like, 161 views]

Vincent Sitzma... @vincesitzma... · 37m
After this project, it seems pretty clear to me that
the days where we decide on a particular optimizer,
learning rate schedule etc. before the run and then
never touch it again are likely over. Going forward, I
bet that everyone is going to deploy reactive
optimizers - it is like hiring a deep learning expert to
watch the training run full-time and adjust on-the-
go!

Try it out yourself with Xingjian's pip package:

[embedded GitHub link card] xingjian-bai/opal
OPAL: a reactive optimizer. A coding agent rewrites
the optimizer while your model trains.
[2 contributors, 0 issues, 0 stars, 0 forks]
GitHub - xingjian-bai/opal: OPAL: a reactive optimiz...
Note from Claude Sonnet 5

Continuation of the reactive-optimizers thread: a figure comparing DeepSeek-V3's hand-designed learning-rate schedule with schedules the OPAL agent set for SiT-B/2, followed by a tweet predicting that fixed pre-chosen optimizers are over and linking the xingjian-bai/opal GitHub package. A compose button overlaps the lower right.

reactive optimizersopallearning rate schedulegithub releaseml researchx thread