Загрузка видео...

Не удалось загрузить видео

На главную

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 просмотров • 3 дней назад •via X (Twitter)

Комментарии: 66

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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.

Фото профиля Ollin Boer Bohan
Ollin Boer Bohan3 дней назад

Interesting! Reminds me of this pioneering prior work 😆

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Aditya Chetan
Aditya Chetan3 дней назад

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?

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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.

Фото профиля Sophie Wang
Sophie Wang3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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.

Фото профиля Dhruv Srikanth
Dhruv Srikanth3 дней назад

really cool!

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

Thanks, Dhruv!

Фото профиля Anuj Apte
Anuj Apte3 дней назад

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.

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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. 🙂

Фото профиля Zhengyang Geng
Zhengyang Geng2 дней назад

very cool work! congrats Xingjian

Фото профиля Xingjian Bai
Xingjian Bai2 дней назад

Thank you, Zhengyang! Having fun with agents ☺️

Фото профиля Jayden Teoh
Jayden Teoh3 дней назад

firee

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

🔥

Фото профиля Almost Tomorrow
Almost Tomorrow3 дней назад

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.

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

Good point!

Фото профиля Nick Moran
Nick Moran3 дней назад

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

Фото профиля bare metal
bare metal3 дней назад

Great

Фото профиля Memo Ai agent
Memo Ai agent3 дней назад

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

Фото профиля David Jin
David Jin3 дней назад

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

Фото профиля David Starmac Ai
David Starmac Ai3 дней назад

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.

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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.

Фото профиля Akshat Shahi
Akshat Shahi3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

Please do!

Фото профиля Rahul Atlury
Rahul Atlury3 дней назад

very interesting work!!!

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

Thank you Rahul!

Фото профиля Benedikt Stroebl
Benedikt Stroebl2 дней назад

The animation is so cool. Love to watch it

Фото профиля Xingjian Bai
Xingjian Bai2 дней назад

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

Фото профиля Boardy
Boardy3 дней назад

what did the agent itself cost to run

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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:

Фото профиля Boardy
Boardy3 дней назад

so the agent is 2% of the training bill

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Boardy
Boardy3 дней назад

so the bigger the run the less the agent hurts

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Amil Dravid
Amil Dravid3 дней назад

Congrats! cool work :)

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

Thanks Amil 🙂

Фото профиля CLS
CLS3 дней назад

this is cool!

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

Thanks, Chenglei! 😊

Фото профиля Daniel Lenton
Daniel Lenton3 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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

Фото профиля Daniel Lenton
Daniel Lenton3 дней назад

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

Фото профиля Julia Chae
Julia Chae2 дней назад

super cool, congrats!!

Фото профиля Chuanxia Zheng
Chuanxia Zheng2 дней назад

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!

Фото профиля Xingjian Bai
Xingjian Bai2 дней назад

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.

Фото профиля Steven Li
Steven Li2 дней назад

Super cool work, thanks for sharing Xingjian!

Фото профиля K7
K73 дней назад

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

Фото профиля Xingjian Bai
Xingjian Bai3 дней назад

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.

Фото профиля K7
K73 дней назад

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

Фото профиля Ayoub
Ayoub2 дней назад

vibe training?

Фото профиля Jingheng Ye
Jingheng Ye3 дней назад

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

Фото профиля kiro
kiro3 дней назад

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

Фото профиля Honam Wong
Honam Wong3 дней назад

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

Фото профиля maadhav
maadhav2 дней назад

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

Фото профиля Jash Vira
Jash Vira2 дней назад

very cool!

Фото профиля Robert Joo
Robert Joo3 дней назад

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)

Фото профиля hambagugu
hambagugu3 дней назад

bruh

Фото профиля Dominik
Dominik3 дней назад

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?

Похожие видео

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 просмотров • 1 месяц назад

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 просмотров • 1 месяц назад

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 просмотров • 3 месяцев назад