Abstract
A survey is performed of various Multi-Armed Bandit (MAB) strategies in order to examine their performance in circumstances exhibiting non-stationary stochastic reward functions in conjunction with delayed feedback. We run several MAB simulations to simulate an online eCommerce platform for grocery pick up, optimizing for product availability. In this work, we evaluate several popular MAB strategies, such as $\epsilon$-greedy, UCB1, and Thompson Sampling. We compare the respective performances of each MAB strategy in the context of regret minimization. We run the analysis in the scenario where the reward function is non-stationary. Furthermore, the process experiences delayed feedback, where the reward function is not immediately responsive to the arm played. We devise a new adaptive technique (AG1) tailored for non-stationary reward functions in the delayed feedback scenario. The results of the simulation show superior performance in the context of regret minimization compared to traditional MAB strategies.
Introduction
The Multi-Armed Bandit (MAB) problem is a classic framework for decision-making under uncertainty, where an agent must balance the exploration of new options with the exploitation of known high-reward actions. While theoretical models often assume a stationary environment with immediate feedback, real-world applications—particularly in eCommerce—present significant challenges.
In the context of Loblaw Digital’s "Click-and-Collect" grocery service, the "reward" is defined by the fill-rate: the probability that an item is available when a picker attempts to fulfill an order. This environment is inherently non-stationary due to fluctuating inventory levels and shifting consumer demand. Moreover, feedback is delayed; the success of a forecasting "arm" is only confirmed once an order is fully assembled, long after the initial decision was made. This paper evaluates standard MAB strategies against these constraints and introduces Adaptive Greedy (AG1), a strategy designed to handle both non-stationarity and delayed feedback.
Methodology
We evaluate four distinct strategies to determine their efficacy in minimizing cumulative regret:
- $\epsilon$-Greedy: A foundational strategy that selects the best-performing arm with probability $1-\epsilon$ and explores a random arm with probability $\epsilon$.
- UCB1 (Upper Confidence Bound): An optimistic approach that selects arms based on their average reward plus a confidence interval "bonus." This bonus encourages the exploration of arms with high uncertainty.
- Thompson Sampling: A Bayesian approach that maintains a probability distribution for each arm's reward and selects arms by sampling from these distributions.
- Adaptive Greedy (AG1): Our proposed strategy modifies the $\epsilon$-greedy framework by implementing a renewal mechanism. Unlike traditional methods that aggregate all historical data, AG1 utilizes a sliding window of recent observations ($\Omega_r$). This "short-term memory" allows the agent to discard stale data that no longer reflects the current state of a non-stationary environment.
Experimental Setup
To validate these strategies, we developed a simulation environment modeled after Loblaw’s eCommerce operations. The simulation parameters included:
- Scale: $N=100$ stores and $K=10$ available assortment algorithms (arms).
- Feedback Delay: A delay factor of $\gamma=50$, meaning 50 items must be processed before a reward signal is received.
- Reward Dynamics: In non-stationary scenarios, reward probabilities were modeled using sinusoidal waves to simulate periodic shifts in product availability.
The primary metric for evaluation was Cumulative Regret, representing the lost potential reward compared to an oracle that always chooses the optimal arm.
Results and Discussion
The simulations revealed distinct performance gaps between traditional algorithms and the adaptive approach.
Stationary vs. Non-Stationary Performance
In a stationary environment, Thompson Sampling proved most effective with a regret of 0.7262, followed by $\epsilon$-greedy (0.8928). However, UCB1 performed poorly (8.7477), largely due to the delayed feedback. In UCB1, the delay causes the confidence bounds to remain artificially high for sub-optimal arms, leading to excessive and costly exploration.
In non-stationary environments, the advantage of AG1 became clear. For a 2-arm scenario, AG1 achieved a cumulative regret of 2.784, significantly lower than the 6.881 recorded by standard $\epsilon$-greedy. In a more complex 10-arm scenario, AG1 maintained a regret of 2.558, outperforming Thompson Sampling with restarts (6.241) and $\epsilon$-greedy with restarts (7.121).
The Efficacy of the Sliding Window
A key insight from this study is that AG1’s sliding window approach is superior to "hard restarts." While periodic restarts can help an algorithm adapt to change, they lose all accumulated knowledge instantly. AG1’s gradual "forgetting" mechanism provides a more stable transition, allowing the model to maintain an accurate estimate of the current best arm even as the underlying distribution shifts.
Conclusion
This research demonstrates that traditional MAB strategies like UCB1 are ill-suited for environments characterized by delayed feedback and non-stationarity. The proposed Adaptive Greedy (AG1) algorithm offers a robust alternative by utilizing a sliding window of recent history to inform decisions. By achieving a ~60% reduction in regret compared to standard adaptive strategies, AG1 proves to be a highly effective tool for dynamic industrial applications like eCommerce inventory management. Future research will focus on integrating sliding window logic into Thompson Sampling and validating these findings through live production A/B testing.
Summary updated