NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lifelong bandit optimization: no prior and no regret

Felix Schur, Parnian Kassraie, Jonas Rothfuss, Andreas Krause

Abstract

Machine learning algorithms are often repeatedly applied to problems with similar structure over and over again. We focus on solving a sequence of bandit optimization tasks and develop LIBO, an algorithm which adapts to the environment by learning from past experience and becomes more sample-efficient in the process. We assume a kernelized structure where the kernel is unknown but shared across all tasks. LIBO sequentially meta-learns a kernel that approximates the true kernel and solves the incoming tasks with the latest kernel estimate. Our algorithm can be paired with any kernelized or linear bandit algorithm and guarantees oracle optimal performance, meaning that as more tasks are solved, the regret of LIBO on each task converges to the regret of the bandit algorithm with oracle knowledge of the true kernel. Naturally, if paired with a sublinear bandit algorithm, LIBO yields a sublinear lifelong regret. We also show that direct access to the data from each task is not necessary for attaining sublinear regret. We propose F-LIBO, which solves the lifelong problem in a federated manner.

Introduction

Bayesian Optimization (BO) is a cornerstone of black-box optimization, widely used for tasks such as hyperparameter tuning. However, its efficacy is heavily dependent on the choice of a kernel function that describes the similarity between points in the search space. A poorly chosen kernel—either too simple or overly complex—can lead to sub-optimal results or slow convergence.

In many practical applications, we encounter a sequence of related tasks where some underlying structure is shared, yet the "true" kernel remains unknown. This paper introduces the Lifelong Bandit Optimizer (LIBO), an algorithm designed to learn this shared structure on the fly, improving its sample efficiency with every new task without requiring a pre-defined prior or known kernel.

The LIBO Framework

LIBO employs a two-layered architecture to achieve lifelong learning. At its core is META-KGL (Meta Kernelized Group Lasso), which assumes the true kernel is a sparse linear combination of a large library of candidate kernels. By utilizing a Group Lasso objective, META-KGL efficiently identifies the relevant kernels, with a computational cost that scales only logarithmically with the number of candidates.

The LIBO framework: META-KGL learns the kernel from past tasks, which is then used by BASEBO for the current task.

The LIBO wrapper manages the sequence of tasks by alternating between exploration and optimization. For each task, it performs "forced exploration" to gather diverse data, which is crucial for kernel recovery. It then optimizes the current task using a standard bandit algorithm (e.g., GP-UCB) equipped with the latest kernel estimate. Finally, the collected data is used to refine the kernel estimate for future tasks. The authors also present F-LIBO, a federated variant that preserves data privacy by sharing only kernel indices rather than raw data.

Experimental Results

The performance of LIBO was evaluated on both synthetic environments and real-world AutoML data. In synthetic tests, where rewards were generated from sparse combinations of cosine basis functions, LIBO demonstrated rapid convergence to oracle performance. In the AutoML scenario, which involved tuning hyperparameters for the GLMNET algorithm across 38 OpenML classification datasets, LIBO significantly outperformed a naive baseline that used a fixed, non-sparse kernel.

Performance of LIBO and F-LIBO compared to Naive and Oracle baselines across synthetic and AutoML tasks.

As shown in the results, LIBO's single-task regret decreases as more tasks are processed, eventually matching the performance of the oracle which possesses perfect knowledge of the kernel. This empirical success validates the theoretical guarantee of sublinear lifelong regret, demonstrating that the agent "pays" a small upfront cost to gain massive efficiency in the long run.

Conclusion

LIBO provides a robust framework for lifelong bandit optimization by meta-learning the underlying kernel structure. Its ability to achieve oracle optimality without an initial prior makes it highly applicable to repeated optimization problems. While the current approach assumes a sparse combination of pre-defined kernels, future work may explore the use of deep neural networks for automated feature extraction. Additionally, further research into the formal privacy costs of the federated F-LIBO variant remains a promising direction.

Summary updated

BibTeX
@inproceedings{schur2023lifelong,
  author = {Felix Schur and Parnian Kassraie and Jonas Rothfuss and Andreas Krause},
  title = {{Lifelong bandit optimization: no prior and no regret}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=7khfOzPidk},
}
Figure