Compositional Generalization in Spoken Language Understanding

Avik Ray, Yilin Shen, Hongxia Jin

Introduction

State-of-the-art Spoken Language Understanding (SLU) models, particularly those based on Transformer architectures like BERT, have achieved impressive results on standard benchmarks. However, these models often exhibit a lack of robustness when faced with out-of-distribution scenarios, specifically those requiring compositional generalization. While humans can effortlessly understand novel combinations of known concepts, deep learning models frequently rely on spurious correlations—shortcuts that fail when the test data presents familiar labels in unfamiliar configurations or longer sequences. This paper addresses these limitations by introducing the first compositional benchmarks for SLU and proposing a dual-pronged approach: a novel compositional loss function and a paired training augmentation strategy.

The Problem: Compositional Failure Modes

In voice assistant systems, SLU tasks involve identifying a user's intent (e.g., "Book a flight") and extracting specific slots (e.g., "from London" as a departure city). The authors identify two primary failure modes in current models:

  1. Novel Slot Combinations: Models often fail when they encounter a set of slot types in a single sentence that were only seen separately during training. For instance, a model might correctly identify B-from-city and B-to-city in isolation but fail when both appear in the same utterance because it has learned to associate the presence of one slot with the absence of the other.
  2. Length Generalization: Models struggle when a test utterance contains more slots or is significantly longer than any example encountered during the training phase.

Proposed Methodology

To bake compositionality into SLU models, the researchers introduced two distinct techniques designed to mitigate reliance on spurious shortcuts.

1. Compositional Loss

The authors designed a loss function to force the model's attention mechanism to be more "disjoint," preventing it from using irrelevant context words to identify specific slots. This is achieved through two components:

  • Slot-Pair Loss: This encourages the model to focus on non-overlapping sets of context words when identifying different slot labels within the same sentence.
  • Non-Degenerate Loss: To ensure the model doesn't "cheat" by only looking at the target word itself, this loss ensures the model still utilizes relevant, non-spurious context.

2. Paired Training

To address length generalization, the authors implemented a data augmentation strategy called Paired Training. This involves taking two training utterances with the same intent but different slot configurations and concatenating them with a period (e.g., "Find flights to Boston. Show flights from Atlanta."). This simple trick exposes the model to increased structural complexity and longer sequences without the need for additional manual annotation.

Experimental Setup and Datasets

The study utilized two standard SLU benchmarks: ATIS (Airline Travel Information System) and SNIPS (a multi-domain dataset). The key innovation lies in the creation of compositional splits. The researchers filtered the training data to ensure that specific slot combinations or sentence lengths were reserved exclusively for the test set, providing a rigorous evaluation of the models' ability to generalize.

Key Insights and Results

The proposed "Comp. SLU" model demonstrated significant improvements over standard BERT baselines:

  • Performance Gains: On the new compositional splits, the proposed model achieved up to a 5% increase in F1 score for slot tagging.
  • Attention Accuracy: Visualizations of attention maps revealed that standard models often focus on irrelevant words (e.g., focusing on the word "eighties" to identify the genre "rock"). The compositional loss successfully redirected the model's focus toward more informative local context.
  • Ablation Studies: The results confirmed that the Compositional Loss was the primary driver for resolving novel combinations, while Paired Training was essential for overcoming length generalization challenges.
  • Robustness: Importantly, the model maintained or slightly improved its performance on standard, non-compositional benchmarks, proving that these constraints do not come at the cost of general accuracy.

Conclusion and Future Work

This research highlights that modern SLU models are prone to learning "shortcuts" rather than the underlying logic of language composition. By introducing targeted loss functions and structural data augmentation, the authors demonstrated that models can be made significantly more robust to novel scenarios.

Future research directions include addressing the impact of Out-Of-Vocabulary (OOV) slot values, developing more linguistically natural methods for synthesizing complex training data, and scaling these techniques to industrial datasets featuring hundreds of unique slot types.

Summary updated

BibTeX
@inproceedings{ray2023compositional,
  author = {Avik Ray and Yilin Shen and Hongxia Jin},
  title = {{Compositional Generalization in Spoken Language Understanding}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-1419},
}
Figure