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

Deep Speech: Scaling up end-to-end speech recognition

End-to-end deep learning recognizes speech in noisy settings without phoneme dictionaries

  • Problem Traditional recognizers chain separately engineered stages, so noise robustness has to be built stage by stage. They also perform poorly in noisy environments.
  • Method Deep Speech replaces the chain with one recurrent network that maps spectrogram frames to characters trained with CTC loss. Instead of phoneme dictionaries, it learns noise robustness from synthetic noisy audio.
  • Results Deep Speech reaches 16.0% error on the full Switchboard Hub5'00 test set, outperforming previously published results.

Why hand-engineered speech pipelines are hard to make robust

Conventional recognizers stack several separately engineered stages, from specialized input features to acoustic models and Hidden Markov Models, and each stage needs repeated expert tuning. Deep learning has so far mostly entered these pipelines as a better acoustic model, which leaves noise robustness to be engineered in the other stages.

The authors replace the whole chain with one recurrent network that maps spectrogram frames to character probabilities, so no phoneme dictionary and no hand-built noise or speaker components are needed.

Training such a model needs two things: a way to learn from audio that is not aligned with its transcript, which the CTC loss provides, and a large supply of labeled audio that exhibits the distortions the system must handle. The second requirement is where most of the data work in the paper lies, and it is covered after the model and its training are described.

The recurrent network and its training loss

Each utterance is a sequence of \( T^{(i)} \) spectrogram frames, and \( x^{(i)}_{t,p} \) is the power in frequency bin p of frame t. At every time step the output is a probability for each symbol in a set made of the letters, a space, an apostrophe and a blank.

The network has five layers of hidden units. The first three are feed-forward and process each time step independently, and the first layer sees a window of C frames on each side of the current frame, with C taken from 5, 7 and 9. Each of these layers computes the following, with a clipped ReLU that caps activations at 20 so that the recurrent layer cannot blow up.

\[ h^{(l)}_t = g(W^{(l)} h^{(l-1)}_t + b^{(l)}), \qquad g(z) = \min\{\max\{0,z\}, 20\} \]

The fourth layer is bi-directional. A forward set of units reads the sequence from the start and a backward set reads it from the end, and both share the layer input weights W^(4) and the bias b^(4). \[ h^{(f)}_t = g(W^{(4)} h^{(3)}_t + W^{(f)}_r h^{(f)}_{t-1} + b^{(4)}) \] \[ h^{(b)}_t = g(W^{(4)} h^{(3)}_t + W^{(b)}_r h^{(b)}_{t+1} + b^{(4)}) \] Because the forward set must run from t = 1 upward and the backward set from T^(i) downward, this layer is the sequential bottleneck of the network.

The fifth layer takes the sum \( h^{(4)}_t = h^{(f)}_t + h^{(b)}_t \), and a softmax output layer gives the character probabilities for each time step. \[ \hat{y}_{t,k} = P(c_t = k \mid x) = \frac{\exp(W^{(6)}_k h^{(5)}_t + b^{(6)}_k)}{\sum_j \exp(W^{(6)}_j h^{(5)}_t + b^{(6)}_j)} \]

The CTC loss L(ŷ, y) compares these per-step probabilities with the ground-truth character sequence, and its gradient with respect to the outputs is propagated back through the rest of the network. Training uses Nesterov's accelerated gradient with momentum 0.99, and the learning rate is multiplied by a constant factor after each pass through the data, with the factor chosen for the fastest convergence.

The authors use a single recurrent layer and no LSTM cells. An LSTM cell computes and stores several gate responses at every step, and since the recurrences run sequentially, that extra work becomes a bottleneck. With the ReLU recurrence, the recurrent step needs only a few optimized BLAS operations and one pointwise nonlinearity on the GPU.

The authors also shift the raw audio by 5ms to the left and right, recompute the features for each shifted copy, and average the output probabilities. At test time the outputs of several RNNs are averaged in the same way.

Combining the RNN with a language model

For many utterances the most likely character sequence from the RNN is already correct. Its remaining errors are often phonetically plausible spellings of words that are rare in the speech training data. Table 1 lists examples in which a misspelled city name and a misspelled politician's name were corrected once a language model was added.

