Elamur Research

An End-to-End Speech Recognition for the Nepali Language

Paper · 2021 · Sunil Regmi and Bal Krishna Bal

Summary

A recording of a Nepali sentence can be paired with a line of Devanagari text even when nobody has marked where the individual sounds occur. Regmi and Bal use pairs of this kind to train a recognizer that writes the sentence character by character. Their study addresses a practical cost of developing automatic speech recognition for Nepali. Many of the systems they review need a pronunciation dictionary to connect written words with representations of their sounds. The authors adapt an existing end-to-end architecture in which the recordings and their transcriptions supply the examples from which that connection is learned. The output can contain spaces, digits, and marks alongside letters.

The architecture uses a shared encoder, a network that turns features of the recording into a sequence of representations for predicting text. Connectionist temporal classification, or CTC, evaluates possible timings for the transcript while preserving the order of its characters. An attention decoder can consult different parts of the encoded recording as it predicts each character, taking account of what it has written so far. Both train the encoder. A separately trained recurrent language model scores strings of characters from the text alone. When the recognizer transcribes a recording, a single search uses evidence from CTC, the attention decoder, and that text predictor to decide which candidate strings to pursue.

The experiment draws on ~159k utterances from Open Speech and Language Resources. SLR54 provides the bulk of the recordings, and SLR43 contributes longer sentences from a collection made for multi-speaker speech synthesis. On validation data from the mixture, the recognizer records a character error rate of 11.7%. On the test data, it records 10.3%. The rate compares the number of character edits needed to match the reference with the amount of reference text. The figures measure the complete recognizer on the reported splits. The authors evaluate its components together, so the scores leave open how much each component contributes.

The authors’ sample predictions give a closer view of what the metric counts. One prediction writes a quantity entirely in digits where the reference uses a digit and a word. This difference incurs character edits even though the forms can denote the same quantity. Other predictions replace particular Devanagari letters or omit a written mark. The experiment establishes that the chosen architecture can produce Nepali transcripts at the reported error rates with a corpus-derived character inventory and no manually assembled pronunciation dictionary. The examples show how much the interpretation of those rates depends on what a transcription is expected to preserve.

Deep dive: An End-to-End Speech Recognition for the Nepali Language

How Regmi and Bal used joint CTC and attention to transcribe Nepali speech without a pronunciation dictionary, and how they measured errors. · about 36 minutes to read

The problem and its context

The information in a recording and its transcript

A person who writes down a spoken sentence can supply the entire text without annotating the recording. For recognition training, this provides supervision at the level of the utterance. The transcript tells the system which written units should appear and their order. An acoustic frame, a short portion of the signal described by features, has no corresponding transcript entry telling the system which unit it belongs to. The system needs to learn from that incomplete correspondence. Several frames may supply evidence for the same character, and a written boundary such as a space is something the recognizer has to express in its output.

Regmi and Bal approach Nepali recognition with this kind of training evidence. Their task is to turn a recording into a written sequence that a reader can use and that an evaluator can compare with a reference. The written sequence includes parts that matter to the representation of the text, such as spaces and marks. A recognition system therefore needs to learn more than an inventory of distinguishable sounds. It needs to learn how evidence from the recording can support a particular spelling, where to put a word boundary, and how a complete sequence of symbols fits together.

The paper describes Nepali Devanagari as broadly phonetic and gives the language an inventory of 11 vowels and 33 consonants. The authors’ actual output classes are derived from written transcripts. A consonant inventory concerns the language’s sounds and their written expression, while a prediction inventory specifies which symbols a network can emit. Digits, a space, punctuation, and marks belong to the second practical concern. This is one reason the paper specifies its output alphabet separately from the linguistic description of Nepali. The alphabet has to serve the transcription task for the recordings the authors chose.

The paper mentions applications such as hospital information systems, industrial robotics, and aviation to illustrate the breadth of interest in speech recognition. Its Nepali experiment addresses a more specific obstacle that arises before deployment. Someone building a system needs both recordings and a workable way to represent the text those recordings should produce. The authors investigate how far an existing architecture can take them with public recordings and their transcripts. The design question is which parts of the speech-to-text relationship can be learned from these pairs and which resources have to be supplied separately.

The cost of specifying pronunciations in advance

In the conventional architecture described in the paper, acoustic, lexical, and language components solve different parts of recognition. An acoustic component connects the signal with a representation of speech sounds. The authors describe a familiar combination of a hidden Markov model, which organizes acoustic evidence through a sequence of unobserved states, and a Gaussian mixture model, which describes variation in the acoustic observations. A lexical component supplies possible pronunciations of written words. A language component helps the decoder choose among word sequences using their probabilities. Decoding is the stage that brings those sources together to produce a transcription.

A pronunciation dictionary makes the link between a word as it will appear in the output and a sequence of sound units that the acoustic component can score. Its coverage is a practical concern for continuous recognition, where the system must assemble several words into a transcript. To construct such a dictionary for a new system, its developers must decide which words it should cover and supply pronunciation information for those entries. The authors identify linguistic expertise and preparation time as costs of this route. They also point to language-specific tokenization for work with text, where the system needs to identify the units that it will treat as words or other symbols.

