Summary
This paper challenges the standard practice of using Mean Squared Error (MSE) to train surrogate models for offline model-based optimization (MBO). By shifting the objective from precise value prediction to Learning to Rank (LTR), the authors introduce a framework called RaM that significantly improves the selection of high-performing designs across diverse scientific and engineering tasks.
The Problem with MSE in Offline MBO
Offline Model-Based Optimization (MBO) is the task of finding a "design" (like a protein sequence or a robot's leg configuration) that maximizes a specific property, using only a fixed, pre-collected dataset. Because new experiments cannot be performed online, researchers typically train a "surrogate model" on the dataset to mimic the real-world objective function. An optimizer (like gradient ascent) is then used to find the best design according to that model.
The "Achilles' heel" of this approach is the out-of-distribution (OOD) error. Optimizers often get tricked by the surrogate model into regions where it has no data, leading to wildly over-optimistic score predictions for mediocre designs. Traditionally, researchers have tried to fix this with complex regularization.
This paper identifies a more fundamental flaw: MSE is the wrong metric. In MBO, we do not strictly care if the model predicts a score of 95 versus 100 accurately; we only care that it correctly identifies that design A is better than design B.
As shown above, a regression model (a) might fail in OOD regions by incorrectly scoring a suboptimal design higher than an optimal one. Conversely, an order-preserving model (b) succeeds as long as the relative ranking remains correct.
The RaM Framework
To address this, the authors propose RaM (Ranking-based Model), a framework that replaces standard regression with ranking techniques. It consists of three key components:
- Data Augmentation: Since LTR requires lists or pairs of items to compare, and MBO datasets consist of individual points, RaM randomly samples groups of designs from the offline dataset to create synthetic "ranking lists" for training.
- LTR Loss Learning: Instead of minimizing MSE, RaM uses specialized ranking losses like RankCosine (which measures cosine similarity between predicted and true rankings) or ListNet (which minimizes cross-entropy between ranking distributions).
- Output Adaptation: Ranking models can output values on arbitrary scales. To make them compatible with standard gradient-ascent optimizers, RaM applies a z-score normalization based on the model's predictions over the training set.
To evaluate these models better, the authors also introduce a new metric: AUPCC (Area Under the Precision-Coverage Curve), which specifically measures how well a model identifies the top-$k$ designs across different values of $k$.
Key Insights and Results
The authors evaluated RaM on the Design-Bench benchmark, which includes continuous tasks (e.g., Ant Morphology, Superconductor) and discrete tasks (e.g., TF-Bind-8).
- MSE is a poor proxy for MBO performance: The authors found that a model's MSE in OOD regions has almost zero (or even negative) correlation with the quality of the final design it produces.
- Ranking is more robust: Ranking-based metrics like AUPCC show a much stronger correlation with final performance. If a model preserves the relative order of designs, it can guide an optimizer to the global maximum even if its absolute value predictions are completely wrong.
- Robustness to Noise: Ranking losses are inherently more robust to "heavy-tailed noise" (outliers in the data) than MSE. A single extreme outlier can ruin an MSE-based model, but it only changes a few relative positions in a ranking-based model.
Ultimately, RaM demonstrated state-of-the-art performance, outperforming 20 existing methods, including complex ensemble and regularization techniques. RaM-ListNet and RaM-RankCosine achieved the best average ranks (2.2 and 2.7 respectively) across all tasks, while the next best method trailed significantly (5.9). Furthermore, simply replacing the MSE loss in other existing MBO algorithms with a ranking loss almost always improved their performance.
Limitations and Future Work
- Model Architecture: The current implementation uses a simple Multi-Layer Perceptron (MLP). More complex architectures (like Transformers) might further unlock the potential of advanced ranking losses.
- Theoretical Gap: While the paper provides generalization bounds for ranking loss, these are currently limited to linear function classes and i.i.d. data. Extending this theory to the complex, non-linear, and OOD settings typical of MBO remains a challenge.
- Hyperparameter Tuning: The performance of RaM can be sensitive to the "list length" ($m$) used during data augmentation, requiring some task-specific tuning.
Summary updated