OPAL lets agents rewrite optimizers mid-training
OPAL wraps PyTorch optimizers with a coding agent that monitors training dynamics and rewrites executable update and analysis programs during a run. Experiments show adaptive schedules, momentum, clipping, and weight averaging can match or beat selected fixed recipes, though with significant agent cost and latency.
OPAL makes optimization feel less like selecting a static recipe and more like supervising an adaptive programmer—but running mutable code inside training introduces serious reproducibility and safety tradeoffs.
- –Agents can alter learning rates, momentum, preconditioning, clipping, and parameter-group behavior as conditions change
- –The approach responds to loss spikes, corrupted data, and overfitting without optimizer-specific meta-training
- –It preserves the familiar PyTorch workflow through a lightweight optimizer wrapper
- –Agent calls can add substantial runtime and inference cost, especially for short training jobs
- –Because rewritten programs execute inside the training process, failures can degrade a run even with limited rollback support
DISCOVERED
1h ago
2026-11-08
PUBLISHED
1h ago
2026-11-08
RELEVANCE
AUTHOR
Better Stack