Saved in:
Bibliographic Details
Main Authors: Cundy, Chris, Ermon, Stefano
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2306.05426
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917657586958336
author Cundy, Chris
Ermon, Stefano
author_facet Cundy, Chris
Ermon, Stefano
contents 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-$χ^2$ 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.
format Preprint
id arxiv_https___arxiv_org_abs_2306_05426
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle SequenceMatch: Imitation Learning for Autoregressive Sequence Modelling with Backtracking
Cundy, Chris
Ermon, Stefano
Machine Learning
Artificial Intelligence
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-$χ^2$ 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.
title SequenceMatch: Imitation Learning for Autoregressive Sequence Modelling with Backtracking
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2306.05426