Skip to main content
QUICK REVIEW

[Paper Review] Limbo: A Fast and Flexible Library for Bayesian Optimization

Antoine Cully, Konstantinos Chatzilygeroudis|arXiv (Cornell University)|Nov 22, 2016
Gaussian Processes and Bayesian InferenceComputer Science9 references15 citations
TL;DR

Limbo is an open-source C++11 library for Bayesian optimization that combines high performance with extreme flexibility through a template-based, policy-driven design. Benchmarks show it is 1.47–2.54 times faster than BayesOpt while achieving comparable accuracy, making it ideal for real-time applications like robot learning and embedded systems.

ABSTRACT

Limbo is an open-source C++11 library for Bayesian optimization which is designed to be both highly flexible and very fast. It can be used to optimize functions for which the gradient is unknown, evaluations are expensive, and runtime cost matters (e.g., on embedded systems or robots). Benchmarks on standard functions show that Limbo is about 2 times faster than BayesOpt (another C++ library) for a similar accuracy.

Motivation & Objective

  • To address the lack of open-source Bayesian optimization libraries that combine high performance with high configurability for research and deployment.
  • To enable rapid prototyping of novel Bayesian optimization variants by allowing easy substitution of components like kernels, acquisition functions, and optimizers.
  • To support real-time and resource-constrained applications such as online robot adaptation and embedded systems where runtime efficiency is critical.
  • To provide a modern, standards-compliant C++ implementation that avoids performance penalties from virtual function calls.
  • To facilitate reproducible research and community-driven development through comprehensive documentation, unit testing, and a public GitHub repository.

Proposed method

  • Leverages a template-based, policy-based design to enable compile-time component substitution without runtime overhead from virtual functions.
  • Uses functors to define the objective function, with static type traits (dim_in, dim_out) to specify input and output dimensions.
  • Supports multi-objective optimization via customizable output types in the functor interface.
  • Employs Gaussian processes with configurable kernels (e.g., Matern-5/2, Squared Exponential) and mean functions for modeling the objective function.
  • Integrates multiple internal optimizers (via NLOpt wrapper) for solving acquisition function and hyperparameter optimization problems.
  • Supports parallel restarts and chained optimization strategies to escape local optima while minimizing computational cost.

Experimental results

Research questions

  • RQ1Can a C++11 library be designed to offer both high performance and extreme configurability for Bayesian optimization?
  • RQ2How does the performance of a policy-based, template-driven implementation compare to existing object-oriented libraries in terms of speed and accuracy?
  • RQ3To what extent can such a library be used in real-time, embedded, or interactive applications with strict runtime constraints?
  • RQ4Can the library efficiently support rapid experimentation with novel components like new acquisition functions or kernel functions?
  • RQ5How does the performance of Limbo compare to state-of-the-art libraries like BayesOpt across standard benchmark functions?

Key findings

  • Limbo achieves 1.47–1.76 times faster convergence than BayesOpt when hyper-parameters are not optimized, for the same level of accuracy (error < 2.10⁻³).
  • When hyper-parameters are optimized, Limbo is 2.05–2.54 times faster than BayesOpt on the same benchmark functions.
  • The performance gain is attributed to the efficient template-based design, which eliminates runtime costs associated with virtual function calls.
  • Limbo supports seamless integration of new components such as custom kernels, acquisition functions, and optimizers through simple template instantiation.
  • The library has been successfully deployed in real-world robotics applications, including online gait adaptation in legged robots after mechanical damage, within 10–15 trials (2 minutes).
  • The library is distributed under a GPL-compatible CeCiLL license, with full documentation, API reference, and continuous integration support on GitHub.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.