Abstract
We explore the benefits that multitask learning (MTL) offers to speech processing by training models on dual objectives: automatic speech recognition (ASR) and intent or sentiment classification. Despite their modest size, our models show improvements over end-to-end models trained solely on intent classification. We investigate the optimal placement of task modules and evaluate performance in low-resource scenarios, training with as few as one example per class. Our results demonstrate that MTL competes with text-based baselines and significantly outperforms pipeline models in these data-scarce environments.
Introduction
Traditional Spoken Language Understanding (SLU) typically relies on a "pipeline" approach: an ASR system transcribes speech to text, which is then processed by a Natural Language Understanding (NLU) module. This architecture is prone to "cascading errors," where transcription mistakes propagate to the intent extraction phase. While end-to-end (E2E) models mitigate this by mapping audio directly to intent, they generally require vast amounts of labeled data. This paper addresses the challenge of data scarcity, aiming to build robust SLU systems for specialized domains where only a handful of examples per class are available.
Methodology
The proposed architecture utilizes a shared Transformer encoder preceded by a VGG-like convolutional frontend to capture local acoustic features.
Key Components:
- Hybrid ASR Module: Combines Connectionist Temporal Classification (CTC) with a Transformer decoder.
- Intent Classification (IC) Head: Employs Multihead Class Attention with a learned $x_{CLS}$ token that attends to embedding sequences to extract intent-relevant information.
- Multitask Strategy: Models are pretrained on large ASR datasets (Librispeech for English, Corpus Gesproken Nederlands for Dutch). During the SLU phase, the encoder is frozen, and the model is trained jointly on ASR and the target task (Intent or Sentiment).
The researchers conducted an architectural search to determine the optimal connection point for the SLU module, testing outputs from the encoder versus various layers of the ASR decoder.
Architectural Insights: The Power of the Decoder
A critical finding of this study is that the SLU module performs best when connected to the final layers of the ASR decoder rather than the encoder. While the encoder provides raw acoustic representations, the decoder offers linguistic context, functioning as an implicit language model. This context is vital for understanding intent and sentiment.
Furthermore, the dual-objective training acts as a regularizer. Instead of the typical performance trade-off seen in multitask learning, ASR and SLU tasks exhibit strong synergy, helping the model generalize better to new speakers and varied phrasing.
Performance in Low-Resource Scenarios
The MTL approach demonstrates significant advantages when training data is extremely limited. By leveraging the pre-learned linguistic structures from the ASR task, the model can achieve high accuracy with minimal task-specific examples.
Key Results:
- Fluent Speech Commands (FSC): On the FSC-U (unknown utterances) split, the MTL model reached 88.1% accuracy, significantly higher than the 78.5% achieved by the ESPnet-SLU baseline.
- Sentiment Analysis: On the SLUE-VoxCeleb dataset, the 31M-parameter MTL model achieved a macro-f1 of 49.82, matching the performance of E2E models ten times its size.
- Efficiency: The compact architecture (under 18M parameters for the encoder) offers a "green AI" alternative to massive models like Wav2Vec 2.0, providing comparable results with much lower energy consumption and faster inference.
Conclusion
Multitask learning provides a powerful framework for SLU in low-resource settings. By integrating ASR and classification tasks, models can effectively utilize the linguistic context provided by the ASR decoder to overcome the limitations of small datasets. Future work will explore "many-task" learning configurations and the reciprocal impact of SLU tasks on ASR performance.
This paper was presented at Interspeech 2022.
Summary updated