[Paper Review] Gram-CTC: Automatic Unit Selection and Target Decomposition for Sequence Labelling
Gram-CTC proposes a novel loss function that automatically learns optimal basic units (grams) and dynamically decomposes target sequences during sequence labeling, extending CTC to allow variable-length outputs per time step. This improves both accuracy and efficiency, achieving state-of-the-art results on multiple ASR benchmarks, including a 7.3% WER on Switchboard and 25.59% WER on a 10K-hour noisy dataset, outperforming vanilla CTC and prior methods.
Most existing sequence labelling models rely on a fixed decomposition of a target sequence into a sequence of basic units. These methods suffer from two major drawbacks: 1) the set of basic units is fixed, such as the set of words, characters or phonemes in speech recognition, and 2) the decomposition of target sequences is fixed. These drawbacks usually result in sub-optimal performance of modeling sequences. In this pa- per, we extend the popular CTC loss criterion to alleviate these limitations, and propose a new loss function called Gram-CTC. While preserving the advantages of CTC, Gram-CTC automatically learns the best set of basic units (grams), as well as the most suitable decomposition of tar- get sequences. Unlike CTC, Gram-CTC allows the model to output variable number of characters at each time step, which enables the model to capture longer term dependency and improves the computational efficiency. We demonstrate that the proposed Gram-CTC improves CTC in terms of both performance and efficiency on the large vocabulary speech recognition task at multiple scales of data, and that with Gram-CTC we can outperform the state-of-the-art on a standard speech benchmark.
Motivation & Objective
- To address the limitations of fixed basic units (e.g., characters, words, phonemes) and fixed sequence decomposition in sequence labeling models.
- To eliminate the need for manual design of units by allowing the model to learn optimal grams from training data.
- To improve modeling efficiency and performance by enabling variable-length output per time step, capturing longer-term dependencies.
- To provide a plug-in loss function compatible with existing seq2seq architectures without architectural changes.
- To demonstrate that automatic gram discovery via Gram-CTC avoids degenerate solutions without requiring prior constraints like minimum description length.
Proposed method
- Gram-CTC extends CTC by introducing a differentiable, learnable decomposition of target sequences into variable-length grams, rather than fixed units.
- The model learns a set of grams during training, where each gram is a subsequence of characters or phonemes, and the decomposition is dynamically determined per input.
- Gram-CTC uses a differentiable relaxation of the alignment process, allowing gradients to flow through the choice of grams and their positions in the target sequence.
- The loss function aggregates over all possible alignments between input sequences and variable-length gram sequences, similar to CTC, but with learned grams replacing fixed units.
- A joint training strategy with cross-entropy and Gram-CTC loss is used to stabilize training and improve performance.
- The method supports larger inference strides (e.g., 4 vs. 2 in CTC), improving computational efficiency without sacrificing accuracy.
Experimental results
Research questions
- RQ1Can a sequence labeling model automatically learn the optimal set of basic units (grams) from training data, rather than relying on hand-crafted units?
- RQ2Does allowing variable-length output per time step improve modeling of long-range dependencies and sequence structure?
- RQ3Can Gram-CTC outperform standard CTC in both accuracy and inference efficiency across diverse data scales?
- RQ4Does the automatic gram discovery process avoid degenerate solutions without requiring explicit regularization or priors?
- RQ5Can Gram-CTC be effectively applied to large-vocabulary, noisy speech recognition tasks with minimal architectural changes?
Key findings
- Gram-CTC achieves a 7.3% WER on the Switchboard benchmark, outperforming vanilla CTC (9.0%) and previous state-of-the-art methods.
- On a 10,000-hour noisy speech dataset, Gram-CTC reduces WER from 29.1% (vanilla CTC) to 27.56% without a language model, and further to 25.59% with joint training.
- The model with Gram-CTC enables larger inference strides (4 vs. 2 in CTC), significantly improving computational efficiency.
- Joint training with cross-entropy and Gram-CTC loss reduces WER by 1.97 percentage points (from 27.56% to 25.59%) with minimal additional training cost.
- Gram-CTC implicitly avoids degenerate solutions in unit discovery, even without Bayesian priors or minimum description length constraints.
- The success of Gram-CTC is attributed to learning a small set of high-frequency, short grams (up to length 5), which capture meaningful subword units effectively.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.