arXiv:2609.08071cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.08071

Automated Design of Inventory Policy with Large Language Models: An Exploratory Study

Fenghua Yang, Preet Baxi, Yi Zhang, Stefanus Jasin, Yanzhe Lei, Mo Liu, Parshan Pakiman

Fenghua Yang, Preet Baxi

University of Michigan, Ann Arbor, MI 48109, USA (yfenghua@umich.edu, preetb@umich.edu)

Yi Zhang

Stanford University, Stanford, CA 94305, USA (yz5195@stanford.edu)

Stefanus Jasin

University of Michigan, Ann Arbor, MI 48109, USA (sjasin@umich.edu)

Yanzhe Lei

Queen's University, Kingston, ON K7L 3N6, Canada (yl64@queensu.ca)

Mo Liu

University of North Carolina, Chapel Hill, NC 27599, USA (mo_liu@unc.edu)

Parshan Pakiman

University at Buffalo, State University of New York, Buffalo, NY 14260, USA (parshanp@buffalo.edu)

Firms making inventory decisions increasingly have access to rich operational data, advanced optimization tools, and rapidly improving large language models (LLMs). Typically, data characterize the operating environment, optimization selects parameter values within a prespecified inventory policy class, and LLMs support tasks such as coding and decision analysis. We develop an integrated framework that combines these resources to automate inventory policy design. Given demand data, the framework iteratively uses an LLM to generate parameterized policy classes and an external solver to optimize its parameters within each class. Across 30 lost-sales inventory instances, the mean cost reduction relative to optimized base-stock benchmarks increases from 17.5% after one generation to 30.0% after ten generations. Parameter optimization is central to this performance: an LLM-only variant performs substantially worse, whereas optimization-guided feedback improves policy quality, accelerates search, and directs the LLM toward better policy classes rather than merely better parameter values within a fixed class. The strongest discovered policies are also interpretable: they combine recognizable inventory-control motifs, including capped orders, discounted or weighted pipeline inventory, and threshold-based replenishment logic. The search thereby produces new policy-class functional forms that, to our knowledge, have not previously been studied in the lost-sales inventory literature. These functional forms are not specified ex ante but emerge from the search process. Moreover, after their parameters are re-optimized, three discovered policy classes achieve average cost reductions of 21.75% – 22.60% across 10,064 new inventory instances. Overall, the results show that data-driven parameter optimization can guide LLM-based search over a broad space of inventory policy classes and identify high-performing, interpretable, and transferable decision rules.

1. Introduction

Optimization models have long formed the backbone of inventory decision making, providing principled methods for characterizing, computing, and improving replenishment policies within specified policy classes (Arrow et al. 1951, Scarf 1960, Veinott and Wagner 1965, Zipkin 2000, Porteus 2002). The growth of operational data has enabled firms to complement these models with richer information, including sales histories, inventory records, and contextual features, to improve demand forecasting, demand estimation, and replenishment decisions (Iyer and Schrage 1992, Fildes et al. 2009, DeHoratius et al. 2008, Huh et al. 2011, Ding et al. 2024). More recently, large language models (LLMs) and generative artificial intelligence have emerged as a third resource, with growing potential to support optimization practice, supply-chain management, and broader managerial decision making (Jiang et al. 2026, Chen et al. 2026, Csaszar et al. 2024, Cohen et al. 2026, McKinsey & Company 2025). Thus, an important question is not simply whether LLMs will be used in practice, but how they can be used effectively. In inventory control, these three resources are typically assigned distinct roles: data support forecasting and demand estimation, optimization improves decisions within prespecified policy classes, and LLMs assist with tasks such as modeling, coding, and decision analysis.

Can data, optimization, and LLMs instead be integrated into a systematic mechanism for designing effective replenishment policies? This question is important because inventory policy design involves two distinct choices. The first is the policy class: the functional form of the decision rule that maps the available inventory-state information to an ordering action. The second is the parameter vector that specifies a particular policy within that class. For example, the base-stock policy class is defined by a single-parameter decision rule, with each value of the base-stock level specifying a particular policy. Data characterize the operating environment, including demand patterns, lead times, service requirements, and cost tradeoffs. Given a policy class, optimization can then identify effective parameter values within that class. Neither data nor parameter optimization alone, however, determines which functional form should define the policy class. In practice, the policy class is often selected heuristically based on computational tractability or ease of interpretation, potentially at the expense of performance. This limitation motivates a broader question: can LLMs expand the policy-design space beyond prespecified classes and support the automated discovery of previously unexplored policy classes, rather than selecting among or optimizing existing ones?

