---
title: "Generating Sequences With Recurrent Neural Networks (2013)"
description: "How LSTM networks generate text and handwriting, learn to align writing with characters, and balance stylistic variety with legibility."
canonical: "https://research.elamur.ai/free/en/papers/graves-2013-generating-sequences-recurrent-neural-networks/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/graves-2013-generating-sequences-recurrent-neural-networks/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2013](https://md.research.elamur.ai/free/en/papers/2013/) / Generating Sequences With Recurrent Neural Networks

# Generating Sequences With Recurrent Neural Networks

Paper · 2013 · Alex Graves

**Authors:** [Alex Graves](https://md.research.elamur.ai/free/en/authors/alex-graves/) · **Year:** 2013 · **Venue:** arXiv:1308.0850 · **Licence:** [arXiv — non-exclusive licence to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**2,855** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W1810943226) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1308.0850)
- [arXiv 1308.0850](https://arxiv.org/abs/1308.0850)
- [OpenAlex](https://openalex.org/W1810943226)

## Deep dive: Generating Sequences With Recurrent Neural Networks

How LSTM networks generate text and handwriting, learn to align writing with characters, and balance stylistic variety with legibility. · about 38 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Generating a sequence requires more than making a plausible next move. A sentence must retain earlier punctuation and subject matter. A handwritten line must preserve its style while completing letters whose strokes unfold over many pen movements. This paper investigates whether a recurrent neural network with a sufficiently persistent memory can produce that kind of structure through a simple procedure: predict the next observation, sample an observation from that prediction, and continue using the sampled result as the next input. The central finding is that Long Short-Term Memory, or LSTM, can support convincing generation across both discrete text and continuous pen trajectories.

The same underlying prediction architecture serves both tasks. Several recurrent layers can be stacked, with direct connections that give each hidden layer access to the input and let each contribute to the output. For text, the output assigns probabilities to possible characters or words. For handwriting, it describes a distribution over the next pen displacement and whether a stroke ends. Training rewards accurate predictions of recorded sequences. Generation then replaces recorded inputs with the network’s own sampled continuations. The network’s calculations are deterministic, but sampling makes its output variable.

The text experiments examine the tradeoff between predicting whole words and predicting smaller units. On Penn Treebank, word prediction performs better, although regularisation narrows the reported gap. The character-based predictor uses far fewer parameters and retains the freedom to construct unfamiliar strings. A larger byte-based network trained on Wikipedia produces convincing local spelling, punctuation, formatting, and extended regions resembling different parts of an article. Those samples demonstrate structural persistence rather than meaningful composition: the author explicitly observes that coherence breaks down beyond short stretches of language.

The handwriting experiments develop the more distinctive contribution. An initial network learns to continue pen traces without being told what to write. An extension then supplies a character string through a movable, differentiable window. Because a letter occupies a variable amount of writing time, the network must learn where it is in the text while predicting the next movement. The window gives it that control without requiring a previously supplied alignment between characters and pen positions. The resulting handwriting can vary substantially in size, slant, and connectedness while maintaining a recognisable style within a line.

Sampling provides additional control after training. A probability bias makes handwriting more regular and readable at the cost of variation; a bias of 0.15 is presented as a useful compromise. Supplying a real writing fragment before generation can also carry its style into a new continuation without retraining. These are striking demonstrations, but their evidential limits matter. The handwriting evaluation lacks an independent test set, visual judgements are largely informal, and uncommon character sequences cause more errors. The paper establishes a practical route from next-step prediction to structured generation, while leaving precise guarantees about content, alignment, and style control unresolved.

### Ideas worth borrowing

Persistent state can stabilise generation. Memory is useful not only because distant information improves prediction. It also gives a generator something to rely on after its recent outputs become confusing. A system driven completely by its own latest decisions can amplify a mistake; a system retaining broader context has another basis for continuing. This is a useful design principle wherever predictions become future inputs, including continuous trajectories and other sequences in which local errors can accumulate.

Choose the smallest useful prediction unit. Predicting characters or pen displacements gives the generator room to construct unfamiliar combinations instead of selecting only from a fixed inventory of larger objects. The cost is that meaningful structures become longer sequences, demanding more memory. The reusable idea is to make this tradeoff explicit: smaller units increase flexibility, but their success depends on retaining enough context to assemble them into stable larger patterns.

Separate sequence memory from output uncertainty. The recurrent layers organise information about the past; the output distribution expresses what may happen next. Text calls for a categorical distribution, while pen movements need a continuous distribution that can represent several alternatives. Keeping these responsibilities distinct makes the architecture easier to adapt. A new domain need not require replacing the entire recurrent computation if a suitable predictive distribution can be designed.

Learn progress as an increment. The handwriting window advances by adding a positive displacement to its previous position. This gives alignment a persistent state and builds forward movement into the parameterisation. The network learns how quickly to proceed rather than repeatedly estimating an unrelated absolute location. The same idea is worth considering when a generator follows an ordered instruction stream whose timing is unknown but whose overall direction should remain stable.

Preserve state across computational boundaries. In the Wikipedia experiment, the gradient is truncated at short sequence boundaries, while the recurrent state continues much farther. This separates the amount of history available for prediction from the amount of computation retained for a weight update. The distinction is valuable whenever long sequences make full back-propagation expensive, although retaining state alone does not prove that every distant dependency will be learned.

Treat sampling as a design surface. Training establishes a distribution; generation determines how to explore it. The paper changes handwriting regularity by modifying mixture weights and component scales, and changes style through a real prefix held in memory. These operations expose useful controls without retraining. They also show why sampling settings belong in an evaluation: a highly readable, strongly biased output represents a different use of the learned distribution from an ordinary random sample.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the strongest connection is a way of thinking about sequence state. The paper makes generation depend on a clearly defined history representation, a next-step distribution, and a sampling procedure. Those are separable responsibilities that Mova could expose explicitly. This would make it easier to inspect whether a particular continuation came from retained context, a changed probability distribution, or a different sampling decision.

That is a prospective connection. There is no basis for claiming that Mova already implements this paper’s LSTM architecture, mixture-density output, or handwriting alignment window. The useful borrowing is the decomposition of the problem and the care with which different kinds of uncertainty receive different representations.

A concrete experiment for Mova would be a character-based recurrent predictor with visible state transitions. The input representation, recurrent activations, output scores, and sampled character could each be inspectable. Such an experiment would test whether a compact, understandable implementation can preserve punctuation or another clearly specified sequence constraint. Its purpose would be to study the relation between memory and behaviour, rather than assume that fluent-looking output establishes understanding.

The paper also suggests a disciplined distinction between persistent state and persistent learning. In the Wikipedia experiment, keeping recurrent state across neighbouring segments preserves temporary context. Dynamic evaluation goes further by updating weights as new observations arrive. Mova could make that distinction explicit in its interface and diagnostics. A reader or developer should be able to tell whether a continuation changes because the system remembers a prefix or because its parameters have been updated.

The soft window offers another possible experiment. If Mova needs to generate a longer sequence while following a shorter ordered description, it could maintain an inspectable progress variable over that description. The important restriction is that the paper’s mechanism assumes forward progress. It would suit a task with a mostly ordered correspondence better than one requiring arbitrary rearrangement. Adapting it would therefore begin with the task’s alignment assumptions, not with the visual appeal of an attention map.

Priming supplies a final useful question: what properties can a system carry through state alone? In the handwriting demonstrations, a real prefix influences later style without a new training phase. For a transparent language system, the corresponding research opportunity is to identify which observable properties persist after a prefix, how long they persist, and when new inputs overwrite them. The paper motivates that investigation; it does not establish that handwriting style transfer will carry over directly to Mova’s language behaviour.

### The problem and its context

#### Why next-step prediction is not enough by itself

The training objective is local: predict the next item accurately. The desired behaviour is extended: produce an entire sequence whose parts fit together. The paper asks whether a recurrent network can bridge that gap through memory.

At generation time, each decision changes the conditions for the next decision. A sampled character becomes part of the text history. A sampled displacement changes the trajectory from which the next pen movement is predicted. An error is therefore more than an isolated incorrect answer. It alters the future inputs that the generator will receive.

This problem is especially visible in continuous data. A pen displacement can move the trajectory into a region unlike the recorded training examples. Once there, subsequent predictions may become less reliable. The author describes longer memory as a source of stability because the generator can use earlier context when its recent history becomes difficult to interpret.

The argument is broader than a claim about immediate accuracy. A short-memory system may predict common local transitions reasonably well while remaining fragile when asked to sustain its own output. A system with more persistent state can preserve information about the larger structure it is trying to complete.

#### What earlier sequence generators contributed

The introduction places recurrent generation alongside earlier work on music, text, and captured movement. The general sampling procedure was already available: process a real sequence during training, learn conditional predictions, and later feed sampled predictions back into the network.

The paper’s motivation concerns the limitations of ordinary recurrent memory. Standard recurrent networks can, in principle, represent complicated sequence distributions, but learning and retaining distant information is difficult in practice. LSTM supplies purpose-built memory cells and gates intended to make information easier to preserve and retrieve.

The author also contrasts neural prediction with approaches based on exact historical matches. An [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) predictor estimates the next item using a bounded recent context. Prediction by Partial Matching and related compression methods organise predictions around matching strings. Neural recurrent prediction instead combines information through a learned internal representation. This allows similarities between contexts to matter even when the contexts are not identical.

That distinction is particularly useful for continuous observations. Exact matching becomes awkward when several real-valued quantities vary together. Nearby pen movements may be functionally similar without repeating the same coordinates. A learned distribution can share information across such cases.

The introduction mentions an alternative response to unstable generation: add noise before feeding predictions back into a conditional generator. That can make training or prediction more robust to surprising inputs. The author nevertheless argues that improving memory addresses a more fundamental weakness. The experiments demonstrate the capabilities of a memory-based architecture, although they do not provide a direct controlled comparison against every such alternative.

#### Why text and handwriting belong together

Text offers a familiar test of long-range structure. A [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) assigns probabilities to possible continuations, but different regularities operate at different distances. Spelling is local. Closing punctuation may require remembering an earlier opening mark. Formatting conventions can govern an extended region.

Handwriting adds a different kind of complexity. The observations are pen movements, while the meaningful objects include strokes, letters, words, and writing style. A letter may occupy many prediction steps, and its final mark may be added after later strokes. The generator must therefore coordinate movements across time without receiving letter boundaries as part of the basic prediction task.

Online handwriting is also easy to inspect visually. Here, “online” refers to the recording of pen positions over time. It does not mean that the data arrive through an internet service. The alternative, offline handwriting, consists of images of completed writing.

This distinction matters because the task is movement generation rather than image generation. The network predicts a trajectory from which handwriting can be drawn. Its uncertainty concerns where the pen should move and when a stroke should end.

#### Why conditioning introduces another problem

Unconditional handwriting prediction can produce letter-like shapes and short word-like sequences, but it cannot reliably write a requested sentence. To support that use, the generator must receive text.

The challenge is that the text and the pen trace do not advance together. Character duration changes with letter shape, writing speed, size, and style. The correct correspondence is unavailable before generation because the network’s own movements determine it.

The paper considers the earlier [RNN transducer](https://md.research.elamur.ai/free/en/papers/graves-2012-sequence-transduction-recurrent-neural-networks/), which addresses sequences with different lengths and an unknown correspondence. Preliminary handwriting synthesis experiments were disappointing. The author suggests that separating the two input streams into different recurrent networks may be less useful here than allowing a single recurrent system to access both.

The proposed alternative makes alignment part of the generator’s evolving state. A soft window selects information from the character string, and the network itself controls how that window moves. This is the step that turns a pen-trace predictor into a text-conditioned handwriting synthesiser.

### The method, step by step

The method begins with a general recurrent predictor, then changes the output distribution to match the data. Handwriting synthesis adds a mechanism for reading an auxiliary character sequence. The training principle remains the same throughout: assign high probability to the next recorded observation, given the available history and any conditioning text.

From recorded sequences to controlled generation The steps in order.

#### Build a recurrent prediction network

Let the observed input sequence contain vectors indexed by time. Each vector enters a stack of recurrent hidden layers. A hidden layer receives the current input, its own previous hidden state, and, except at the bottom, the current state of the layer beneath it.

The first layer follows:

```
h¹_t = H(W_ih¹ x_t + W_h¹h¹ h¹_(t−1) + b_h¹)
```

Here, t is the time index, x_t is the current input vector, and h¹_t is the first hidden layer’s output. H denotes the hidden-layer computation. W_ih¹ maps the input into that layer, W_h¹h¹ maps its previous output back into it, and b_h¹ is its bias vector. The superscript identifies the layer; it is not a power.

Higher layers add the current output of the layer below:

```
hⁿ_t = H(W_ihⁿ x_t + W_hⁿ⁻¹hⁿ hⁿ⁻¹_t + W_hⁿhⁿ hⁿ_(t−1) + b_hⁿ)
```

The index n identifies a hidden layer. W_hⁿ⁻¹hⁿ connects neighbouring layers, while the other matrices and bias serve the same roles as in the first-layer equation. The current input reaches every layer directly. These input connections reduce the number of transformations through which information must pass before reaching a higher layer.

Every hidden layer also contributes directly to the output:

```
ŷ_t = b_y + Σ_(n=1)^N W_hⁿy hⁿ_t
```

The vector ŷ_t contains untransformed output values, b_y is the output bias, N is the number of hidden layers, and W_hⁿy connects layer n to the output. The summation combines contributions from the entire stack.

An output-specific transformation then produces usable distribution parameters:

```
y_t = Y(ŷ_t)
```

Y is the output transformation and y_t is its result. Its form changes with the task. A text predictor needs probabilities over discrete alternatives; a handwriting predictor needs parameters describing continuous movements and a stroke-ending event.

Each sequence begins with a zero input vector. This gives the network a defined starting condition before the first real observation. Thereafter, its output at time t describes the distribution of the next input.

#### Train the whole sequence through conditional predictions

The sequence probability is assembled from next-step predictions:

```
P(x) = ∏_(t=1)^T P(x_(t+1) | y_t)
```

P(x) denotes the probability assigned to the sequence, T indexes its prediction steps, and ∏ means multiplication across those steps. The output y_t already depends on the preceding inputs through the recurrent state, so the conditioning includes more history than the notation immediately displays.

Training minimises negative log probability:

```
L = −Σ_(t=1)^T log P(x_(t+1) | y_t)
```

L is the sequence loss, and log is the natural logarithm unless a different base is specified for reporting. Taking the logarithm turns a product of conditional probabilities into a sum. A continuation assigned low probability contributes more loss.

The author calculates weight derivatives through back-propagation through time. This treats the recurrent computation across a sequence as a connected graph and passes the loss derivatives backward through it. Gradient-based optimisation then updates the weights.

Generation uses the same conditional distributions differently. Instead of presenting the next recorded observation, the procedure samples a possible observation and uses that as the following input. This distinction between training history and generated history is the reason long-range stability matters.

#### Give the recurrent layers gated memory

The hidden-layer function is implemented with LSTM cells. Each cell maintains a state and uses gates to control how information enters, persists, and becomes visible.

The input gate is:

```
i_t = σ(W_xi x_t + W_hi h_(t−1) + W_ci c_(t−1) + b_i)
```

The vector i_t controls the contribution of newly proposed information. σ is the logistic sigmoid, which maps values into a bounded gate range. c_(t−1) is the previous cell state. Each W matrix connects the quantity named by its first subscript to the input gate, and b_i is the gate bias.

The forget gate is:

```
f_t = σ(W_xf x_t + W_hf h_(t−1) + W_cf c_(t−1) + b_f)
```

The vector f_t controls how much of the previous cell state survives. Its weights and bias have the corresponding roles for the forget gate.

The cell state combines retained information and a gated candidate update:

```
c_t = f_t ⊙ c_(t−1) + i_t ⊙ tanh(W_xc x_t + W_hc h_(t−1) + b_c)
```

The symbol ⊙ means elementwise multiplication. tanh is the hyperbolic tangent. W_xc and W_hc construct candidate cell content from the current input and previous hidden output; b_c is its bias. The two terms allow existing memory to persist while new information is added selectively.

The output gate reads the updated cell state:

```
o_t = σ(W_xo x_t + W_ho h_(t−1) + W_co c_t + b_o)
```

The vector o_t controls how much of the cell’s transformed content reaches the hidden output. Its cell connection uses c_t, the current state.

The hidden output is:

```
h_t = o_t ⊙ tanh(c_t)
```

The vector h_t is the visible output passed to other parts of the network. The cell-to-gate matrices are diagonal: an individual cell element supplies its corresponding gate element rather than every element of the gate vector.

Full back-propagation can produce derivatives large enough to cause numerical trouble. The experiments therefore limit derivatives entering the LSTM nonlinearities to specified ranges. This is clipping at particular points in the computation, instead of an unspecified general instruction to constrain all gradients.

#### Turn text scores into probabilities

Text inputs use one-hot vectors. A vector identifies a single member of an inventory by setting its corresponding entry and leaving the others zero. The inventory may consist of words, characters, or byte values.

The text output uses softmax:

```
P(x_(t+1) = k | y_t) = yᵏ_t = exp(ŷᵏ_t) / Σ_(k′=1)^K exp(ŷᵏ′_t)
```

K is the inventory size, k identifies a possible next item, and k′ indexes all alternatives in the denominator. ŷᵏ_t is the untransformed score for item k, and yᵏ_t is its probability. The denominator normalises the positive exponentials.

The resulting loss is:

```
L = −Σ_(t=1)^T log y_t^(x_(t+1))
```

The superscript x_(t+1) selects the probability belonging to the observed next item. It does not indicate exponentiation in this expression.

The derivative with respect to a text output score is:

```
∂L/∂ŷᵏ_t = yᵏ_t − δ_(k,x_(t+1))
```

The symbol ∂ denotes a partial derivative. The indicator δ equals one when k is the observed class and zero otherwise. The derivative therefore compares predicted probability with the observed categorical outcome.

The paper favours fine prediction granularity because it permits unfamiliar strings. Whole-word prediction requires a fixed dictionary and a potentially expensive output layer. The discussion mentions several ways earlier work reduced that cost, including the training approach in [A Fast and Simple Algorithm for Training Neural Probabilistic Language Models](https://md.research.elamur.ai/free/en/papers/mnih-2012-fast-simple-algorithm-training-neural/). The paper’s own character-based experiments pursue a different advantage: freedom from a fixed inventory of complete words.

#### Retain context while shortening backpropagation

The Wikipedia procedure separates state continuity from gradient continuity. Training examples contain 100 bytes, but the hidden outputs and cell states persist across neighbouring examples. Their order remains unchanged.

State is reset after 100 such sequences, allowing predictions to use a history extending to 10K characters. Derivatives, however, stop at the start of each 100-byte segment. This makes the gradient approximate while keeping a longer-lived context available to the forward computation.

The distinction prevents a common misunderstanding. A short back-propagation segment does not necessarily mean the network is given only a short input history. Conversely, carrying state for a long time does not amount to calculating an exact gradient across that whole history.

#### Represent handwriting as movements and stroke endings

A handwriting input contains a horizontal displacement, a vertical displacement, and a binary stroke-ending marker. The marker indicates whether the pen was lifted before the following recorded point.

The continuous movement distribution is a mixture of bivariate Gaussians. Each component describes a possible region for the next displacement. A separate Bernoulli distribution describes the stroke-ending marker.

The output can be written as:

```
y_t = (e_t, {πʲ_t, μʲ_t, σʲ_t, ρʲ_t}_(j=1)^M)
```

M is the number of mixture components. e_t is the probability that the next observation ends a stroke. For component j, πʲ_t is its mixture weight, μʲ_t contains horizontal and vertical means, σʲ_t contains their standard deviations, and ρʲ_t is their correlation.

The raw end-of-stroke output is transformed as follows:

```
e_t = 1 / (1 + exp(ê_t))
```

The scalar ê_t is the untransformed output for the stroke-ending probability. The positive sign in the exponential is part of this parameterisation and determines the corresponding derivative sign.

Mixture weights use softmax:

```
πʲ_t = exp(π̂ʲ_t) / Σ_(j′=1)^M exp(π̂ʲ′_t)
```

The raw scores π̂ʲ_t determine positive component weights whose total is one. The index j′ runs over the mixture components.

Means require no range restriction:

```
μʲ_t = μ̂ʲ_t
```

The raw mean vector μ̂ʲ_t directly supplies the component mean.

Standard deviations must remain positive:

```
σʲ_t = exp(σ̂ʲ_t)
```

The exponential applies to each entry of the raw scale vector σ̂ʲ_t.

Correlations must remain bounded:

```
ρʲ_t = tanh(ρ̂ʲ_t)
```

The raw scalar ρ̂ʲ_t is transformed into a valid correlation value.

The joint predictive density is:

```
P(x_(t+1) | y_t) = [Σ_(j=1)^M πʲ_t N(x_(t+1),1:2 | μʲ_t, σʲ_t, ρʲ_t)] × B(x_(t+1),3; e_t)
```

N is the bivariate Gaussian density applied to the next displacement’s continuous entries, indicated by 1:2. B is the Bernoulli factor for the third entry. It equals e_t for a stroke-ending observation and otherwise equals 1−e_t. This notation makes explicit that the Gaussian concerns displacement instead of the binary marker.

The bivariate density is:

```
N(x | μ, σ, ρ) = exp[−Z / (2(1−ρ²))] / [2πσ₁σ₂√(1−ρ²)]
```

Here x contains the horizontal and vertical displacement, μ contains their means, and σ₁ and σ₂ are their standard deviations. The π in this denominator is the mathematical constant, distinct from the mixture weights πʲ_t. Z measures the displacement’s scaled distance from the mean while accounting for correlation.

That distance term is:

```
Z = (x₁−μ₁)²/σ₁² + (x₂−μ₂)²/σ₂² − 2ρ(x₁−μ₁)(x₂−μ₂)/(σ₁σ₂)
```

Subscripts identify the two displacement coordinates. The cross term allows a component’s high-density region to reflect correlated horizontal and vertical movement.

Training again minimises negative log density, with a separate contribution from the stroke-ending event. The continuous-data loss is defined up to a constant associated with quantisation. Consequently, its numerical interpretation differs from the negative log probability of a discrete symbol.

#### Allocate mixture learning through responsibilities

A mixture can predict the same observation through several components. Training needs to determine how much each component contributed.

The unnormalised responsibility is:

```
γ̂ʲ_t = πʲ_t N(x_(t+1),1:2 | μʲ_t, σʲ_t, ρʲ_t)
```

The value γ̂ʲ_t combines the component’s prior mixture weight with the density it assigns to the observed displacement.

Normalisation gives:

```
γʲ_t = γ̂ʲ_t / Σ_(j′=1)^M γ̂ʲ′_t
```

The responsibility γʲ_t describes a component’s share of the total density at the observation. It depends on both how strongly the component was weighted and how well it fits the actual movement.

The mixture-score derivative is:

```
∂L/∂π̂ʲ_t = πʲ_t − γʲ_t
```

This compares the predicted component weight with its responsibility for the observed displacement.

For a component’s continuous parameters, the derivative has a shared form:

```
∂L/∂θ̂ʲ_t = −γʲ_t ∂log N(x_(t+1),1:2 | μʲ_t, σʲ_t, ρʲ_t)/∂θ̂ʲ_t
```

The symbol θ̂ʲ_t stands for a raw mean, scale, or correlation parameter. A component’s contribution to learning is weighted by its responsibility.

The end-of-stroke derivative is:

```
∂L/∂ê_t = x_(t+1),3 − e_t
```

The quantity x_(t+1),3 is the observed binary marker. Its ordering relative to e_t follows from the earlier definition of the end-of-stroke transformation.

For the Gaussian derivatives, the paper introduces:

```
C = 1 / (1−ρ²)
```

C is a compact expression used in the parameter derivatives. For instance, the horizontal mean derivative is:

```
∂log N/∂μ̂₁ = (C/σ₁)[(x₁−μ₁)/σ₁ − ρ(x₂−μ₂)/σ₂]
```

The derivative for the vertical mean exchanges the coordinate roles. The mean update therefore depends on both coordinate residuals when correlation is non-zero.

The horizontal raw-scale derivative is:

```
∂log N/∂σ̂₁ = [C(x₁−μ₁)/σ₁][(x₁−μ₁)/σ₁ − ρ(x₂−μ₂)/σ₂] − 1
```

The raw scale is logarithmic because of the exponential transformation. The vertical scale derivative has the corresponding exchanged coordinates.

The raw-correlation derivative is:

```
∂log N/∂ρ̂ = (x₁−μ₁)(x₂−μ₂)/(σ₁σ₂) + ρ(1−CZ)
```

Every quantity on the right belongs to the same component and observation. Together, these expressions let the output distribution learn through ordinary back-propagation.

#### Optimise handwriting prediction with running gradient statistics

The handwriting experiments use rmsprop with momentum and running gradient statistics. Let ε_i denote the loss derivative for weight w_i.

The running squared-gradient statistic is:

```
n_i = a n_i + (1−a) ε_i²
```

The index i identifies a weight, n_i tracks recent squared derivatives, and a controls the averaging rate.

The running mean derivative is:

```
g_i = a g_i + (1−a) ε_i
```

The value g_i tracks the recent signed gradient. Together, n_i and g_i provide an estimate of recent gradient variation.

The update is:

```
Δ_i = m Δ_i − η ε_i / √(n_i−g_i²+d)
```

Δ_i is the weight increment, m is momentum, η is the learning-rate coefficient, and d is a stabilising constant in the denominator.

The parameter update is:

```
w_i = w_i + Δ_i
```

The experiment uses a = 0.95, m = 0.9, η = 0.0001, and d = 0.0001. Output derivatives are clipped to [−100,100], while derivatives entering the LSTM nonlinearities are clipped to [−10,10].

#### Read text through a soft window

For synthesis, the network receives a character sequence as well as the evolving pen trace. Let c_u be the one-hot vector for character position u, with U positions in total.

The window assigns a weight to each position:

```
φ(t,u) = Σ_(k=1)^K αᵏ_t exp[−βᵏ_t(κᵏ_t−u)²]
```

The index k identifies a Gaussian window component. αᵏ_t controls its strength, βᵏ_t controls its spread, and κᵏ_t gives its position along the text. Larger β values concentrate a component more tightly. K here counts window components; it has a different local meaning from the text inventory size used earlier.

The character information delivered to the network is:

```
w_t = Σ_(u=1)^U φ(t,u)c_u
```

The vector w_t is a weighted combination of character vectors. Its dimension equals the character inventory size. Unlike the handwriting movement mixture, these window weights are not normalised into a probability distribution.

This distinction allows the window’s overall strength to vary as well as its location. Near a character transition, the vector can contain information about neighbouring letters instead of selecting exactly one character.

The first hidden layer predicts raw window parameters:

```
(α̂_t, β̂_t, κ̂_t) = W_h¹p h¹_t + b_p
```

W_h¹p maps the first hidden output into window-parameter space, and b_p is its bias. The three raw parameter vectors each contain one entry per window component.

The window strengths are positive:

```
α_t = exp(α̂_t)
```

The exponential is applied elementwise.

The width parameters are also positive:

```
β_t = exp(β̂_t)
```

This keeps the Gaussian-shaped functions well defined.

The positions advance cumulatively:

```
κ_t = κ_(t−1) + exp(κ̂_t)
```

Each component moves forward by a learned positive amount. The author reports that this incremental formulation was necessary for successful alignment.

The current window enters the higher recurrent layers immediately. The first hidden layer receives the previous window instead, preventing a cycle in which its current output would depend on a window calculated from that same output.

The conditioned first-layer update becomes:

```
h¹_t = H(W_ih¹ x_t + W_h¹h¹ h¹_(t−1) + W_wh¹ w_(t−1) + b_h¹)
```

W_wh¹ connects the delayed window to the first hidden layer.

For a higher layer, the update is:

```
hⁿ_t = H(W_ihⁿ x_t + W_hⁿ⁻¹hⁿ hⁿ⁻¹_t + W_hⁿhⁿ hⁿ_(t−1) + W_whⁿ w_t + b_hⁿ)
```

W_whⁿ connects the current window to layer n. The rest of the recurrence and the mixture-density output retain their earlier roles.

The synthesis objective is conditional sequence likelihood:

```
L = −log P(x | c)
```

The sequence c is the supplied text, and x is the recorded pen trace. Its likelihood remains a product of next-observation densities, but those densities now depend on the text through the moving window.

#### Learn alignment through the handwriting loss

No separate character-to-trajectory alignment labels are required. The loss derivative reaches the window through the recurrent network, then continues into its strength, width, and movement parameters.

The paper defines an intermediate quantity:

```
ε(k,t,u) = αᵏ_t exp[−βᵏ_t(κᵏ_t−u)²] Σ_(j=1)^W [(∂L/∂wʲ_t)cʲ_u]
```

W is the dimension of a window vector, and j indexes its entries. The factor involving ∂L/∂wʲ_t measures how the character at position u contributes to the window’s loss derivative. This ε has a different local role from the weight gradient ε_i in the optimiser.

The raw strength derivative is:

```
∂L/∂α̂ᵏ_t = Σ_(u=1)^U ε(k,t,u)
```

It gathers the component’s contribution across text positions.

The raw width derivative is:

```
∂L/∂β̂ᵏ_t = −βᵏ_t Σ_(u=1)^U ε(k,t,u)(κᵏ_t−u)²
```

Distance from the component centre determines how changes in width affect the character weighting.

The position derivative includes future dependence:

```
∂L/∂κᵏ_t = ∂L/∂κᵏ_(t+1) + 2βᵏ_t Σ_(u=1)^U ε(k,t,u)(u−κᵏ_t)
```

Moving the current position changes later positions because the trajectory of the window is cumulative.

The raw movement derivative is:

```
∂L/∂κ̂ᵏ_t = exp(κ̂ᵏ_t) ∂L/∂κᵏ_t
```

This completes the chain through the positive-increment transformation. Alignment is therefore learned as part of the same optimisation that learns pen movements.

#### Stop, bias, and prime generation

The synthesis procedure needs a stopping rule. The paper compares the window weight just beyond the final character with the weights on actual characters:

```
φ(t,U+1) > φ(t,u) for every u with 1 ≤ u ≤ U
```

When this condition holds, generation stops. U is the final text position, so U+1 represents a location beyond the text. This is a heuristic based on window progress.

For more legible sampling, a non-negative bias b reduces component scales:

```
σʲ_t = exp(σ̂ʲ_t−b)
```

Larger b concentrates sampled movements more tightly around their component means.

The same bias sharpens component selection:

```
πʲ_t = exp[π̂ʲ_t(1+b)] / Σ_(j′=1)^M exp[π̂ʲ′_t(1+b)]
```

At b = 0, the ordinary sampling distribution is recovered. Increasing b reduces variability both within components and between them. In the limiting behaviour described by the author, the procedure selects the mean of the highest-weight component, which need not be the maximum-density point of the whole mixture.

Priming changes the initial history instead. The requested text is appended to the transcription of a real handwriting fragment:

```
c′ = c + s
```

Here c is the priming transcription, s is the new text, and + means concatenation. The network receives the real pen trace while processing the prefix, then switches to sampled movements. Its retained state supplies the connection between the observed style and the generated continuation.

### Experiments and results

#### Penn Treebank: prediction granularity and regularisation

The first text study uses the Wall Street Journal material associated with [Penn Treebank](https://md.research.elamur.ai/free/en/papers/marcus-1993-building-large-annotated-corpus-english/). Its training split contains 930,000 words, validation contains 74,000, and testing contains 82,000. A vocabulary of 10,000 words is retained; other words become an unknown-word symbol.

The comparison uses a single hidden layer with 1000 LSTM cells for both prediction granularities. The character predictor has input and output dimensions of 49 and approximately 4.3M weights. The word predictor has 10,000 input and output entries and around 54M weights. The recurrent layer size is matched, but total parameter count is not.

Both predictors are trained with stochastic gradient descent, a learning rate of 0.0001, and momentum of 0.99. LSTM derivatives are clipped to [−1,1]. End-of-sentence symbols contribute to the loss. A separate beginning-of-sentence symbol is unnecessary because the initial zero vector already supplies the starting condition.

The paper reports bits per character and perplexity. Bits per character averages the negative base-two log probability across text. Perplexity expresses uncertainty on a word basis. The reported conversion uses an average test-word length of about 5.6 characters:

```
perplexity ≈ 2^(5.6 BPC)
```

BPC denotes bits per character, and perplexity is the corresponding word-based measure under that approximate average-length conversion. Lower values indicate better prediction.

The main reported pattern is that word prediction performs better, but regularisation reduces the gap. Both networks readily overfit this relatively small corpus, so the parameter-count imbalance does not yield a simple interpretation about how much a larger character predictor would help.

The following chart places the experiment in the external comparison context reported by the author. These are earlier Penn Treebank test results collected in the discussion, rather than numerical scores assigned to the paper’s own LSTM predictors. The star identifies the strongest listed comparison setting.

Earlier Penn Treebank test comparisons, word perplexity The combined setting gives the strongest result among these contextual comparisons.

**The numbers**

| System or setting | perplexity |
| --- | --- |
| 5-gram with Kneser–Ney smoothing | 141 |
| Word-based feedforward network | 141.8 |
| PAQ8 compression predictor | 131.1 |
| Dynamically evaluated word RNN | 123.2 |
| RNN, 5-gram, and cache combination (this paper) | 89.4 |

The distinction between a single predictor and a combination matters. The author describes the LSTM results as competitive with strong individual approaches, while the combined system in the chart is a stronger reference point.

#### Dynamic evaluation changes the prediction setting

The paper evaluates text with both fixed and changing weights. In dynamic evaluation, the network predicts an observation before using it for an update, and the evaluation sequence is traversed only once.

This is possible because the observed input is also the future prediction target. It makes the comparison with adaptive compression methods more meaningful, since those methods also learn while processing a stream.

The discussion reports a relatively small change for an earlier ordinary word RNN: perplexity moves from 124.7 to 123.2. The benefit is described as substantially greater for the LSTM experiments. The author interprets this as evidence that LSTM adapts effectively to recently encountered material.

That conclusion concerns a particular online prediction protocol. It should not be treated as an interchangeable score with fixed-weight evaluation. Adaptation is part of the evaluated system behaviour.

#### Wikipedia: byte prediction over heterogeneous material

The Wikipedia experiment uses the Hutter Prize data, which contains 100 million bytes. Unlike cleaned prose, it includes markup, web addresses, metadata, and character encodings from different writing systems.

The first 96M bytes supply training data and the final 4M supply validation. The input inventory contains 205 distinct byte symbols. Some displayed characters require several bytes, so a prediction step does not necessarily correspond to a complete visible character.

The architecture has seven recurrent layers with 700 LSTM cells per layer, amounting to roughly 21.3M weights. Training uses a learning rate of 0.0001, momentum of 0.9, and clipping to [−1,1]. Convergence is reported after four epochs.

Dynamic evaluation improves validation prediction markedly. The proposed explanation is that neighbouring Wikipedia passages share subject matter and vocabulary, making adaptation to a current article useful. The author also explains why dynamically evaluated validation data can be easier than training data: the network underfits, and the material varies in intrinsic predictability.

Several compression and prediction results provide context, but their conditions differ. A PAQ-8 variant is reported at 1.28 BPC for the full compression task, including implementation code. A character RNN on a cleaned, text-only version reaches 1.54 on held-out material, and a combination with a maximum-entropy component reaches 1.47. These do not constitute a controlled ranking of identical tasks.

The generated Wikipedia sample supplies qualitative evidence. It contains plausible word forms, punctuation, web-address shapes, non-Latin writing, and extended passages resembling metadata or article prose. Opening and closing delimiters, nested tags, and changes between formatting regions are especially relevant to the memory argument.

The sample also reflects recently encountered training subjects, including missile-related terminology. This supports the claim that recent material influences the network’s predictions, but it complicates any interpretation of the sample as independent of the final training context.

#### Handwriting prediction: continuous uncertainty matters

The handwriting data come from IAM-OnDB, recorded from 221 writers using a whiteboard system. Its standard partition contains 5364 training lines, validation partitions of 1438 and 1518 lines, and 3859 test lines. The associated form counts are 775, 192, 216, and 544.

The experiment changes those partitions for generation research. Training includes the original training data, original test data, and the larger validation partition. The smaller validation partition supplies early stopping. Each line is a separate sequence, so any dependence between neighbouring lines is discarded.

Recording errors are corrected by interpolation and by removing excessively long steps. The coordinate offsets are standardised to training-set mean 0 and standard deviation 1. The system does not otherwise normalise away writing size, slant, or similar style variation.

The input dimension is 3. The output uses 20 Gaussian components, requiring 120 mixture parameters, plus a stroke-ending parameter for an output dimension of 121.

The architecture comparison is relatively well controlled for total size. One network contains three layers of 400 LSTM cells; another contains a single layer of 900 cells. Each has around 3.4M weights.

The deeper network improves average sequence loss by 15.3 nats relative to the single-layer network. Yet the single-layer network has slightly better sum-squared error. Retraining the deeper network with adaptive weight noise improves sequence loss by another 16.7 nats without a significant change in squared error.

The samples show recognisable strokes, letters, and short common words. Their significance comes from the temporal scale: a typical letter occupies more than 25 prediction steps, while a line occupies around 700. The displayed unconditional samples each run for 700 timesteps.

#### Handwriting synthesis: text reduces uncertainty

The synthesis experiment keeps the pen-trace representation and most architecture choices. It uses three recurrent layers containing 400 cells each, 20 output mixture components, and approximately 3.7M weights.

The full transcription inventory contains 80 characters. The experiment retains 57 distinct labels, replacing digits and much punctuation with a shared non-letter label. Window vectors therefore have dimension 57. The window itself combines 10 Gaussian functions, producing a parameter vector of size 30.

Adaptive weight noise again improves likelihood. The reported gain is around 31.3 nats, with no significant squared-error change between the synthesis networks. Compared with the strongest prediction-only network, synthesis reduces sum-squared error by 44%.

The author attributes much of that reduction to stroke transitions. Knowing the upcoming text narrows the range of plausible locations for the next stroke to begin. The density visualisations support that explanation by showing more concentrated predictions, particularly where the pen moves between strokes.

Visual results are impressive but uneven. Some ordinary samples resemble real writing closely, while others omit, confuse, or distort letters. Rare wording increases the error rate qualitatively. Biased sampling improves readability, and priming can preserve a recognisable style, but these observations do not supply a comprehensive numerical evaluation of transcription accuracy or writer imitation.

### What the ablations show

The paper offers several architecture, regularisation, evaluation, and sampling comparisons, although it does not isolate every component through a complete removal study.

#### More layers help likelihood, even when squared error disagrees

The handwriting comparison holds total parameter count approximately constant while changing how those parameters are arranged. This makes it more informative than simply comparing a small network with a much larger one.

The deeper architecture assigns better density to complete sequences. The shallower architecture nevertheless produces slightly lower squared error. These findings can coexist because the metrics ask different questions.

Squared error evaluates closeness under a particular point-based comparison. Log likelihood evaluates a full predictive distribution. A distribution can better represent several plausible movements, their correlations, and their uncertainty without improving the corresponding squared-error measure.

This is especially relevant for handwriting. At a stroke boundary, several movements may be plausible until more information is available. A distribution that represents those possibilities well can be a better generator even when a simpler error measure fails to reward it.

The experiment therefore supports depth for this density-prediction setup. It does not establish that depth always improves every measure of trajectory quality, nor does it determine the best possible allocation of cells across layers.

#### Regularisation improves distribution quality

The Penn Treebank experiments begin with overfitting predictors. Fixed weight noise is applied at the start of each training sequence, using standard deviation 0.075. Adaptive noise then learns its variability through a description-length objective.

Training proceeds in stages: the fixed-noise network starts from the unregularised weights, and the adaptive-noise network starts from the fixed-noise weights. The author reports this progression as faster than beginning regularised training from random weights.

Adaptive weight noise is too slow for the word-based text network, so its regularisation comparison remains incomplete. The character predictor and handwriting networks receive a broader exploration of adaptive noise than the word predictor does.

For handwriting, fixed-variance noise is ineffective. The suggested explanation is that a continuous mixture-density output needs precisely adjusted parameters. Adaptive noise improves likelihood while leaving squared error nearly unchanged.

The reusable conclusion is therefore conditional. Noise can help generalisation, but the way it is imposed matters, particularly when output parameters encode narrow continuous distributions. The experiments do not support treating all weight noise as an equivalent intervention.

#### Text conditioning improves predictions at difficult transitions

The synthesis network is designed to resemble the strongest handwriting predictor closely. Its main addition is the character-conditioning pathway, although its parameter count also increases.

Both synthesis variants outperform the prediction-only network. The size of the squared-error reduction, together with the density visualisations, supports a concrete interpretation: knowing the text resolves uncertainty about upcoming movement.

The evidence is strongest at stroke boundaries. During a stroke, local motion already constrains the next point. After a pen lift, the next position can be much farther away. Character information helps determine which destination is appropriate.

The study does not separately remove the window’s width control, strength control, or individual connections to hidden layers. It therefore validates the combined conditioning mechanism more directly than any isolated element within it.

#### Positive progress is an important alignment choice

The author reports that predicting forward offsets was necessary for learning a useful correspondence between text and movement. This is a specific architectural observation, even though the discussion does not attach a full numerical comparison to it.

An absolute position prediction would repeatedly ask the network to locate itself afresh. The cumulative version instead turns progress into state. Each new position inherits the previous one and adds a positive movement.

The alignment visualisation also shows spreading around transitions between characters. This indicates that the window supplies neighbouring character information while the pen changes from one letter to another. It supports the intended role of the soft window as a gradual guide rather than a hard character switch.

#### Sampling bias exposes a trade-off

Increasing the bias makes writing more uniform and easier to read. At the same time, samples lose variation and approach a regular average style.

This comparison concerns how an already trained network is sampled. It does not show that training improved. Nor does the local sharpening procedure solve a global search for the highest-probability complete trajectory.

Even highly concentrated generation remains history-dependent. Repeated letters within a line can differ because their preceding trajectories differ. Removing sampling variation does not convert the network into a collection of fixed letter templates.

#### Priming reveals retained style

A real prefix can influence later handwriting after sampling begins. This is evidence that the recurrent state retains properties beyond the immediate next pen position.

The demonstration is qualified in several ways. Priming works more effectively on training sequences than on unfamiliar ones, and displayed examples are selected for readability. The experiment does not measure the accuracy of writer identification or separate every style property.

Combining priming with a bias of 1 produces smoother continuations that retain broader traits such as slant and connectedness. This supports a possible distinction between carrying style through memory and controlling local variability through sampling. It does not prove that those factors are fully independent inside the network.

### Limitations

#### Limits stated by the author

The most direct language limitation concerns meaning. The Wikipedia output reproduces many surface regularities, but extended passages do not sustain sensible content. The author allows that more capacity or data might improve realism while expressing doubt that text-only experience can establish the connection between language and the sensory world.

That last point is an interpretation, rather than an experimental comparison within the paper. The experiment demonstrates a gap between structural imitation and meaningful discourse; it does not test alternative forms of grounding.

The handwriting evaluation has no independent test partition after the data are reorganised. The author explicitly acknowledges that validation measurements may be optimistic. Because early stopping and experimental judgement use that validation material, those results cannot provide the same assurance as evaluation on untouched data.

Numerical stability also remains imperfect. Clipping output derivatives is described as necessary, but late training can still encounter numerical problems after overfitting begins. The procedure reduces a difficulty rather than eliminating it.

The synthesis network makes errors that are unusual for a person copying text, including missing or malformed letters. Uncommon wording causes more mistakes. The author suggests that an implicit character-based predictor learned from the training data can interfere when requested transitions are unfamiliar.

The reduced transcription inventory is another admitted issue. Replacing distinct digits and punctuation with a common label prevents exact specification of those characters. The network must resolve the missing identity from context or choose among alternatives.

Priming has its own stated qualification: familiar training sequences work better than unseen examples. This limits how confidently the demonstrations can be interpreted as general style imitation from arbitrary handwriting.

#### Limits visible in the experimental design

The memory argument is compelling but only partly isolated. LSTM is motivated by the weaknesses of ordinary recurrent memory, yet the principal generation demonstrations do not provide a matched comparison that changes only the memory mechanism.

Similarly, the paper’s skip connections have a clear training rationale, but there is no reported removal comparison establishing their individual contribution to the displayed samples. Their role is part of the architecture’s design explanation instead of a separately measured causal effect.

The Penn Treebank granularity comparison is unequal in total size. Matching 1000 recurrent cells does not match the cost of the much larger word input and output layers. The experiment shows useful performance with a smaller character predictor, but it cannot resolve every question about granularity at equal parameter count.

Dynamic evaluation also changes the meaning of prediction performance. A network adapting to an article can benefit from information unavailable to a fixed-weight predictor. That is a valid streaming setting, but results require the adaptation protocol to remain visible.

The Wikipedia comparisons mix cleaned text prediction, byte-level prediction over markup, and complete compression including executable code. These provide perspective instead of a single common leaderboard. A lower number under one condition cannot automatically establish superiority under another.

Visual handwriting realism is not the same as accurate transcription. A line may look convincingly handwritten while containing the wrong letters. Conversely, a legible line may have limited stylistic variety. The paper does not provide a systematic evaluation that combines content correctness, readability, diversity, and style preservation.

The informal presentation tests are suggestive, but they do not establish a reproducible human discrimination rate. The number of observers, selection procedure, and full judgement protocol are not given as a controlled study.

The soft window imposes a forward-moving correspondence. That is sensible for text-conditioned handwriting, but it limits direct transfer to tasks requiring substantial reordering or repeated returns to earlier instructions. Even within handwriting, delayed marks show that local pen motion is more complicated than a perfectly aligned character sequence.

Finally, the legibility bias is a heuristic. Choosing more concentrated local predictions may improve appearance, but it does not guarantee the best complete sequence. The stopping rule is heuristic as well: passing beyond the final character in window space does not independently verify that every requested letter was written correctly.

#### Open directions rather than demonstrated capabilities

The conclusion proposes [speech synthesis](https://md.research.elamur.ai/free/en/topics/speech/) as a possible extension, while noting the challenge of more complex observations. The handwriting experiments do not establish that the same settings would work for speech.

The author also proposes inspecting internal representations and using them to control generation more directly. Another direction is automatically discovering annotations richer than text, such as stylistic attributes or stroke-order information.

These proposals identify what remains missing from the demonstrated system. Its style control is indirect, its annotation stream is supplied externally, and its internal organisation is inferred mainly from behaviour and visualisations.

### What came after

The later citation record connects this paper to research on alignment, sequence generation, recurrent architecture, character representations, and optimisation. A citation establishes a relationship in the literature; it does not, by itself, establish that a later method copied a particular equation or inherited a measured advantage. The most useful way to read these connections is to distinguish the original contribution from the later problem named by each work.

#### Alignment becomes a broader sequence question

[Neural Machine Translation by Jointly Learning to Align and Translate](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/) places alignment inside a translation system. That makes it a particularly relevant later citation: Graves’s handwriting generator already treats correspondence between an auxiliary sequence and generated observations as something to learn during generation. The shared question is how a system decides which part of an input sequence matters while producing an output. The citation alone does not make the translation method equivalent to the forward-moving Gaussian window.

[Sequence to Sequence Learning with Neural Networks](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/) broadens the sequence-generation connection. Graves conditions a long trajectory on a shorter character sequence; the later title places sequence-to-sequence learning at the centre of the problem. The important continuity is the move beyond predicting an isolated label towards producing an entire dependent output sequence.

[On the Properties of Neural Machine Translation: Encoder-Decoder Approaches](https://md.research.elamur.ai/free/en/papers/cho-2014-properties-neural-machine-translation-encoder/) belongs to the same surrounding discussion. Its focus on encoder-decoder approaches makes the organisation of input information relevant to the comparison. Graves’s particular choice is to expose a moving view of the input text during generation, rather than describe handwriting solely through an unchanging summary.

[Attention-Based Models for Speech Recognition](https://md.research.elamur.ai/free/en/papers/chorowski-2015-attention-based-models-speech-recognition/) connects learned correspondence with another temporally extended signal. Speech recognition and handwriting synthesis are different tasks, but both make alignment between sequences a central concern. The citation places the soft-window contribution within that wider research question without establishing that the same movement constraint or distribution was reused.

[Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/) supplies a later point in the history of [attention](https://md.research.elamur.ai/free/en/concepts/transformer/). Graves’s window is useful background for understanding why a learned weighting over sequence positions matters. Its specific form remains distinctive: Gaussian-shaped weights, unnormalised strength, and cumulatively advancing locations. Those details should remain visible when relating it to later attention research.

#### Recurrent architecture and training remain separate issues

[LSTM: A Search Space Odyssey](https://md.research.elamur.ai/free/en/papers/greff-2015-lstm-search-space-odyssey/) makes the design space of LSTM itself the subject. Graves uses a particular gated cell with diagonal cell-to-gate connections. The later citation is relevant because successful generation raises a follow-up question about which recurrent details matter. The title establishes that architectural focus; it does not justify attributing an unreported component-level finding to either paper.

[Recurrent Neural Network Regularization](https://md.research.elamur.ai/free/en/papers/zaremba-2014-recurrent-neural-network-regularization/) connects to another practical theme. Graves’s results repeatedly separate raw capacity from generalisation, using weight noise and adaptive weight noise to address overfitting. The later work’s subject keeps regularisation in view as its own research problem. Citation does not mean that all recurrent regularisation methods should be treated as the same intervention.

[Layer Normalization](https://md.research.elamur.ai/free/en/papers/ba-2016-layer-normalization/) and [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) belong to the broader training context. The original paper’s concrete difficulties include unstable derivatives, sensitive continuous-output parameters, and the choice of running gradient statistics. These later citations show its presence in research concerning how neural systems are trained. Their titles do not establish that either method was part of Graves’s experiments.

#### Small units and visible sequence behaviour persist as themes

[Character-Aware Neural Language Models](https://md.research.elamur.ai/free/en/papers/kim-2015-character-aware-neural-language-models/) connects directly to the question of how character information should enter language prediction. Graves’s experiments make a clear case for the flexibility of small units while recording their cost in longer dependencies. The later title identifies character awareness as a continuing design concern, without requiring the same purely character-by-character generation setup.

[Enriching Word Vectors with Subword Information](https://md.research.elamur.ai/free/en/papers/bojanowski-2017-enriching-word-vectors-subword-information/) approaches a neighbouring issue through word representations. Its relevance is the value of information below the whole-word level. Graves uses small units to create unfamiliar strings; the later title concerns enriching word vectors. Those are related motivations with different immediate objects.

[Visualizing and Understanding Recurrent Networks](https://md.research.elamur.ai/free/en/papers/karpathy-2015-visualizing-understanding-recurrent-networks/) connects to the paper’s unresolved question about internal representation. Graves infers persistent memory from delimiter handling, handwriting consistency, and primed continuation. The later work’s title foregrounds the complementary aim of examining recurrent behaviour more directly.

[DRAW](https://md.research.elamur.ai/free/en/papers/gregor-2015-draw-recurrent-neural-network-image/) extends the later citation landscape to recurrent image generation. Graves’s continuous handwriting experiment already demonstrates that recurrent generation need not be restricted to text symbols. The connection is therefore a broader generative role for recurrent computation, while the later title identifies a different output domain.

Together, these connections clarify the paper’s lasting questions: how a generator retains context, how it follows another sequence, how small prediction units assemble into larger structure, and how sampling exposes the distribution it has learned. The handwriting system gives those questions an unusually concrete form, because memory, alignment, uncertainty, and style all become visible in the movement of a pen.

## Cite

Cite as Alex Graves. 2013. Generating Sequences With Recurrent Neural Networks. arXiv:1308.0850.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1308.0850](https://doi.org/10.48550/arxiv.1308.0850) · [arXiv 1308.0850](https://arxiv.org/abs/1308.0850)

```bibtex
@misc{graves2013generating,
  title = {{Generating Sequences With Recurrent Neural Networks}},
  author = {Alex Graves},
  year = {2013},
  doi = {10.48550/arxiv.1308.0850},
  eprint = {1308.0850},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1308.0850}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
