Trajectory Matching: Discrete Flow Matching with Structured Actions
On the map: Diffusion models → Diffusion and flow policies for robotics also fits: Flow matching, time series and science
Abstract (arXiv)
The natural units of structured discrete generation are often not independent single-component edits but richer actions: attaching a fragment to a molecule, inserting a node together with an incident edge, or growing a hierarchy by adding a child. Yet most existing discrete flow matching methods (DFM) are restricted to independent component-wise edits over fixed-size states. This restriction stems from endpoint conditioning: endpoints fix the source and target during training but not the action sequence between them, making tractable conditional rates hard to define for complex actions that cannot be factorized component-wise. We propose trajectory matching, which conditions the flow on a full sequence of actions connecting the endpoints. This yields principled, simulation-free training targets for user-defined action spaces, including actions that change state size, modify multiple components, or depend on earlier actions. We prove that the resulting objective recovers the marginal flow and that trajectory matching strictly subsumes factorized DFM, while additionally capturing actions with prerequisite structure such as hierarchy growth or fragment-based molecule generation. Empirically, on tree and molecular graph generation, trajectory matching with domain-aligned actions matches or surpasses factorized DFM baselines (lifting MOSES validity from 92.8% to 99.2%) and transfers without retraining to substructure extension and linking. Trajectory matching enlarges the design space of discrete flow matching by turning the action vocabulary into a modeling choice. An interactive explanation of trajectory matching is available at https://niklaskemper.com/blog/trajectory-matching/.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in Diffusion and flow policies for robotics, one of 14 directions in Diffusion models. Builds on 40 of its 47 references that are in the map. Submitted 23 Oct 2026.
Builds on
40 of 47 references.
References · 40
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,787
- 2022Flow Matching for Generative Modelingcited by 6,518
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 4,131
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,843
- 2022Building Normalizing Flows with Stochastic Interpolantscited by 1,071
- 2018Junction Tree Variational Autoencoder for Molecular Graph Generationcited by 663
- 2022DiGress: Discrete Denoising diffusion for graph generationcited by 550
- 2018GraphRNN: Generating Realistic Graphs with Deep Auto-regressive Modelscited by 423
- 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 407
- 2024Discrete Flow Matchingcited by 337
- 2024Generative Flows on Discrete State-Spaces: Enabling Multimodal Flows with Applications to Protein Co-Designcited by 321
- 2017Grammar Variational Autoencodercited by 287
28 more
- 2018Molecular Sets (MOSES): A Benchmarking Platform for Molecular Generation Modelscited by 283
- 2019Efficient Graph Generation with Graph Recurrent Attention Networkscited by 240
- 2021Autoregressive Diffusion Modelscited by 219
- 2020Hierarchical Generation of Molecular Graphs using Structural Motifscited by 212
- 2024Generator Matching: Generative modeling with arbitrary Markov processescited by 94
- 2024DeFoG: Discrete Flow Matching for Graph Generationcited by 91
- 2023Efficient and Degree-Guided Graph Generation via Discrete Diffusion Modelingcited by 85
- 2024Discrete-state Continuous-time Diffusion for Graph Generationcited by 82
- 2021Learning to Extend Molecular Scaffolds with Structural Motifscited by 75
- 2020Scalable Deep Generative Modeling for Sparse Graphscited by 69
- 2020GraphGen: A Scalable Approach to Domain-agnostic Labeled Graph Generationcited by 68
- 2024Flow Matching with General Discrete Paths: A Kinetic-Optimal Perspectivecited by 65
- 2025Edit Flows: Flow Matching with Edit Operationscited by 63
- 2025Any-Order Flexible Length Masked Diffusioncited by 61
- 2022DiffusER: Discrete Diffusion via Edit-based Reconstructioncited by 46
- 2023Trans-Dimensional Generative Modeling via Jump Diffusion Modelscited by 37
- 2024Cometh: A continuous-time discrete-state graph diffusion modelcited by 36
- 2023Coarse-to-Fine: a Hierarchical Diffusion Model for Molecule Generation in 3Dcited by 26
- 2025OneFlow: Concurrent Mixed-Modal and Interleaved Generation with Edit Flowscited by 21
- 2023Improving Graph Generation by Restricting Graph Bandwidthcited by 17
- 2024Advancing Graph Generation through Beta Diffusioncited by 14
- 2025Edit-Based Flow Matching for Temporal Point Processescited by 10
- 2025Graph Diffusion that can Insert and Deletecited by 7
- 2025Branching Flows: Discrete, Continuous, and Manifold Flow Matching with Splits and Deletionscited by 7
- 2026Insertion Based Sequence Generation with Learnable Order Dynamicscited by 5
- 2026EvoFlows: Evolutionary Edit-Based Flow-Matching for Protein Engineeringcited by 5
- 20263D Molecule Generation from Rigid Motifs via SE(3) Flowscited by 4
- 2026Variable-Length Generative Protein Design via Generalized Poisson Flowcited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Task Convergent Flow Matching for Generative Robotics
- 2026A Kinetic Energy Perspective of Flow Matching
- 2026Trajectory as the Teacher: Few-Step Discrete Flow Matching via Energy-Navigated Distillation
- 2026Particle Dynamics of Flow Matching and Classifier-Free Guidance from a Stagewise Geometry Perspective
- 2026Temporal Selective Exploration for Reinforcement Learning-Guided Continuous-Discrete Flow Matching in 3D Molecular Design
- 2026Distilling World Action Models for Efficient Bimanual Manipulation via Anchored Path Matching
- 2026Path-Guided Flow Matching for Dataset Distillation
- 2026Making two action heads agree: coordination mechanisms and a runtime collapse certificate for flow-matching policies