The Queue Method: Handling Delay, Heuristics, Prior Data, and Evaluation in Bandits

Travis Mandel, Yun-En Liu, Emma Brunskill, Zoran Popovic

Abstract

Real-world multi-armed bandit (MAB) applications often face challenges such as delayed feedback, the need to incorporate unproven heuristics, and the presence of biased prior data. We present the "Queue Method," a unified framework that decouples the sampling process from the learning algorithm using per-arm FIFO queues. This framework enables the Stochastic Delayed Bandits (SDB) algorithm, which integrates theoretical safety with heuristic-driven exploration. Empirical results on synthetic and real-world educational datasets demonstrate that SDB achieves state-of-the-art performance in delayed settings and exhibits remarkable robustness to adversarial prior data.

Introduction

Standard Multi-Armed Bandit theory usually assumes a tight "pull-and-see" loop: an agent selects an arm, receives immediate feedback, and updates its strategy. However, real-world systems like educational games or large-scale web services rarely operate this way. Practitioners typically face four major gaps:

  1. Delay: Feedback often arrives in batches or after significant time lags.
  2. Heuristics vs. Theory: There is a tension between using intuitive heuristics that perform well in the short term and theoretically sound algorithms that are often too cautious.
  3. Prior Data: Existing datasets are often biased by the poor or adversarial policies used to collect them.
  4. Evaluation: Online testing is expensive, and traditional offline evaluation (rejection sampling) is notoriously data-inefficient.

The Queue Method Framework

The core innovation of this work is the Queue Method. Instead of a bandit algorithm interacting directly with the environment, it interacts with a set of FIFO (First-In-First-Out) queues—one for each arm. This decoupling allows the environment to act as a producer of rewards while the algorithm acts as a consumer.

The SDB Meta-Algorithm

The Stochastic Delayed Bandits (SDB) algorithm takes a BASE algorithm (with strong theoretical guarantees, like Thompson Sampling or UCB) and a HEURISTIC (a potentially unproven but aggressive strategy). SDB attempts to follow the heuristic's suggested distribution while monitoring queue lengths. If a queue for a specific arm exceeds an estimate of the maximum delay, SDB pauses sampling for that arm to allow the BASE algorithm to "catch up." This ensures the algorithm never operates on excessively stale data, providing a theoretical safety net for aggressive heuristics.

Data-Efficient Evaluation

For offline evaluation, queues are initialized with pre-collected data. When the algorithm pulls an arm, it simply consumes the next reward from that arm's queue. This method is conditionally unbiased and significantly more efficient than rejection sampling because it does not discard samples where the logged arm differs from the algorithm's choice; it simply buffers them for future use.

Key Results and Insights

Superior Performance in Delayed Settings

In scenarios involving batch updates—common in distributed systems—SDB significantly outperforms previous state-of-the-art methods like QPM-D. By leveraging heuristics for the majority of its initial sampling mass (e.g., SDB-0.01), the algorithm achieves high early rewards without falling into the exploitation traps that plague pure heuristics.

Figure 3: Comparison of SDB and QPM-D using Thompson Sampling. SDB-thom-0.01, which leverages a heuristic, significantly outperforms the state-of-the-art QPM-D in delayed batch settings.

Robustness to Adversarial Priors

A critical advantage of SDB is its resilience to "poisoned" prior data. When seeded with data exclusively from the worst-performing arm, standard batch-Thompson sampling remains biased for extended periods, leading to catastrophic performance drops. In contrast, SDB's queue management allows it to ignore the bad data and recover quickly.

Figure 5: Robustness of SDB to adversarial conditions. While standard batch-Thompson sampling fails catastrophically when seeded with biased prior data in large batches, SDB recovers and maintains positive cumulative reward.

Conclusion

The Queue Method provides a robust bridge between bandit theory and practical implementation. By decoupling sampling from learning, SDB allows practitioners to be aggressive with heuristics while maintaining a rigorous safety net. While currently optimized for context-free bandits, future work aims to extend this high data efficiency to contextual settings and refine parameter sensitivity regarding delay estimates.

Summary updated

BibTeX
@inproceedings{mandel2015queue,
  author = {Travis Mandel and Yun-En Liu and Emma Brunskill and Zoran Popovic},
  title = {{The Queue Method: Handling Delay, Heuristics, Prior Data, and Evaluation in Bandits}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9604},
}
Figure