An end-to-end recognizer reorganizes those responsibilities. In the paper’s system, acoustic evidence goes into a network that learns to produce the target text units. The decoder assembles the output from the symbols in the corpus-derived alphabet. The recurrent text predictor still serves a linguistic purpose, giving some strings higher scores based on the transcriptions it has seen. Dispensing with the lexicon therefore removes a specific resource and the mapping it would supply. Learning from text remains part of the recipe, as does the need to choose a representation for that text.

The distinction matters for interpreting the term end-to-end. Regmi and Bal use a learned mapping from the audio features to the output symbols and an integrated search. The network has recognizable parts with different jobs, and the text predictor can learn from transcriptions in a separate training stage. The practical point of the design is that the complete route to a written sentence can operate without consulting a resource listing how each word is pronounced. The paired recordings still have to be compiled, transcribed, and prepared before that route can be learned.

From isolated items to a sequence of words

The study places its task in a range of earlier Nepali recognition work. Prajapati and colleagues investigated single letters and proposed what they called the Ear Model in response to weaknesses they saw in dynamic time warping. In the context of acoustic matching, time warping concerns how to compare sequences that can progress at different speeds. Ssarma and colleagues used hidden Markov methods for isolated words. The boundaries of the task differ in these examples. Given a recording containing one item, the system can choose its label for that item. In continuous transcription, a system must produce a string and determine its internal boundaries as part of the result.

The paper also describes continuous recognition with a larger vocabulary by Baral and Shrestha. That work constructed a phonetic dictionary and used Kaldi to study several configurations, including speaker adaptation, which adjusts recognition to account for differences among speakers. This provides a concrete example of the kind of lexical preparation Regmi and Bal aim to avoid. It also establishes that the earlier field extended beyond isolated items. Continuous recognition already had a Nepali precedent with an explicit vocabulary, a pronunciation resource, and a comparative experimental design.

The authors identify earlier end-to-end efforts as well. The study on Nepali speech recognition with recurrent networks and CTC used recurrent processing with CTC and included a language component in the reported result. Bhatta used convolution, a gated recurrent unit, and CTC with speech data from Open Speech and Language Resources. A gated recurrent unit processes sequences while carrying information in a state that changes as new input arrives. These precedents are important to the study’s scope. Direct recognition from data was already being tried for Nepali, and CTC was already an option for handling the timing gap between audio and the transcription.

The survey additionally mentions Google’s cloud recognition service as supporting Nepali. The authors report that they found no public documentation of the techniques used for that project. Its presence in the survey establishes that Nepali recognition was available through a service. The technical comparisons in the paper draw on research that describes its methods and experimental setting. Regmi and Bal make their own system identifiable through the architecture they adopt, the toolkit they run, and the corpora they name.

Why alignment became a design choice

The gap the authors identify in Nepali end-to-end work concerns how the timing of written symbols is learned. CTC imposes an order on possible alignments. An alignment is a correspondence between positions in the audio representation and positions in the transcript. If it is monotonic, proceeding forward through the transcript corresponds to proceeding forward through the recording. Plausible arrangements can differ in the amount of time they allocate to individual symbols and still satisfy that condition. The authors consider this ordering appropriate to speech recognition.

Attention supplies a more flexible way to consult the recording. While generating a particular character, a decoder can draw on selected positions of the encoded audio in light of its output so far. The paper explains that this flexibility allows a wider range of alignments than CTC. It also contrasts the two approaches in how they handle dependencies between outputs. In the authors’ account, CTC uses conditional independence assumptions to calculate the probability of a label sequence. The attention decoder can explicitly condition the next prediction on preceding output. Both approaches can use representations that already contain acoustic context.

The combined approach comes from prior research on speech recognition. The authors describe Kim and colleagues as using a CTC objective during attention training to encourage orderly alignment. They draw their overall architecture and joint search from work by Hori and colleagues. This places the Nepali paper’s experimental contribution at the level of applying and configuring an existing design. Its question is how that design performs with Nepali character targets and the available paired recordings. The choice to use CTC in training as well as in search makes the influence of alignment relevant both to what the encoder learns and to how the trained recognizer chooses its output.

The method, step by step

Start with pairs and define the symbols to predict

The input to the training procedure is an utterance accompanied by its full written form. The supplied identifiers tie individual recordings to their transcripts. The audio goes through a feature preparation stage, and the transcript becomes an ordered set of prediction targets for that recording. Once the recognizer has learned from such pairs, its job on a new utterance is to produce a candidate transcription from the audio. The reference text can then be used to evaluate the candidate.

The implementation uses ESPnet. The authors describe data preparation in the style of Kaldi and identify PyTorch as the underlying deep-learning framework. This arrangement links corpus preparation to an existing implementation of joint recognition. The preparation has to establish the association between the text and each audio file, the evaluation partitions, and the set of symbols that will be available as output. The network then learns which sequence of those symbols to associate with the features of a recording.

