Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Sequence Transduction with Recurrent Neural Networks

Sequence transduction with RNNs learns to align inputs and outputs end to end

  • Problem Standard RNNs need the alignment between input and output fixed in advance, so they cannot model output sequences whose length is unknown. Finding that alignment is often the hardest part of transduction tasks.
  • Method The transducer pairs a bidirectional RNN transcription network with an LSTM prediction network. It sums over null-padded alignments to give one distribution over output sequences, and it decodes with beam search.
  • Results On TIMIT phoneme recognition, the transducer reaches a 23.2% phoneme error rate on the test set. A standalone CTC network reaches 25.5%.

Why fixed alignments limit RNNs

Standard RNNs are usually applied where the mapping between input and output positions is known beforehand, such as labelling every frame of a speech signal or every residue of a protein chain. In that setting the probabilistic outputs form a distribution over sequences with the same length as the input, which cannot represent outputs whose length is unknown in advance.

A general-purpose transducer needs a distribution over sequences of every length, and because the alignment between inputs and outputs is not known, that distribution has to cover all possible alignments. The authors point out that finding the alignment is often the hardest part of a transduction problem, and that even the output length is frequently hard to determine.

Beyond alignment, the representation of both inputs and outputs has to tolerate distortions such as different voices or speaking rates in speech. If a language model supplies prior knowledge about outputs, the model also has to tolerate missing words, mispronunciations and non-lexical utterances.

How the transducer extends CTC

CTC is an RNN output layer that places probability on alignments containing null outputs, but only for output sequences no longer than the input. It does not model dependencies between the outputs, which also rules out tasks such as text-to-speech where the output is longer than the input.

It resembles chain-graph conditional random fields in being discriminative, but it builds its potentials from RNNs that learn features from raw data and can reach back an unbounded distance, rather than from pairwise output potentials and hand-crafted input features.

The authors also place the design in the spirit of Graph Transformer Networks, where differentiable modules, often neural networks, are trained jointly across consecutive graph transformations.

Null outputs and alignments

The output space is extended with a null symbol, so that the extended space is the set of labels together with the null output, written \(\bar{\mathcal{Y}} = \mathcal{Y} \cup \varnothing\). Sequences over this extended space are called alignments, and inserting nulls at chosen positions decides which input step produces which output element.

For example, a sequence with nulls interleaved between labels y1, y2 and y3 is equivalent to the plain sequence of those three labels once the nulls are removed.

A function \(\mathcal{B}\) removes the null symbols from an alignment, so the probability of a target sequence y is the sum of Pr(a given x) over all alignments a that \(\mathcal{B}\) maps to y. Because many different alignments collapse to the same output, the output probability is their total, which is why the distribution is taken over output sequences rather than over alignments.

Prediction and transcription networks

The transcription network is a bidirectional RNN that reads the input forwards and backwards through two hidden layers feeding one output layer, so each transcription vector depends on the whole input. Its output layer has K plus 1 units when there are K output labels, matching the size of the prediction network's output, and the transcription vectors are sized to that layer.

The prediction network reads the previously emitted labels as one-hot vectors, with a null start symbol placed in front, and it has one hidden layer followed by an output layer that also has K plus 1 units. Its hidden state is updated by \(h_u = H(W_{ih}\hat{y}_u + W_{hh}h_{u-1} + b_h)\) and its prediction vector is \(g_u = W_{ho}h_u + b_o\), with H the hidden layer function.

Because the prediction network sees only earlier outputs, it works like a next-step predictor that can also emit nulls.

The authors use the LSTM architecture as H, because it finds and uses long range context better than elementwise tanh or sigmoid recurrences, and its gates and state vector are defined in Eqs. (4) to (8). In the LSTM used here the weights from the state to the gate vectors are diagonal, so each gate element reads only the same element of the state.

From network outputs to a lattice

For a transcription vector at step t and a prediction vector at position u, each label k receives a density given by \(\exp(f^k_t + g^k_u)\), where the superscript k picks out the kth element of each vector. Normalising these densities over all labels in the extended space gives the conditional output distribution Pr(k | t, u), which is used as the transition probability in the lattice.

The authors abbreviate the probability of emitting the next target element as y(t, u) and the probability of emitting nothing as \(\varnothing(t,u)\). In the lattice a horizontal step leaving node (t, u) emits nothing, and a vertical step emits element u plus 1 of the target sequence. Each path from the bottom left to the top right corresponds to one alignment, and its probability is the product of the transition probabilities along it.

The lattice therefore assigns a probability to every alignment, and summing these alignment probabilities gives the probability of the whole output sequence for the given input. Since the same lattice can be drawn for any finite target sequence, Pr(k | t, u) defines a distribution over all possible output sequences for one input.

Forward-backward training

Summing directly over the lattice is intractable, so the forward variable is computed recursively, with \(\alpha(t,u)\) for each node as the probability of having emitted the first u target elements by step t. The recursion adds two contributions: \[ \alpha(t,u) = \alpha(t-1,u)\,\varnothing(t-1,u) + \alpha(t,u-1)\,y(t,u-1) \] with \(\alpha(1,0) = 1\) as the starting condition.

The probability of the full output sequence is the forward variable at the terminal node multiplied by its null transition, \(\Pr(y \mid x) = \alpha(T,U)\,\varnothing(T,U)\).

