Skip to main content
QUICK REVIEW

[Paper Review] Exploring Zero and Few-shot Techniques for Intent Classification

Soham Parikh, Quaizar Vohra|arXiv (Cornell University)|May 11, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper evaluates four zero- and few-shot intent classification techniques—domain adaptation, data augmentation, zero-shot prompting with LLMs, and parameter-efficient fine-tuning (PEFT)—on low-resource intent classification. PEFT using the T-few recipe on Flan-T5-XL achieves state-of-the-art performance with just one example per intent, outperforming even large LLMs like GPT-3.

ABSTRACT

Conversational NLU providers often need to scale to thousands of intent-classification models where new customers often face the cold-start problem. Scaling to so many customers puts a constraint on storage space as well. In this paper, we explore four different zero and few-shot intent classification approaches with this low-resource constraint: 1) domain adaptation, 2) data augmentation, 3) zero-shot intent classification using descriptions large language models (LLMs), and 4) parameter-efficient fine-tuning of instruction-finetuned language models. Our results show that all these approaches are effective to different degrees in low-resource settings. Parameter-efficient fine-tuning using T-few recipe (Liu et al., 2022) on Flan-T5 (Chang et al., 2022) yields the best performance even with just one sample per intent. We also show that the zero-shot method of prompting LLMs using intent descriptions

Motivation & Objective

  • Address the cold-start problem in deploying thousands of intent-classification models for enterprise conversational agents.
  • Reduce dependency on large-scale labeled utterance data for new intents in low-resource settings.
  • Evaluate practical, scalable techniques suitable for production deployment across diverse customer domains.
  • Identify methods that balance performance, model size, and inference cost for enterprise-scale NLU systems.

Proposed method

  • Apply domain adaptation using a sentence encoder pre-trained on internal intent taxonomy and synthetic data to improve few-shot performance.
  • Use prompt-based data augmentation with LLMs to generate diverse training utterances for improved model generalization.
  • Implement zero-shot intent classification by prompting instruction-fine-tuned LLMs (e.g., Flan-T5) with intent descriptions and few-shot demonstrations.
  • Employ parameter-efficient fine-tuning (PEFT) via IA3 adapters on Flan-T5 models using the T-few recipe, fine-tuning only a small number of parameters.
  • Use a unified prompt template with intent names and descriptions to enable consistent few-shot in-context learning across models.
  • Train and evaluate models on public (MASSIVE) and private enterprise datasets with and without out-of-scope samples.
Figure 1: Comparison of ELMSE which is domain adapted with sentence encoders which are not domain adapted
Figure 1: Comparison of ELMSE which is domain adapted with sentence encoders which are not domain adapted

Experimental results

Research questions

  • RQ1How effective are zero- and few-shot intent classification methods in low-resource settings with minimal labeled data?
  • RQ2Can parameter-efficient fine-tuning of instruction-tuned LLMs achieve superior performance with only one or a few examples per intent?
  • RQ3How does prompting LLMs using intent descriptions compare to fine-tuning in terms of accuracy and out-of-scope detection?
  • RQ4What is the trade-off between model size, inference cost, and performance across different zero/few-shot approaches?
  • RQ5Can data augmentation with LLM-generated utterances improve few-shot intent classification beyond domain adaptation alone?

Key findings

  • Parameter-efficient fine-tuning (PEFT) using the T-few recipe on Flan-T5-XL (3B parameters) achieves the highest performance, outperforming even GPT-3 with just one example per intent.
  • Flan-T5-XXL achieves competitive in-scope accuracy to GPT-3 and better out-of-scope recall, demonstrating strong zero-shot generalization with a 16x smaller model.
  • Domain adaptation with a custom sentence encoder improves few-shot accuracy but requires 5–10 labeled utterances per intent to exceed 70% accuracy.
  • Data augmentation with LLM-generated utterances improves model performance by 2–4 percentage points across datasets, especially in low-data regimes.
  • Zero-shot prompting with intent descriptions is highly effective and generalizable, but requires high-quality intent descriptions and incurs high inference costs on large models.
  • Smaller instruction-fine-tuned models like Flan-T5-XL and Flan-T5-Large, when adapter-fine-tuned, offer the best balance of performance, model size, and operational efficiency for large-scale deployment.
Exploring Zero and Few-shot Techniques for Intent Classification

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.