Research map / Probabilistic and scientific modeling / Molecules and proteins
Edit Flows: Variable Length Discrete Flow Matching with Sequence-Level Edit Operations
Marton Havasi, Brian Karrer, Itai Gat, Ricky T. Q. Chen
Meta
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes Edit Flows, a non-autoregressive discrete flow over variable-length sequences that generates via sequence-level insertions, deletions, and substitutions modeled as a continuous-time Markov chain.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
Non-autoregressive generative models struggle to produce variable-length sequences, often relying on rigid token-wise structures, whereas autoregressive models handle variable length naturally.
Approach
Define a discrete flow over sequences using edit operations (insertions, deletions, substitutions) within a continuous-time Markov chain framework, so generation proceeds by editing a sequence rather than filling fixed positions.
On benchmark leaderboards
- HumanEval leaderboard pass@1 14 · rank 255 of 267 papers
- MBPP leaderboard pass@1 14.8 · rank 168 of 169 papers
- HellaSwag (zero-shot) leaderboard accuracy 49 · rank 14 of 26 papers
- WinoGrande (zero-shot) leaderboard accuracy 53.6 · rank 10 of 15 papers
- ARC-E (zero-shot) leaderboard accuracy 63.1 · rank 4 of 11 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use Edit Flow instead of Mask DFM | Llama3 1.3B · MBPP | Pass@1: 6.2 -> 10.0 | Improved |
| Use Edit Flow instead of Mask DFM | Llama3 1.3B · Zero-shot text benchmarks (HellaSwag) | accuracy: 38.3 -> 49.0 | Improved |
| Use Edit Flow instead of autoregressive model | Llama3 280M · MS COCO captioning | CIDEr: 95.5 -> 108.1 | Improved |
| Use Edit Flow instead of autoregressive model | Llama3 1.3B · Zero-shot text benchmarks (ARC-E) | accuracy: 71.0 -> 63.1 | Hurt |
| Use Edit Flow instead of autoregressive model | Llama3 1.3B · HumanEval | Pass@1: 17.0 -> 12.8 | Hurt |
| Add localized propagation of edits (ablation) | Edit Flow · MBPP | Pass@1: 10.0 -> 14.8 | Improved |
| Add localized propagation of edits (ablation) | Edit Flow · MS COCO captioning | CIDEr: 108.1 -> 105.1 | No clear effect |
| Start from 100 random tokens instead of an empty sequence (ablation) | Edit Flow · HumanEval | Pass@1: 12.8 -> 9.7 | Hurt |
| Use Edit Flow instead of Mask DFM with oracle length | Llama3 1.3B code models · HumanEval | Pass@1: 11.6 -> 12.8 | Improved |
| Train with the least optimal alignment (delete all x0 tokens, insert all x1 tokens) (ablation) | Edit Flow · sample generation | number of edits | No clear effect |
| Apply weighted rate CFG instead of naive or fixed rate CFG (ablation) | Edit Flow · all benchmarks | quality | Hurt |
Open problems in flow matching generative modeling
Do flow matching methods hold up beyond small, single-source benchmarks and at larger scale and cost?
- Tested only on small, synthetic or single-source datasets. · 10 papers state it
- Cost grows with dimension, trajectory length or sampling, which limits scale. · 8 papers state it
- Results trail or barely beat the strongest baseline on some metrics. · 7 papers state it
Experimental setup
Builds on: discrete flow matching continuous-time Markov chain
Closest papers by meaning
- Transition Matching: Scalable and Flexible Generative Modeling (NeurIPS 2025 · similarity 0.87)
- Safe Few-Step Generation via Velocity Editing (NeurIPS 2026 · similarity 0.87)
- EditAR: Unified Conditional Generation with Autoregressive Models (CVPR 2025 · similarity 0.86)
- SplitFlow: Flow Decomposition for Inversion-Free Text-to-Image Editing (NeurIPS 2025 · similarity 0.86)
- Discrete Flow Matching (NeurIPS 2024 · similarity 0.86)
- Latent Space Editing in Transformer-Based Flow Matching (AAAI 2024 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.