TL;DR
Bayesian Optimization of Function Networks (BOFN) typically requires evaluating an entire pipeline of functions all at once, which can be prohibitively expensive. This paper introduces p-KGFN, a novel, cost-aware acquisition function that allows for partial evaluations—strategically querying just a single, cheaper node in the network at a time to drastically reduce evaluation costs while finding better global solutions.
What Problem Does This Paper Address?
Traditional Bayesian Optimization (BO) treats objective functions as expensive black boxes. However, many real-world problems possess a known "grey-box" structure—specifically, a network of functions. For example, in manufacturing, final product quality is the result of a pipeline: raw materials go through process A to create an intermediate part, which then goes through process B to create the final product.
Existing BO algorithms for these function networks (BOFN) assume you must evaluate the entire network at every step. But in the real world, you can often evaluate nodes individually. If process A (a cheap computer simulation) costs $1 and process B (a physical lab test) costs $50, it makes no sense to run them in lockstep. You should run process A many times to find the best intermediate candidates before ever paying for process B. Prior to this paper, there was no general-purpose acquisition function capable of valuing the information gained from evaluating just one intermediate node while factoring in these heterogeneous costs.
Methods
The authors propose p-KGFN (Knowledge Gradient for Function Networks with partial evaluations). At each step, the algorithm decides not just what input to test, but which node in the network to evaluate.
To achieve this, p-KGFN calculates the expected improvement in the final node's value divided by the cost of evaluating a specific target node. Because this expectation is mathematically intractable, the authors use two key techniques:
- Sample Average Approximation (SAA) & Fantasy Samples: They use the "reparameterization trick" to simulate possible outcomes (fantasy samples) of evaluating a node. They then update their Gaussian Process (GP) models to see how much that hypothetical data would improve the final outcome.
- Optimization-via-Discretization: Optimizing Knowledge Gradient (KG) functions is notoriously slow. Instead of using standard "one-shot" optimization (which gets bogged down in high dimensions), the authors speed up the math by maximizing the inner problem over a smartly chosen discrete set of candidate points generated via Thompson sampling and local search.
Datasets
The authors evaluated their method on a mix of synthetic and real-world function networks:
- Ackley6D: A synthetic 2-stage sequential network where the first node is a 6D Ackley function.
- Manu-GP: A synthetic multi-process manufacturing network where two independent processes combine into a final product.
- FreeSolv (Molecular Design): A real-world dataset predicting hydration free energies of small molecules. The network maps a 3D molecular representation $\rightarrow$ calculated free energy $\rightarrow$ experimental free energy.
- Pharma (Pharmaceutical Product Development): A real-world task optimizing orally disintegrating tablets based on two intermediate properties: disintegration time and tensile strength.
Key Insights and Ideas
- Smart Budgeting Emerges Naturally: By normalizing the expected information gain by the cost of the node, p-KGFN naturally discovers a highly efficient exploration strategy. It heavily samples cheap, upstream nodes to build an accurate surrogate model of the early stages, and only queries the expensive, downstream nodes when it is highly confident the result will be good.
- Cost Asymmetry is the Catalyst: If all nodes in a pipeline cost the same, partial evaluation doesn't offer much benefit over full evaluation. The true power of p-KGFN unlocks when there is a high cost asymmetry (e.g., a cheap simulation step followed by an expensive physical test).
- Discretization Beats One-Shot Here: While "one-shot" optimization is the modern standard for optimizing KG acquisition functions, the authors found that discretizing the inner optimization problem yielded nearly identical acquisition values but cut compute time by up to 67%.
Key Results
- Superior Performance: p-KGFN consistently outperformed standard BO baselines (Random, EI, KG) and full-network BO baselines (EIFN, KGFN, TSFN) across all synthetic and real-world tasks.
- Massive Efficiency Gains: In cost sensitivity tests on the Ackley problem (where node 1 costs 1 unit and node 2 costs 49 units), baselines could only afford 14 full evaluations before the budget ran out. Given the same budget, p-KGFN evaluated the cheap node ~65 times and the expensive node ~13 times, resulting in a vastly superior final objective value.
- Robustness: Additional experiments showed p-KGFN maintains its performance edge even when observation noise is introduced to the intermediate nodes.
Limitations and Future Work
- Computational Overhead: The primary limitation of p-KGFN is the wall-clock time required to optimize the acquisition function itself. Because it has to consider all nodes and all previously generated intermediate outputs at every iteration, it is computationally heavy (taking ~246 seconds per step on the Ackley problem, compared to ~52 seconds for EIFN).
- Future Directions: The authors suggest integrating "stock reduction" techniques to prune the number of optimization problems considered at each step, which would help scale the method to larger networks. They also note that extending the approach to multi-step lookahead policies could be an interesting, albeit even more computationally expensive, future direction.
Summary updated