5 ms·
Is Word Error Rate a Good Metric for Speech Recognition Models?
- CornCobs 5y agoI'm working on a similar domain, music transcription. The challenge is to estimate note values (how many beats is a note supposed to be as represented in the score?) and I'm not sure what would be the a good way to measure transcription accuracy. The naive note error rate cannot capture whether my model successfully detects certain musical structure, syncopation, dotted rhythms etc
- lunixbochs 5y agoMaybe some kind of alignment metric, to measure how far off on timing notes tend to be? I can also imagine a generalized "local error rate" which measures how far away errors tend to be from each other. If errors tend to be clustered, I would guess that's showing inability to follow some musical pattern. I think you'd want errors to appear randomly distributed rather than clustered. (This metric might make sense for speech too)
- danicgross 5y agoRelated, are there better representations for music than standard notation (or MIDI)? I'm wondering what the higher convolution levels could look like, if this was a CNN analyzing an image. Something between a the complete Ableton/Logic export and a MIDI file. Being able to capture the "feel" of a song (or a section within a song) strikes me as an important milestone towards designing really good generative music.
- adrianh 5y agoHey, you should drop me an email (info in my HN bio). This is a passion of mine and I'm always up for chatting about it.
- CornCobs 5y agoSure thing!
- jacobr1 5y agoYou might want to consider comparing generated sound files, rather than abstract notion. If you have the ground truth notion, render that using the same mechanism as your transcription. Then you can use various spectral comparison techniques on the sound, including things like fourier analysis to compare structure.
- tgv 5y agoIf the target of ASR would be document retrieval, it would make sense to apply the same (easy) transformations before calculating WER. Think: function word removal, unsplitting remaining contractions, and stemming. That would take out some of the problems, while staying true to the target. Aren't there any old-school linguists working on this?
- lunixbochs 5y agoI ship speech recognition to users for full computer control (mixed commands and dictation) with a very tight feedback loop. I get a lot of direct feedback about any common issues. One time I beta tested a new speech model I trained that scored very well on WER. Something like 1/2 to 1/3 as many errors as the previous model. This new model frustrated so many users, because the _nature_ of errors was much worse than before, despite fewer overall errors. The worst characteristic of this new model was word deletions. They occurred far more often. This makes me think we should consider reporting insertion/replacement/deletion as separate % metrics (which I found some older whitepapers did!) We have CER (Character Error Rate), which is more granular and helps give a sense of whether entire words are wrong (CER = WER) or mostly just single letters (CER much lower than WER). - I'd welcome some ideas for new metrics, even if they only make sense for evaluating my own models against each other. GPT2 perplexity? Phoneme aware WER that penalizes errors more if they don't sound "alike" to the ground truth? (Because humans can in some cases read a transcription where every word is wrong, 100% WER, and still figure out by the sound of each incorrect word what the "right" words would have been) "edge" error rate, that is, the likelihood that errors occur at the beginning / end of an utterance rather than the middle? Some kind of word histogram, to demonstrate which specific words tend to result in errors / which words tend to be recognized well? One of the tasks I've found hardest is predicting single words in isolation. I'd love a good/standard (demographically distributed) dataset around this, e.g. 100,000 English words spoken in isolation by speakers with good accent/dialect distribution. I built a small version of this myself and I've seen WER >50% on it for many publicly available models. More focus on accent/dialect aware evaluation datasets? + From one of my other comments here: some ways to detect error clustering? I think ideally you want errors to be randomly distributed rather than clustered on adjacent words or focused on specific parts of an utterance (e.g. tend to mess up the last word in the utterance)
- dylanbfox 5y agoYes! Perplexity is a great idea. Although you could technically have a low perplexity prediction that is not similar to the ground truth transcription. CER is definitely more granular. There are papers that basically count Deletions, for example, as 0.5(D) when calculating WER - since they consider Deletions "less bad", but if these weights aren't standardized then WER scores will be super hard to compare. Personally I think some metric including some type of perplexity is the way to go.
- blululu 5y agoFeels like a lot of the counter examples listed involve contractions and conjugation errors. Saying 'like' and 'liked' are different words is a strong interpretation. Similarly, 'I am' and 'I'm' are really not distinct words so counting that toward an error rate is a bit too literal. The objections could be solved by a decent parser. That said, weighting insertions and deletions equally is clearly a problem. Certain words ought to have more weight in a model. Weighting words by something like 1/log(frequency) might be a good start since less common words tend to be more important for meaning.
- lunixbochs 5y agoInteresting, maybe instead of my proposed perplexity metric, we measure the difference in both utterance and per-word perplexity between ground truth and output with a strong language model? Ideally it's low - the language model should consider each predicted word to be "about as likely in context" as the closest ground truth words. In other words, measure LM perplexity on the ground truth words, then on the predicted words, and minimize the difference in perplexities. Ideally with a general model like GPT2 or BERT or something that you aren't using anywhere in your actual ASR. This may even be more tolerant of errors in the ground truth transcription than raw WER
- dylanbfox 5y ago> since less common words tend to be more important for meaning. Exactly. Errors with proper nouns are usually more problematic than errors with stop words, yet they're weighted equally in the WER calculation. Ie, deleting "Bob" and "but" both count as a deletion of the same degree according to WER, but we as humans know that deleting "Bob" is potentially a lot more problematic than deleting "but".
- lunixbochs 5y agoYou could weigh insertions by how much perplexity they add (sum), deletions by how much perplexity they remove (-sum), and replacements by how big the ppl difference is in the replaced word (abs(sum)). And report this as a 4-part score (combined mean, then separate i/d/r). Lower is better. Theory being you don't want to add or remove confusing words, but common stop words are less of an issue. I'm not sure how this interacts with a multi word replacement, where the new words together make sense but independently make no sense to the LM.
- gok 5y agoRare example where Betteridge's law of headlines is wrong. One clever metric that Google mentioned in their early ASR papers was interesting: "WebScore". Basically, they consider a hypothesis transcription to have errors only if it produces a different top web search result. [1] WebScore and WER always seemed to track each other though. [1] https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/36758.pdf https://static.googleusercontent.com/media/research.google.c...
- thebiss 5y agoI work in this domain, dealing exclusively with recognition for assistants, which is different from dictation. We measure three things, top down: - whole phrase intent recognition rates. Run the transcribed phrase through a classifier to identify what the phrase is asking for, and compare that to what was expected, calculating an F1 score. Keep track of phrases that score poorly: they need to be improved. - "domain term" error rate. Identify a list of key words that important to the domain and that must be recognized well, such as location names, products to buy, drug names, terms of art. For every transcribed utterance, measure the F1 score for those terms, and track alternatives created in confusion matrix. This results in distilled list of words the system gets wrong and what is heard instead. - overall word error rate, to provide a general view of model performance.