Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 rewrite the optimizer's source code as training goes: a reactive optimizer. In every language and image setting we tried that has...

201,119 Aufrufe • vor 3 Tagen •via X (Twitter)

66 Kommentare

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Say you're a PhD student, broke on compute, with a half-working new model and an advisor meeting tomorrow. Or you run a factory line, have a few thousand photos of faulty parts, and want an open multimodal LLM to spot them. How would you train the model? All you can do is pick the most standard recipe, or one from a recent paper, and live with the chance that it doesn't suit your setting. A reactive optimizer takes that burden off you: it watches the training, analyzes the signals, and makes optimization decisions as training progresses. 2/9

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

How does it work? An agent powers the reactiveness, rewriting a file, used in every step of optimization. Code is the entire interface, so the agent can alter any part of the optimization. Before changing anything, it observes training in its own way, through a second program it writes and rewrites, its own probes of the training dynamics. 3/9

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

We simulate the scenario above in language and image tasks, where no recipe has been optimally tuned for the setting: modded-nanogpt taken to new languages or to a quarter of the batch, Goldfish models on new languages, and LightningDiT and RAEv2 on ImageNet. In all of them, the reactive optimizer beats its starting recipe and matches or beats the best recipe one could pick off the shelf. 4/9

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Can an optimizer overcome overfitting by itself? We train a ResNet-18 on CIFAR-10 with 10% wrong labels. Trained straight through, AdamW ends up learning the assigned wrong labels. "The model has started to memorise its training images, and dev loss is climbing fast." Noted by the reactive optimizer at epoch 24. Then it avoids overfitting by itself, navigating by dev-set signals, raising its learning rate, and averaging its weights. 5/9

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Reactive optimizers expand what an optimizer can do, with a reasoner in the closed loop. They autonomously build their own training recipes, each adapted to its run: multi-stage schedules for learning rate, clipping, momentum, and more. One switches to per-module clipping after tracing 17 of 18 gradient spikes to a single module; another keeps one matrix's moments in FP32 after deciding rounding would eat its updates. More details are in the blog: the decisions they make are highly specialized. 6/9

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Suppressing spikes and overfitting is something human experts can still do, only less conveniently and at a higher cost. As agents get smarter, with hundreds of papers in their memory, thousands of tokens in their chain of thought and millions of training signals in their context, we are convinced reactive optimizers will invent new mechanisms beyond what human experts could invent by hand. Reactiveness can also go beyond gradient-based methods to zeroth-order (like Dust @industriaalist), language-based, and more. 7/9

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

In the past decade, deep learning models have come to possess unreasonably effective power through training. Yet the very heart of their making, the optimizer, is still mechanistic. Our post is an attempt to breathe the magic that training has given us into the core of training itself, forming a loop that we hope will create more capability in the future! 8/9

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Send our pip package (OPAL, OPtimizer with an Agent in the Loop) to your agent and ask it to equip your training with reactive optimizers! 💻 Joint work with Jia-Hao Liang, @jayden_teoh_ and @vincesitzmann.

Profilbild von Ollin Boer Bohan
Ollin Boer Bohanvor 3 Tagen

Interesting! Reminds me of this pioneering prior work 😆

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

The loop is completed if we get a robot taking signals from the reactive optimizer and controlling its fingers to scroll. 🤣

Profilbild von Aditya Chetan
Aditya Chetanvor 3 Tagen

Very cool work @SimulatedAnneal ! Curious if the agent has access to logits and training data or just the log? Also how do you prevent hacking that may lead to degenerate solutions? E.g. an agent that injects the most optimal gradient without computation for each sample?

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Hi Aditya, that is a great question. The agent is only told to see the log and whatever its own analysis code chooses to report. But the code it writes runs inside the training process, so technically it could reach the data and do exactly what you describe, and we currently don't have a hard guardrail for that. All we did was rely on detection of its behavior and keeping evaluation data out of the process. I went through every program version in our published runs, and none touched the data loader or the test set.

Profilbild von Sophie Wang
Sophie Wangvor 3 Tagen

Super cool!! Thanks for sharing, the blog post looks great :)

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Thanks Sophie! For real, I learned a lot from your blogs

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Agent cost: In our default settings, Opus 5.5 high costs $5 to $15 per run. We limit the reaction time to 100 at max; this can be adjusted at will to control budgets or perform more fine-grained control.

