SequenceMatch: Imitation Learning for Autoregressive Sequence Modelling with Backtracking
Abstract
In many domains, autoregressive models can attain high likelihood on the task of predicting the next observation. However, this maximum-likelihood (MLE) objective does not necessarily match a downstream use-case of autoregressively generating high-quality sequences. The MLE objective weights sequences proportionally to their frequency under the data distribution, with no guidance for the model's behaviour out of distribution (OOD): leading to compounding error during autoregressive generation. In order to address this compounding error problem, we formulate sequence generation as an imitation learning (IL) problem. This allows us to minimize a variety of divergences between the distribution of sequences generated by an autoregressive model and sequences from a dataset, including divergences with weight on OOD generated sequences. The IL framework also allows us to incorporate backtracking by introducing a backspace action into the generation process. This further mitigates the compounding error problem by allowing the model to revert a sampled token if it takes the sequence OOD. Our resulting method, SequenceMatch, can be implemented without adversarial training or architectural changes. We identify the SequenceMatch- divergence as a more suitable training objective for autoregressive models which are used for generation. We show that empirically, SequenceMatch training leads to improvements over MLE on text generation with language models and arithmetic.
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.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Neural Text Generation With Unlikelihood Training cites The Curious Case of Neural Text Degeneration
- The Curious Case of Neural Text Degeneration cites Neural Text Generation With Unlikelihood Training
- Implicit Reward as the Bridge: A Unified View of SFT and DPO Connections cites Imitating Language via Scalable Inverse Reinforcement Learning
- Implicit Reward as the Bridge: A Unified View of SFT and DPO Connections cites IQ-Learn: Inverse soft-Q Learning for Imitation
- Implicit Reward as the Bridge: A Unified View of SFT and DPO Connections cites All Roads Lead to Likelihood: The Value of Reinforcement Learning in Fine-Tuning
- A Theoretical Analysis of the Repetition Problem in Text Generation cites Neural Text Generation With Unlikelihood Training
- A Theoretical Analysis of the Repetition Problem in Text Generation cites The Curious Case of Neural Text Degeneration
- LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilities cites Imitating Language via Scalable Inverse Reinforcement Learning
- Imitating Language via Scalable Inverse Reinforcement Learning cites Imitation Learning via Off-Policy Distribution Matching
- Imitating Language via Scalable Inverse Reinforcement Learning cites IQ-Learn: Inverse soft-Q Learning for Imitation
- IQ-Learn: Inverse soft-Q Learning for Imitation cites Imitation Learning via Off-Policy Distribution Matching
- All Roads Lead to Likelihood: The Value of Reinforcement Learning in Fine-Tuning cites Imitating Language via Scalable Inverse Reinforcement Learning
Cited by top-tier papers6
- All Roads Lead to Likelihood: The Value of Reinforcement Learning in Fine-TuningGokul Swamy, Sanjiban Choudhury, Wen Sun, Steven Wu et al.ICLR 2026 · 66 citations
- LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making AbilitiesThomas Schmied, Jörg Bornschein, Jordi Grau-Moya, Markus Wulfmeier et al.ICLR 2026 · 41 citations
- Imitating Language via Scalable Inverse Reinforcement LearningMarkus Wulfmeier, Michael Bloesch, Nino Vieillard, Arun Ahuja et al.NeurIPS 2024 · 26 citations
- Implicit Reward as the Bridge: A Unified View of SFT and DPO ConnectionsBo Wang, Qinyuan Cheng, Runyu Peng, Rong Bao et al.NeurIPS 2025 · 23 citations
- Taming Imperfect Process Verifiers: A Sampling Perspective on BacktrackingDhruv Rohatgi, Abhishek Shetty, Donya Saless, Yuchen Li et al.ICLR 2026 · 15 citations
Builds on8
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan et al.ICLR 2020 · 683 citations
- IQ-Learn: Inverse soft-Q Learning for ImitationDivyansh Garg, Shuvam Chakraborty, Chris Cundy, Jiaming Song et al.NeurIPS 2021 · 271 citations
- Imitation Learning via Off-Policy Distribution MatchingIlya Kostrikov, Ofir Nachum, Jonathan TompsonICLR 2020 · 239 citations
- A Theoretical Analysis of the Repetition Problem in Text GenerationZihao Fu, Wai Lam, Anthony Man-Cho So, Bei ShiAAAI 2021 · 114 citations
Related papers
- Time-series Generation by Contrastive ImitationDaniel Jarrett, Ioana Bica, Mihaela van der SchaarNeurIPS 2021 · 29 citations
- DistiLLM: Towards Streamlined Distillation for Large Language ModelsJongwoo Ko, Sungnyun Kim, Tianyi Chen, Se-Young YunICML 2024 · 86 citations
- MixCE: Training Autoregressive Language Models by Mixing Forward and Reverse Cross-EntropiesShiyue Zhang, Shijie Wu, Ozan Irsoy, Steven Lu et al.ACL 2023 · 5 citations
- An Imitation Learning Curriculum for Text Editing with Non-Autoregressive ModelsSweta Agrawal, Marine CarpuatACL 2022
- MLE-Guided Parameter Search for Task Loss Minimization in Neural Sequence ModelingSean Welleck, Kyunghyun ChoAAAI 2021 · 8 citations
