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

Bayesian Optimization of Function Networks

Raul Astudillo, Peter I. Frazier

Standard Bayesian Optimization (BO) treats complex systems as "black boxes," looking only at the final result. In many high-stakes fields—like vaccine manufacturing, robotics, or epidemic modeling—evaluating a design is slow and expensive. Usually, these processes are a chain of events: Step A feeds into Step B, which feeds into Step C.

Traditional BO ignores this internal structure. It treats the entire chain as a single function and only records the final output. This is wasteful because it throws away valuable "intermediate" data. If a vaccine batch has a low final yield, standard BO doesn't know if the failure happened during the initial cell culture or the final purification. Consequently, it takes many more trials to figure out which parameters actually matter.

This paper introduces EI-FN (Expected Improvement for Function Networks), a "grey-box" approach that peers inside the box by modeling systems as networks of functions. By leveraging data from intermediate steps, EI-FN achieves significantly higher query efficiency, finding optimal solutions much faster than traditional methods.

Methodology

The authors propose modeling the objective as a Directed Acyclic Graph (DAG) of functions, allowing the algorithm to observe the outputs of intermediate steps.

Directed Acyclic Graph of Functions
  1. Statistical Model: Instead of one Gaussian Process (GP) for the whole system, they fit a separate GP to every node (function) in the network. This allows the model to recursively propagate uncertainty through the layers.
  2. Acquisition Function (EI-FN): They adapt the classic "Expected Improvement" (EI) metric to this network structure. Because the composition of multiple GPs results in a non-Gaussian posterior, they cannot calculate improvement with a simple closed-form formula.
  3. Optimization via SAA: To maximize this new acquisition function, they use Sample Average Approximation (SAA). By using the "reparameterization trick" (common in deep learning), they turn the stochastic optimization problem into a deterministic one that can be solved efficiently using gradient-based methods like L-BFGS-B.
  4. Theoretical Consistency: The authors prove that EI-FN is asymptotically consistent, meaning it is guaranteed to find the global optimum eventually. Interestingly, they show it can do this without needing to sample the entire domain densely, as it can "rule out" suboptimal regions based on the network logic.

Experiments and Key Results

The researchers evaluated EI-FN across a diverse set of benchmarks, including synthetic network-based functions (Alpine2, Rosenbrock, Ackley, Drop-Wave) and real-world simulations (Manufacturing Line, Fetch-and-Reach robotics, Epidemic Calibration, and COVID-19 Testing).

Performance across various benchmarks

Key Insights

  • The Power of "Grey-Box" Thinking: By observing intermediate nodes, the algorithm can instantly reduce the "effective dimensionality" of the problem. If the first stage of a process fails, the algorithm knows it doesn't need to worry about the parameters of subsequent stages.
  • Structural Credit Assignment: EI-FN performs a form of credit assignment. It learns which specific function in the network is the bottleneck for performance, allowing it to focus its "search budget" on the most critical parameters.
  • Efficiency in High Dimensions: The benefit of this approach is most pronounced when the total number of input variables is high, but each individual step in the network only depends on a few of them.

Performance Highlights

  • Massive Speedups: In the Rosenbrock and Epidemic Calibration tasks, EI-FN outperformed standard BO (and the more sophisticated Knowledge Gradient) by several orders of magnitude.
  • Better Solutions: In the Drop-Wave and Manufacturing problems, EI-FN found solutions that were approximately 5% better than those found by standard methods within the same evaluation budget.
  • Robustness: The method consistently outperformed "Random" and "Standard EI" across all tested scenarios, proving that leveraging network structure is almost always beneficial if that structure is known.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Computational Overhead: Modeling every node with a GP and using SAA is more computationally intensive than standard BO. While this is a non-issue when the functions themselves take minutes or hours to run, it might be overkill for very fast-to-evaluate functions.
  • Scaling to Large Networks: The experiments focused on networks with up to 9 nodes. The authors note that the current implementation might struggle to scale to hundreds of nodes without further optimization.
  • Convergence Rates: While the paper proves the method will find the optimum (consistency), it does not yet provide a theoretical "rate" of how fast that happens compared to standard BO. This remains an open area for theoretical research.

Summary updated

BibTeX
@inproceedings{astudillo2021bayesian,
  author = {Raul Astudillo and Peter I. Frazier},
  title = {{Bayesian Optimization of Function Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure