Aha.
正在载入中英对照阅读…

arXiv:1908.06039 · 中英对照阅读

基于分布特征的少样本文本分类

Few-shot Text Classification with Distributional Signatures

Yujia Bao†*、Menghua Wu†、Shiyu Chang‡、Regina Barzilay†

中文速览

少样本文本分类中,词语的重要性常因类别而异,因此直接把图像领域的元学习方法搬来,往往难以抓住新类别真正有用的词。作者先从大量已有文本和少量新类别样本中提取词频、词与类别的关联等分布特征,再用一个注意力生成器据此给词打分,并让岭回归分类器在每个新任务里用少数标注快速学习。实验显示,这种方法在六个文本与关系分类基准上都优于对照方法,单样本分类中相较原型网络平均提升约两成。它的重要之处在于,模型迁移的不是某些具体关键词,而是判断“什么样的词值得关注”的经验,因此更能适应只有少量标注的新类别。

摘要

本文探讨了用于少样本文本分类的元学习。元学习在计算机视觉领域已展现出强劲的性能,因为低级模式可迁移至不同的学习任务。然而,将这一方法直接应用于文本颇具挑战,因为对某项任务高度有用的词汇特征,对另一项任务而言可能无关紧要。因此,我们的模型并非仅从词语中学习,还利用其分布特征,这些特征编码了相关的词语出现模式。我们的模型在元学习框架内进行训练,将这些分布特征映射为注意力分数,再利用这些分数对词语的词汇表示进行加权。我们证明,在六个基准数据集上,无论是少样本文本分类还是关系分类,我们的模型都显著优于基于词汇知识训练的原型网络(Snell 等,2017),在 1-shot 分类中平均提升 20.0%。11 1 我们的代码可在 https://github.com/YujiaBao/Distributional-Signatures 获取。

In this paper, we explore meta-learning for few-shot text classification. Meta-learning has shown strong performance in computer vision, where low-level patterns are transferable across learning tasks. However, directly applying this approach to text is challenging–lexical features highly informative for one task may be insignificant for another. Thus, rather than learning solely from words, our model also leverages their distributional signatures, which encode pertinent word occurrence patterns. Our model is trained within a meta-learning framework to map these signatures into attention scores, which are then used to weight the lexical representations of words. We demonstrate that our model consistently outperforms prototypical networks learned on lexical knowledge (Snell et al., 2017) in both few-shot text classification and relation classification by a significant margin across six benchmark datasets (20.0% on average in 1-shot classification).11 1 Our code is available at https://github.com/YujiaBao/Distributional-Signatures.

术语表

meta-learning
元学习
few-shot text classification
少样本文本分类
relation classification
关系分类
low-resource regime
低资源场景
training episode
训练回合
transferability
可迁移性
lexical features
词汇特征
lexical representations
词汇表示
distributional signatures
分布特征
word occurrence patterns
词语出现模式
attention scores
注意力分数
attention generator
注意力生成器
prototypical networks
原型网络
nearest neighbor classifier
最近邻分类器
tf-idf weighting
tf-idf 加权
word frequency
词频
cross-class transfer
跨类别迁移
ridge regressor
岭回归器
prediction loss
预测损失
word-substitution perturbations
词语替换扰动
transfer learning
迁移学习
fine-tuning
微调
pre-trained encoder
预训练编码器
multi-task learning
多任务学习
shared encoder
共享编码器
human rationales
人工标注的解释依据
source classes
源类别
target classes
目标类别