[Paper Review] A Deep Q-Network for the Beer Game: A Deep Reinforcement Learning algorithm to Solve Inventory Optimization Problems
This paper proposes a shaped-reward deep Q-network (SRDQN) reinforcement learning algorithm to optimize inventory decisions in the beer game, a decentralized, multi-agent supply chain problem. The method learns near-optimal policies without prior knowledge of demand distributions, outperforming base-stock policies when teammates use realistic human-like behavior, and enables rapid transfer learning across agents with 10x faster training.
The beer game is a widely used in-class game that is played in supply chain management classes to demonstrate the bullwhip effect. The game is a decentralized, multi-agent, cooperative problem that can be modeled as a serial supply chain network in which agents cooperatively attempt to minimize the total cost of the network even though each agent can only observe its own local information. Each agent chooses order quantities to replenish its stock. Under some conditions, a base-stock replenishment policy is known to be optimal. However, in a decentralized supply chain in which some agents (stages) may act irrationally (as they do in the beer game), there is no known optimal policy for an agent wishing to act optimally. We propose a machine learning algorithm, based on deep Q-networks, to optimize the replenishment decisions at a given stage. When playing alongside agents who follow a base-stock policy, our algorithm obtains near-optimal order quantities. It performs much better than a base-stock policy when the other agents use a more realistic model of human ordering behavior. Unlike most other algorithms in the literature, our algorithm does not have any limits on the beer game parameter values. Like any deep learning algorithm, training the algorithm can be computationally intensive, but this can be performed ahead of time; the algorithm executes in real time when the game is played. Moreover, we propose a transfer learning approach so that the training performed for one agent and one set of cost coefficients can be adapted quickly for other agents and costs. Our algorithm can be extended to other decentralized multi-agent cooperative games with partially observed information, which is a common type of situation in real-world supply chain problems.
Motivation & Objective
- To address the lack of optimal policies in decentralized supply chains where agents act irrationally or unpredictably.
- To develop a data-driven reinforcement learning approach that learns optimal order quantities without assuming known demand distributions or cost structures.
- To enable efficient transfer learning so trained agents can be rapidly adapted to new agents or settings with different cost coefficients or action spaces.
- To evaluate performance against base-stock policies and human-like ordering behaviors in both simulated and real-world settings.
- To demonstrate the feasibility of applying deep reinforcement learning to complex, real-world supply chain coordination problems.
Proposed method
- The SRDQN algorithm extends deep Q-networks (DQN) with reward shaping to guide learning in the beer game's multi-agent, cooperative environment.
- The algorithm uses a deep neural network to approximate the Q-function, mapping state-action pairs to expected cumulative rewards.
- State representation includes inventory levels, backorders, and order history, with action space defined by order quantities.
- Reward shaping is applied to encourage cost minimization and stabilize training, especially in sparse-reward environments.
- Transfer learning is implemented by initializing the target agent's policy network with a pre-trained model from a source agent, reducing trainable parameters and accelerating convergence.
- The method is trained using experience replay and target networks to improve training stability, with hyperparameters tuned via grid search.
Experimental results
Research questions
- RQ1Can a deep reinforcement learning agent learn near-optimal inventory policies in the beer game when other agents follow base-stock or human-like ordering behaviors?
- RQ2How does the SRDQN algorithm perform compared to a base-stock policy when teammates use irrational or non-optimal ordering strategies?
- RQ3To what extent can transfer learning reduce training time when adapting the agent to new agents or cost structures?
- RQ4How robust is the trained SRDQN agent to changes in cost coefficients, action space, or agent roles?
- RQ5Can the SRDQN agent generalize across different supply chain configurations without retraining from scratch?
Key findings
- When teammates follow a base-stock policy, the SRDQN agent achieves costs within 2.31% of the optimal base-stock to base-stock (BS-BS) policy.
- With teammates using a more realistic human-like ordering model (Strm-BS), the SRDQN agent reduces costs by 11.65% compared to a base-stock policy.
- Transfer learning reduces training time by up to 46.89% compared to training from scratch, with a 12.58% gap from the BS-BS policy even when source and target agents differ in cost coefficients and action space.
- The trained SRDQN agent is robust to changes in holding and shortage cost coefficients, maintaining near-optimal performance across sensitivity analyses.
- The algorithm achieves stable, fast convergence during transfer learning, with low training noise and rapid convergence to near-optimal cost levels.
- The SRDQN agent has been successfully deployed in an online beer game platform, used over 17,000 times by more than 4,000 players, demonstrating real-world applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.