Docs

References

The research BanditDB is built on, grouped by the part of the system that uses it.

BanditDB implements published methods. It doesn't invent its own. Each entry below is used by the engine, the SDKs, the benchmarks or the BanditDB paper. If you build on BanditDB in research, please cite the original work as well.

Bandit algorithms

The five algorithms a campaign can run.

Used forReference
LinUCBL. Li, W. Chu, J. Langford, R. E. Schapire. A Contextual-Bandit Approach to Personalized News Article Recommendation. WWW 2010. arXiv:1003.0146
LinUCB analysisW. Chu, L. Li, L. Reyzin, R. E. Schapire. Contextual Bandits with Linear Payoff Functions. AISTATS 2011.
UCB principleP. Auer. Using Confidence Bounds for Exploitation-Exploration Trade-offs. JMLR 3:397–422, 2002.
Confidence ellipsoidsY. Abbasi-Yadkori, D. Pál, Cs. Szepesvári. Improved Algorithms for Linear Stochastic Bandits. NeurIPS 2011.
Thompson SamplingW. R. Thompson. On the Likelihood that One Unknown Probability Exceeds Another in View of the Evidence of Two Samples. Biometrika 25(3/4):285–294, 1933.
Linear Thompson SamplingS. Agrawal, N. Goyal. Thompson Sampling for Contextual Bandits with Linear Payoffs. ICML 2013. arXiv:1209.3352
Thompson SamplingO. Chapelle, L. Li. An Empirical Evaluation of Thompson Sampling. NeurIPS 2011.
Thompson SamplingD. Russo, B. Van Roy, A. Kazerouni, I. Osband, Z. Wen. A Tutorial on Thompson Sampling. Foundations and Trends in ML, 2018. arXiv:1707.02038
NeuralLinUCBP. Xu, Z. Wen, H. Zhao, Q. Gu. Neural Contextual Bandits with Deep Representation and Shallow Exploration. ICLR 2022. arXiv:2012.01780
NeuralThompsonSamplingW. Zhang, D. Zhou, L. Li, Q. Gu. Neural Thompson Sampling. ICLR 2021. arXiv:2010.00827
NeuralUCBD. Zhou, L. Li, Q. Gu. Neural Contextual Bandits with UCB-based Exploration. ICML 2020. arXiv:1911.04462
Neural-linearC. Riquelme, G. Tucker, J. Snoek. Deep Bayesian Bandits Showdown. ICLR 2018. arXiv:1802.09127
TextbookT. Lattimore, Cs. Szepesvári. Bandit Algorithms. Cambridge University Press, 2020.

Updates, decay and neural training

How a reward changes the model, how old evidence fades, how the MLP is trained.

Used forReference
O(d²) reward updateJ. Sherman, W. J. Morrison. Adjustment of an Inverse Matrix Corresponding to a Change in One Element of a Given Matrix. Annals of Mathematical Statistics 21(1):124–127, 1950.
Half-life decay (D-LinUCB)Y. Russac, C. Vernade, O. Cappé. Weighted Linear Bandits for Non-Stationary Environments. NeurIPS 2019. arXiv:1909.09146
Non-stationary banditsA. Garivier, E. Moulines. On Upper-Confidence Bound Policies for Switching Bandit Problems. ALT 2011. arXiv:0805.3415
MLP optimiser (AdamW)I. Loshchilov, F. Hutter. Decoupled Weight Decay Regularization. ICLR 2019. arXiv:1711.05101
Anchor to W₀ (L2-SP)X. Li, Y. Grandvalet, F. Davoine. Explicit Inductive Bias for Transfer Learning with Convolutional Networks. ICML 2018. arXiv:1802.01483

Budgets and Lagrangian pacing

Shadow prices, dual descent and feasibility masking behind Budgets & Costs.

Used forReference
Bandits with knapsacksA. Badanidiyuru, R. Kleinberg, A. Slivkins. Bandits with Knapsacks. FOCS 2013; JACM 65(3), 2018. arXiv:1305.2545
Linear contextual BwKS. Agrawal, N. R. Devanur. Linear Contextual Bandits with Knapsacks. NeurIPS 2016. arXiv:1507.06738
Contextual BwKS. Agrawal, N. R. Devanur, L. Li. An Efficient Algorithm for Contextual Bandits with Knapsacks, and an Extension to Concave Objectives. COLT 2016. arXiv:1506.03374
Dual mirror descentS. Balseiro, H. Lu, V. Mirrokni. The Best of Many Worlds: Dual Mirror Descent for Online Allocation Problems. Operations Research 71(3), 2023. arXiv:2011.10124
Online gradient descentM. Zinkevich. Online Convex Programming and Generalized Infinitesimal Gradient Ascent. ICML 2003.
Online convex optimisationE. Hazan. Introduction to Online Convex Optimization. Foundations and Trends in Optimization 2(3–4), 2016.
DualityS. Boyd, L. Vandenberghe. Convex Optimization. Cambridge University Press, 2004.
Max-minJ. Danskin. The Theory of Max-Min, with Applications. SIAM J. Applied Mathematics 14(4), 1966.

Off-policy evaluation and the tournament

SNIPS in the Progressive tournament, and IPS / SNIPS / DR in banditdb.eval and the benchmarks.

