NEMO: Execution-Aware Optimization Modeling via Autonomous Coding Agents
Yang Song, Anoushka Vyas, Zirui Wei, Sina Khoshfetrat Pakazad, Henrik Ohlsson, Graham Neubig
TL;DR
NEMO addresses the challenge of turning natural-language optimization problems into reliable executable models by leveraging execution-aware Autonomous Coding Agents (ACAs) within sandboxed environments. It introduces an asymmetric simulator–optimizer validation loop, memory-augmented few-shot learning, Minimum Bayes Risk (MBR) decoding, and self-consistency to produce robust, executable optimization code without task-specific fine-tuning. The system comprises four coordinated modules—decision process extractor, simulator, solver recommender, and optimizer—plus memory, enabling end-to-end NL-to-model translation with rigorous execution-based validation. Across nine benchmarks, NEMO achieves state-of-the-art or competitive performance, often with substantial improvements, demonstrating the practical impact of execution-aware, agentic architectures for automated optimization modeling.
Abstract
In this paper, we present NEMO, a system that translates Natural-language descriptions of decision problems into formal Executable Mathematical Optimization implementations, operating collaboratively with users or autonomously. Existing approaches typically rely on specialized large language models (LLMs) or bespoke, task-specific agents. Such methods are often brittle, complex and frequently generating syntactically invalid or non-executable code. NEMO instead centers on remote interaction with autonomous coding agents (ACAs), treated as a first-class abstraction analogous to API-based interaction with LLMs. This design enables the construction of higher-level systems around ACAs that structure, consolidate, and iteratively refine task specifications. Because ACAs execute within sandboxed environments, code produced by NEMO is executable by construction, allowing automated validation and repair. Building on this, we introduce novel coordination patterns with and across ACAs, including asymmetric validation loops between independently generated optimizer and simulator implementations (serving as a high-level validation mechanism), external memory for experience reuse, and robustness enhancements via minimum Bayes risk (MBR) decoding and self-consistency. We evaluate NEMO on nine established optimization benchmarks. As depicted in Figure 1, it achieves state-of-the-art performance on the majority of tasks, with substantial margins on several datasets, demonstrating the power of execution-aware agentic architectures for automated optimization modeling.
