Skip to main content
QUICK REVIEW

[Paper Review] Composed Variational Natural Language Generation for Few-shot Intents

Congying Xia, Caiming Xiong|arXiv (Cornell University)|Sep 21, 2020
Topic ModelingComputer Science29 references5 citations
TL;DR

This paper proposes Composed Variational Natural Language Generation (CLANG), a transformer-based conditional variational autoencoder that generates synthetic training data for few-shot intents by modeling intent as a composition of domain and action. Using disentangled latent variables and contrastive regularization, CLANG improves few-shot intent detection performance, achieving state-of-the-art results on two real-world datasets.

ABSTRACT

In this paper, we focus on generating training examples for few-shot intents in the realistic imbalanced scenario. To build connections between existing many-shot intents and few-shot intents, we consider an intent as a combination of a domain and an action, and propose a composed variational natural language generator (CLANG), a transformer-based conditional variational autoencoder. CLANG utilizes two latent variables to represent the utterances corresponding to two different independent parts (domain and action) in the intent, and the latent variables are composed together to generate natural examples. Additionally, to improve the generator learning, we adopt the contrastive regularization loss that contrasts the in-class with the out-of-class utterance generation given the intent. To evaluate the quality of the generated utterances, experiments are conducted on the generalized few-shot intent detection task. Empirical results show that our proposed model achieves state-of-the-art performances on two real-world intent detection datasets.

Motivation & Objective

  • To address the challenge of low-resource intent detection in imbalanced datasets with few-shot intents.
  • To bridge the gap between many-shot and few-shot intents by modeling intent as a composition of domain and action.
  • To generate high-quality, diverse training examples for few-shot intents using disentangled latent representations.
  • To improve generalization in few-shot intent detection through contrastive regularization during generation.
  • To achieve state-of-the-art performance on generalized few-shot intent detection tasks.

Proposed method

  • CLANG is a transformer-based conditional variational autoencoder (CVAE) with a bi-latent variational encoder using two independent latent variables for domain and action.
  • Specialized self-attention masks guide each latent variable to focus on corresponding semantic parts in the input utterance, enabling disentanglement of domain and action representations.
  • Utterances are generated by composing the sampled latent codes for domain and action through the decoder.
  • A contrastive regularization loss is introduced to maximize the likelihood of generating in-class (positive) utterances over out-of-class (negative) ones, improving generation fidelity.
  • The model performs composed variational inference during inference to generate diverse and relevant utterances for few-shot intents.
  • The framework is trained end-to-end on existing many-shot intent data to learn transferable representations for few-shot generalization.

Experimental results

Research questions

  • RQ1Can modeling an intent as a composition of domain and action improve few-shot intent generation and detection?
  • RQ2Can disentangled latent representations for domain and action lead to better generalization to unseen few-shot intents?
  • RQ3Does contrastive regularization improve the quality and diversity of generated utterances in few-shot settings?
  • RQ4Can a composed variational generator outperform existing data augmentation methods in generalized few-shot intent detection?
  • RQ5How effective is CLANG in generating realistic and diverse training examples for low-resource intents?

Key findings

  • CLANG achieves state-of-the-art performance on the generalized few-shot intent detection (GFSID) task across two real-world intent detection datasets.
  • In human evaluation, 80.99% of generated utterances for the Alarm Query intent were rated as good, with the majority being valid data augmentation variants (e.g., add/delete, new time slots, rephrased questions).
  • The model generates 19.01% bad cases, primarily due to wrong intent prediction or incorrect question words, indicating room for improvement in disentanglement.
  • The contrastive regularization loss significantly improves generation quality by reducing the likelihood of generating out-of-class utterances.
  • CLANG outperforms existing methods that use simple rule-based augmentation or LSTMs with limited capacity for text generation.
  • The ablation study confirms that both the disentangled latent structure and contrastive loss are essential for optimal performance.

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.