The objective of molecular design is to identify a reactant set S with the resulting P exhibiting a set of desired properties Y * with respect to the given forward model Y = f (S|G). For the molecular design task, it is necessary to define a measure of the discrepancy d(Y, Y * ) between the predicted properties and the target. A typical example of a discrepancy measure is the Euclidean distance: