cs.LGFeb 21, 2026

Insertion Based Sequence Generation with Learnable Order Dynamics

Authors: Dhruvesh Patel, Benjamin Rozonoyer, Gaurav Pandey, Tahira Naseem, Ramón Fernandez Astudillo, Andrew McCallum

Organizations: University of Massachusetts Amherst · IBM Research

Abstract

Existing insertion-based masked diffusion models that generate sequences by interleaving token insertion with unmasking use fixed schedules that are not dependent on the data. For structured sequences like graphs and molecules, learning data-dependent generation orders can improve generation quality by reducing uncertainty over the action space. We propose LoFlexMDM, an insertion-based masked diffusion model with learnable order dynamics that learns data-dependent insertion and unmasking rates. We generalize the discrete flow matching framework to work with variable-length sequences, propose a tractable schedule parameterization and a training objective for joint training of the generator and the target order dynamics. On De Novo and fragment-constrained molecule generation, LoFlexMDM improves sample quality over FlexMDM by up to 17.5% and 6.7%, respectively. These results show that learning the target generation order can improve insertion-based diffusion models without giving up tractable training. We open source the code at https://github.com/dhruvdcoder/LoFlexMDM.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Birth, Death and Diff: Insertion-Based Sequence Generation with Corrections

    Oct 25, 2026Durga Prasad Maram, Dhruvesh Patel, Tahira Naseem +4Diffusion Language ModelsText Generation

  2. Variational Learning for Insertion-based Generation

    Jun 1, 2026Yangtian Zhang, Zhe Wang, Arthur Gretton +4Non-Autoregressive Text GenerationGoal-Conditioned Planning