Dive into Deep Learning · §8
Sequence Models and Recurrent Neural Networks
autoregression · BPE subword tokenization · language models · perplexity & bits per byte · RNNs · BPTT · decoding
Motivation & Core Problem
Architectural Progression
Empirical Anchors
RNNLMScratch (512-byte state, 89\% params in vocabulary layers) reaches 2.12 bpb.distinct-3 \approx 0.99.Check Your Understanding
Before diving into §8.1, test how the components of the sequence modeling pipeline interact:
float32 RNN with h = 128 units require to process a 32-token window versus a 1,000,000-token book?Answers:
Chapter Synthesis
<unk> tokens while reserving special IDs above |\mathcal{V}_{\textrm{BPE}}|; bits per byte (\textrm{bpb}) compares any tokenization on a common lossless-compression scale.