The output inventory comes from the transcribed text. The paper reports using 71 characters from a stated set of 129 Unicode characters and assigning the selected characters indices from 0 to 70. Its printed inventory includes examples from several categories, among them letters, marks, Devanagari numerals, punctuation, and a space. The indices are class labels the network can score. The symbol assigned to a label is what the class represents in the final transcription. In particular, a space is a prediction the system can make while generating the text, so it can form word boundaries as it writes.

The paper names the inventory U. Its indexed description can be expressed without listing the full alphabet.

U = {uᵢ : i ∈ {0, …, 70}}

U denotes the inventory, and uᵢ denotes the character assigned to index i. The colon means “such that,” and the membership sign ∈ says that i comes from the set inside the inner braces. The ellipsis stands for the intervening indices between 0 and 70. The outer braces collect the corresponding characters, and the equals sign identifies that collection with U. The paper uses L to denote the length of a particular character sequence. An index i selects a kind of symbol from the inventory. A position within the L-character output is an occurrence, and the same indexed character can occur more than once.

This choice sets the scale at which the recognizer makes its decisions. It can construct a written word by extending a string with characters from U. It can continue the utterance by adding a space and then more characters. The information a dictionary would provide about particular word pronunciations is instead sought through patterns in the training pairs. The size of U describes the range of individual text classes the recognizer is trained to use. The possible strings depend on how those classes are put together and on which extensions the learned scores favor.

How the Nepali recognizer processes an utterance

The steps in order.

How the Nepali recognizer processes an utteranceStep 1: Represent the recording with Mel-scale features1. Represent the recording with Mel-scale featuresStep 2: Pass the features through convolutional layers2. Pass the features through convolutional layersStep 3: Encode context in both time directions3. Encode context in both time directionsStep 4: Evaluate character prefixes with CTC and attention4. Evaluate character prefixes with CTC and attentionStep 5: Include a recurrent score from text5. Include a recurrent score from textStep 6: Return the transcription selected by beam search6. Return the transcription selected by beam search

Describe the sound before asking what it says

The encoder receives features of the recording in time order. The architecture overview refers to Mel-frequency cepstral coefficients, or MFCCs, in its discussion of feature extraction. The experimental specification says that the input uses 80 Mel-scale filter banks with delta and delta-delta features. The Mel-scale description organizes frequency information for speech processing. Filter-bank features give the encoder a description of the signal in frequency bands for portions of the recording.

The additional features characterize local change. A delta feature conveys how the acoustic description varies over nearby times. A delta-delta feature describes change in that variation. Together with the filter-bank values, they give the learned network information about both the local spectral pattern and its development. The paper’s experimental specification is the basis for identifying the feature settings of the reported run. Its broader overview uses different terminology for the front end, and the relation between the descriptions matters to an exact reconstruction.

At this point, the recording is a sequence of acoustic observations. A label for one of those observations is not available as part of the transcript. What the network can learn is whether a pattern that persists or changes over a region of the recording is helpful in accounting for the next part of the written sequence. The feature sequence is the shared starting point for the parts of the method that learn this association. Timing remains present in the ordering of the features, making it possible for the later stages to relate earlier and later acoustic evidence to the progression of the transcript.

Build a representation that both branches can use

The first part of the encoder is a convolutional neural network, or CNN. Its filters apply learned operations to neighborhoods of the input. When filters are used across a feature sequence, they can respond to a useful local pattern at different positions in the recording. This stage derives patterns from the acoustic features before the recurrent layers incorporate a wider span of the utterance. The authors describe a 6-layer CNN front end based on the early VGG layers from Very Deep Convolutional Networks.

The description of the experiment also states that convolutional features are extracted using ten centered filters, each 100 units wide. The description gives the settings without detailing how that specification maps onto each layer in the architectural overview. The important connection for following the recognition method is where the convolutional computation sits. It transforms the features of the recording before the sequence passes through the bidirectional recurrent portion of the encoder.

The next portion uses bidirectional long short-term memory, abbreviated BLSTM. A long short-term memory network, or LSTM, is recurrent. It updates a state as it processes successive elements, so information from other positions can influence the representation it produces. In a bidirectional layer, recurrent processing runs forward and backward over the input sequence. Speech near the start can thus be represented with information from portions that occur later, and later portions can draw on earlier ones. The experiment specifies a 4-layer BLSTM encoder with 320 units per layer in each direction.

The paper takes the CTC input from the last hidden layer of the BLSTM. This is the sequence produced after the encoder’s recurrent processing. Attention also draws on the shared encoded sequence. There is a practical difference between sharing that representation and sharing the decision rule. CTC and attention assign value to possible transcripts through different operations. Training both on the output of one encoder asks the acoustic representation to support both kinds of decision. That is where the joint objective can affect the features available to each branch.

The use of future acoustic context in the encoder is compatible with producing text in sequence. By the time the decoder is making a character decision, the encoded positions can already reflect evidence from different parts of the recording. The decoder can use that representation while retaining the characters it has emitted as a history. The directions of acoustic processing pertain to how the recording is represented. The order of text generation pertains to how a candidate sequence is built.

