Introduction
Bayesian Optimization (BO) is a powerful technique for sample-efficient black-box optimization. However, standard BO treats functions as opaque "black boxes," looking only at inputs and final outputs. Many real-world problems are actually "composite": to get a final reward $f(x)$, an intermediate result $h(x)$ is first computed, such that $f(x) = g(h(x))$.
If this intermediate output $h(x)$ is observable, it provides valuable information. For instance, in drug discovery, $h(x)$ might represent a molecular property, while $g$ represents final clinical efficacy. While previous "grey-box" BO methods exploit this structure for massive speedups, they break down when $h(x)$ is high-dimensional—such as an image generated by an AI or a robot's full trajectory. Modeling thousands of correlated output dimensions with standard Gaussian Processes (GPs) is computationally intractable.
To solve this, researchers introduce JoCo (Joint Composite Latent Space Bayesian Optimization), a framework that adaptively compresses massive data spaces into low-dimensional latent representations, enabling sample-efficient optimization in domains where standard BO typically fails.
The JoCo Architecture
JoCo tackles the curse of dimensionality by jointly training neural network encoders and probabilistic models. Its architecture consists of four interconnected components:
- Input Encoder ($E_X$): A neural network compressing high-dimensional inputs into a latent space.
- Outcome Encoder ($E_Y$): A neural network compressing high-dimensional intermediate outputs (e.g., images) into a latent space.
- Outcome Probabilistic Model ($\hat{h}$): A multi-output GP predicting the latent intermediate outcome from the latent input.
- Reward Probabilistic Model ($\hat{g}$): A GP predicting the final reward from the latent intermediate outcome.
The Secret Sauce: Joint Training. Unlike previous methods relying on pre-trained, static autoencoders, JoCo trains all four components simultaneously during the optimization loop. The final reward $f(x)$ acts as a supervisor for the encoders. This ensures the latent space doesn't just summarize the data, but specifically preserves the features most relevant to maximizing the objective, effectively ignoring irrelevant background noise.
Experiments and Key Results
The authors evaluated JoCo across nine diverse, high-dimensional tasks, including synthetic benchmarks (Rosenbrock, Langermann), engineering/physics problems (environmental modeling, Rover trajectory, PDE optimization), and Generative AI adversarial attacks (tricking LLMs into generating toxic text or text-to-image models into generating specific objects without using their names).
- State-of-the-Art Performance: JoCo consistently outperformed strong baselines, including TuRBO (a leading high-D BO method), Deep Kernel Learning (DKL), and CMA-ES across all tasks.
- Breaking the Curse of Dimensionality: Standard Compositional BO requires a GP for every single output dimension. JoCo bypasses this by mapping up to 450,000 dimensions (in image tasks) into a tiny latent vector (e.g., size 32).
- Qualitative Success in GenAI: In image generation tasks, JoCo successfully found clever adversarial prompts. For example, to generate an aircraft without using the word "aircraft," it combined tokens like "lancaster" and "wwii" to achieve the goal.
Limitations and Future Work
While JoCo is significantly faster than modeling thousands of GP outputs, it still requires training neural networks within the BO loop, introducing more computational overhead than vanilla BO. Additionally, the choice of encoder architecture remains a manual design step. Future work may explore more complex network structures where functions are compositions of many sub-functions, and apply JoCo to even larger-scale foundational models.
Summary updated