← All topics

optimizer

3 captures, most recent first.

@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

Dimitris Papailiopoulos @DimitrisPapail

Dimitris Papailiopo... (@DimitrisPa... ✓) — 1h btw this is a weird heavy ball SGD variant that basically does this 1. Load previous checkpoint weights. 2. Reset optimizer state / momentum buffers. 3. Train N steps. 4. For first M steps: warm LR from 0.1x -> 1.0x. 5. Hold LR flat until ~50% of the cycle. 6. Linearly decay LR to zero. 7. Save checkpoint. 8. Repeat the optimizer is exactly this buf = mu * buf + grad p *= 1 - lr * wd p -= lr * buf / 524288 @CevherLIONS @_arohan_ does this have a name? I'd call it wave SGD lol
Note from Claude Sonnet 5

Text-only tweet with pseudocode for an optimizer variant; no images.

machine learningoptimizersgdtwittertechnical

Martin Marek @mrtnm

Getting small batch sizes to work in bfloat16 precision can be challenging. In our recent paper on batch size, we ran all experiments in float32, but memory-constrained settings demand lower precision. Here are two tricks that we used to enable bf16 training at small batch sizes: [Chart: "Pretraining 30M model, weights dtype" — FineWeb Edu loss (y-axis, 3.6–5.0) vs Batch size (x-axis, log scale 1–1024). Three lines: BF16 (closest) [gray dashed, spikes badly around batch size 64], BF16 (stochastic) [orange dashed, tracks closely with FP32], FP32 [blue, baseline]. BF16 (closest) diverges sharply upward around batch size 64 while stochastic rounding stays close to FP32 across the whole range.] 4:16 AM · Aug 28, 2025 · 11.7K Views 💬 4 🔁 18 ❤ 156 🔖 110 ⤴ Martin Marek @mrtnm · 20h (1) We recommend using decay rates like b2=0.9999 for small batch sizes. However, bf16 only has ~2.4 decimal points of precision. Since Adafactor's state is so tiny compared to the model size, we can store it in float32 without meaningfully affecting the overall memory footprint.
Note from Claude Sonnet 5

A technical ML-training thread about a batch-size scaling paper, showing that naive ("closest") bf16 rounding badly diverges from FP32 loss curves at small batch sizes while stochastic rounding tracks FP32 closely; follow-up recommends storing optimizer state in FP32. Relevant to Nathan's own ML/training work (brain_graph_1 uses similar precision tradeoffs — FP16+per-block-scales noted in his architecture notes).

twittermachine learningbfloat16precisionbatch sizetrainingoptimizeradafactor