Used forReference
IPSD. G. Horvitz, D. J. Thompson. A Generalization of Sampling Without Replacement from a Finite Universe. JASA 47(260):663–685, 1952.
SNIPSA. Swaminathan, T. Joachims. The Self-Normalized Estimator for Counterfactual Learning. NeurIPS 2015.
Doubly RobustM. Dudík, J. Langford, L. Li. Doubly Robust Policy Evaluation and Learning. ICML 2011. arXiv:1103.4601
DR with shrinkage (DRos)Y. Su, M. Dimakopoulou, A. Krishnamurthy, M. Dudík. Doubly Robust Off-Policy Evaluation with Shrinkage. ICML 2020. arXiv:1907.09623
SwitchDRY.-X. Wang, A. Agarwal, M. Dudík. Optimal and Adaptive Off-policy Evaluation in Contextual Bandits. ICML 2017. arXiv:1612.01205
Replay evaluationL. Li, W. Chu, J. Langford, X. Wang. Unbiased Offline Evaluation of Contextual-bandit-based News Article Recommendation Algorithms. WSDM 2011. arXiv:1003.5956
Open Bandit PipelineY. Saito, S. Aihara, M. Matsutani, Y. Narita. Open Bandit Dataset and Pipeline. NeurIPS Datasets & Benchmarks 2021. arXiv:2008.07146
Counterfactual reasoningL. Bottou et al. Counterfactual Reasoning and Learning Systems: The Example of Computational Advertising. JMLR 14, 2013. arXiv:1209.2355
Adaptive-data CIsV. Hadad, D. A. Hirshberg, R. Zhan, S. Wager, S. Athey. Confidence Intervals for Policy Evaluation in Adaptive Experiments. PNAS 118(15), 2021. arXiv:1911.02768
Adaptive weightingR. Zhan, V. Hadad, D. A. Hirshberg, S. Athey. Off-Policy Evaluation via Adaptive Weighting with Data from Contextual Bandits. KDD 2021. arXiv:2106.02029

Diagnostics

The statistics behind /report and /diagnostics.

Used forReference
Convergence CIsE. B. Wilson. Probable Inference, the Law of Succession, and Statistical Inference. JASA 22(158):209–212, 1927. (Wilson score interval behind converged.)
Selection entropyC. E. Shannon. A Mathematical Theory of Communication. Bell System Technical Journal 27, 1948. (Normalised entropy behind selection_entropy.)

Causal analysis

Estimating per-arm treatment effects from exported decisions, and checking overlap.

Used forReference
Potential outcomesD. B. Rubin. Estimating Causal Effects of Treatments in Randomized and Nonrandomized Studies. J. Educational Psychology 66(5), 1974.
Propensity scoresP. R. Rosenbaum, D. B. Rubin. The Central Role of the Propensity Score in Observational Studies for Causal Effects. Biometrika 70(1), 1983.
TextbookG. W. Imbens, D. B. Rubin. Causal Inference for Statistics, Social, and Biomedical Sciences. Cambridge University Press, 2015.
Double MLV. Chernozhukov et al. Double/Debiased Machine Learning for Treatment and Structural Parameters. Econometrics Journal 21(1), 2018. arXiv:1608.00060
Causal forestsS. Wager, S. Athey. Estimation and Inference of Heterogeneous Treatment Effects using Random Forests. JASA 113(523), 2018. arXiv:1510.04342
Generalized random forestsS. Athey, J. Tibshirani, S. Wager. Generalized Random Forests. Annals of Statistics 47(2), 2019. arXiv:1610.01271
Policy learningS. Athey, S. Wager. Policy Learning with Observational Data. Econometrica 89(1), 2021. arXiv:1702.02896
Meta-learnersS. R. Künzel, J. S. Sekhon, P. J. Bickel, B. Yu. Metalearners for Estimating Heterogeneous Treatment Effects using Machine Learning. PNAS 116(10), 2019. arXiv:1706.03461
Limited overlapR. K. Crump, V. J. Hotz, G. W. Imbens, O. A. Mitnik. Dealing with Limited Overlap in Estimation of Average Treatment Effects. Biometrika 96(1), 2009.
EconMLK. Battocchi et al. EconML: A Python Package for ML-Based Heterogeneous Treatment Effects Estimation. Microsoft Research, 2019.

Systems

Durability design, and the systems BanditDB is compared with.

Used forReference
Write-ahead loggingC. Mohan, D. Haderle, B. Lindsay, H. Pirahesh, P. Schwarz. ARIES: A Transaction Recovery Method Supporting Fine-Granularity Locking and Partial Rollbacks Using Write-Ahead Logging. ACM TODS 17(1), 1992.
Main-memory databasesD. J. DeWitt et al. Implementation Techniques for Main Memory Database Systems. SIGMOD 1984.
Decision serviceA. Agarwal et al. Making Contextual Decisions with Low Technical Debt. 2016. arXiv:1606.03966
Bandit bake-offA. Bietti, A. Agarwal, J. Langford. A Contextual Bandit Bake-off. JMLR 22, 2021. arXiv:1802.04064
Prediction servingD. Crankshaw et al. Clipper: A Low-Latency Online Prediction Serving System. NSDI 2017. arXiv:1612.03079
Vector search (HNSW)Y. A. Malkov, D. A. Yashunin. Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World Graphs. IEEE TPAMI 42(4), 2020. arXiv:1603.09320
Export formatApache Software Foundation. Apache Parquet File Format Specification.

Benchmark datasets

Used in Benchmarks.

Used forReference
Yahoo! R6AYahoo! Research. Yahoo! Front Page Today Module User Click Log Dataset, version 1.0. Yahoo! Webscope, 2009.
MovieLens-100KF. M. Harper, J. A. Konstan. The MovieLens Datasets: History and Context. ACM TiiS 5(4), 2015.
UCI (mushroom, magic, shuttle, adult)D. Dua, C. Graff. UCI Machine Learning Repository. University of California, Irvine, 2019.