The decoder searches for the character sequence c that maximizes a combined objective, in which the RNN and language model scores enter as log terms and a word count term rewards longer sentences. \[ Q(c) = \log(P(c|x)) + \alpha \log(P_{lm}(c)) + \beta \, \mathrm{word\ count}(c) \] The weights α and β are tuned by cross-validation and set the balance between the RNN, the language model and sentence length.

The language model is an N-gram model. The noisy experiments use one trained on 220 million phrases with a vocabulary of 495,000 words, which is far larger than the speech data available for training. The search is a beam search with a typical beam size between 1000 and 8000.

Scaling training across GPUs

The network is large, with almost 5 billion connections when fully unrolled for a typical utterance, so training speed decides how many experiments are feasible. Within one GPU, many examples are stacked into one matrix so the recurrent step becomes a single matrix product over the batch, and the authors note the GPU is most efficient when this batch is about 1000 examples or more.

Across GPUs, each device works on its own minibatch and the gradients are combined in every iteration, with 2× or 4× data parallelism typical. Utterances of different length cannot be stacked into one matrix, so the training examples are sorted by length, combined only with similar lengths, and padded with silence to a common length within each batch.

Data parallelism stops paying off after small multiples of the batch size. Doubling the examples on twice as many GPUs does not double the training speed, and splitting a fixed minibatch across more GPUs leaves each device's work small enough that memory bandwidth becomes the limit. To scale further the model itself is partitioned across GPUs.

Placing the forward and backward recurrences on separate GPUs would force large transfers before the fifth layer, which needs both directions, so the model is split in half along time instead. The first GPU runs the forward recurrence and the second the backward one on their halves. At the midpoint the two exchange activations and swap roles, and each then finishes the other direction.

Striding takes steps of size 2 over the input, which halves the number of unrolled recurrent steps. The authors implement this first layer as a convolution with cuDNN.

Assembling read speech and synthesized noise

Table 2 lists the corpora: WSJ with 80 hours from 280 speakers, Switchboard with 300 hours from 4000 speakers, Fisher with 2000 hours from 23000 speakers, and the authors' own read set of 5000 hours from 9600 speakers. The read set was collected because public corpora of comparable scale are few.

Since audio is roughly the superposition of its sources, noisy training speech can be formed by adding a noise track to clean speech, optionally after adding reverberation or echo to either one. \[ \hat{x}^{(i)} = x^{(i)} + \xi^{(i)}_1 + \xi^{(i)}_2 + \dots \]

Turning 1000 hours of clean speech into 1000 hours of noisy speech would need noise spanning roughly 1000 hours, and a short repeated noise track could be memorized and subtracted by the network. The authors therefore superimpose many shorter noise clips collected from public video sources, each treated as a separate noise source. Candidate clips are rejected when their average power in some frequency band differs significantly from the average power of real noisy recordings.

The authors treat the Lombard Effect as absent from recorded speech datasets, because those are collected in quiet environments. To put it into training data, the speakers record utterances while loud background noise plays through headphones, which induces them to change their voice.

Hub5’00 conversational speech results

The evaluation uses the full Hub5’00 set, which combines the easier Switchboard subset and the harder CallHome subset, and reports the overall word error rate. Audio is sampled at 8kHz, and the features are 80 linearly spaced log filter banks plus an energy term over 20ms windows strided by 10ms. Each speaker's spectral features are normalized, and no other input change is made.

The Deep Speech SWB model has 5 hidden layers of 2048 neurons and is trained on the 300 hour Switchboard set alone.

That is an improvement of 2.4% absolute WER and 13.0% relative.

The Maas et al. DNN-HMM FSH system reaches 19.9% on the full set when trained on the 2000 hour Fisher corpus, and the authors present Deep Speech as competitive with the best existing systems when trained on a comparable amount of data.

Noisy speech results against commercial systems

