Inventory Management with Transformer: Automated Decision Making for Order Timing and Quantity

We design an automated decision-making system for inventory management using a Transformer-based neural network. Leveraging contextual information and historical data, the system makes two key decisions: (1) order timing and (2) order quantity. To accommodate random vendor lead times, we develop an imitation-learning framework, in which the Transformer imitates ex post optimal decisions computed from historical data to directly output inventory actions. The model adopts the GPT-2 architecture—an off-the-shelf large language model—for efficient fine-tuning under the inventory context. Our framework, InventoryGPT, addresses challenges faced by large e-commerce platforms that manage millions of stock-keeping units while serving customers with stochastic and nonstationary demand and lead-time patterns. By incorporating rich contextual data, the model learns to improve service levels and reduce costs. Empirical results using real-world data from a leading e-commerce platform show that InventoryGPT outperforms traditional and state-of-the-art benchmarks. Moreover, by carefully designing the Transformer’s input and output structures, the proposed InventoryGPT model achieves good interpretability. Our study highlights the potential of Transformer-based neural networks for large-scale decision making in service operations. History: This paper has been accepted for the Service Science Special Issue on the Impact of AI on Service Design and Delivery. Funding: This research was supported by the National Key Research and Development Program [Grant 2024YFB3311500] and the Research, Academic and Industry Sectors One-Plus Scheme [Grants RAISe+ and RAI-24-1-096A]. Supplemental Material: The online appendix is available at https://doi.org/10.1287/serv.2024.0236 .

Authors

Institutions

Publication Details

Journal
Service Science
Published
2026-04-07
DOI
https://doi.org/10.1287/serv.2024.0236
Primary Topic
Forecasting Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Inventory Management with Transformer: Automated Decision Making for Order Timing and Quantity

YuMo Bai, Zuo-Jun (Max) Shen, Meng Qi, Mo Liu
Service Science
Forecasting Techniques and Applications
article

Inventory Management with Transformer: Automated Decision Making for Order Timing and Quantity

YuMo Bai, Zuo-Jun (Max) Shen, Meng Qi, Mo Liu
article en

Abstract

We design an automated decision-making system for inventory management using a Transformer-based neural network. Leveraging contextual information and historical data, the system makes two key decisions: (1) order timing and (2) order quantity. To accommodate random vendor lead times, we develop an imitation-learning framework, in which the Transformer imitates ex post optimal decisions computed from historical data to directly output inventory actions. The model adopts the GPT-2 architecture—an off-the-shelf large language model—for efficient fine-tuning under the inventory context. Our framework, InventoryGPT, addresses challenges faced by large e-commerce platforms that manage millions of stock-keeping units while serving customers with stochastic and nonstationary demand and lead-time patterns. By incorporating rich contextual data, the model learns to improve service levels and reduce costs. Empirical results using real-world data from a leading e-commerce platform show that InventoryGPT outperforms traditional and state-of-the-art benchmarks. Moreover, by carefully designing the Transformer’s input and output structures, the proposed InventoryGPT model achieves good interpretability. Our study highlights the potential of Transformer-based neural networks for large-scale decision making in service operations. History: This paper has been accepted for the Service Science Special Issue on the Impact of AI on Service Design and Delivery. Funding: This research was supported by the National Key Research and Development Program [Grant 2024YFB3311500] and the Research, Academic and Industry Sectors One-Plus Scheme [Grants RAISe+ and RAI-24-1-096A]. Supplemental Material: The online appendix is available at https://doi.org/10.1287/serv.2024.0236 .

Service Science
University of North Carolina at Chapel Hill (US), Cornell University (US), University of Hong Kong (HK)
Openalex Percentile: Top 20%
Forecasting Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.