liveBook · Manning

Sequence generation

As explained in Deep Learning with R, Third Edition

Sequence generation is the production of ordered data elements by a computational model.

Sequence generation produces ordered data elements with a computational model. Applications have included music, handwriting trajectories, and text generation by predicting the next token. section 16.1

Representative developments include:

  • LSTM models generated music and later supported broader generative recurrent-network research. section 16.1
  • Recurrent mixture density networks generated human-like handwriting from time series of pen positions. section 16.1
  • Language models generated text by guessing the next token; GPT combined this pretraining approach with the Transformer architecture and later fine-tuning. section 16.1

Next-token text generation

A model receives preceding text and predicts the next token, repeating the process to produce a sequence. This approach underlies the described GPT pretraining setup. section 16.1

How Deep Learning with R, Third Edition covers it

How deep it goes
Traces major historical milestones but stops short of implementation details, algorithms, and mathematical derivations.
Examples
Uses music generation, handwriting from pen-position time series, and next-token text generation as concrete examples.
What you can do after
Evaluate sequence-generation applications and recognize next-token prediction as a language-modeling strategy.
How it connects
Connects sequence generation with LSTM, recurrent neural networks, mixture density networks, language models, and the Transformer architecture.

Also explained in

Compare how 2 books explain sequence generation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with R, Third Edition. The section links point to the parts of the book it draws on.