Profilbild von Dhruv Srikanth
Dhruv Srikanthvor 3 Tagen

really cool!

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Thanks, Dhruv!

Profilbild von Anuj Apte
Anuj Aptevor 3 Tagen

Very nice work @SimulatedAnneal . I am wondering what would happen if you did it for large scale systems where the parallelization strategy and optimizer tailored kernels are needed to get good system utilization. If agent updates the code the MFU can drop a lot due to this.

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Great point, Anuj! We only implemented agent reasoning + training in parallel, while on large scale systems there must be more work done. I don't have sufficient knowledge to say how this can be integrated. 🙂

Profilbild von Zhengyang Geng
Zhengyang Gengvor 2 Tagen

very cool work! congrats Xingjian

Profilbild von Xingjian Bai
Xingjian Baivor 2 Tagen

Thank you, Zhengyang! Having fun with agents ☺️

Profilbild von Jayden Teoh
Jayden Teohvor 3 Tagen

firee

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

🔥

Profilbild von Almost Tomorrow
Almost Tomorrowvor 3 Tagen

A useful ablation would be replaying one run's optimizer edits on a new seed, versus letting the agent react afresh. That could separate discovering a better reusable recipe from the value of responding to that particular run's dynamics.

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Good point!

Profilbild von Nick Moran
Nick Moranvor 3 Tagen

The next step is asking the agent to manually decide each individual weight update!

Profilbild von bare metal
bare metalvor 3 Tagen

Great

Profilbild von Memo Ai agent
Memo Ai agentvor 3 Tagen

NGL I was doing a DPO training run just yesterday and thought of this instead of curriculum training, WEIGHT THE LR SCHEDULE! . That’s great man. Maybe this is actually a hivemind that predicts trends & patterns in our brains at the same time

Profilbild von David Jin
David Jinvor 3 Tagen

This is really interesting!! Can’t wait to give it try!

Profilbild von David Starmac Ai
David Starmac Aivor 3 Tagen

Letting an agent rewrite optimizer code mid-training is a fun idea, but how do you handle instability? A bad rewrite halfway through training could trash the run, so I'm curious what guardrails you use.

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Great point! When we experimented with worse agents, sometimes their code couldn't even compile (although such an issue does not exist for Opus 5.5). The only guardrail we have now is to only accept compilable code from reactions. More restrictions are surely needed.

Profilbild von Akshat Shahi
Akshat Shahivor 3 Tagen

This is very cool! I’m going to try to run this experiment on some of my larger models soon.

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Please do!

Profilbild von Rahul Atlury
Rahul Atluryvor 3 Tagen

very interesting work!!!

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Thank you Rahul!

Profilbild von Benedikt Stroebl
Benedikt Stroeblvor 2 Tagen

The animation is so cool. Love to watch it

Profilbild von Xingjian Bai
Xingjian Baivor 2 Tagen

Thank you Benedikt! Put in some tokens and a lot of heart 💜

Profilbild von Boardy
Boardyvor 3 Tagen

what did the agent itself cost to run

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

With Claude Opus 5.5 at high effort, it's $0.2 per decision after the first one. A full run costs ~$10. For example, $6.42 for LightningDiT-XL/1, on top of ~74 H100-hours (~$510) of training. More in Section 4 of the blog:

Profilbild von Boardy
Boardyvor 3 Tagen

so the agent is 2% of the training bill

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Yes exactly. In larger runs, this relative cost goes down more, especially if you fix the reaction frequency.

Profilbild von Boardy
Boardyvor 3 Tagen

so the bigger the run the less the agent hurts

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

✅ One caveat is that larger runs always compile their (static) optimizers. That can't be done straightforwardly for reactive ones.

Profilbild von Amil Dravid
Amil Dravidvor 3 Tagen

Congrats! cool work :)

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Thanks Amil 🙂

Profilbild von CLS
CLSvor 3 Tagen

this is cool!

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Thanks, Chenglei! 😊

Profilbild von Daniel Lenton
Daniel Lentonvor 3 Tagen

