arXiv:2610.28562cs.AIOct 2026

Manuscript Offprint

arXiv:2610.28562

OptScientist: Automated Discovery of Optimization Laws

Ma ZhenYao, Yue Liang, Jian-Qiao Zhu

Abstract

Many scientific phenomena are best understood as outcomes of underlying optimization problems, yet automated scientific discovery has largely focused on recovering equations that describe observed input–output patterns. We introduce OptScientist, a novel automated framework for discovering compact symbolic optimization laws directly from data. OptScientist comprises (i) a model that infers symbolic optimization problems by first learning to represent data as an optimization problem and then extracting its symbolic form, and (ii) an LLM agentic system embedding the model in a discovery process that integrates theoretical priors from scientific literature, discovers candidate laws, abstracts their underlying mechanisms, and suggests new data to collect. We first evaluate OptScientist on OptFeynman, a novel benchmark of 99 physics-derived optimization problems, where OptScientist recovers ground-truth laws for over 80% of the problems and remains robust to noisy contextual information, while substantially outperforming machine-learning, symbolic, and LLM-based model-discovery baselines. On human risky choice and central-bank monetary policy, OptScientist discovers compact symbolic optimization laws that achieve held-out predictive performance competitive with leading baselines, while using few parameters and substantially fewer tokens than LLM baselines. Overall, OptScientist extends automated scientific discovery to uncovering optimization laws that generate observed phenomena, enabling automated theory building across the physical, biological, behavioral, and social sciences.

1 Introduction

Across the sciences, many influential theories characterize observed phenomena as solutions to optimization problems. Examples include energy or free-energy minimization principles for characterizing equilibrium states in statistical physics (Gibbs, 1902; Landau & Lifshitz, 2013), optimality models for explaining how biological fitness shapes evolutionary outcomes (Wright et al., 1932; Fisher, 1999), rational and resource-rational analyses of human behavior and cognition (Samuelson, 1948; Debreu, 1959; Anderson, 1991; Lieder & Griffiths, 2020), and intertemporal optimization for modelling dynamic macroeconomic systems (Ramsey, 1928; Ljungqvist & Sargent, 2018). Developing such theories requires identifying objectives and relevant constraints that jointly account for observed outcomes. However, these components are typically formulated by domain experts and only subsequently evaluated against data, making optimization-based theory construction largely manual and dependent on specialized insight. This reliance on expert formulation creates a substantial bottleneck for theory discovery across scientific domains. A fundamental question therefore remains: Can optimization laws be discovered automatically from observational data?

∗^{*}Corresponding author: zhenyaoma@163.com

The complexity of real-world scientific data further exacerbates this bottleneck, as observations are often noisy, high-dimensional, and shaped by complex interactions. Hand-crafted interpretable models may fail to capture complex patterns, whereas flexible data-driven approaches, particularly machine-learning methods, have demonstrated strong predictive performance across physics (Baldi et al., 2014; Carleo & Troyer, 2017), biology (Poplin et al., 2018; Jumper et al., 2021), and behavioral and social sciences (Kosinski et al., 2013; Peterson et al., 2021; Zhu et al., 2025).

Recent advances in scientific machine learning have enabled data-driven discovery of symbolic laws (Champion et al., 2019; Udrescu & Tegmark, 2020; Cranmer et al., 2020), embedded mathematical structure into flexible ML models (Chen et al., 2018; Liu et al., 2025; Ma et al., 2026b), and integrated scientific theories with machine learning (Raissi et al., 2019; Peterson et al., 2021). However, these approaches have largely focused on recovering input–output equations or learning models without explicit symbolic structure, while optimization-structured scientific ML models (Ma et al., 2026b) still require human interpretation of optimization structures and lack an end-to-end process for automated theory discovery. Consequently, automatically discovering compact symbolic optimization laws from real-world data remains a fundamental challenge.

To address these challenges, we introduce OptScientist, a novel framework that uses AI methods to automate the discovery of optimization laws. OptScientist has two components: a novel symbolic-discovery model and an agentic research system. First, the symbolic-discovery model (OptScientist Model) learns to represent observational data as an optimization problem using a hierarchical optimization network with an optimization representation bottleneck, enabling denoising, information compression, and automatic extraction of interpretable features. It then distills this learned optimization representation into a compact symbolic optimization problem. The second component, the OptScientist Agent, places this discovered symbolic model inside an automated scientific-discovery loop. A Theory Prior Agent proposes scientific priors, candidate variables and mechanism hypotheses. An Experiment Agent then uses the OptScientist Model to search for compact symbolic optimization laws from data. Finally, a Scientific Critic and Theory Abstraction Agent evaluates and selects the discovered laws, abstracts the selected laws into a general form and qualitative mechanisms, and suggests new variables or data for the next round of discovery. Together, the model and agent form an iterative system for proposing, discovering and refining optimization laws.

We conduct three experiments spanning physical systems, human behaviour, and macroeconomic policy. First, to test whether the core OptScientist Model can recover ground-truth optimization laws (Sec. 4.1), we introduce OptFeynman (Sec. 5.1), a novel synthetic benchmark of 99 optimization problems derived from analytic physics equations, where observations are generated as noisy samples from the induced optimization landscapes. On held-out contexts, OptScientist Model shows strong recovery of the generating laws, achieving perfect exact-order recovery on 88 of 99 discrete problems and 78 of 99 continuous problems, while substantially outperforming machine-learning, symbolic-regression, and LLM model-discovery baselines. Our results also suggest that OptScientist remains robust even when context variables are noisy. We then apply OptScientist to two autonomous scientific-discovery tasks on real-world data for which the underlying laws are unknown. In human decisions under risk and ambiguity (Sec. 4.2), OptScientist discovers an optimization law combining expected reward, cognitive switching cost and counterfactual reward. In central-bank monetary decisions (Sec. 4.3), it discovers a law in which observed policy tracks a latent subjective target through squared-error minimization. Across both domains, the discovered laws remain competitive with the strongest baselines while using near-minimal parameter counts and symbolic complexity, and substantially fewer output tokens than LLM-based model-discovery methods.

Overall, our contributions are threefold. First, we introduce the OptScientist Model, which, to the best of our knowledge, is the first scientific machine-learning framework for learning symbolic optimization problems directly from observational data. Second, for science, we develop OptScientist, a hybrid symbolic–LLM system that extends automated scientific discovery to optimization-law discovery in domains associated with optimization models. Third, at the paradigm level, we contribute to inverse optimization, revealed preference and related fields by moving beyond parameter estimation for pre-specified optimization problems, providing a new methodology for directly recovering optimization laws themselves from data.

References (46)