A backward variable \(\beta(t,u)\) is defined in the same way from the end of the lattice, with \(\beta(t,u) = \beta(t+1,u)\,\varnothing(t,u) + \beta(t,u+1)\,y(t,u)\) and the terminal condition \(\beta(T,U) = \varnothing(T,U)\). The product \(\alpha(t,u)\beta(t,u)\) gives the probability of emitting the complete output with element u emitted at step t, and summing these products along any diagonal with \(t+u=n\) returns the same sequence probability for each n.

Training minimises the log-loss \(L = -\ln \Pr(y^* \mid x)\) of the target sequence, so the minus sign is part of the objective that gradient descent lowers. The derivative of L with respect to each lattice transition probability is written in terms of the forward and backward variables, and it is then passed through the softmax to the transcription and prediction vectors.

Backpropagation Through Time is applied to each of the two networks separately to obtain the weight gradients.

A separate softmax for every lattice node would be expensive because of the exponential function. Instead the exponential terms of the transcription and prediction vectors are computed once and multiplied, which cuts the number of exponential evaluations per training sequence from O(TU) to O(T+U), where T is the transcription length and U the target length.

Beam search at test time

At test time the aim is the most probable output sequence, and finding that mode is much harder than scoring one sequence, because the prediction vectors depend on all earlier outputs. The method used here is a fixed-width beam search over the tree of output sequences, which scales to long sequences and lets compute be traded against search accuracy.

At each transcription step the search extends the prefixes kept in its candidate set by one label or by a null, and it keeps only the W most probable sequences in the beam. The returned sequence is the one with the highest length-normalised log probability, \(\log \Pr(y)/|y|\), among the beam's entries. Normalising by length matters because without it shorter outputs are favoured too strongly.

The search can also return a sorted list of the N best entries, for any N no larger than W. Since the prediction vector of a sequence depends only on the current hidden vector, the search stores hidden vectors for existing prefixes and runs one step of the prediction network for each new label, which speeds up search at the cost of memory.

TIMIT setup and training details

The experiments use phoneme recognition on the TIMIT speech corpus, with the reduced set of 39 phoneme targets used in both training and testing. The core training and test sets contain 3696 and 192 utterances, and a validation set of 184 sequences was randomly taken from the training set.

Audio is converted to features with a 26 channel mel-frequency filter bank and a pre-emphasis coefficient of 0.97, computing 12 mel-frequency cepstral coefficients plus an energy coefficient on 25ms Hamming windows at 10ms intervals.

For the prediction network the error is the misclassification rate of the next phoneme given the previous ones, and log-loss is also reported as bits per phoneme target.

The full transducer has 261,328 weights, and the standalone prediction and CTC networks, which are structurally similar but with one fewer output unit for the prediction network, have 91,431 and 169,768 weights.

All networks are trained with online steepest descent, updating weights after every sequence, with learning rate 10^-4 and momentum 0.9. The prediction and transducer networks are stopped at the lowest validation log-loss, while the CTC network is stopped at the lowest validation phoneme error rate. The CTC network is decoded with prefix search at a probability threshold of 0.995, and the transducer with beam search at beam width 4000.

Phoneme recognition results on TIMIT

The transducer reached a 23.2% phoneme error rate with a log-loss of 1.0 bits per target phoneme, after 76 epochs. The CTC network reached 25.5% and 1.3 bits after 96 epochs, and the standalone prediction network reached 72.9% and 4.0 bits after 58 epochs. The prediction network error counts misclassifications of the next phoneme, so it is not the same quantity as the decoded error rate of the other two systems.

The authors compare the transducer's error rate with the current TIMIT benchmark of 20.5%, which they attribute to Dahl et al. (2010), and state that the transducer is among the lowest recorded on TIMIT. To the authors' knowledge it is the best result obtained with a recurrent neural network, and the 20.5% figure is a cited prior result rather than a run in this study.

The gap between the transducer and CTC alone is relatively slight, and the authors attribute part of this to the training set being small for the prediction network.

The authors expect a larger dataset to give greater improvement, and they suggest pretraining the prediction network on a large target-only dataset before joint training as part of the transducer, a procedure they compare with combining language models and acoustic models in HMM recognisers.

Limitations

The advantage of the transducer over CTC alone is described as relatively slight in these experiments. The authors suggest the small TIMIT training set may be one reason the prediction network adds little, and they expect a larger dataset to help.

The quantitative experiments cover only TIMIT phoneme recognition, and the end-to-end speech recognition example is presented as an illustration of the sensitivity analysis rather than as a benchmark. The transcription network is assumed to have the same length as the input, and a pooling architecture that would shorten it is mentioned but not used.

The authors did not test how much bidirectionality affects performance, since each output depends on the whole input, and they note they have not measured this. Decoding is a fixed-width beam search, so the returned sequence is the best one the beam retains rather than a guaranteed mode of the distribution.

Sensitivity analysis and scope

The authors apply this analysis to an end-to-end speech recognition setting in which spectrogram images are transcribed directly into character sequences, without an intermediate phoneme stage.

The conclusions state that the transducer integrates acoustic and linguistic information during a speech recognition task, but the analysis here is qualitative and is not paired with a reported error rate.

Paper info

Authors
Alex Graves
Venue
arXiv · Preprint
First published
2012-11-14
Added
2026-11-12
Updated
2012-11-14
Version
v1
arXiv
1211.3711
Category
cs.NE · cs.LG · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Alex Graves (2012). Sequence Transduction with Recurrent Neural Networks. arXiv:1211.3711v1. https://arxiv.org/abs/1211.3711v1

BibTeX
@misc{graves2012sequence,
  title = {{Sequence Transduction with Recurrent Neural Networks}},
  author = {Alex Graves},
  year = {2012},
  eprint = {1211.3711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1211.3711v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up