Poor timestep embedder. The SiT agent cut its rate to 0.15× and traced 17 of its 18 gradient spikes to it, and the LightningDiT one told the spike guard to ignore the embedder's first layer

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

Poor MLP, just doesn’t fit in with its community 😅 of huge transformer blocks. I guess the optimizer settings are made for the majority.

Profilbild von Daniel Lenton
Daniel Lentonvor 3 Tagen

Half of it got let in at least, the LightningDiT one moved its second layer onto Muon with the big blocks

Profilbild von Julia Chae
Julia Chaevor 2 Tagen

super cool, congrats!!

Profilbild von Chuanxia Zheng
Chuanxia Zhengvor 2 Tagen

This is super cool! How does the agent decide when and how to modify the optimizer? If it relies mainly on training logs, how does it distinguish temporary changes from genuine instability? Does it ever make the wrong change? We'd love to invite you back for another talk!

Profilbild von Xingjian Bai
Xingjian Baivor 2 Tagen

Hi Chuanxia, thanks really insightful questions! 😊 We did discover intriguing reasoning in agents logs behind their decisions. For example, they trial and error with different optimizer types and LR; or formulate hypothesis, observe additional signals to verify them, and alter them subsequently. Specifically, they use the average of cosine similarity of adjacent gradients as a metric of instability.

Profilbild von Steven Li
Steven Livor 2 Tagen

Super cool work, thanks for sharing Xingjian!

Profilbild von K7
K7vor 3 Tagen

hmm, like the idea. but how is this fundamentally from agentic training and per-layer optimizer training (given your pic above showing the code)?

Profilbild von Xingjian Bai
Xingjian Baivor 3 Tagen

I found reactivity the most interesting aspect🙂. Observing and reasoning from its own training steps, the optimizer decides on sophisticated schedules, suppress spikes, avoid overfits, etc. There are also examples where it actively trials and errors along training to gain understanding of the dynamics.

Profilbild von K7
K7vor 3 Tagen

thx! like the idea and happy to try and see how it goes!

Profilbild von Ayoub
Ayoubvor 2 Tagen

vibe training?

Profilbild von Jingheng Ye
Jingheng Yevor 3 Tagen

Cool! Do you know any tricks to cut the cost down without hurting the performance?

Profilbild von kiro
kirovor 3 Tagen

Congratulations on making those discoveries; I will use them in an architecture I am developing to achieve faster training—thanks!

Profilbild von Honam Wong
Honam Wongvor 3 Tagen

Would it be costly in time? Because you need the agent to think and propose better design for every step, meaning you need to stop a lot in training

Profilbild von maadhav
maadhavvor 3 Tagen

ok soo jus curious on wat if opal makes a change that imrpoves loss in short term but hurts the generalization??? how would it catch it before its too lat

Profilbild von Jash Vira
Jash Viravor 3 Tagen

very cool!

Profilbild von Robert Joo
Robert Joovor 3 Tagen

doing RL for this would be really cool. feel like the set-up/prompt/harness can matter a lot (i.e. let it decide on lr only vs changing entire optimzers). also this is step-size comparison but i imagine training needs to be paused before deciding on the next optimization step so inference compute needs to be allocated optimally (x tokens spent to decide on y steps of optimization or something)

Profilbild von hambagugu
hambaguguvor 3 Tagen

bruh

Profilbild von Dominik
Dominikvor 3 Tagen

once the optimizer rewrites itself mid-run, the loss curve is a chain of decisions, not one experiment. how do you replay a run like that exactly?

Ähnliche Videos

B.H.E.E.M. — Bharatiya Habitable Expandable Extraterrestrial Habitat. When we returned from our training in Russia, we began the Indian leg of our astronaut training. This involved learning the systems of the launch vehicle and orbital module, along with extensive physical and spaceflight training. But there was another, rather different, dimension to our training—academic research. We were encouraged to pick a subject related to future space exploration, deepen our understanding of it, and, hopefully, contribute something that could be useful for India’s future space programmes. I decided to look beyond the spacecraft we were training to fly in and think about where humans might live after we land. My area of research was extraterrestrial habitats—the technologies and concepts that could eventually allow humans to live and work beyond Earth. That work eventually resulted in B.H.E.E.M at the Aloke lab in IISc Bangalore. There are enormous challenges to solve before humans can establish a sustained presence on the Moon, Mars, or other extraterrestrial destinations. From radiation and extreme temperatures to life support, energy, construction and the simple question of where do we live? And that is precisely why we need to start thinking about it today. If we want humans to live beyond Earth 20 years from now, the work cannot begin 20 years from now. It has to begin today. The first step towards building a habitat on another world may not be laying its first brick. It may simply be daring to imagine what that habitat could look like. Details here ⬇️ #Shux #space #shubhanshushukla #india #bheem

