Scalable Bayesian Optimization of Composite Functions for Image-Based Inverse Problems in Materials Characterization

Dasol Yoon, Poompol Buathong, Chia-Hao Lee, Yujia Zhang, David A. Muller, Peter I. FrazierarXiv 2026

TL;DR

The authors introduce Scalable Bayesian Optimization of Composite Functions (SBOCF), a highly sample-efficient method to solve image-based inverse problems in materials characterization. By compressing high-resolution simulation images into low-dimensional patch summaries with mathematical correction terms, SBOCF reduces the number of modeled outputs by over 2,000-fold while preserving pixel-wise accuracy. Within a strict budget of just 50 simulations, it outperforms standard Bayesian optimization by reducing image-matching errors by up to 290×.

What Problem Does This Paper Address?

In electron microscopy, reconstructing the atomic-scale structure of a material requires precise knowledge of two hidden parameters: specimen thickness and crystal mistilt (the slight angular deviation of the electron beam). Misestimating these values blurs atomic images and degrades downstream analysis like ptychography.

To find these parameters, researchers typically solve an inverse problem: they run expensive physics-based simulations to generate Position-Averaged Convergent-Beam Electron Diffraction (PACBED) patterns and try to match them to experimental images. However, conventional grid searches scale poorly as the parameter space grows, and deep learning methods require massive, non-transferable pretraining datasets. Standard Bayesian Optimization (BO) can help by treating the simulator as a black box, but it throws away the rich spatial structure of the images, leading to slow convergence.

Figure 1: Conceptual workflow for PACBED-based specimen-parameter estimation prior to MEP. (a) A 4D-STEM dataset is acquired from a specimen with unknown thickness and mistilt. (b) Conventionally these parameters are estimated jointly with the other reconstruction variables, and (c) uncorrected mistilt degrades the result. (d) In the proposed workflow they are estimated first, by comparing the experimental PACBED pattern with multislice simulations: conventional methods evaluate a predefined grid, whereas BO-based methods adaptively select candidates from previous results. (e) The improved reconstruction expected after correction.

Methods

The authors propose SBOCF, which builds on Bayesian Optimization of Composite Functions (BOCF). While standard BO only models the final scalar error (like Sum of Squared Errors, or SSE), BOCF models the individual components (pixels) of the intermediate image. However, modeling every single pixel doesn't scale; a standard $157 \times 157$ PACBED image contains 24,649 pixels, making standard multi-output Gaussian Processes (GPs) computationally intractable.

SBOCF elegantly solves this scalability bottleneck:

  1. Patch-Level Representation: It partitions the image into a small grid of disjoint patches (e.g., a $3 \times 3$ grid) and sums the pixel intensities within each patch.
  2. Aggregation Error Correction: Because pooling discards spatial details, the authors introduce a novel decomposition consisting of an input-dependent multiplicative correction ($\epsilon(x)$) and an additive residual term ($\delta(x)$) to map the patch summaries perfectly back to the true pixel-wise SSE objective.

This reduces the number of modeled GP outputs from 24,649 to just 11 ($9 \text{ patches} + 2 \text{ correction terms}$), allowing the algorithm to exploit the known composite structure of the objective function efficiently.

Figure 3: Flowchart of the proposed SBOCF algorithm.

Datasets

The method was evaluated on both synthetic and experimental benchmarks for Strontium Titanate ($\text{SrTiO}_3$):

  • Sim380, Sim100, Sim200: Synthetic, noise-free PACBED images simulated at thicknesses of 380 Å, 100 Å, and 200 Å respectively, with varying crystal tilts.
  • Noisy Synthetic Benchmarks: The synthetic datasets corrupted with varying levels of Poisson noise (peak photon counts of 150, 100, and 50) to mimic real microscope conditions.
  • Exp380: A real, experimental $\text{SrTiO}_3$ PACBED pattern obtained from prior literature where the true parameters are unknown but reference estimates exist.

Key Insights and Ideas

  • Exploiting Structure Beats Black-Box Optimization: Treating an image-matching metric as a single black-box number wastes valuable information. Modeling how different regions of an image change relative to parameters provides a much cleaner optimization landscape.
  • Smart Compression Preserves Exact Objectives: You don't need to model every pixel to preserve a pixel-wise objective. By bounding a multiplicative scaling factor and tracking the residual error, low-dimensional patch summaries can accurately guide high-dimensional optimization.

Key Results

With a tight budget of only 50 simulator evaluations, SBOCF demonstrated massive performance leaps:

  • 290× Error Reduction: On the thick-specimen benchmark (Sim380), SBOCF reduced the median final SSE by 290× compared to standard BO with Expected Improvement (EI), and by 377× compared to Knowledge Gradient (KG).
  • High Parameter Accuracy: SBOCF pinned down the ground-truth parameters to within 5 Å for thickness and 0.1 mrad for tilt.
  • Downstream Success: When the parameters estimated by SBOCF were fed into a downstream ptychographic reconstruction, it successfully recovered sharp, distinct atomic columns that were otherwise completely blurred out due to uncorrected mistilt.
  • Zero Pretraining on Real Data: On experimental data (Exp380), SBOCF successfully matched previously reported neural-network-based estimates without requiring any task-specific training libraries.
Figure 4: Results for Sim380 with ground-truth thickness 380 Å and tilts (1.5, −1.5) mrad. Panels show (a) best observed pixel-wise SSE, final estimates of (b) thickness, (c) tilt-X, and (d) tilt-Y, and (e) acquisition runtime versus final SSE. Solid lines in Panel (a) show the mean across 20 trials, and the shaded regions indicate standard error. Dashed lines in Panels (b)–(d) indicate the ground truth.

Limitations and Future Work

While SBOCF is highly robust, the authors note that its performance edge narrows under extreme measurement noise, particularly for very thin samples. This happens because heavy pixel-level noise partially obscures the underlying composite structure that the algorithm exploits.

Moving forward, the authors plan to extend SBOCF to optimize additional microscope parameters simultaneously, such as probe aberrations and atomic-vibration amplitudes, and explore more advanced, problem-adaptive image partitioning patterns beyond simple square grids.

Summary updated

BibTeX
@misc{yoon2026scalable,
  author = {Dasol Yoon and Poompol Buathong and Chia-Hao Lee and Yujia Zhang and David A. Muller and Peter I. Frazier},
  title = {{Scalable Bayesian Optimization of Composite Functions for Image-Based Inverse Problems in Materials Characterization}},
  year = {2026},
  eprint = {2609.02126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.02126},
}
Figure