The choice of policy class is particularly consequential in lost-sales inventory systems with positive lead times. In these systems, replenishment decisions must jointly account for on-hand inventory, outstanding pipeline orders, stochastic demand, and the irreversibility of lost sales. Although base-stock policies can perform well in some settings, they need not be optimal when lead times are positive because the value of an order depends on both the amount and timing of inventory already in the pipeline. Prior work has therefore examined alternative policy classes, including constant-order, capped base-stock, and projected-inventory-level policies (Zipkin 2008, Huh et al. 2009, Xin 2021, van Jaarsveld and Arts 2024, Liu et al. 2026, Xin 2026). This literature demonstrates that the choice of policy class can materially affect performance. It does not, however, provide a general mechanism for systematically searching beyond policy classes specified by researchers in advance.

LLMs create a new opportunity for policy-class search. Recent work shows that LLMs can generate executable code, interact with optimization models, and support automated heuristic design (Jiang et al. 2026, Chen et al. 2026, Romera-Paredes et al. 2024, Liu et al. 2024, Ye et al. 2024). In particular, methods such as FunSearch, Evolution of Heuristics, ReEvo, and AlphaEvolve embed LLMs in evaluation-guided, reflective, or evolutionary search procedures that iteratively generate, evaluate, and refine executable algorithms (Romera-Paredes et al. 2024, Liu et al. 2024, Ye et al. 2024, Novikov et al. 2025). Concurrent work by Huang et al. (2026) applies LLM-based evolutionary search to generate interpretable inventory policies for online deployment under nonstationary demand, using reinforcement learning to evaluate and improve candidate policies. Baek (2026) studies a simple single-query protocol in which an LLM generates either an instance-specific solution or a reusable algorithm for well-specified problems in inventory control, queueing-network control, and assortment optimization, and finds that the strongest model is competitive with specialized methods. Baek et al. (2026) studies complementarities among operations-research heuristics, LLM agents, and human decision makers in multiperiod inventory control; in their setting, the LLM participates in or supports period-by-period ordering decisions rather than searching ex ante over stationary policy classes. Our setting and methodological focus differ from both streams. We study offline policy-class design for stationary lost-sales inventory systems and use off-the-shelf LLMs to generate parameterized policy classes, external numerical optimization to select parameter values within each generated class, and simulation to evaluate the resulting policies. This separation allows us to isolate whether optimization-guided feedback helps the LLM generate better policy classes, rather than merely better parameter values within previously generated classes.

Our Automated Inventory Policy Search (AIPS) framework builds on the discovery-oriented approach of recent LLM-based heuristic-design methods and adapts it to the sequential decision-making setting of inventory control. Given an inventory environment defined by demand data and instance-specific primitives, including lead time, holding cost, and lost-sales cost, AIPS uses an LLM to generate a pool of parameterized policy classes. Each class defines a mapping from the inventory state, including on-hand and pipeline inventory, to an order quantity. These classes may range from standard classes, such as the single-parameter base-stock class and the two-parameter (s, S) class, to richer classes with larger and more flexible parameter spaces. For each generated class, numerical optimization selects parameter values by minimizing a simulation-based empirical cost objective. The resulting optimized policy is then evaluated, and the best-performing policies, together with their class-defining code, optimized parameters, and performance summaries, are returned to the LLM to guide the generation of the next pool of candidate classes. Therefore, AIPS alternates between two interconnected steps: policy-class search, in which the LLM generates candidate policy classes, and parameter optimization, in which numerical optimization identifies effective parameter values within each generated class. Simulation-based evaluation closes the loop by measuring the performance of the optimized policies and feeding this information, together with the optimized parameter values, back to the LLM to guide subsequent policy-class search.

We conduct an extensive computational study of AIPS in lost-sales inventory systems with positive lead times. Rather than attempting to characterize optimal policies, we use a sequence of experiments to evaluate how effectively LLMs can generate useful classes of inventory policies and how the framework's components contribute to performance. First, benchmark comparisons assess whether AIPS discovers policy classes containing policies that outperform optimized base-stock policies. Second, optimization ablations quantify the contribution of numerical parameter optimization and examine whether feeding optimized parameter values and policy performance back to the LLM improves subsequent policy-class search. Third, structural analyses identify the inventory-control motifs that recur in the best-performing discovered policies. Fourth, generalization experiments vary lead times, lost-sales-penalty-to-holding-cost ratios, and demand distributions to evaluate whether discovered policy classes remain effective beyond the instances on which they were developed. Fifth, cross-model comparisons measure the sensitivity of the framework's performance to the choice of LLM backbone. Collectively, these experiments evaluate both the quality of the policies discovered by AIPS and the mechanisms through which optimization-guided feedback improves the search over policy classes.