Dynamic Scheduled Sampling with Imitation Loss for Neural Text Generation

Xiang Lin, Prathyusha Jwalapuram, Shafiq Joty
1/31/2023
cs.CL

No confident code implementation found for this paper.

Abstract

State-of-the-art neural text generation models are typically trained to maximize the likelihood of each token in the ground-truth sequence conditioned on the previous target tokens. However, during inference, the model needs to make a prediction conditioned on the tokens generated by itself. This train-test discrepancy is referred to as exposure bias. Scheduled sampling is a curriculum learning strategy that gradually exposes the model to its own predictions during training to mitigate this bias. Most of the proposed approaches design a scheduler based on training steps, which generally requires careful tuning depending on the training setup. In this work, we introduce Dynamic Scheduled Sampling with Imitation Loss (DySI), which maintains the schedule based solely on the training time accuracy, while enhancing the curriculum learning by introducing an imitation loss, which attempts to make the behavior of the decoder indistinguishable from the behavior of a teacher-forced decoder. DySI is universally applicable across training setups with minimal tuning. Extensive experiments and analysis show that DySI not only achieves notable improvements on standard machine translation benchmarks, but also significantly improves the robustness of other text generation models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lin2023dynamic,
  title  = {Dynamic Scheduled Sampling with Imitation Loss for Neural Text Generation},
  author = {Xiang Lin and Prathyusha Jwalapuram and Shafiq Joty},
  year   = {2023},
  eprint = {2301.13753},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.13753v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.13753.svg)](https://codeofpaper.com/paper/2301.13753)

Discussion