ASR Adaptation for E-commerce Chatbots using Cross-Utterance Context and Multi-Task Language Modeling

Ashish Shenoy, Sravan Bodapati, Katrin Kirchhoff

TL;DR

This paper tackles the challenge of improving Automatic Speech Recognition (ASR) for e-commerce chatbots by leveraging cross-utterance context and a novel multi-task learning approach. They demonstrate significant improvements in content word recognition and slot labeling by integrating dialogue acts and a joint slot detection/language modeling objective into a Transformer-XL model.

What Problem Does This Paper Address?

E-commerce chatbots, especially those handling transactions, rely heavily on accurate speech recognition to understand user intents and extract crucial information (slots) like product names, quantities, and delivery details. Traditional ASR systems often process each utterance in isolation, missing valuable context from previous turns in a conversation. This can lead to errors, particularly with domain-specific jargon or ambiguous words. Furthermore, adapting general-purpose ASR models to the unique language patterns of e-commerce can be challenging. This paper aims to bridge this gap by developing an ASR system that effectively utilizes conversational context and adapts to the e-commerce domain on-the-fly.

Methods

The core of this work is the adaptation of a Transformer-XL (TXL) language model (LM) for ASR rescoring. Here's a breakdown of their key methods:

  • Transformer-XL (TXL) for Context: They leverage TXL's ability to handle long-range dependencies by caching hidden states from previous segments, allowing context to flow across turns.
  • Dialogue Acts (DA) for Contextualization: They incorporate dialogue acts (e.g., "inform-intent," "request") as explicit signals, prefixing them to user turns with special tags. This helps the model understand the intent of the utterance and narrow down the search space for relevant content words.
  • BERT Embeddings for Domain Adaptation: To adapt the general-domain TXL LM to e-commerce, they use pre-trained BERT embeddings derived from in-domain text (e.g., retail and fastfood corpora). These embeddings are fused with the TXL's hidden states, allowing the model to associate domain-specific jargon with its semantic meaning.
  • Multi-Task Learning for Slot Detection: A novel contribution is a multi-task learning approach where the TXL model is jointly trained on both language modeling and slot detection tasks. This means the model simultaneously learns to predict the next word and identify domain-specific slot entities within an utterance. The loss function is a weighted combination of the LM loss and the slot detection loss.

Datasets

The authors utilized a combination of publicly available and in-house datasets:

  • Publicly Available: Schema-Guided Dialogue Dataset, MultiWOZ 2.1, and MultiDoGo.
  • In-house: Anonymized datasets from two e-commerce use cases: retail and fastfood delivery.

The final LM training data comprised 260k training samples, 56k validation/evaluation samples, and approximately 9.9 million running words. They also used anonymized 8kHz close-talk audio for evaluation, with an average of 5 turns per conversation.

Key Insights and Ideas

  • Dialogue Acts are Powerful Signals: Integrating dialogue acts, even with a relatively simple approach, significantly improves intent classification, suggesting they provide valuable contextual cues for understanding user intent.
  • Joint Slot Detection Boosts Content Word Accuracy: Training the model to explicitly detect slot entities alongside language modeling leads to substantial improvements in content word error rate (CWERR), indicating that focusing on these specific entities helps disambiguate them.
  • BERT Fusion for On-the-Fly Adaptation: Using BERT embeddings finetuned on domain-specific text is an effective and efficient way to adapt a general-purpose LM to new domains on-the-fly, yielding larger gains on domain-specific test sets.
  • Synergy of Techniques: The combination of dialogue acts, BERT fusion, and joint slot detection yields the most significant improvements across all metrics, highlighting the power of a multi-faceted approach.

Key Results

The paper reports significant improvements over a non-contextual LSTM baseline:

  • Content Word Error Rate (CWERR) Reduction: A reduction of up to 19.2% on the fastfood domain and 11.8% on the retail domain was achieved with the best model (Joint SD + DA + BERT Fusion).
  • Slot Labeling (SL) F1 Improvement: An improvement of up to 6.4% on the fastfood domain and 4.3% on the retail domain.
  • Intent Classification (IC) F1 Improvement: Gains of up to 3.8% on the retail domain.
  • Perplexity Reduction (PPLR): The models showed significant perplexity reductions, indicating better domain adaptation, with the jointly trained model showing larger gains on the e-commerce domain (23.3% vs. 16.3%).
  • Statistical Significance: The improvements were shown to be statistically significant.

Limitations and Future Work

  • Limitations: The authors note that the performance gap between the retail and fastfood domains in their results reflects the underlying training corpus distribution, which had more text belonging to the fastfood domain. They also mention that while dialogue acts improve intent classification, the gains are marginal compared to other techniques.
  • Future Work: The authors suggest integrating these methods into an end-to-end ASR system for both rescoring and first-pass LM fusion. This would allow for a more holistic approach to improving ASR performance.

Summary updated

BibTeX
@inproceedings{shenoy2021asr,
  author = {Ashish Shenoy and Sravan Bodapati and Katrin Kirchhoff},
  title = {{ASR Adaptation for E-commerce Chatbots using Cross-Utterance Context and Multi-Task Language Modeling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
}
Figure