The authors built the noisy test set from 100 noisy and 100 noise-free utterances spoken by 10 speakers, recorded against backgrounds such as a radio or TV, a sink, a cafeteria, a restaurant and a car in the rain. The signal-to-noise ratio was not precisely controlled, but the aim was between 2 and 6 dB.

For this test the models are trained on all datasets in Table 2, more than 7000 hours, for 15 to 20 epochs with new noise synthesized in each pass, which the authors describe as more than 100,000 hours of new data. The ensemble has 6 networks, each with 5 hidden layers of 2560 neurons, and no speaker adaptation is applied to training or evaluation.

Features are 160 linearly spaced log filter banks over 20ms windows strided by 10ms, plus an energy term, computed from audio resampled to 16kHz, with each utterance normalized to a consistent total power. Decoding uses a 5-gram language model trained on 220 million Common Crawl phrases, keeping the 495,000 most common words.

That subset has 94 clean utterances and 82 noisy utterances, 176 in total.

On the noisy subset Deep Speech reaches 19.06 WER, against 30.47 for Google API, 35.06 for wit.ai, 36.12 for Bing Speech and 43.76 for Apple Dictation. Across the combined 176 utterances Deep Speech scores 11.85 against 16.72 for Google API, and the noisy result is the one the abstract summarizes as 19.1% against 30.5%. On the clean subset the scores are much closer, with Deep Speech at 6.56 and Google API at 6.64.

What synthesized noise changes in the noisy test

The comparison trains two RNNs on the same 5000 hours of speech, with one trained on the raw data and the other on those hours plus synthesized noise. On the 100 clean utterances the clean-trained model scores 9.2% WER and the noise-trained model 9.0%, so the two perform about the same.

On the 100 noisy utterances the noise-trained model reaches 22.6% WER against 28.7% for the clean-trained model, a 6.1% absolute and 21.3% relative improvement. Because the two models differ only in whether the synthesized noise is in the training data, the gap on noisy speech is attributed to that noise.

Limitations

The noisy evaluation set is small, with 100 noisy and 100 noise-free utterances from 10 speakers. The commercial comparison covers only the 82 noisy utterances on which all four services returned output, and the authors note that counting those failures as 100% error would give much lower accuracies for the services.

Apple Dictation and Bing Speech were tested by looping audio output back to input through a kernel extension, while wit.ai and Google Speech were called through HTTP APIs. Hub5’00 results use per-speaker feature normalization and a 4-gram language model, whereas the noisy experiments use no speaker adaptation and a 5-gram language model.

The Maas et al. DNN-HMM FSH comparison uses a model trained on Fisher alone, so its training data differs from the 2300 hours used for Deep Speech.

The noise ablation uses 5000 hours of training speech rather than the full set of more than 7000 hours used for the final noisy model. No experiment in the paper separates the Lombard-effect recordings from the other training data, so their separate contribution is not measured.

Paper info

Authors
Awni Hannun, Carl Case, Jared Casper, Bryan Catanzaro, Greg Diamos, Erich Elsen, Ryan Prenger, Sanjeev Satheesh, Shubho Sengupta, Adam Coates, Andrew Y. Ng
Venue
arXiv · Preprint
First published
2014-12-17
Added
2026-11-12
Updated
2014-12-19
Version
v2
arXiv
1412.5567
Category
cs.CL · cs.LG · cs.NE
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

Awni Hannun, Carl Case, Jared Casper, Bryan Catanzaro, Greg Diamos, Erich Elsen, Ryan Prenger, Sanjeev Satheesh, Shubho Sengupta, Adam Coates, Andrew Y. Ng (2014). Deep Speech: Scaling up end-to-end speech recognition. arXiv:1412.5567v2. https://arxiv.org/abs/1412.5567v2

BibTeX
@misc{hannun2014deep,
  title = {{Deep Speech: Scaling up end-to-end speech recognition}},
  author = {Awni Hannun and Carl Case and Jared Casper and Bryan Catanzaro and Greg Diamos and Erich Elsen and Ryan Prenger and Sanjeev Satheesh and Shubho Sengupta and Adam Coates and Andrew Y. Ng},
  year = {2014},
  eprint = {1412.5567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1412.5567v2}
}

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