NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Synergistic Benefits of Joint Molecule Generation and Property Prediction

Adam Izdebski, Jan Olszewski, Pankhil Gawade, Krzysztof Koras, Serra Korkmaz, Valentin Rauscher, Jakub M. Tomczak, Ewa Szczurek

TL;DR

This paper introduces HYFORMER, a novel transformer-based model that unifies molecule generation and property prediction into a single framework. By employing an alternating attention mechanism and joint pre-training, HYFORMER achieves synergistic benefits, outperforming separate models in conditional generation, out-of-distribution prediction, and representation learning, with promising applications in drug discovery.

What Problem Does This Paper Address?

Developing models that can both generate novel molecules and accurately predict their properties is a long-standing challenge in machine learning, particularly for applications like drug design. While separate generative and predictive models exist and excel in their respective tasks, combining them into a single "joint" model is difficult due to architectural and optimization hurdles. These challenges can lead to models that are over-regularized or suffer from gradient interference, ultimately sacrificing performance on one or both tasks. This paper aims to bridge this gap by proposing a unified transformer-based model that can effectively handle both generation and prediction, unlocking synergistic benefits.

Methods

The core innovation is HYFORMER, a transformer-based model that integrates a generative decoder and a predictive encoder within a single architecture with shared parameters. Key methodological components include:

  • Alternating Attention Mechanism: HYFORMER uses a transformer backbone that can switch between causal self-attention (for generation) and bidirectional self-attention (for prediction) based on a task token. This allows the model to adapt its attention patterns for different objectives.
  • Joint Pre-training Scheme: The model is pre-trained using a combined loss function that includes language modeling (LM) for generation and masked language modeling (MLM) and a predictive loss for property prediction. This encourages the model to learn a unified representation beneficial for both tasks.
  • Alternating Training: During training, the model alternates between using its generative and predictive capabilities, alleviating typical issues associated with joint models.
  • Generative and Predictive Heads: Separate heads are added on top of the shared backbone for generative and predictive tasks.

Datasets

The paper utilizes several standard datasets for training and evaluation:

  • GuacaMol: Used for conditional and unconditional molecule generation benchmarks.
  • Hit Identification (Hi) task from the Lo-Hi benchmark: Used for out-of-distribution property prediction.
  • MoleculeNet benchmark: Used for molecular representation learning and property prediction tasks.
  • Antimicrobial Peptide (AMP) design dataset: A real-world drug design use case involving peptide sequences and their MIC values.

Key Insights and Ideas

  • Synergistic Benefits of Joint Learning: The most significant insight is that unifying generation and prediction in a single model leads to emergent benefits that surpass those of individual models. This includes improved control over generation, better out-of-distribution generalization, and richer molecular representations.
  • Alternating Attention as a Solution: The proposed alternating attention mechanism is crucial for enabling the transformer to effectively switch between generative and predictive modes without compromising performance.
  • Unified Representation Learning: By jointly training for both tasks, HYFORMER learns molecular representations that are more informative and transferable, as evidenced by the probing experiments.
  • Real-World Applicability: The successful application to antimicrobial peptide design demonstrates the practical value of joint modeling in complex drug discovery scenarios.

Key Results

  • Conditional Molecule Generation: HYFORMER achieved the lowest Mean Absolute Deviation (MAD) and Standard Deviation (SD) across various properties (QED, SA, LogP) on the GuacaMol dataset, outperforming baselines like MolGPT and GraphGPT.
  • Out-of-Distribution Property Prediction: HYFORMER achieved the highest mean AUPRC across multiple datasets on the Hit Identification task, demonstrating strong generalization capabilities to unseen molecular scaffolds.
  • Molecular Representation Learning: HYFORMER's learned representations were the most predictive across both KNN and linear probing on the MoleculeNet benchmark, outperforming other generative, predictive, and joint models.
  • Unconditional Molecule Generation: HYFORMER achieved competitive results on the MOSES benchmark, generating valid, unique, novel, and diverse molecules.
  • Antimicrobial Peptide Design: HYFORMER outperformed baseline models in generating peptides with high fitness and AMP probability, demonstrating its utility in specialized drug discovery tasks.

Limitations and Future Work

  • Task-Specific Specialization Trade-off: The authors acknowledge that shared parameters in joint models can promote synergy but may limit task-specific specialization.
  • Dynamic/Modular Architectures: Future work could explore dynamic or modular attention architectures that allocate capacity more flexibly across tasks while preserving synergistic benefits.
  • Extending to Other Modalities: The paper suggests exploring the application of these joint modeling principles to other modalities, such as 3D structures, morphology, or transcriptomics.
  • Generative Formulation of Property Prediction: An interesting future direction is to frame molecular property prediction as a purely generative task, though this presents challenges in tokenizing continuous properties.
  • Modeling Molecular Interactions: The framework's multimodal input capability could be leveraged to model molecular interactions, such as small-molecule-protein interactions.

Summary updated

BibTeX
@article{izdebski2025synergistic,
  author = {Adam Izdebski and Jan Olszewski and Pankhil Gawade and Krzysztof Koras and Serra Korkmaz and Valentin Rauscher and Jakub M. Tomczak and Ewa Szczurek},
  title = {{Synergistic Benefits of Joint Molecule Generation and Property Prediction}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=jnzCOLyGOA},
}
Figure