RoMA: Robust Model Adaptation for Offline Model-based Optimization

Sihyun Yu, Sungsoo Ahn, Le Song, Jinwoo Shin

TL;DR

Offline model-based optimization (MBO) aims to discover high-performing designs (like proteins or aircraft parts) from a static dataset, but gradient-based search often gets trapped by "adversarial examples" where the proxy model highly overestimates performance. To solve this, RoMA (Robust Model Adaptation) enforces a local smoothness prior on the proxy model through a combination of robust pre-training and dynamic, test-time model adaptation. This prevents the optimization process from exploiting the model's blind spots, leading to state-of-the-art design generation across multiple domains.

What Problem Does This Paper Address?

Imagine you want to design a new protein with high fluorescence or a robot morphology optimized for speed. Evaluating these designs in the real world requires expensive lab experiments or complex simulations. Model-Based Optimization (MBO) circumvents this by training a cheap "proxy model" (usually a deep neural network) on existing data to approximate the true objective function. We can then use gradient ascent to tweak our inputs and find the optimal design according to the proxy.

In the offline setting, things get tricky. We only have a static dataset and cannot interactively query the true objective function to correct our proxy model. Because deep neural networks are highly non-smooth, gradient ascent inevitably drifts into out-of-distribution regions, finding "adversarial examples"—inputs where the proxy model predicts a massive score, but the ground truth is actually terrible.

The authors address this fundamental brittleness by forcing the proxy model to respect a local smoothness prior, ensuring that small changes in the input don't cause wild, unrealistic swings in predicted performance.

Methods

RoMA tackles the non-smoothness of deep neural networks using a two-stage framework:

Figure 1: Overall illustration of our proposed robust model adaptation (RoMA) framework.
  1. Pre-training with Weight Perturbations (Step 1): Instead of standard training, RoMA trains the proxy model using Gaussian noise on the inputs under worst-case weight perturbations. By using Projected Gradient Descent (PGD) to find and minimize the loss against the worst possible model weights within a small boundary, the model is forced to find a "flat minimum." A flat loss landscape inherently improves the model's ability to generalize to out-of-distribution inputs.
  2. Iterative Proxy Model Adaptation (Step 2): As the solution candidate $x^{(t)}$ is updated via gradient ascent, the model undergoes a novel test-time adaptation. At each optimization step, the model's weights are slightly adjusted to minimize the input gradient norm exactly at the current candidate solution. This dynamically smooths out the model's landscape right where the search is happening, preventing the optimization from exploiting local spikes.

For tasks with discrete inputs (like molecular graphs or protein sequences), RoMA trains a Variational Autoencoder (VAE) first, mapping the discrete tokens into a continuous latent space where gradient-based optimization can safely take place.

Datasets

The authors evaluated RoMA on Design-Bench, a standard benchmark for offline MBO consisting of six diverse tasks:

  • Discrete Domains: Green Fluorescent Protein (GFP) design (biology) and Molecule activity optimization (chemistry).
  • Continuous Domains: Superconductor critical temperature maximization (materials science), and three robotics tasks from OpenAI Gym (HopperController, AntMorphology, and DkittyMorphology).

Key Insights and Ideas

  • The Power of Local Smoothness: Without regularization, gradient ascent exploits the proxy model's jagged landscape, leading to "wrong solutions." Enforcing local smoothness guides the optimization toward genuinely accurate, high-performing regions.
Figure 2: Illustration of the effect of employing local smoothness prior.
  • Weight Flatness $\rightarrow$ Input Robustness: A key insight borrowed from adversarial robustness literature is that forcing flatness in the parameter space during pre-training directly translates to better stability against gradient-based updates in the input space.
  • Test-Time Adaptation as a Resource Allocator: Neural networks have limited expressive power. Instead of trying to make the proxy model perfectly smooth across the entire unobserved input space, RoMA dynamically shifts the model's parameters to ensure smoothness exactly where the current candidate solution resides.

Key Results

RoMA achieved state-of-the-art results on the Design-Bench benchmark, outperforming strong baselines (such as COMs and NEMO):

  • Top Performance: RoMA achieved the highest 100th percentile score in 4 out of 6 tasks (Molecule, Hopper, Ant, and Dkitty) and was the runner-up in the remaining two.
  • Higher Baseline Quality: On average across all tasks, RoMA achieved a normalized 100th percentile score of 1.705, outperforming the next-best baseline (NEMO at 1.687).
  • Reliable Diversity: Crucially, RoMA dramatically improved the 50th percentile scores (average of 1.103 vs. NEMO's 0.960). This means RoMA doesn't just find one lucky outlier; it reliably elevates the quality of the entire batch of generated candidate solutions.

Limitations and Future Work

While RoMA marks a significant step forward for offline MBO, the authors note a few limitations:

  • Synthetic Oracles: Evaluation relies on simulated environments or pre-trained random forests acting as the "ground truth" oracle. Testing RoMA against real-world physical or biological wet-lab experiments remains an open challenge.
  • Model Architecture: The current implementation is evaluated using Multi-Layer Perceptrons (MLPs). Extending this robust adaptation framework to more complex architectures, such as Convolutional Neural Networks (CNNs) for image-based design or Transformers, is left for future work.

Summary updated

BibTeX
@inproceedings{yu2021roma,
  author = {Sihyun Yu and Sungsoo Ahn and Le Song and Jinwoo Shin},
  title = {{RoMA: Robust Model Adaptation for Offline Model-based Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=VH0TRmnqUc},
}
Figure