DemoNSF: A Multi-task Demonstration-based Generative Framework for Noisy Slot Filling Task

Guanting Dong, Tingfeng Hui, Zhuoma Gongque, Jinxu Zhao, Daichi Guo, Gang Zhao, Keqing He, Weiran Xu

Abstract

Slot filling (SF) is a foundational task for goal-oriented dialogue systems, yet modern generative models often struggle with the "messiness" of real-world user queries. We introduce DemoNSF (Demonstration-based Noisy Slot Filling), a multi-task framework designed to bridge the robustness gap. By combining multi-level data augmentation, auxiliary denoising tasks, and a novel noisy demonstration strategy, DemoNSF significantly outperforms existing models on data containing typos, speech recognition errors, and varied human expressions. Our evaluation on the RADDLE and SNIPS benchmarks shows state-of-the-art performance, particularly in complex mixed-perturbation scenarios.

Introduction

Slot Filling (SF) involves identifying specific semantic entities within user queries—such as recognizing "NYC" as a destination. While current models perform exceptionally well on pristine, "clean" datasets, their performance degrades sharply in real-world applications. Users frequently introduce character-level noise (typos like "New Yourk Citty"), word-level phonetic errors from Automatic Speech Recognition (ASR) systems ("bye twelve thirty"), and sentence-level variations (verbose or simplified language).

Existing models often lack the semantic structural information required to handle these perturbations. Most approaches attempt to "clean" data post-hoc, which can lose critical context. DemoNSF addresses this by incorporating noise directly into the learning process, teaching models to expect and interpret imperfect inputs through both implicit pre-training and explicit in-context demonstrations.

Methodology

The DemoNSF framework follows a three-stage pipeline designed to build robust semantic representations.

1. Multi-level Data Augmentation

Using tools like NLPAug, the framework generates a "noisy candidate pool" from clean training data. This includes character-level noise (typos), word-level noise (homophones or substitutions), and sentence-level noise (paraphrasing).

2. Noisy Auxiliary Tasks

During a multi-task pre-training phase, the model performs three "warm-up" tasks to learn the underlying structure of noise:

  • Noisy Recovery (NR): Reconstructing clean sentences from noisy versions.
  • Random Mask (RM): Predicting masked slot entities within noisy contexts.
  • Hybrid Discrimination (HD): Classifying whether an input sentence is clean or perturbed.

3. Noisy Demonstration Construction

In the fine-tuning and inference stages, DemoNSF retrieves semantically similar noisy examples from the augmented pool using SBERT. These examples serve as "demonstrations" in the prompt, providing the model with explicit context on how to map noisy inputs to correct slot labels.

The DemoNSF framework architecture, illustrating data augmentation, auxiliary pre-training tasks, and demonstration-based fine-tuning.

Experiments and Results

The framework was evaluated on the RADDLE diagnostic benchmark and the SNIPS dataset. DemoNSF was tested using GPT-2, BART, and T5 backbones, demonstrating its architecture-agnostic robustness.

Performance on Perturbed Data

DemoNSF achieved state-of-the-art results across all perturbation types. Notably, using a T5 backbone, the model improved F1 scores by 11.29% on Typos and 7.42% on Speech errors compared to the previous leading model, InstructionNER.

Performance comparison of DemoNSF against various baselines across clean and perturbed datasets in the RADDLE benchmark.

Stability and Mixed Scenarios

Crucially, DemoNSF maintains high performance on clean data, avoiding the common trade-off between robustness and standard accuracy. In "mixed perturbation" scenarios—where multiple types of noise occur simultaneously—DemoNSF outperformed baselines by over 4%, proving its reliability in complex environments.

Conclusion

DemoNSF demonstrates that treating noise as a feature rather than an error significantly enhances the robustness of slot-filling systems. By leveraging multi-task pre-training and noisy in-context demonstrations, the framework provides a scalable solution for real-world NLU. While the current implementation introduces some computational overhead, its superior performance across diverse noise distributions marks a significant step forward for resilient dialogue systems.

Summary updated

BibTeX
@inproceedings{dong2023demonsf,
  author = {Guanting Dong and Tingfeng Hui and Zhuoma Gongque and Jinxu Zhao and Daichi Guo and Gang Zhao and Keqing He and Weiran Xu},
  title = {{DemoNSF: A Multi-task Demonstration-based Generative Framework for Noisy Slot Filling Task}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.705},
}
Figure