RNN Architecture › Training Loss and Convergence
Language AI HandbookAll chapters RNN Architecture › Training Loss and ConvergenceOne section · Sections in this chapter15 / 19 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Visualizing the training loss curve shows how quickly the model is learning to predict the next character.

A character-level RNN trained on a short corpus learns letter-transition probabilities, common bigrams and trigrams, and some word-level structure, all from the sequential character stream. The hidden state is doing the heavy lifting of remembering which characters have appeared and in what pattern. The steepest descent in loss typically occurs in the first few epochs as the model moves from near-uniform predictions to learning the most frequent character transitions. Later epochs fine-tune the model's handling of less frequent patterns.
Understanding Cross-Entropy Loss for Language Models
It is worth pausing on what the cross-entropy loss value means in practical terms. A random predictor over a vocabulary of size has expected cross-entropy bits per token. For our character vocabulary of about 30 characters, that is roughly bits. If our trained model achieves a loss of around 2.0 nats ( bits), it has learned meaningful structure that compresses the character stream significantly below the random baseline.
The concept of perplexity converts cross-entropy to a more interpretable scale. Perplexity is (in nats) or (in bits). A model with perplexity 10 is, on average, as uncertain between 10 equally likely options at each step. Lower perplexity means the model is more confident and more accurate. For reference, well-tuned word-level language models on large corpora achieve perplexities in the range of 20 to 100, while simple baselines start near the vocabulary size.