# Poster 30958

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30958

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello and welcome to our presentation of our paper Magnet-Motif Diagnostic Generation of Molecules from Scaffolds. I'm Leon Hetzel and I worked on this project together with Johanna Sommer, Bastian Rieck, Fabian Theis and Stefan Günnemann. So what motivated us to work on Magnet? We definitely see the potential of molecular generators to accelerate drug discoveries, but we saw that they miss key structures. So given the VAE-based model which learns continuous representation,
presentation of continuous latent space, in principle they can generate all kinds of molecules. By checking for different FDA approved drugs which hold slightly uncommon structures here indicated through the gray boxes, we saw that state-of-the-art models actually are not able to represent these more complex structures.
So we ask ourselves what's the reason for that and how to overcome this. Looking at state-of-the-art models, they are often built on so-called motif vocabularies. These are like vocabularies that are built from like smaller molecular fragments that hold information about both the atom and bond types, which are then combined with single atoms to at least in principle be able to generate any kind of molecule. That this doesn't hold in practice, we have just seen.
So our approach is to separate structures and features and build a more expressive scaffold vocabulary by stripping away bond and atom information. This requires then a so-called feature predicting module that is able to map a given scaffold to the set of motifs. A nice advantage of this approach is that we can also go beyond a fixed motif set because this module is quite flexible.
Looking at an example, you see that for five different molecules and their fragmentations you already identify 21 distinct motifs, which is then reduced by our approach to 11 distinct motifs scaffolds. So on the complete data set level we are able to reduce more than 7000 motifs to a set of fewer than 350 scaffolds. So we are much more concise.
and expressive. But how does the generative process look? Magnet is trained in a VAE-based fashion and given the latent code of a molecule we first operate on the scaffold level. We predict different scaffolds, actually a multi-set of scaffolds because the same scaffold can occur multiple times, and then predict the connectivity between those scaffolds. Note, here it's on the scaffold level and not the atom level.
Going forward to the atom level, each scaffold is then based on the context of connectivity mapped to a motif, so the same scaffold can have quite different representation based on the position in the scaffold level graph.
Given the motifs, we identify joined nodes, so these are the joints between connected scaffolds, and in a final step so -called leaf nodes are predicted. The fact that we have leaf nodes is connected to our specific fragmentation which ensures that the scaffold connectivity always is tree -based.
We start with a standard evaluation using metrics from the Guacamole and Moses benchmark, where Magnet performs competitively with state -of-the-art generators like Moeller. However, metrics like the Frichet-Chemnitz distance do not sufficiently capture the structural diversity of the underlying distribution. We demonstrate this by obtaining the FCD on a filtered subset of molecules containing only the 10 most common scaffolds.
which results in a very high FCD. This indicates that even with a high FCD score, the models might not be accurately reflecting the complete scaffold distribution. Recognizing the shortcomings of standard benchmarks, we propose additional and orthogonal ways of evaluation. When investigating on the scaffold level with an emphasis on uncommon structures, the results paint a different picture.
Magnet is able to generate molecules with complex scaffold, such as large cycles and intricate junctions, that are often missed by baseline models, which typically rely on constructing exactly those structures from single atoms. This leads to Magnet far surpassing the baselines when measuring the sampling of, for example, complex or uncommon scaffolds.
Next, we evaluate the prediction of the motifs given a scaffold. We can see that Magnet covers a broader space of motifs for a given scaffold than traditional motif-based generators. When we see qualitatively in the left plot, we can measure with the MMD between motif distributions, where Magnet stays faithful to the ground truth distribution of motifs.
To wrap up, Magnet effectively disentangles molecular structure from features, and as a consequence offers a richer, more expressive vocabulary for molecule generation. For more details, please visit our project page or come talk to us at the poster session at ICLR. Thank you.
