RoMA: Robust Model Adaptation for Offline Model-based Optimization

Sihyun Yu, Sungsoo Ahn, Le Song, Jinwoo Shin

In the world of engineering and drug discovery, "designing" something often means finding an input—like a protein sequence or a robot's joint configuration—that maximizes a specific property, like fluorescence or walking speed. Usually, evaluating these properties is expensive or dangerous, so we use "Model-Based Optimization" (MBO), where a neural network acts as a cheap proxy for the real world.

But there’s a catch: when we use gradients to "climb" this proxy model to find the best design, we often end up in regions where the model "hallucinates" high scores.

The effect of a local smoothness prior on finding accurate solutions.

This paper from researchers at KAIST and MBZUAI, titled RoMA: Robust Model Adaptation, introduces a clever two-step strategy to keep our optimization on the right track by enforcing a "local smoothness prior."

What Problem Does This Paper Address?

The core challenge in Offline MBO is that we only have a static dataset of previous experiments. We cannot "query" the real objective function during optimization.

When we train a Deep Neural Network (DNN) on this static data, it becomes our proxy. To find the best design, we perform gradient ascent on the input. However, DNNs are notoriously non-smooth. As the optimizer pushes the input away from the known training data (a "domain shift"), it often finds "adversarial examples"—points that the model thinks are amazing but are actually poor in reality. Existing methods try to be "conservative" by penalizing high scores in unknown regions, but these can be difficult to tune and often limit the search too much.

Methods

RoMA (Robust Model Adaptation) introduces a two-stage framework to ensure the proxy model remains "well-behaved" even in uncharted territory.

The two-step RoMA framework: robust pre-training and iterative model adaptation.
  1. Robust Pre-training (Step 1): Instead of standard training, RoMA uses Gaussian smoothing on the inputs and worst-case weight perturbations. By forcing the model to remain accurate even when its own weights are slightly tweaked, the authors induce a "flat loss landscape." This makes the model inherently more robust and less prone to erratic spikes in predicted value.

  2. Iterative Model Adaptation (Step 2): This is the most novel part of the paper. During the optimization phase, as we move our candidate solution, RoMA doesn't just trust the pre-trained model. At each step, it adapts the model weights to be locally smooth at the current candidate point. It tweaks the weights to minimize the norm of the input gradient.

    Essentially, before the optimizer takes a step to improve the design, it first "calms the model down" around that design, ensuring the model isn't making wild predictions based on high-frequency noise. Only after this adaptation does the optimizer update the design.

Key Insights and Ideas

  • Smoothness as a First-Class Citizen: The authors argue that brittleness—not just lack of data—is the primary enemy. By explicitly regularizing the gradient norm during the search process, they directly address the "non-smooth" nature of DNNs.
  • Weight Flatness = Input Robustness: The paper leverages the insight that a model which is stable under weight perturbations (flat landscape) tends to generalize better to out-of-distribution inputs.
  • Focusing Expressive Power: Test-time adaptation allows the model to use its limited capacity to be "accurate enough" specifically where the optimizer is currently looking, rather than trying to be perfectly smooth everywhere at once.

Datasets and Key Results

The authors evaluated RoMA using Design-Bench, a comprehensive benchmark for offline MBO covering diverse domains like biology (GFP), chemistry (Molecule), materials science (Superconductor), and robotics (Hopper, Ant, Dkitty).

RoMA achieved impressive results across the board:

  • State-of-the-Art (SOTA): It outperformed all baselines in 4 out of 6 tasks and was the runner-up in the remaining two.
  • Reliability: On the 100th percentile score (the single best solution found), RoMA achieved a normalized score of 1.705, significantly higher than the next best method.
  • Diversity and Quality: Perhaps most impressively, RoMA showed massive gains in 50th percentile scores. This means it doesn't just find one "lucky" good solution; the entire population of solutions it proposes is of much higher quality than those of competing methods.

Limitations and Future Work

  • Synthetic Ground Truth: Like most MBO research, the "true" objective functions used for evaluation are themselves simulators or other models. Real-world biological or chemical systems are far more complex.
  • Architectural Scope: The experiments focused on Multi-Layer Perceptrons (MLPs). Extending RoMA to more complex architectures like Convolutional Neural Networks or Transformers is a suggested next step.
  • Computational Cost: Adapting the model weights at every single step of the optimization adds a computational overhead compared to simple gradient ascent, though the authors found it manageable.

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