cs.LGOct 11, 2026

FragFlex: Fragment-Based Flexible Molecular Generation for Exploring Vast Chemical Space

Authors: Sihyun Park, David Ryan Koes

Organizations: Carnegie Mellon University · University of Pittsburgh

Abstract

Drug discovery requires efficient exploration of an astronomically large chemical space. Molecular graph diffusion models offer a promising approach to this task, but many require graph size to be fixed before generation. Although atom-level insertion and deletion can enable flexible-size generation, jointly modeling molecular size, atom types, and bonds while maintaining chemical validity remains challenging. We introduce FragFlex, a flexible-length discrete diffusion model that performs node insertion and deletion at the fragment level. During denoising, FragFlex jointly learns the size, fragment identities, and inter-fragment connectivity of the fragment graph. A neural attachment-site predictor and valence-aware assembler then convert the generated fragment graph into an atom-level molecule. In large-scale experiments generating 10 million molecules, FragFlex achieves near-perfect chemical validity while maintaining high uniqueness, demonstrating a strong balance between the two.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Fraglingo: Molecular Design via Attachment-Aware Autoregressive Fragment Generation

    Sep 11, 2026Thao Nguyen, Jeonghwan Kim, Zhenhailong Wang +1Molecular GenerationMolecular Graph Generation

  2. MolHIT: Advancing Molecular-Graph Generation with Hierarchical Discrete Diffusion Models

    Feb 19, 2026Hojung Jung, Rodrigo Hormazabal, Jaehyeong Jo +5Molecular Graph GenerationDiffusion Models

  3. FRIGID: Scaling Diffusion-Based Molecular Generation from Mass Spectra at Training and Inference Time

    Apr 17, 2026Montgomery Bohde, Hongxuan Liu, Mrunali Manjrekar +4Inference-Time ScalingMolecular Generation