Scheduled Sampling for Sequence Prediction with Recurrent Neural Networks

Samy Bengio, Oriol Vinyals, Navdeep Jaitly, Noam Shazeer

arXiv (Cornell University) · 2015 · 1.3K citations · 21 references

DOIFull text

Open access

Concepts

TL;DR

Recurrent Neural Networks are trained to generate token sequences by maximizing likelihood given the true previous token, but during inference the model must use its own predictions, creating a mismatch that can cause error accumulation. The authors aim to reduce this training–inference discrepancy by introducing a curriculum learning strategy that gradually shifts from fully guided to less guided training. The strategy progressively replaces the true previous token with the model’s own generated token during training, easing the network into the inference regime. Experiments on multiple sequence prediction tasks demonstrate significant performance gains, and the method secured the first place in the 2015 MSCOCO image captioning challenge.

Abstract

Recurrent Neural Networks can be trained to produce sequences of tokens given some input, as exemplified by recent results in machine translation and image captioning. The current approach to training them consists of maximizing the likelihood of each token in the sequence given the current (recurrent) state and the previous token. At inference, the unknown previous token is then replaced by a token generated by the model itself. This discrepancy between training and inference can yield errors that can accumulate quickly along the generated sequence. We propose a curriculum learning strategy to gently change the training process from a fully guided scheme using the true previous token, towards a less guided scheme which mostly uses the generated token instead. Experiments on several sequence prediction tasks show that this approach yields significant improvements. Moreover, it was used successfully in our winning entry to the MSCOCO image captioning challenge, 2015.

References

21