Reinforcement Learning for Inventory Control under Regime-Switching Demand: A Controlled Comparison of LSTM, MLP, and (s,S) Policies
Alex Haines, Nathanael L. Baisa
Abstract
Classical inventory policies such as (s,S) are provably optimal under stationary demand but cannot adapt when demand switches between hidden regimes, and memoryless deep reinforcement learning policies, confined to a fixed observation window, cannot maintain a belief over latent demand structure. We ask whether a recurrent policy offers a measurable advantage over both a memoryless policy and a classical baseline under regime-switching demand, and how that advantage scales with supply-chain lead time. We build a custom Gymnasium environment in which daily demand is generated by a two-state hidden Markov process with Poisson emissions, so that the regime is known at evaluation time but hidden from the agent. An optimised (s,S) heuristic, an MLP PPO agent, and an LSTM Recurrent PPO agent are trained under matched compute and evaluated at lead times of 0, 3, 6, and 10 days over 30 deterministic episodes each. The recurrent policy outperforms both alternatives at every lead time, and its margin over the MLP widens monotonically with lead time, from parity at lead time 0 to 2.17× at lead time 10. Principal component analysis of the LSTM hidden state explains the widening gap: the representation shifts from encoding a binary regime indicator at short lead times to encoding multi-step pipeline state at long lead times. Recurrent memory becomes the decisive architectural factor as the credit-assignment horizon lengthens.
Create a lesson
Related papers
Evidence from a Multi-Regime Causal Discovery Benchmark: UCMT Algorithms, Comparative Performance, and Controlled Ablation Studies
Shared title terminology · Mahyar Eslami
Policy Improvement-Guided Replay for Continual Reinforcement Learning
Shared title terminology · Qin-Wen Luo, Haoxuan Gao, Sheng Ren et al.
TIDE: Reclaiming Lost Performance In On-Policy Reinforcement Learning
Shared title terminology · Mathew Jacob, Morgan Borjigin-Wang, Kan Zhu et al.
HALight: Heterogeneous Multi-Agent Reinforcement Learning for Traffic Signal Control under Lane-Level Missing Observations
Shared title terminology · Chenkai Hu, Yingqian Zhang, Ming Xie et al.
Epigraph Form Reinforcement Learning-based Safe Trajectory Tracking Control for Connected and Autonomous Vehicles
Shared title terminology · Xiaoke Yang, Jin Chen, Yafei Wang et al.
Efficient VLA Reinforcement Learning via Subchunk Rollouts in Latent World Models
Shared title terminology · Nan Tang, Han-Tao Zhang, Jing-Cheng Pang et al.