Learn from the timing the transcript leaves unspecified

CTC makes it possible to train with the written order of the symbols and uncertainty about where they occur in the recording. To understand the choice, consider a character supported by a sound that extends across several neighboring frames. The transcript records the character once. The precise assignment of frames is left open. CTC can give the transcript a score by considering possible alignments that would produce it. An alignment may use different timings from another alignment and still account for the same target string, provided that it respects the sequence order.

The paper emphasizes that the CTC probability calculation relies on conditional independence assumptions. In this setting, an assumption of that kind simplifies how label predictions at different positions are combined given the encoded input. The bidirectional encoder can already incorporate acoustic information from the surrounding recording. The constraint on how label predictions are combined belongs to the CTC scoring rule. It explains why the paper looks to a separate decoder to track dependencies in the written sequence more directly.

Attention gives a character decision access to two sources of evidence within the decoder. One is the history of characters, maintained by its recurrent state. The other is a representation derived by assigning different relevance to positions in the encoded recording at that decision. When predicting the beginning of a candidate, the decoder has little preceding text. Later decisions can draw on a longer history. The paper reports a 1-layer LSTM decoder with 320 cells. In the setup it describes, attention gives that decoder a way to relate the changing output history to acoustic information.

Because attention can place relevance in different parts of the recording, it has scope to produce alignments of many shapes. The authors see this freedom as a reason to bring CTC into the training objective. CTC asks the shared encoder to support predictions that follow utterance order. The attention branch learns to predict a sequence through its own use of output history and the recording. Training with both objectives gives the alignment constraint a way to shape the shared features from which attention works.

The authors describe a linear interpolation of the training objectives and give 0.3 as a typical multitask learning setting. With the CTC coefficient written as λ, their description of interpolation can be expressed in loss form.

ℒ = λ × ℒ꜀ + (1 − λ) × ℒₐ

ℒ is the joint loss, the quantity the recognizer is trained to reduce. ℒ꜀ denotes the CTC loss, and ℒₐ denotes the attention loss. The subscripts ꜀ and ₐ identify the corresponding branches. λ denotes the CTC share in this expression, and 1 denotes the full weight available to distribute. The minus sign gives the complementary share within the parentheses. The multiplication signs apply each weight, the plus sign adds the contributions, and the equals sign defines the joint loss. The paper explicitly identifies a CTC weight of 0.3 for decoding, where the weight is used with candidate scores. The typical value described for multitask learning belongs to the discussion of training.

A loss and a decoding score are used at different times. In training, the reference is available, and the loss provides a basis for adjusting the network’s parameters so that the known transcript receives better support. During decoding, the recognizer has the audio and must compare competing transcripts. Putting the same CTC branch in both stages lets its order constraint play a role when the shared representation is learned and gives its candidate scores a further role when the transcription is selected.

Give the search a source of text-only evidence

The recurrent language component is trained on transcriptions. It learns to assign probabilities to output labels in a sequence from the text, which allows a candidate to gain support when its continuation resembles patterns in the training transcriptions. The authors use a single-layer LSTM for this role. A recurrent state can summarize preceding written symbols when the network evaluates what might follow. The audio encoder is unnecessary for learning this particular score because the material being learned is a pattern in the output text.

The language component and the attention decoder can both take preceding characters into account. The attention decoder’s estimate also depends on the encoded utterance. The independent text score can favor a continuation on the basis of written context alone. The distinction is useful for understanding why the authors include both. An acoustic cue may support several plausible character choices, and a text score gives the search another way to compare the continuations those choices would produce. The outcome still depends on how the scores are combined.

The experimental description says that the recurrent text network is trained individually on transcriptions and combined with the decoder. It presents collaborative retraining with the other components as an option. The authors used no additional text in the reported experiment. This bounds the source of text evidence in the reported recipe. The recognizer can gain information from the sequence patterns present in its transcripts, while the paper’s proposal to use more data and a pretrained recurrent predictor concerns a different training setup.

The authors report 20 epochs of training and a patience setting of 2. An epoch refers to a pass through the training examples, and patience is a setting for how long training can wait for improvement under its stopping procedure. The paper gives these values together. It names AdaDelta as the optimization method, which governs updates to the learned parameters, and says that training uses gradient clipping. Clipping limits the size of gradients used for updates. These are settings for learning from the data. The beam search and its weights take over once the learned recognizer is used to produce text.

Choose a transcription while the alternatives are still open

The decoder has too many possible character strings to treat each one as a complete candidate from the start. Beam search organizes the decision around partial strings. A partial string, or prefix, is the transcription up to the point the search has reached. The decoder considers ways to extend promising prefixes and keeps a limited collection for further consideration. The alternative prefixes matter because a continuation that looks promising at an early step can later be overtaken by another whose full text has better support.

For the reported decoding run, the beam width is 20. The width controls how many alternatives the search can keep in consideration at a stage. In the same run, the decoding CTC weight is 0.3. This weight governs the use of CTC evidence in comparison with the other decoding evidence. At this stage the scores affect which candidate strings the search pursues. The authors use attention and CTC together in one pass and incorporate the recurrent text score as the decoding proceeds.

