Skip to main content
QUICK REVIEW

[论文解读] CG-BERT: Conditional Text Generation with BERT for Generalized Few-shot Intent Detection

Congying Xia, Chenwei Zhang|arXiv (Cornell University)|Apr 4, 2020
Topic ModelingComputer Science参考文献 37被引用 35
一句话总结

CG-BERT 引入了一种条件文本生成方法,使用 CVAE 和 BERT 来建模每个意图的 utterance 分布,从而为新意图生成多样化示例并提升泛化少样本意图检测(GFSID)。

ABSTRACT

In this paper, we formulate a more realistic and difficult problem setup for the intent detection task in natural language understanding, namely Generalized Few-Shot Intent Detection (GFSID). GFSID aims to discriminate a joint label space consisting of both existing intents which have enough labeled data and novel intents which only have a few examples for each class. To approach this problem, we propose a novel model, Conditional Text Generation with BERT (CG-BERT). CG-BERT effectively leverages a large pre-trained language model to generate text conditioned on the intent label. By modeling the utterance distribution with variational inference, CG-BERT can generate diverse utterances for the novel intents even with only a few utterances available. Experimental results show that CG-BERT achieves state-of-the-art performance on the GFSID task with 1-shot and 5-shot settings on two real-world datasets.

研究动机与目标

  • 动机与解决广义少样本意图检测(GFSID),其标签空间既包含数据丰富的现有意图,也包含样本很少的新颖意图。
  • 提出 CG-BERT,用于对基于意图条件的 utterance 分布进行建模和采样,从而为新颖意图生成伪标签。
  • 用生成的 utterances 增强训练数据,并对 BERT 分类器进行微调,以实现对联合标签空间的更好判别。

提出的方法

  • 将输入表示为一个意图– utterance 对,输入到基于 BERT 的 CVAE 中,以学习 p(z|x,y)。
  • 用 BERT-base 的六层编码器对 x 和 y 进行编码,以获得高斯分布 q(z|x,y) 的潜在变量 z。
  • 使用带有专用注意力掩码的条件化从左到右的 Transformer 进行解码,以从 z 和 y 生成 x,降低潜变量崩塌。
  • 使用 ELBO 损失进行训练:L = -KL(q(z|x,y)||p(z|y)) + E_{q}[log p(x|z,y)].
  • 通过从 p(z|y) 采样 z 并解码来生成新意图的 utterance,然后与训练数据去重以进行增广。
  • 在增广数据集上微调 BERT 分类器以执行 GFSID。

实验结果

研究问题

  • RQ1CG-BERT 是否能够有效对以意图为条件的多样化 utterance 分布进行建模,以为 GFSID 中的新颖意图生成有用的样例?
  • RQ2用 CG-BERT 生成的 utterance 来增广训练数据,是否在联合标签空间中提升总体、已见和新颖意图的准确率?
  • RQ3在真实世界的 GFSID 数据集上,CG-BERT 与强基线的 FSL 和文本生成基线相比如何?
  • RQ4生成的 utterance 是否展现出多样性和句法质量,有助于分类器学习?

主要发现

  • CG-BERT 在 SNIPS-NLU 和 NLU-Evaluation Data 的 1-shot 和 5-shot GFSID 设置中达到最先进的性能。
  • 通过为新颖意图生成高质量多样化的 utterance,CG-BERT 显著提升新颖意图准确率和调和平均数。
  • 与基线相比,CG-BERT 通过对已有和新颖意图的联合训练,利用基于 CVAE 的多样性,带来持续的提升。
  • 生成的 utterances 在数值上更具多样性(具有更多的新 n-grams),在句法质量和意图连贯性方面也获得较高的评价。
  • t-SNE 可视化显示 CG-BERT 生成的新颖意图 utterances 形成与已见意图不同的、多样且分离良好的簇,与固定特征过采样基线不同。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。