OPTScientist: Multi-Agent Discovery of Typed Optimizer Programs for Transformer Pretraining

Zhongzheng Li, Tiancan Feng, Wenhao Li, Qingsong Ran, Shikun Feng +3 more
6/2/2026
cs.AI
transformer-attention

No confident code implementation found for this paper.

Abstract

Designing optimizers for modern deep learning remains a challenging scientific problem, requiring the joint consideration of optimization geometry, state dynamics, numerical stability, implementation constraints, and empirical generalization. Existing automated optimizer discovery methods typically search either over unconstrained code spaces or within narrowly parameterized optimizer families.

Show full abstract

The former is flexible but often produces invalid or uninterpretable programs, while the latter is stable but limits novelty. We introduce OPTScientist, a theory-guided multi-agent framework for optimizer discovery in a typed domain-specific language (DSL). OPTScientist formulates optimizer design as a constrained scientific search process, where candidate updates are expressed through direction, scaling, preconditioning, regularization, state, and grouping modules. Four role agents, Theorist, Designer, Engineer, and Reviewer, collaborate within a single orchestration loop to propose hypotheses, synthesize DSL candidates, compile and evaluate optimizers, and critique results. To overcome the limitations of a fixed search space, OPTScientist combines evolutionary search over optimizer programs with a second-stage mechanism that proposes small DSL extensions when repeated failures reveal representational bottlenecks. Using this framework, we discover RS-MR, a reduced-state matrix optimizer that improves transformer pretraining over strong baselines under our native evaluation protocol. Our results suggest a path toward automated optimizer science grounded in theory, typed programs, compiler validation, and closed-loop experimentation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026optscientist,
  title  = {OPTScientist: Multi-Agent Discovery of Typed Optimizer Programs for Transformer Pretraining},
  author = {Zhongzheng Li and Tiancan Feng and Wenhao Li and Qingsong Ran and Shikun Feng and Xiaoyuan Zhang and Yue Wang and Xiaoguang Zhao},
  year   = {2026},
  eprint = {2607.20486},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.20486v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.20486.svg)](https://codeofpaper.com/paper/2607.20486)

Discussion