Variational Learning for Insertion-based Generation
Yangtian Zhang, Zhe Wang, Arthur Gretton, ZHITAO YING, David van Dijk, Michalis Titsias, Jiaxin Shi
Abstract
Non-monotonic sequence generation methods, such as masked diffusion models, provide a flexible alternative to left-to-right autoregressive modeling by allowing tokens to be generated in non-fixed and prescribed orders. Despite their practical advantages, most existing non-monotonic models are order-agnostic and rely on a fixed-length masked token grid, limiting their ability to support variable-length generation and adaptive insertion order. In this work, we introduce a probabilistic framework for learning insertion order in variable-length insertion models. We formalize a bijective correspondence between insertion trajectories and permutations, which enables an exact reparameterization of the data likelihood as a sum over permutations. Building on this result, we propose the Insertion Process (IP) , a stochastic generative model that jointly learns where to insert, what to insert, and when to terminate, trained via permutation-based variational inference. Unlike prior masked or fixed-canvas approaches, IP natively supports variable-length generation and learns data-driven preferences over insertion orders. Experiments on planning benchmarks and molecular SMILES generation demonstrate that learning insertion order improves both modeling quality and generalization in domains without a canonical left-to-right structure.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
- Simplified and Generalized Masked Diffusion for Discrete Data cites Structured Denoising Diffusion Models in Discrete State-Spaces
- Simplified and Generalized Masked Diffusion for Discrete Data cites A Continuous Time Framework for Discrete Denoising Models
- Simplified and Generalized Masked Diffusion for Discrete Data cites Simple and Effective Masked Diffusion Language Models
- Simple and Effective Masked Diffusion Language Models cites Simplified and Generalized Masked Diffusion for Discrete Data
- Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution cites Structured Denoising Diffusion Models in Discrete State-Spaces
- Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution cites A Continuous Time Framework for Discrete Denoising Models
- A Continuous Time Framework for Discrete Denoising Models cites Structured Denoising Diffusion Models in Discrete State-Spaces
- Simple and Effective Masked Diffusion Language Models cites Structured Denoising Diffusion Models in Discrete State-Spaces
- Simple and Effective Masked Diffusion Language Models cites A Continuous Time Framework for Discrete Denoising Models
Builds on12
- Structured Denoising Diffusion Models in Discrete State-SpacesJacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow et al.NeurIPS 2021 · 2,256 citations
- Simple and Effective Masked Diffusion Language ModelsSubham S. Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan et al.NeurIPS 2024 · 929 citations
- Simplified and Generalized Masked Diffusion for Discrete DataJiaxin Shi, Kehang Han, Zhe Wang, Arnaud Doucet et al.NeurIPS 2024 · 693 citations
- A Continuous Time Framework for Discrete Denoising ModelsAndrew Campbell, Joe Benton, Valentin De Bortoli, Thomas Rainforth et al.NeurIPS 2022 · 496 citations
- Discrete Diffusion Modeling by Estimating the Ratios of the Data DistributionAaron Lou, Chenlin Meng, Stefano ErmonICML 2024 · 473 citations
Related papers
- Insertion Based Sequence Generation with Learnable Order DynamicsDhruvesh Patel, Benjamin Rozonoyer, Gaurav Pandey, Tahira Naseem et al.ICML 2026 · 1 citation
- Discovering Non-monotonic Autoregressive Orderings with Variational InferenceXuanlin Li, Brandon Trabucco, Dong Huk Park, Michael Luo et al.ICLR 2021 · 17 citations
- Learning-Order Autoregressive Models with Application to Molecular Graph GenerationZhe Wang, Jiaxin Shi, Nicolas Heess, Arthur Gretton et al.ICML 2025
- Any-Order Flexible Length Masked DiffusionJaeyeon Kim, Cheuk Lee Kit, Carles Domingo-Enrich, Yilun Du et al.ICLR 2026 · 51 citations
- Reinforced Context Order Recovery for Adaptive Reasoning and PlanningLong Ma, Fangwei Zhong, Yizhou WangNeurIPS 2025 · 4 citations
