Bidirectional Learning for Offline Infinite-width Model-based Optimization
Abstract
In offline model-based optimization, we strive to maximize a black-box objective function by only leveraging a static dataset of designs and their scores.
This problem setting arises in numerous fields including the design of materials, robots, DNA sequences, and proteins.
Recent approaches train a deep neural network (DNN) on the static dataset to act as a proxy function, and then perform gradient ascent on the existing designs to obtain potentially high-scoring designs.
This methodology frequently suffers from the out-of-distribution problem where the proxy function often returns poor designs.
To mitigate this problem, we propose B i D irectional learning for offline I nfinite-width model-based optimization ( BDI ).
BDI consists of two mappings: the forward mapping leverages the static dataset to predict the scores of the high-scoring designs, and the backward mapping leverages the highscoring designs to predict the scores of the static dataset.
The backward mapping, neglected in previous work, can distill more information from the static dataset into the high-scoring designs, which effectively mitigates the out-of-distribution problem.
For a finite-width DNN model, the loss function of the backward mapping is intractable and only has an approximate form, which leads to a significant deterioration of the design quality.
We thus adopt an infinite-width DNN model, and propose to employ the corresponding neural tangent kernel to yield a closed-form loss for more accurate design updates.
Experiments on various tasks verify the effectiveness of BDI.
The code is available here.
Introduction
Designing a new object or entity with desired properties is a fundamental problem in science and engineering [1].
From material design [2] to protein design [3, 4], many works rely on interactive access with the unknown objective function to propose new designs.
However, in real-world scenarios, evaluation of the objective function is often expensive or dangerous [2–6], and thus it is more reasonable to assume that we only have access to a static (offline) dataset of designs and their scores.
This setting is called offline model-based optimization.
We aim to find a design to maximize the unknown objective function by only leveraging the static dataset.
A common approach to solve this problem is to train a deep neural network (DNN) model on the static dataset to act as a proxy function parameterized as f θ ( · ) .
Then the new designs are obtained by performing gradient ascent on the existing designs with respect to f θ ( · ) .
This approach is attractive because it can leverage the gradient information of the DNN model to obtain improved designs.
Unfortunately, the trained DNN model is only valid near the training distribution and performs poorly outside of the distribution.
More specifically, the designs generated by directly optimizing f θ ( · ) are scored with erroneously high values [7, 8].
As shown in Figure 1, the proxy function trained on the static dataset p 1 , 2 , 3 overestimates the ground truth objective function, and the seemingly high-scoring design p grad obtained by gradient ascent has a low ground truth score p ′ grad .
Recent works [7–9] address the out-of-distribution problem by imposing effective inductive biases on the DNN model.
The method in [8] learns a proxy function f θ ( · ) that lower bounds the ground truth scores on out-of-distribution designs.
The approach in [9] bounds the distance between the proxy function and the objective function by normalized maximum likelihood.
In [7], Yu et al.
use a local smoothness prior to overcome the brittleness of the proxy function and thus avoid poor designs.
As demonstrated in Figure 1, these previous works try to better fit the proxy function to the ground truth function from a model perspective, and then obtain high-scoring designs by gradient ascent regarding the proxy function.
In this paper, we investigate a method that does not focus on regularizing the model, but instead ensures that the proposed designs can be used to predict the available data .
As illustrated in Figure 1, by ensuring the high-scoring design p ours can predict the scores of the static dataset p 1 , 2 , 3 (backward) and vice versa (forward), p ours distills more information from p 1 , 2 , 3 , which makes p ours more aligned with p 1 , 2 , 3 , leading to p ′ ours with a high ground truth score.
We propose B i D irectional learning for offline
I nfinite-width model-based optimization ( BDI ) between the high-scoring designs and the static dataset (a.k.a. low-scoring designs).
BDI has a forward mapping from low-scoring to high-scoring and a backward mapping from high-scoring to low-scoring.
The backward mapping means the DNN model trained on the high-scoring designs is expected to predict the scores of the static dataset, and vice versa for the forward mapping.
To compute the prediction losses, we need to know the scores of the high-scoring designs.
Inspired by [10], where a predefined reward (score) is used for reinforcement learning, we set a predefined target score for the high-scoring designs.
By minimizing the prediction losses, the bidirectional mapping distills the knowledge of the static dataset into the high-scoring designs.
This ensures that the high-scoring designs are more aligned with the static dataset and thus effectively mitigates the outof-distribution problem.
For a finite-width DNN model, the loss function of the backward mapping is intractable and can only yield an approximate form, which leads to a significant deterioration of the design quality.
We thus adopt a DNN model with infinite width, and propose to adopt the corresponding neural tangent kernel (NTK) [11, 12] to produce a closed-form loss function for more accurate design updates.
This is discussed in Section 4.5.
Experiments on multiple tasks in the design-bench [1] verify the effectiveness of BDI.
To summarize, our contributions are three-fold:
• We propose bidirectional learning between the high-scoring designs and the static dataset, which
effectively
mitigates the out-of-distribution problem.
• To enable a closed-form loss function, we adopt an infinite-width DNN model and introduce NTK into the bidirectional learning, which leads to better designs.
• We achieve state-of-the-art results on various tasks, which demonstrates the effectiveness of BDI.
Preliminaries 2.1 Offline Model-based Optimization
Offline model-based optimization is formally defined as:
[Equation]
where the objective function f ( x ) is unknown, but we have access to a size N dataset D
= { ( x 1 , y 1 ) } , · · · , { ( x N , y N ) } , where x i represents a certain design and y i denotes the design score.
The design could, for example, be a drug, an aircraft or a robot morphology.
Denote the feature dimension of a design x as D and then the static dataset D can also have a vector representation ( X l , y l ) where X l ∈ R N × D , y l ∈ R N .
A common approach is fitting a DNN model f θ ( · ) with parameters θ to the static dataset:
[Equation]
After that, the high-scoring design x ∗ can be obtained by optimizing x against the proxy function f θ ∗ ( x ) by gradient ascent steps:
[Equation]
where T is the number of steps.
The high-scoring design x ∗ can be obtained as x T .
This simple gradient ascent method suffers from the out-of-distribution problem — the proxy function f θ ( x ) is not accurate for unseen designs, and its actual score is usually considerably lower than predicted [8].
2.2 Infinitely Wide DNN and Neural Tangent Kernel
Deep infinitely wide neural network models have recently received substantial attention.
Previous works establish the correspondence between infinitely wide neural networks and kernel methods [11– 14].
In the infinite width assumption, wide neural networks trained by gradient descent with a squared loss yield a neural tangent kernel (NTK), which is specified by the network architecture.
More specifically, given two samples (designs) x i and x j , the NTK k
( x i , x j ) measures the similarity between the two samples from the perspective of the DNN model.
The NTKs have outperformed their finite network counterparts in various tasks and achieved state-ofthe-art performance for classification tasks such as CIFAR10 [15].
The approach in [16] leverages the NTK to distill a large dataset into a small one to retain as much of its information as possible and the method in [17] uses the NTK to learn black-box generalization attacks against DNN models.
Method
In this section, we present B i D irectional learning for offline I nfinite-width model-based optimization ( BDI ).
First, to mitigate the out-of-distribution problem, we introduce bidirectional learning between the high-scoring designs and the static dataset in Section 3.1.
For a finite-width DNN model, the loss function is intractable.
Approximate solutions lead to significantly poorer designs.
We therefore propose the adoption of an infinite-width DNN model, and leverage its NTK to yield a closed-form loss and more accurate updates in Section 3.2.
3.1 Bidirectional Learning
We use X h ∈ R M × D to represent the high-scoring designs, where M represents the number of high-scoring designs.
The high-scoring designs X h are potentially outside of the static dataset distribution.
To mitigate the out-of-distribution problem, we propose bidirectional learning between the designs and the static dataset, which leverages one to predict the other and vice versa.
This can distill more information from the static dataset into the high-scoring designs.
To compute the prediction losses, we need to know the scores of the high-scoring designs.
Inspired by [10], in which a reward (score) is predefined for reinforcement learning, we set a predefined target score y h for every high-scoring design.
More precisely, we normalize the scores of the static dataset to have unit
Gaussian statistics following [8] and then choose y h to be larger than the maximal score in the static dataset.
We set y h as 10 across all tasks but demonstrate that BDI is robust to different choices in
Section 4.6.
Thus, the high-scoring designs can be written as ( X h , y h ) , and the goal is to find X h .
Forward mapping.
Similar to traditional gradient ascent methods, the forward mapping leverages the static dataset to predict the scores of the high-scoring designs.
To be specific, the DNN model f l θ ( · ) trained on ( X l , y l ) is encouraged to predict the scores y h given X h .
Thus the forward loss function can be written as:
[Equation]
where θ ∗ is given by
[Equation]
Then we can minimize L l 2 h ( X h ) against X h to update the high-scoring designs.
L l 2 h ( X h ) is similar to the gradient ascent process in Eq.(3); the only difference is that gradient ascent aims to gradually increase the score prediction whereas minimizing L l 2 h ( X h ) pushes the score prediction towards the (high) predefined target score y h .
Backward mapping.
Similarly, the DNN model f h θ ( · ) trained on ( X h , y h ) should be able to predict the scores y l given X l .
The backward loss function is
[Equation]
where θ ∗ ( X h ) is given by
[Equation]
Overall loss.
The forward mapping and the backward mapping together align the high-scoring designs with the static dataset, and the BDI loss can be compactly written as:
[Equation]
where we aim to optimize the high-scoring designs X h .
3.2 Closed-form Solver via Neural Tangent Kernel
For a finite-width DNN model f h θ ( · ) , the high-scoring designs X h of Eq.(6) only exist in θ ∗ ( X h ) from Eq.(7), which is intractable and does not have a closed-form solution.
The solution of Eq.(7) is often approximately obtained by a gradient descent step [18, 19],
[Equation]
where η denotes the learning rate.
This approximate solution θ ∗ ( X h ) leads to inaccurate updates to the designs X h through Eq.(6) and leads to much poorer designs, especially for high-dimensional settings, as we illustrate in Section 4.5.
We thus adopt a DNN model f θ ( · ) with infinite width, and propose to leverage the corresponding
NTK to produce a closed-form θ ∗ ( X h ) [11, 12] and then a closed-form loss function of Eq.(6).
Neural tangent kernel.
Denote by k ( x i , x j ) the kernel function between x i and x j introduced by the infinite-width DNN f θ ( · ) .
We use K X l X l ∈ R N × N , K X h X h ∈ R M × M , K X l X h ∈ R N × M and K X h X l ∈ R M × N to represent the corresponding covariance matrices induced by the kernel function k ( x i , x j ) .
By leveraging the closed-form θ ∗ ( X h ) given by [11, 12], we can compute the closed-form L h 2 l ( X h ) in Eq.(6) as:
[Equation]
where β> 0 is a fixed regularization parameter.
Similar to [20], to focus on higher-scoring designs in the static dataset, we assign a weight to every design based on its score and recompute the loss:
[Equation]
(11) where ω l = (cid:112) softmax( α y l ) represents the design weight vector and the weight parameter α ≥ 0 is a constant.
Similarly, we have the forward loss function,
[Equation]
where ω h = 1 √ M since every element in y h is the same in our paper.
Besides the advantage of the closed-form computation, introducing the NTK into the bidirectional learning can also avoid the expensive high-order derivative computations brought by Eq.(9), which makes our BDI an efficient first-order optimization method.
Analysis of M=1.
When we aim for one high-scoring design ( M = 1 ), Eq.(11) has a simpler form:
[Equation]
where k ( X li , x h ) measures the similarity between the i th design of X l and the high-scoring design x h . Recall that y h represents the predefined target score and is generally much larger than y li .
By minimizing L h 2 l ( x h ) , we aim to find a high-scoring design x h such that any design in the static dataset similar to the high scoring design is encouraged to have a high score prediction.
In this way, x h tries to incorporate as many high-scoring features from the static dataset as possible.
Optimization.
Combining the two losses, the overall loss can be expressed as:
[Equation]
where only the high-scoring designs X h are learnable parameters in the whole procedure of BDI.
We optimize X h against L ( X h ) by gradient descent methods such as Adam [21].
Experiments
We conduct extensive experiments on design-bench [1], and aim to answer three research questions:
(1) How does BDI compare with both recently proposed offline model-based algorithms and traditional algorithms
(2) Is every component necessary in BDI?
(i.e., L h 2 l ( X h ) , L l 2 h ( X h ) , NTK.)
(3) Is BDI robust to the hyperparameter choices including the predefined target score y h , the weight parameter α and the number of steps T ?
4.1 Dataset and Evaluation
To evaluate the effectiveness of BDI, we adopt the commonly used design-bench, including both continuous and discrete tasks, and the evaluation protocol as in the prior work [8].
Task overview.
We conduct experiments on four continuous tasks: (a) Superconductor (SuperC) [2], where the aim is to design a superconductor with 86 continuous components to maximize critical temperature with 17010 designs; (b) Ant Morphology (Ant) [1, 22], where the goal is to design the morphology of a quadrupedal ant with 60 continuous components to crawl quickly withdesigns, (c) D’Kitty Morphology (D’Kitty) [1, 23], where the goal is to design the morphology of a quadrupedal D’Kitty with 56 continuous components to crawl quickly with 10004 designs; and (d)
Hopper Controller (Hopper) [1], where the aim is to find a neural network policy parameterized by 5126 total weights to maximize return with 3200 designs.
Besides the continuous tasks, we perform experiments on three discrete tasks: (e) GFP [3], where the objective is to find a length 238 protein sequence to maximize fluorescence with 5000 designs; (f) TF Bind 8 (TFB) [5], where the aim is to find a length 8 DNA sequence to maximize binding activity score with 32896 designs; and (g)
UTR [6], where the goal is to find a length 50 DNA sequence to maximize expression level with 140 , 000 designs.
These tasks contain neither personally identifiable nor offensive information.
Evaluation.
We follow the same evaluation protocol in [8]: we choose the top N = 128 most promising designs for each method, and then report the 100 th percentile normalized ground truth score as y n =
y − y min
y max − y min where y min and y max represent the lowest score and the highest score in the full unobserved dataset, respectively.
The additional 50 th percentile (median) normalized ground truth scores, used in the prior work [8], are also provided in Appendix A . 1 .
To better measure the performance across multiple tasks, we further report the mean and median ranks of the compared algorithms over all 7 tasks.
4.2 Comparison Methods
We compare BDI with two groups of baselines: (i) sampling via a generative model; and (ii) gradient updating from existing designs.
The generative model based methods learn a distribution of the high-scoring designs and then sample from the learned distribution.
This group of methods includes: 1) CbAS [24]: trains a VAE model of the design distribution using designs with a score above a threshold and gradually adapts the distribution to the high-scoring part by increasing the threshold. 2)
Auto.CbAS [25]: uses importance sampling to retrain a regression model using the design distribution introduced by CbAS; 3) MIN [20]: learns an inverse map from the score to the design and queries the inverse map by searching for the optimal score to obtain the optimal design.
The latter group includes: 1) Grad: applies simple gradient ascent on existing designs to obtain new designs; 2) ROMA [7]: regularizes the smoothness of the DNN and then performs gradient ascent to obtain new designs; 3)
COMs [8]: regularizes the DNN to assign lower scores to designs obtained during the gradient ascent process and leverages this model to obtain new designs by gradient ascent; 4) NEMO [9]: bounds the distance between the proxy and the objective function by normalized maximum likelihood and then performs gradient ascent.
We discuss the NTK based Grad in Section 4.5.
Besides the recent work, we also compare BDI with several traditional methods described in [1]: 1) BO-qEI [26]: performs Bayesian Optimization to maximize the proxy, proposes designs via the quasi-Expected-Improvement acquisition function, and labels the designs via the proxy function; 2)
CMA-ES [27]: an evolutionary algorithm gradually adapts the distribution via the covariance matrix towards the optimal design; 3) REINFORCE [28]: first learns a proxy function and then optimizes the distribution over the input space by leveraging the proxy and the policy-gradient estimator.
4.3 Training Details
We follow the training settings of [8] for all comparison methods if not specified.
Recall that M represents the number of the high-scoring designs.
We set M = 1 in our experiments, which achieves expressive results, and discuss the M > 1 scenario in Appendix A . 2 .
We set the regularization β as 1 e − 6 following [16].
We set the predefined target score y h as a constant 10 across all tasks, which proves to be effective and robust in all cases.
We set α as 1 e − 3 for all continuous tasks and as 0 .
for all discrete tasks, and set the number of iterations T to 200 in all experiments.
We discuss the choices of y h , α and T in Sec. 4.6 in detail.
We adopt a 6-layer MLP (MultiLayer Perceptron) followed by
ReLU for all gradient updating methods and the hidden size is set as 2048 .
We optimize L ( X h ) with the Adam optimizer [21] with a 1 e − 1 learning rate for discrete tasks and a 1 e − 3 learning rate for continuous tasks.
We cite the results from [8] for the non-gradient-ascent methods including BO-qEI,
CMA-ES 2 , REINFORCE, CbAS, Auto.
CbAS.
For other methods, we run every setting over 8 trials and report the mean and the standard error.
We use the NTK library [29] build on Jax [30] to conduct kernel-based experiments and use Pytorch [31] for other experiments.
All Jax experiments are run on multiple CPUs within a cluster and all Pytorch experiments are run on one V100 GPU.
We discuss the computational time details for all tasks in Appendix A . 3 .
4.4 Results and Analysis
We report experimental results in Table 1 for continuous tasks and in Table 2 for discrete tasks where
D ( best ) represents the maximal score of the static dataset for each task.
We bold the results within one standard deviation of the highest performance.
Results on continuous tasks.
As shown in Table 1, BDI achieves the best results over all tasks.
Compared with the naive Grad method, BDI achieves consistent gain over all four tasks, which suggests that BDI can align the high-scoring design with the static dataset and thus mitigate the out-of-distribution problem.
As for COMs, ROMA and NEMO, which all impose a prior on the
DNN model, they generally perform better than Grad but worse than BDI.
This indicates that directly transforming the information of the static dataset into the high-scoring design is more effective than adding priors on the DNN in terms of mitigating the out-of-distribution problem.
Another advantage of BDI is in its neural tangent kernel nature: 1) Real-world offline model-based optimization often involves small-scale datasets since the labeling cost of protein/DNA/robot is very high; 2) BDI is built on the neural tangent kernel, which generally performs better than finite neural networks on
[Table] [Table]
1/ small-scale datasets [32]; 3) COMs, ROMA, and NEMO are built on a finite neural network and it is non-trivial to modify them to the neural tangent kernel version.
The generative model based methods
CbAS, Auto.
CbAS and MIN perform poorly for high-dimensional tasks like Hopper ( D = 5126 ) since the high-dimensional data distributions are harder to model.
Compared with generative model based methods, BDI not only achieves better results but is also much simpler.
Results on discrete tasks.
As shown in Table 2, BDI achieves the best or equal-best performances in two of the three tasks, and is only marginally inferior in the third.
This suggests that BDI is also a powerful approach in the discrete domain.
For the GFP task, every design is a length 238 sequence of 20-categorical one-hot vectors and gradient updates that do not take into account the sequential nature may be less beneficial.
This may explain why BDI does not perform as well on GFP.
Overall, BDI achieves the best result in terms of the ranking as shown in Table 2 and Figure 2, and attains the best performance on 6/7 tasks.
[Table]
[Figure] [Figure]
[Figure]
4.5 Ablation Studies
In this subsection, we conduct ablation studies on the components of BDI and aim to verify the effectiveness of L h 2 l ( X h ) , L l 2 h ( X h ) , and NTK.
The baseline method is our proposed BDI and we remove each component to verify its effectiveness.
We replace the NTK with its corresponding finite
DNN (6-layer MLP followed by ReLU), which is trained on ( X l , y l ) for Eq.(5) and ( X h , y h ) for
Eq.(7).
Following [16], another alternative is to replace the NTK with RBF.
As shown in Table
BDI generally performs the best (at least second-best) across tasks, which indicates the importance of all three components.
Forward mapping.
Removing L l 2 h ( X h ) yields the best result 0 .
984 in the TFB task, but worsens the designs in other cases, which verifies the importance of the forward mapping.
Incorporating the
L l 2 h ( X h ) loss term is similar to using the Grad method as we discuss in Section 3.1.
We also run experiments on gradient ascent with NTK.
This approach first builds a regression model using the
NTK and then performs gradient ascent on existing designs to obtain new designs.
Results are very similar to BDI without L h 2 l ( X h ) , so we do not report them here.
Backward mapping.
Removing L h 2 l ( X h ) decreases model performances in three tasks, and only improves it for the UTR task.
This demonstrates the importance of the backward mapping.
Although removing L h 2 l leads to the best result 0 .
777 in UTR compared with 0 .
760 of BDI, this does not necessarily demonstrate that the removal of L h 2 l is desirable.
The 50 th percentile of BDI is higher than that of BDI without L h 2 l ( 0 . 664 > 0 . 649 ).
Furthermore, we observe that the backward mapping is more effective for continuous tasks, possibly because we do not model the sequential nature of
DNA and protein sequences.
We follow the default procedure in [8] which maps the sequence design to real-valued logits of a categorical distribution for a fair comparison.
Given a more effective discrete space modeling, the backward mapping might yield better results; we leave this to future work.
Neural tangent kernel.
We replace the NTK with the corresponding finite DNN (NTK2NN) and the RBF kernel (NTK2RBF), and both replacements degrade the performance significantly, which verifies the effectiveness of the NTK.
In addition, we can observe that NTK2NN performs relatively well on the low-dimensional task TFB (D=8) but poorly on high-dimensional tasks, especially for
GFP ( D = 238 ) and Hopper ( D = 5126 ).
It is likely that the high-dimensional designs X h are more sensitive to the approximation in Eq.
Furthermore, BDI performs better than NTK2RBF and this can be explained as follows.
Compared with the RBF kernel, the NTK enjoys the high expressiveness of a DNN [15] and represents a broad class of DNNs [16, 17], which can better extract the design features and enhance the generalization of the high-scoring designs.
4.6 Hyperparameter Sensitivity
In this subsection, we first study the sensitivity of BDI to the predefined target score y h .
Note that all algorithms in this subsection do not have access to the ground truth scores, which are only used for analysis.
We expect this score to be larger than the maximal score of the static dataset since we want to obtain designs better than those in the static dataset.
We first normalize all scores to have unit
Gaussian statistics following [1, 8].
A small target score may not be able to identify a high-scoring design and a large score is too hard to reach.
Thus we choose to set the target score y h
as 10 across all
[Table]
tasks.
In Figure 3, we report the ratio of the ground truth score of the design with y h to the ground truth score of the design with y h
= 10 and the score details are in Appendix A . 4 .
All tasks are robust to the change of y h .
Although we set y h as 10 , which is smaller than the maximal score 10 . 2 for
Hopper, BDI still yields a good result, which demonstrates the robustness of BDI.
For Hopper, after we set y h to a larger value, we can observe that the corresponding results become better.
Besides y h , we also explore robustness to the choice of the weight parameter α and the number of steps T .
We study the continuous task Ant and the discrete task TFB.
As shown in Figure 4, we visualize the 100 th percentile ground truth score of the Ant task as a function of T for α = 0 . 0 , 5 e − 4 , 1 e − 3 , 2 e − 3 , 4 e − 3 .
We can observe that the behavior of BDI is robust to change of α within the range of evaluated values.
BDI yields the high-scoring designs at early steps and then the solutions remain stable.
This demonstrates the robustness of BDI to the choice of T .
For the TFB task, we find the behavior of BDI is identical for different α and the behavior with respect to T is very similar to that of Ant.
Thus we do not report details here.
One possible reason for the insensitivity to α is that
TFB is a discrete task and the discrete solution is more robust to α .
Related Work
Offline model-based optimization.
Recent methods for offline model-based optimization can be divided into two categories: (i) obtaining designs from a generative model and (ii) applying gradient ascent on existing designs.
In the first category, the methods in [24, 25] gradually adapt a VAE-based generative model towards the optimized design by leveraging a proxy function.
Kumar et al. adopt an alternative approach in [20], learning a generator that maps the score to the design.
The generative model based methods often require careful tuning to model the high-scoring designs [8].
Gradient-based methods have received substantial attention recently because they can leverage DNN models to produce improved designs.
A challenge in the naive application of such methods is out-of-distribution designs, for which the trained DNN model produces inaccurate score predictions.
Several approaches have been proposed to address this.
Trabucco et al.
add a regularizing term for conservative objective modeling [8, 33].
In [9], Fu et al.
leverage normalized maximum likelihood to bound the distance between the proxy function and the ground truth.
Yu et al.
overcome the brittleness of the proxy function by utilizing a local smoothness prior [7].
Our work falls into the gradient-based line of research, but rather than imposing a prior on the model , we propose the bidirectional mapping to ensure that the proposed designs can be used to predict the scores of the data and vice versa, thus ensuring that the high-scoring designs are more aligned with the static dataset.
Similar to our backward mapping constraining designs, BCQ [34] constrains the state-action pairs to be contained in the support of the static dataset.
Our proposed backward mapping is different in its implementation and also enables the model to generate designs outside the training distribution.
Data distillation.
Data distillation [18, 35–38] aims to distill a large training set into a small one, which enables efficient retraining.
Building upon [18], the methods in [39, 40] propose to distill labels instead of images.
Approaches in [16, 41] introduce a meta-learning algorithm powered by
NTK, which significantly improves the performance.
The backward mapping of BDI is inspired by [16, 41] and the difference is that BDI is handling a regression problem with a predefined target score larger than the maximal score of the static dataset.
In Table 4 we provided a detailed comparison of backward mapping and data distillation; both adopt a bi-level framework [42].
This bi-level framework can also be used to learn other hyperaparameters [17, 43–47].
Conclusion and discussion
In this paper, we address offline model-based optimization and propose a novel approach that involves bidirectional score predictions.
BDI requires the proposed high-scoring designs and the static offline dataset to predict each other, which effectively ameliorates the out-of-distribution problem.
The finitewidth DNN can only yield an approximate loss function, which leads to a significant deterioration of the design quality, especially for high-dimensional tasks.
We thus adopt an infinite-width DNN and employ the NTK to yield a closed-form solution, leading to better designs.
Experimental results verify the effectiveness of BDI, demonstrating that it outperforms state-of-the-art approaches.
Limitations.
Although BDI has been demonstrated to be effective in tasks from a wide range of domains, some evaluations are not performed with a realistic setup.
For example, in some of our experiments, such as the GFP [3] task, we follow the prior work and use a transformer model which is pre-trained on a large dataset as the evaluation oracle.
However, this may not reflect realworld behavior and the evaluation protocol can be further improved by close collaboration with domain experts [48–50].
Overall, we still believe BDI can generalize well to these cases since BDI has a simple formulation and proves to be effective and robust for the wide range of tasks in the design-bench.
Negative impacts.
Designing a new object or entity with desired properties is a double-edged sword.
On one hand, it can be beneficial to society, with an example being drug discovery to cure unsolved diseases.
On the other hand, if these techniques are acquired by dangerous people, they can also be used to design biochemicals to harm our society.
Researchers should pay vigilant attention to ensure their research does end up being used positively for the social good.
Acknowledgement
We thank Aristide Baratin from Mila and Greg Yang from Microsoft Research for their helpful discussions on the neural tangent kernel and thank Zixuan Liu from the University of Washington for his helpful suggestions on the paper writing.
This research was supported in part by funding from the
Fonds de recherche du Québec – Nature et technologies.
Checklist
For all authors... (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
[Yes] (b) Did you describe the limitations of your work?
[Yes] We discuss limitations in Section 6.
(c) Did you discuss any potential negative societal impacts of your work?
[Yes] We discuss negative impacts in Section 6.
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them?
[Yes] 2.
If you are including theoretical results... (a) Did you state the full set of assumptions of all theoretical results?
[N/A] (b) Did you include complete proofs of all theoretical results?
[N/A] 3.
If you ran experiments... (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)?
[Yes] They are in the supplemental material.
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)?
[Yes] All of these can in be found in Section 4.
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)?
[Yes] We run every setting 8 times and report the mean and standard deviation in the tables.
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)?
[Yes] It is in Section 4.3.
If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... (a) If your work uses existing assets, did you cite the creators?
[Yes] We cite them [1].
(b) Did you mention the license of the assets?
[Yes] We mention the license in the README.md of our code in the supplemental material.
(c) Did you include any new assets either in the supplemental material or as a URL?
[Yes] We include our code in the supplemental material as a new asset and we will release this new asset upon paper acceptance.
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating?
[Yes] The assets are publicly available and free for research use.
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content?
[Yes] We use design-bench, which does not contain personally identifiable information nor offensive content, as illustrated in Section 4.1.
If you used crowdsourcing or conducted research with human subjects... (a) Did you include the full text of instructions given to participants and screenshots, if applicable?
[N/A] (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable?
[N/A] (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation?
[N/A]
A Appendix A.1 Additional Results on 50th Percentile Scores
In the main paper, we have provided results for the 100 th percentile metric and here we provide additional results on the 50 th percentile metric, also used in the prior work design-bench, to verify the effectiveness of BDI.
Table 5 and Table 6, report 50 th percentile results for continuous tasks and discrete tasks, respectively.
We can observe from Table 6 that BDI achieves the best result in terms of ranking.
Note that there is no randomness for BDI by the nature of the method, once the initial design has been selected.
To quantify the robustness of BDI to this starting design, we perturb each initial design by performing a small gradient ascent step according to a trained DNN model on the design.
The mean and standard deviation are obtained over 8 different seeds.
We can see that BDI is robust to the randomness.
A.2 Analysis of multiple high-scoring designs
We now discuss the high-scoring design number M > 1 scenarios and consider two cases: (a) all
M high-scoring designs are learnable; (b) only one high-scoring design is learnable and the other
M − 1 designs are fixed.
In both cases, we set the predefined target score y h as 10 .
For case (a), we first choose a design from the static dataset and perform M − 1 gradient ascent steps on the design to obtain the M − 1 designs.
Then BDI is performed between the static dataset and the M designs.
Finally, the design with the maximal predicted score among the M designs is chosen for evaluation.
For case (b), we choose M − 1 designs from the static dataset along with their ground-truth scores and then perform our BDI algorithm.
We report the results of cases (a) and (b) in Table 7 and Table 8, respectively.
In both cases the M >settings work well but are generally worse than M = 1 .
One possible explanation is that BDI cannot distill sufficient information from the static dataset into the high-scoring design when the other M −designs also contribute to the backward mapping.
As a result, the M = 1 setting yields a better result.
A.3 Computational Complexity
The only learnable part of BDI is X h .
Other coefficients, like ( K X l X l + β I ) − 1 y l in Eq.
(12), can be pre-computed.
Thus the computational time of BDI consists of two parts: pre-computation and gradient update.
The main bottleneck of pre-computation lies in ( K X l X l + β I ) − 1 y l , which results in the O (N 3 ) time complexity, where N is the size of the static dataset D .
Note that the precomputation time includes the kernel matrix construction.
The N of the static dataset usually is not large which means the computational time is usually reasonable, especially considering the potentially enormous cost of evaluating the unknown objective function later in the design cycle.
In many real-world settings, for example, those that involve biological or chemical experiments, the majority of the time in the production cycle will be spent on evaluating the unknown objective function.
As a result, the time difference between the methods for obtaining the high score design is less significant in a real production environment.
As for the gradient update, its computation bottleneck lies in the forward and backward passes of
NTK computation.
We report the details of BDI computational time on different tasks in Table 9.
All experiments are performed on CPUs in the same cluster.
For other gradient-based methods, the computational time is on the same scale as BDI.
A.4 Predefined Target Scores
We report the unnormalized experimental results on different predefined target scores in Table 10 and these results correspond to Figure 3 in the main paper.
Recall that the ground truth score returned by the evaluation oracle is y
and we compute the normalized ground truth score as y n =
[Table]
where y min and y max represent the lowest score and the highest score in the full unobserved dataset, respectively.
We also report the normalized experimental results in Table 11.
We can observe all tasks are robust to y h .
Although we set y h as 10 , which is smaller than the maximal score 10 . 2 for
Hopper, BDI still yields a good result, which demonstrates the robustness of BDI.
A.5 Considering Sequential Nature
We adopt DNABert [51] and ProtBert [52] to model the sequential nature of DNA/protein sequences.
We conduct an ablation study, removing the backward mapping to verify its effectiveness.
We also remove the forward mapping to assess its importance.
The following experiments demonstrate our intuition: backward mapping matters .
[Table]
For the DNA experiments, we consider the task with an exact oracle: TFBind8, and obtain the 100th percentile results in Table 12.
We can see that both the backward mapping and the forward mapping matter in BDI.
We further consider a harder task setting TFBind8(reduce) or TFBind8(r): reduce the size of the offline dataset from 32896 to 5000 .
The results verify the effectiveness and the robustness of bidirectional mappings.
For the protein experiments, we first consider the GFP task we used in our paper, and obtain the same 0 .
864 results for all variants, which is also mentioned in [1] “lack in-distinguishable results across all methods”.
To further investigate this problem, we introduce 5 new protein tasks used in recent works:
LACT, AMP, ALIP, LEV, and SUMO, and present the task details and the results in the following.
• LACT:
We measure the thermodynamic stability of the TEM-1 β -Lactamase protein sequence.
The oracle is trained on 17857 samples from [53, 54].
The bottom half of these samples are used for offline algorithms.
• AMP:
Antimicrobial peptides are short protein sequences that act against pathogens.
We use the 6760 AMPs from [55] to train the oracle and the bottom half of the AMPs for the offline algorithms.
• ALIP: We measure the enzyme activity of the Aliphatic Amide Hydrolase sequence following [56].
We use the 6629 samples from [56] to train the oracle and the bottom half of them for the offline algorithms.
• LEV:
In an ATP-dependent reaction, LG can be converted by Levoglucosan kinase to the glucose-6-phosphate.
Following [57], we measure the enzyme activity of this reaction.
All 7891 protein sequences are used to train the oracle and the bottom half are for the offline algorithms.
• SUMO:
Following [58], we measure the growth rescue rate of human SUMO E2 conjugase protein.
Around 2000 samples are used to train the oracle and the bottom half are used for the offline algorithms.
As shown in Table 12, these results demonstrate the effectiveness of our backward mapping and forward mapping.
Besides the sequential nature, the structural information [59, 47] can also be considered for protein design and we leave it to future work.
A.6 Comparison between Maximization and Regression
We change the regression to the pure maximization (Pure Maxi) of the predictions of the learned objective function and report the experimental results on all tasks.
As we can see in Table 13, Pure Maxi results are generally worse than the regression form and we conjecture that the advantage of the regression form arises due to the consistency between the forward mapping and the backward mapping which both use the same predefined target score y h .
[Table] [Table] [Table] [Table]
[Table] [Table] [Table]
[Table] [Table]
[Table]
We simply assign the forward mapping and the backward mapping equal weight since the two terms are symmetric and thus viewed as equally important.
In this subsection, we view the weight term of the backward mapping as a hyperparameter and study the hyperparameter sensitivity on Ant and TFB as we did in Sec 4.6.
For the ANT task, we find the results generally improve for any weight greater than zero.
This demonstrates the effectiveness of backward mapping.
For the TFB task, we find the behavior of BDI is identical for different weight terms.
One possible reason is that BDI here does not consider the sequential nature of DNA and thus the backward mapping cannot provide significant performance gain as we have discussed before.
A.8 Analysis of Backward Mapping
In this subsection, we provide more visualization and analysis to verify the effectiveness of the backward mapping.
We use the NTK k ( x i , x j ) to measure the similarity between two points and compute the similarity between the generated high-scoring design x h and the high-scoring designs
X in the offline dataset.
This is defined as:
[Equation]
As shown in Table 15, we find that simi [Equation] x [Equation]
X ) .
This can be explained as follows.
Since the backward mapping extracts the high-scoring features from the offline dataset, x backwardh is the closest to the high-scoring designs X in the offline dataset and thus simi ( x backwardh , X ) is large.
While encouraging the design x forwardh to explore a high score, the forward mapping alone leads to the design far from the offline dataset, and thus simi ( x forwardh , X ) is the smallest.
BDI can explore a high score (forward mapping) and stay close to the offline dataset (backward mapping), which leads to simi ( x bdih , X ) between simi ( x forwardh , X ) and simi ( x backward h , X ) .