← All papers
First page of LongTails: Automated Research in Optimization

LongTails: Automated Research in Optimization

Alexander Tyurin, QuocViet Pham, Valentin Khrulkov, Ivan Oseledets

math.OC Nov 10, 2026 · v1
Builds a Lean 4 framework formalizing optimization Setups and oracle Complexities; AI agents prove over 100 new convergence bounds, which Comparator checks.
We introduce LongTails, a framework for discovering and improving oracle-complexity bounds with formal verification in Lean 4. Using LongTails, we have already obtained more than 100 new results across a broad range of optimization problems, including generalized smoothness, heavy-tailed noise, finite-sum and composite optimization, and higher-order and zeroth-order methods. Our goal is to scale discovery and continually develop new methods with non-trivial and valuable theoretical guarantees using modern agentic systems. The framework is specialized for optimization, where we separate a Setup, specifying the problem class, assumptions, available information, and success criterion, from a Complexity, specifying a sufficient oracle-call budget. Once a Setup is fixed (e.g., $L$-smooth convex optimization with the goal of finding $x_{\mathrm{out}}$ such that $f(x_{\mathrm{out}}) - f(x^\star) \leq \varepsilon$), agents search for better Complexities (e.g., $O(\sqrt{L R^2 / \varepsilon})$, where $R \geq \|x_0 - x^\star\|$) by designing algorithms and proving their convergence. The framework then checks the proofs and guarantees that every accepted Complexity can indeed be attained under the given Setup. This turns the search for new methods into an ongoing effort to improve their theoretical guarantees. To the best of our knowledge, LongTails is the first framework to scale automated research in optimization across such a broad range of problems with formally verified theoretical guarantees.

Discovering new optimization methods with provably better oracle-complexity bounds is slow, and claimed guarantees need trustworthy verification. The authors want a reusable framework that lets agentic systems search for improved complexities at scale while every accepted result stays formally correct.

In Lean 4, a Setup specifies the problem class, assumptions, oracle access, public information and success criterion, and is kept separate from a Complexity, an oracle-call budget. A Convergence proposition asserts that an algorithm constructor exists. Using only public inputs, that constructor must succeed within the budget for every admissible instance and oracle. Codex and Claude Code agents, working in researcher/reviewer pairs, design algorithms and prove Convergence theorems. Comparator checks the proofs against the fixed Setup and rejects incomplete proofs or unpermitted axioms.

The authors report more than 100 new formally verified results covering generalized smoothness, heavy-tailed noise, finite-sum and composite problems, and higher-order and zeroth-order methods. One example is a gradient-only Õ(1+√(L0R²/ε)+(L1R)^{2/3}) bound for (L0,L1)-smooth convex optimization. It improves the L1R term of the earlier gradient-only bound and removes the exact line-search cost from another prior result.