An integrated search lets the text score influence the survival of a candidate before it is complete. A second pass through completed outputs could reorder those outputs, but the candidates it receives would already reflect earlier pruning. In the study’s recipe, the language component enters at the point where this pruning occurs. The authors present that integration as a way to dispense with a separate rescoring step. The candidates left at the end reflect joint decisions made as the system moved through successive character choices.

The resulting transcript is the output of the search for the utterance as a whole. CTC contributes support for an ordered relationship to the audio. The attention decoder contributes a prediction that uses both the recording and the candidate history. The recurrent text network contributes the score obtained from written sequence patterns. The evaluation examines the selected string, so any useful cooperation among these parts is reflected in its final agreement with the reference. Its individual sources of support remain distinct features of the method.

Experiments and results

What the recordings contribute to the experiment

SLR54 is the larger collection in the experiment. The paper describes it as containing ~157K recordings of utterances, paired with a transcription file organized by utterance identifier. The recordings account for 9,278 minutes and 11 seconds of speech, and the authors report 86,062 unique utterances. The first count concerns the amount of recorded material available. The unique count describes a different property of that material. The distinction is relevant because the diversity of items and the volume of recordings are separate aspects of a training corpus.

SLR43 is a multi-speaker resource prepared for Nepali text-to-speech, a task in which written input is used to produce audio. Its recordings and transcripts also provide pairs for the inverse task of recognizing speech. The authors describe about 2064 long-sentence utterances spoken by 18 female speakers. They give a duration of 167 minutes and 45 seconds and report 2064 unique utterances. The resource contributes a different kind of sentence material to the experiment, and the paper includes it in the same recognition setup as the larger collection.

The authors report ~159k utterances in the combined experiment. They first assign material to a training pool and a test pool in a ratio of 8:2. The 80% assigned to the initial training pool is then divided in a ratio of 8:2 into the final training and validation sets. The validation data thus come from the first training allocation. The test allocation is made at the initial division. The resulting error rates refer to those evaluation portions of the mixture, with the full corpus size describing the scope of the experimental data.

Training takes place on an RTX 2060 GPU. The authors use a Ryzen 9 CPU with 16 cores for decoding. The equipment descriptions identify separate stages of the experiment. Training determines the values of the network parameters from the paired examples and the text. Decoding applies the trained recognizer to an utterance and searches for a transcript. The reported quantitative outcome is agreement with reference text. The paper supplies hardware information alongside it, with no measured timing comparison for these stages.

What a character edit measures

The authors evaluate the output using character error rate, abbreviated CER. To compare a prediction with a reference, the metric counts substitutions, deletions, and insertions. A substitution corresponds to writing a different character in place of a reference character. A deletion corresponds to omitting a reference character, and an insertion corresponds to outputting an extra character. Thinking in terms of edits keeps a single omission from automatically turning every later position into a mismatch. An alignment of the strings can account for the omission while matching characters that follow it.

The paper calculates the rate over an evaluation split by pooling the edits and dividing by the total length of the reference text. Its description can be written as follows.

CER = (S + D + I) ÷ N

CER denotes the resulting character error rate as a fraction. S counts substitutions, D counts deletions, and I counts insertions on the split. N is the total number of reference characters on that same split. The plus signs sum the edits, the parentheses group the sum, and the division sign ÷ scales that sum by the reference length. The equals sign defines the rate. The experimental results express the rates as percentages.

Pooling edits this way gives longer references more opportunities to contribute to the character totals. The metric answers how much editing the system’s output requires relative to the amount of material evaluated. A separate measure would be needed to know how frequently a complete utterance was reproduced exactly. The distinction matters when reading results for a dataset that includes long sentences. A sentence can contain a few differences and contribute many correctly matched characters. It still fails a criterion that requires an exact match for the entire utterance.

The evaluation further depends on which written form serves as the target. If the reference gives a specific rendering of a number or includes a mark in a particular position, the resulting string determines what the edit calculation counts. This gives CER a clear criterion of agreement. The paper uses examples to show how differences under that criterion can have different interpretations. The rate pools the editing burden, and the examples allow inspection of what a reader sees in particular output strings.

The result for the complete recognizer

The validation split of the mixed data yields 53,726 edits over 458,271 reference characters, with a CER of 11.7%. The test split yields 59,483 edits over 576,870 reference characters, with a CER of 10.3%. Both are results for the full configuration using the shared encoder, CTC, attention, and the recurrent text score. They concern different sets of utterances. The test set contains more reference characters, so the raw edit totals and the character error rates need to be read with their corresponding denominators.

Character error rate by split on mixed SLR54 and SLR43

The joint recognizer has a lower error rate on the test split.

Character error rate by split on mixed SLR54 and SLR43Joint recognizer on validation: 11.7Joint recognizer on validation11.7Joint recognizer on test (this paper): 10.3Joint recognizer on test (this paper)10.3
The numbers
System or settingCER %
Joint recognizer on validation11.7
Joint recognizer on test (this paper)10.3

