Backpropagation through time trains an RNN by propagating prediction error backward across the sequence of tokens. During the forward pass, gradients are calculated; each gradient is multiplied by the token’s error to determine weight adjustments. Because the same network processes each time step, the backward pass revisits those shared weights serially, moving from outputs toward inputs. section 8.3
The technique becomes clearer when the recurrent computation is viewed in two ways:
- Unroll the RNN across a sentence or document to expose repeated applications of the same weight matrices. section 8.3
- Process one training example at a time or use batches; batching changes how examples are handled without changing the sequential recurrence across tokens. section 8.3
Figure 8.10 Data fed into a recurrent network
Use the recurrent-network diagram to see how token inputs and outputs are fed through successive time steps. section 8.3