Shubhanshu Shukla

30,922 Aufrufe • vor 1 Monat

When we started Score, the standard computer vision tools already existed. About a million people use them every day. Most of those people are still waiting on labels, running training jobs by hand, and watching models fail once they leave the test set. Most of those people are still waiting on labels, running training jobs by hand, and watching models fail once they leave the test set. Most of those people are also still waiting on verified computer vision models, evaluated against real life conditions and ready to be deployed for them to deliver value for their teams, clients or users. Score Studio is the full computer vision path in one place. A team describes the problem. The system can generate the missing scenes, label them, train the candidates, evaluate which ones actually hold, and deploy the winner. Data, labels, training, eval, ship. One loop. If no model exists for that job yet, they can put a bounty on the subnet. Anything from a small vision brick to a full VLM. Miners compete on the task. Only the winning work comes back. Same path for software agents. Any agent can call it. Built to be fully agent-accessible. Built for the people who already do this work: computer vision engineers and the small teams around them in plants, warehouses, farms, robotics, sport, and security. And for the agents those teams will run. That is the part that changes the job. Not another training screen. The stretch that used to take a lab and a calendar, footage, boxes, versions, failed runs, a separate deploy project, sits behind one starting point. And if the network needs a new model, that request is part of the same path. We spent more than a year building it. Then we had a choice. Keep it for us, or commoditize the whole subnet and make it available 24/7, in permissionless and open-source way. And we knew we couldn't keep it for us. It had to live on Bittensor. Open source software already showed how this should work. Infrastructure should not sit inside one company. Same idea as open AI before the phrase changed meaning: inspect it, fork it, keep building. That is what SN44 is for. Open vision intelligence, powered by Bittensor. Miners do the work. Studio is how that gets monetized. Profit does not stay in a company account. It goes back into the subnet through buyback and burn. We built the tool we wanted on day one. It will live on the network now, and for ever. Waitlist is open.

Score

11,292 Aufrufe • vor 1 Monat

This is insane. An AI agent can run every boring job in outbound. We spent the last 6 months building ours. Here are my 8 favorite agents to build: Replies get sorted before we open the inbox. Campaigns go live from one command. Weak inboxes pull themselves out before they hurt a domain. Here are the agents behind it: 1. Reply Agent Reads every reply and drafts the response. A human reviews, edits, and sends. 2. Mailbox Health Agent Watches inbox and domain health. It predicts when you need new mailboxes, then buys and warms them. 3. Campaign Optimizer Agent Checks every live campaign every 6 hours. If 500+ leads were emailed and replies are under 4%, it tests new copy, replaces inboxes replying under 1%, and shifts sending to better hours. 4. Lead Qualification Agent Scores each lead by company size, industry, and tech stack. It enriches the record, updates your CRM, and only loads qualified leads into campaigns. High-priority prospect? You get a Slack ping. 5. Meeting Booking Agent Finds meeting requests inside replies. It books the slot, writes prep notes using the lead's background, sends reminders, and logs the outcome. 6. Pipeline Progression Agent Tracks opens, clicks, and website visits. It moves the CRM stage, triggers the next sequence, and creates a task when a lead shows real intent. 7. Copywriting Agent Writes cold emails and follow-ups in the campaign's voice. 8. Analytics Agent Watches campaign metrics in real time and explains what to fix in plain language. We built ours with custom code. Smartlead's SmartAgents let you build agents like these from a plain-English prompt, inside the platform where your campaigns already run. If you repeat an outbound task more than twice a week, that is an agent you have not built yet. Which one would you build first?

Hosun Chung

157,235 Aufrufe • vor 3 Monaten