The chart compares evaluation settings for the same recognizer. Moving from validation to test changes the material whose transcripts are scored. The lower test rate therefore reports how the trained system performs on that split. The paper’s publication of both reference totals helps make the scope of the comparison concrete. It shows how much text underlies each rate and allows the results to be read as pooled character comparisons rather than counts of successful recordings.

The main practical finding concerns the feasibility of the recipe on the selected data. From the chosen output symbols and the training pairs, the recognizer produces test transcripts with the reported rate of edits. This is a measurement of a system that dispenses with word pronunciation entries in its search. It is also a measurement made after combining all the recognition scores. The evidence for what each score contributes would be a separate result from the pooled error on these splits.

The earlier figures and their metrics

The paper supplies prior Nepali results as points of context. For the isolated-word work by Ssarma and colleagues it cites 75% accuracy. This is a measure for identification of an isolated item. For the recurrent CTC study by Regmi and colleagues, it gives an approximate 34%, describing it in a passage that mixes CER and accuracy terminology. The paper associates the figure with the use of a language component. That wording supports reporting it as an approximate character-level figure, with the metric label left uncertain.

The paper gives Bhatta’s result as 11% word error rate. Word error rate, or WER, applies the kinds of edits used in CER to words as the scoring units. A spelling difference inside one word can therefore involve a different number of edits under the two metrics. Any numerical ordering across CER and WER depends on more than the quality of the recognizers being compared. Their evaluation uses different units and different reference totals, and a corpus can contain many opportunities for character mismatches inside any given word.

For the continuous recognition study by Baral and Shrestha, the authors report a 50K vocabulary. They cite 29.45% as the lowest WER for its Gaussian-mixture and hidden-Markov configurations, and 11.55% as the lowest WER for its deep-network configurations. The latter figure concerns a configuration that includes time-delay processing and long short-term memory. Those figures describe alternatives in the earlier study’s setup, which includes a dictionary and speaker adaptation. Regmi and Bal’s recognizer instead has a character output inventory and reports CER for the mixed data.

These earlier studies therefore contextualize what the present experiment asks. One shows what can be measured when the utterance is an isolated word. Another investigates word recognition with a fixed vocabulary. CTC-based studies show that direct learning from speech and transcripts was already feasible to attempt for Nepali. A baseline capable of indicating an advantage for the joint system would need to be scored on the evaluation recordings with the same character representation and metric. The numerical comparison in this experiment covers the validation and test settings of the full joint system.

How to read the reported examples

The paper sets sample test predictions alongside their references. In one, the recognizer writes २००० for a quantity the reference represents with a numeral followed by a word. The authors regard the value conveyed by those forms as equivalent. At the character level, the output has changed several positions because it follows a different convention for writing the amount. The example exposes a choice in what to measure. For a verbatim written target, the convention is part of the expected output. For recovering the value conveyed in the speech, the digit form can be adequate.

The authors also identify particular substitutions. They note that the renderings of छ, भ, and घ are च, ब, and ग, respectively. The directions matter because they describe which symbol was expected and which was produced in the cases the authors discuss. Those observations locate discrepancies at the level of particular written forms. The paper also notes that the mark ँ can be omitted. Missing a mark calls for a deletion when it is counted as a separate character in the reference, while substituting a letter calls for a different edit.

The selected examples make the aggregate result easier to interpret. Some character mismatches can preserve the information conveyed by the spoken quantity, and others alter the letters or marks presented to the reader. The examples establish that these kinds of discrepancies occurred. Their frequencies and effect on the pooled rates remain unspecified. Reading a sample transcript tells the reader what happened in that item. Reading the numerator and denominator of CER tells the reader the overall amount of disagreement under one scoring rule.

What the ablations show

The paper reports no component ablations and instead offers results for the full system on validation and test, figures from related Nepali studies, and a qualitative inspection of selected test predictions.

Which questions the full-system result leaves open

CTC is used at two points in the recipe. Its loss supplies a signal during training, and its scores participate in the search. An analysis of the training role would ask whether the encoder learned a representation that helps attention produce better transcripts when CTC supplied part of the learning objective. An analysis of the search role would ask what happens to candidate selection when the trained recognizer uses a different amount of CTC evidence during decoding. Those questions concern different operations and would require different comparisons. The experiment reports the result with CTC present in both places.

The paper’s explanation of monotonic alignment gives a reason to expect a useful relationship between the branches. CTC rewards transcripts whose symbols can be accounted for in order, and attention gives the decoder flexibility in which positions inform each prediction. The authors draw the argument for combining them from the earlier work they cite. In the Nepali experiment, the transcript errors measure the result of adopting that combination. They do not directly reveal where attention focused or how much an alignment became more orderly. The paper does not report measured alignment trajectories for the test cases.

The text network presents another question of attribution. During beam search, a recurrent score can preserve a prefix that looks promising given its written context. When the audio is clear, the acoustic components may already favor the same text. When several character choices have similar acoustic support, the language score may affect which alternative remains in the beam. The final CER aggregates whatever happens in both circumstances. A same-split comparison that varied the language score would be needed to measure its net contribution to the result.

