Abstract
Spoken Language Understanding (SLU) is a fundamental component of task-oriented dialogue systems, responsible for extracting user intents and semantic slots from speech-derived text. Despite the maturity of the field, research progress is often hindered by the lack of a unified framework, leading to fragmented implementations and difficulties in benchmarking—particularly for emerging multi-intent scenarios. We present OpenSLU, a modularized, PyTorch-based toolkit designed to streamline SLU research. OpenSLU decouples data processing, model architectures, and evaluation, supporting both single-intent and multi-intent tasks through a "plug-and-play" framework. By providing a configuration-driven interface and a suite of visualization tools, OpenSLU enables rapid prototyping and rigorous error analysis. Benchmarking of ten state-of-the-art models demonstrates that OpenSLU achieves performance parity with original implementations while offering significantly improved extensibility.
Introduction
Spoken Language Understanding (SLU) serves as the bridge between raw user utterances and the semantic representations required by task-oriented dialogue systems (e.g., Alexa, Siri). The primary goal of SLU is to extract a semantic frame consisting of intents (the user's goal) and slots (the specific entities or parameters). For instance, in the utterance "Play some jazz," the intent is identified as Listen-to-Music and the slot jazz is labeled as a genre.
As the field has evolved, researchers have moved beyond simple single-intent queries to more complex multi-intent utterances (e.g., "Check the weather and set an alarm"). However, the lack of a standardized, unified framework has created a major bottleneck. Researchers frequently must re-implement complex baselines from scratch, and there is no consistent methodology for handling multi-intent data. OpenSLU addresses these challenges by providing a modular library that decouples the SLU pipeline into reusable, configurable components.
Framework Architecture
The core philosophy of OpenSLU is modularity, allowing researchers to experiment with individual components of the SLU pipeline without refactoring the entire system. The toolkit is organized into three primary modules:
1. Data Module
The Data Module manages the transition from raw text to model-ready tensors. It supports an integrated .jsonl format and provides automated Byte Pair Encoding (BPE) tokenization. A critical feature is its automated slot alignment, which ensures that labels remain correctly mapped to tokens even when using complex pretrained sub-word tokenizers.
2. Model Module
The model architecture is decomposed into two distinct sub-units:
- Encoders: OpenSLU supports a wide range of encoders, from non-pretrained options like BiLSTM, Self-Attention, and GloVe embeddings to state-of-the-art pretrained models including BERT, RoBERTa, ELECTRA, and DeBERTa.
- Decoders: This module handles the core logic of SLU. It includes Interaction Modules that manage how intent detection and slot filling share information (utilizing either Single Flow or Bidirectional Flow) and Classification Modules (MLP or LSTM-based).
3. Configuration and Extensibility
OpenSLU utilizes a configuration-driven approach using YAML files. This allows researchers to switch between architectures—for example, moving from a BiLSTM-based model to a DeBERTa-based model—by simply modifying a text file. This decoupling of interaction logic from classification logic makes it easy to test how different information-sharing strategies affect performance.
Datasets and Benchmarking
OpenSLU is evaluated across four major benchmark datasets to ensure broad applicability:
- Single-Intent: The classic ATIS (Airline Travel Information System) and SNIPS (personal voice assistant commands).
- Multi-Intent: MixATIS and MixSNIPS, which consist of utterances joined by conjunctions to test the model's ability to handle multiple semantic frames simultaneously.
Experimental Results
The authors re-implemented 10 major SLU models within the toolkit to validate its efficacy. The results demonstrate several key findings:
- Benchmark Parity: Re-implemented models achieved results comparable to or exceeding those reported in original literature. For example, on the ATIS dataset, the DCA Net achieved an Exact Match Accuracy (EMA) of 87.6%, while Joint BERT reached 88.6%.
- Pretrained Superiority: Pretrained models, particularly DeBERTa, consistently outperform non-pretrained baselines. In slot-filling tasks on the SNIPS dataset, these models achieved up to 97.0% F1.
- Multi-Intent Challenges: Performance on multi-intent datasets remains a significant challenge. On MixATIS, the GL-GIN model achieved a 42.4% EMA, highlighting the substantial room for growth in this area that OpenSLU is designed to facilitate.
Visualization and Error Analysis
A standout feature of OpenSLU is its Gradio-based visualization suite. This tool allows researchers to perform deep dives into model behavior, including:
- Label Distribution: Visualizing the frequency of different intents and slots.
- Label Transfer Analysis: Identifying which labels are most commonly confused by the model.
- Instance Inspection: Examining specific utterances to see exactly where the model's predictions deviated from the ground truth.
Conclusion and Future Work
OpenSLU provides a robust, one-stop shop for SLU research, lowering the barrier to entry for new researchers and accelerating the workflow for experts. While the current version focuses on English benchmarks and the core tasks of intent detection and slot filling, future iterations are planned to include support for cross-lingual SLU and related tasks such as Dialogue State Tracking (DST).
OpenSLU is open-source and available on GitHub at LightChen233/OpenSLU.
Summary updated