The paper also combines convolution and bidirectional recurrence in the encoder. The roles of those layers make the architecture intelligible. Convolution processes local patterns, and recurrent processing brings contextual information into the sequence representation. The error rates measure the performance of that encoder in the complete decoder configuration. The experiment leaves the effects of individual encoder choices unevaluated. Knowledge of their intended jobs helps explain why the system was assembled this way, while measured gains for the individual choices would need controlled runs.

Which comparisons the paper actually makes

The validation and test comparison shows that the observable error rate changes with the portion of the data being scored. Each set has its own transcripts and its own reference character total. Agreement at the level of the scoring unit makes the rates interpretable together. The evaluation sets differ, so there is no intervention in this comparison from which to infer that one component improved the system. The same trained design is being evaluated on different samples.

The historical figures span configurations that differ in vocabulary, recognition task, and evaluation metric. The isolated-word result tells readers something about the scope of an earlier task. The continuous-recognition word error rates establish that dictionary-based Nepali recognition had been explored with explicit vocabulary and adaptation choices. The cited CTC work supplies a relevant architectural precedent. The historical review motivates the experiment’s design question. Estimating how much is gained by adding attention would require a CTC comparison within the study’s own evaluation setup.

The error inspection supports claims about individual cases more directly. The numeric rendering shows that a character disagreement can arise when the recognizable content of a quantity is preserved. The pairs of letters tell readers exactly which errors the authors noticed. The missing mark shows that the recognized text can lose a written detail. The paper gives no complete frequency breakdown for these observations. It would take counts across the split to determine whether the same pairs recur frequently or represent a small part of the substitution total.

The authors suggest tuning the multitask learning rate and the CTC weight used in decoding. The first changes how the network learns from the two training objectives. The second changes how evidence affects the ranking of candidate transcripts at test time. A different weight could change some of the outputs that appear in the qualitative comparison, but the paper’s examples do not identify the scores that caused those outputs to win. Their value is in revealing the kinds of disagreement to examine. The proposal to tune the weights identifies plausible experimental variables, with their sensitivity left unmeasured in the reported study.

Limitations

Boundaries described by the authors

The authors characterize the recordings as free of background noise. Their discussion of data preparation favors controlled recordings and mentions both incidental noises made by a speaker and sounds from the surrounding environment as things that can complicate the audio. The reported test therefore measures the recognizer on the clean material selected for the experiment. The discussion identifies the appeal of that setup for learning from paired speech and text. It supplies no estimate of how the error rate would change in noisier recordings.

The authors also specify that the language component used transcriptions without extra text. They suggest that adding data and using a pretrained recurrent language component could improve the system. This is a proposal connected to a real resource boundary in the experiment. The text score only had the patterns available through the stated training material. The paper measures the outcome under that resource choice and leaves the effect of a larger source of text or unlabeled material for further experimentation.

The paper identifies further tuning of the CTC weights as another avenue. It also recommends trying transducers, conformers, and the Transformer for Nepali recognition. The authors cite experience with conformers on other recognition datasets in their discussion. The recommendations tell readers which possibilities the authors considered worth examining beyond the reported setup. The quantitative Nepali evidence in the paper concerns the convolutional and recurrent encoder with joint CTC and attention. Improvements on other tasks motivate further comparisons whose outcome for these corpora is open.

The conclusion considers faster training and decoding. It suggests use of multiple GPUs and points to Espresso as a toolkit to investigate for faster decoding. These suggestions are about the computational procedure. The experiment’s hardware description tells readers where training and decoding ran, and the paper’s reported metric tells them about transcription errors. A measure of speed would need timings for specified stages under comparable conditions. The suggestions occur separately from the accuracy experiment.

What the corpus and split allow a reader to infer

The mixture of SLR54 and SLR43 is the unit of evaluation in the reported results. The experiment gives no separate rate for either source. A reader can infer that the larger corpus dominates the amount of available material and that the additional corpus supplies the long-sentence recordings the authors describe. The pooled evaluation cannot show how well the system transcribes those longer sentences by themselves. It also gives no estimate of the effect of adding SLR43 during training, since there is no reported run that changes that choice while keeping the evaluation fixed.

The split ratios establish how the training, validation, and test allocations were formed at a broad level. The paper does not say whether allocation explicitly separated speakers or grouped recordings with the same text. Those distinctions would matter to a claim about generalization. If a reader wants to know whether the system handles a speaker whose recordings never appeared in training, the required evidence is an evaluation with that property established. If the question concerns unfamiliar wording, grouping by transcript would address a different part of the design. The published rates apply to the division the authors describe.

The distinction between corpus size and distinct utterances reinforces this uncertainty. The larger corpus has a reported unique count below its total utterance count. This provides reason to ask how repetition was handled when assigning data. It does not establish where repeated items were allocated or whether any particular test example had a counterpart in training. Likewise, the speaker count for SLR43 describes that source. It does not by itself identify the speakers represented in each of the final evaluation portions.

The reporting is at the level of pooled correctness. CER can be driven by the sum of many small disagreements or by more extensive differences in a subset of recordings. The given counts do not reveal how much either pattern accounts for. The paper gives examples to show the types of discrepancies that arose, but it offers no performance breakdown across speakers, utterance lengths, or the source collections. A reader assessing the scope of the result can therefore interpret the aggregate as an evaluation of the reported test material and leave subgroup performance open.

What the scoring rule and implementation leave unresolved

The recognizer’s output is scored as written text. The paper’s examples make it clear that the convention for writing numbers can affect this comparison. Details about normalization would determine how systematically the evaluator treats alternate numeric renderings or how differences in written marks are represented. The paper gives the alphabet and the edit-based criterion at a descriptive level. It does not specify an evaluation that gives equivalent numeric forms the same score, and it does not quantify how much of the CER arises from this kind of difference.

The report also provides detailed settings alongside some gaps in the implementation description. It refers to MFCCs in the architectural overview and gives Mel filter-bank inputs with delta and delta-delta features in the experimental account. It describes a typical multitask weight and explicitly gives the decoding CTC weight. It states that the language network can be retrained with the other parts without resolving every training choice for the reported run. These details are enough to follow the recognition design. Reproducing the exact experiment would also require knowing the feature pipeline, the precise assignments of recordings, and the scoring and training settings where the description leaves choices open.

The paper’s strongest empirical claim is that the system trained and decoded in this way can produce Nepali transcriptions at the stated validation and test rates. Its broader discussion suggests benefits over conventional recognition, but the numerical evidence for that comparison comes from different studies. A comparative claim for the architecture would need a conventional baseline and an end-to-end baseline evaluated with the same held-out recordings and scoring. The study demonstrates a way to avoid constructing a pronunciation resource and supplies a measured result for it. The gain over other ways to solve the same evaluation task remains an open question.

What came after

Changing the text units

The work on a Nepali pronunciation-aware syllable tokenizer addresses the representation of written Nepali at the level of syllables. In Regmi and Bal’s experiment, a transcription is built out of the characters selected from the corpus. The later work’s stated subject makes pronunciation relevant to how the text is segmented. The connection is a choice about the units into which a system divides an output string. Characters are units the earlier recognizer can select as it writes. Syllable tokenization treats groups within the string as units for representation.

This direction also puts pronunciation knowledge in a different place from the dictionary discussed in the earlier paper. A pronunciation dictionary deals with entries for individual words and their sound representations. A pronunciation-aware tokenizer addresses how to group the text into units. Its focus is relevant to the earlier study because a character-based recognizer has already moved its output below the level of dictionary entries. The later work’s stated subject identifies a different way to organize those smaller units. The citation and topic establish this connection without establishing that the syllable work used the earlier recognizer or its experimental splits.

Changing how a recognizer is adapted

Reward-guided fine-tuning of Whisper returns to the question of recognizing Nepali with limited resources. Its title identifies the starting recognizer and the adaptation method. Fine-tuning concerns further training of a system for a target task, with a reward in this case providing guidance to that training. Regmi and Bal approached the language through a joint training recipe and a recurrent text score learned from the available transcriptions. The later work puts the choice of an adaptation objective for Whisper at the center of its study.

The relationship is through Nepali recognition and the evidence used to guide learning. In the earlier paper, the CTC and attention objectives act on paired audio and text, and the separately trained language component contributes when the system is decoding. The later study’s stated method concerns reward-guided training of an existing recognizer. This gives the two studies different starting conditions and different learning questions. The later work can be placed in that line of inquiry without assigning it a numerical advantage over the mixed-corpus result or claiming that it adopted the earlier joint decoder.

Making transfer an evaluation task

Nwāchā Munā is a Devanagari speech corpus and a benchmark for proximal transfer in automatic speech recognition for Nepal Bhasha. Regmi and Bal’s study starts from recorded Nepali and the written representations associated with those recordings. The later work contributes a corpus for another language and makes transfer an explicit object of evaluation. The use of Devanagari is a point of contact in how the two tasks represent their target text. The benchmark concerns what can be carried into recognition for Nepal Bhasha.

In the Nepali experiment, the reported test portion is drawn from the same mixture of source collections used to form the training allocations. That setup measures recognition within the prepared corpus mixture. A transfer benchmark gives the evaluation a different purpose. It makes it possible to define the task around evidence imported from a related setting and judge performance on the target language’s material. The later title identifies the corpus, script, language, and transfer question. It leaves the details of specific starting recognizers and their results outside what can be concluded from the citation relationship.

Cite

Cite as Sunil Regmi and Bal Krishna Bal. 2021. An End-to-End Speech Recognition for the Nepali Language. Proceedings of the 18th International Conference on Natural Language Processing (ICON).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{regmi2021end,
  title = {{An End-to-End Speech Recognition for the Nepali Language}},
  author = {Sunil Regmi and Bal Krishna Bal},
  booktitle = {Proceedings of the 18th International Conference on Natural Language Processing (ICON)},
  year = {2021},
  url = {https://aclanthology.org/2021.icon-main.22/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/regmi-2021-end-end-speech-recognition-nepali/