Transformers在广泛的NLP任务中是最先进的,也已应用于许多现实世界的产品。了解Transformer模型预测的可靠性和确定性对于构建可信的机器学习应用程序至关重要,例如,医学诊断虽然最近已经提出了许多Transformer扩展,Transformer模型的不确定性估计的研究是欠探索。在这项工作中,我们提出了一种新的方法,使Transformers具有不确定性估计的能力,同时,保持原来的预测性能。这是通过学习一个分层的随机自我注意力,分别出席值和一组可学习的质心。然后,使用Gumbel-Softmax技巧,用采样质心的混合物形成新的注意力头部。我们从理论上证明了从Gumbel分布采样的自注意近似是有界的。我们经验性地评估我们的模型在两个文本分类任务与域内(ID)和域外(OOD)数据集。实验结果表明:(1)在比较的方法中,该方法具有最好的预测性能和不确定性权衡;(2)在ID数据集上表现出非常有竞争力的(在大多数情况下,提高了)预测性能;(3)在OOD数据集上的不确定性估计中与Monte Carlo dropout和集成方法相当。
英文摘要:
Transformers are state-of-the-art in a wide range of NLP tasks and have also been applied to many real-world products. Understanding the reliability and certainty of transformer model predictions is crucial for building trustable machine learning applications, e.g., medical diagnosis. Although many recent transformer extensions have been proposed, the study of the uncertainty estimation of transformer models is under-explored. In this work, we propose a novel way to enable transformers to have the capability of uncertainty estimation and, meanwhile, retain the original predictive performance. This is achieved by learning a hierarchical stochastic self-attention that attends to values and a set of learnable centroids, respectively. Then new attention heads are formed with a mixture of sampled centroids using the Gumbel-Softmax trick. We theoretically show that the self-attention approximation by sampling from a Gumbel distribution is upper bounded. We empirically evaluate our model on two text classification tasks with both in-domain (ID) and out-of-domain (OOD) datasets. The experimental results demonstrate that our approach: (1) achieves the best predictive performance and uncertainty trade-off among compared methods; (2) exhibits very competitive (in most cases, improved) predictive performance on ID datasets; (3) is on par with Monte Carlo dropout and ensemble methods in uncertainty estimation on OOD datasets.
Hierarchical Graph Topic Modeling with Topic Tree-based Transformer
The Pennsylvania State University(宾夕法尼亚州立大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Nanyang Technological University(南洋理工大学);University of Electronic Science and Technology of China(电子科技大学);Singapore Management University(新加坡管理大学)
ERNIE-SPARSE: Learning Hierarchical Efficient Transformer Through Regularized Self-Attention
Baidu Inc.(百度公司);Wuhan University of Science and Technology(武汉科技大学)
稀疏Transformer最近吸引了大量的关注,因为能够减少序列长度的二次依赖性。我们认为,两个因素,信息瓶颈的敏感性和不同的注意力拓扑结构之间的不一致性,可能会影响稀疏Transformer的性能。本文提出了一个设计良好的模型ERNIE-Sparse。它由两个不同的部分组成:(i)层次稀疏Transformer(HST),顺序统一的本地和全局信息。(ii)自注意正则化(SAR)方法,一种新的正则化设计,以最小化不同注意拓扑的变压器的距离。为了评估ERNIE-Sparse的有效性,我们进行了广泛的评估。首先,我们进行了实验上的多模态长序列建模任务基准,长距离竞技场(LRA)。实验结果表明,ERNIE-Sparse显著优于各种强基线方法,包括密集注意力和其他有效的稀疏注意力方法,并实现了2.77%的改进(57.78% vs. 55.01%)。其次,为了进一步证明我们的方法的有效性,我们对ERNIE-Sparse进行了预训练,并在3个文本分类和2个QA下游任务上进行了验证,分类基准提高了0.83%(92.46% vs. 91.63%),QA基准提高了3.24%(74.67% vs. 71.43%)。实验结果继续证明其优越的性能。
An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classification
University of Copenhagen(哥本哈根大学);CSIRO Data61(澳大利亚联邦科学与工业研究组织Data61);Athens University of Economics and Business(雅典经济与商业大学);Pioneer Centre for AI(人工智能先锋中心)
Hierarchical Transformer for Task Oriented Dialog Systems
Indian Institute of Technology Kharagpur(印度理工学院卡哈拉格普尔分校)
由于最近基于RNN和Transformer的模型在问答和摘要等任务中的成功,对话系统的生成模型已经引起了人们的极大兴趣。虽然对话响应生成的任务通常被视为序列到序列(Seq 2Seq)问题,但是过去的研究人员发现使用标准Seq 2Seq模型来训练对话系统具有挑战性。因此,为了帮助模型学习有意义的话语和会话级别的特征,Sordoni et al.(2015 b); Serban et al.(2016)提出了分层RNN架构,后来被其他几个基于RNN的对话系统采用。随着基于transformer的模型最近主导seq 2seq问题,自然要问的问题是层次概念在基于Transformer的对话系统中的适用性。在本文中,我们提出了一个通用的框架分层Transformer编码器,并显示如何一个标准的Transformer可以变形为任何分层编码器,包括HRED和HIBERT的模型,通过使用专门设计的注意掩模和位置编码。我们证明了层次编码有助于实现更好的自然语言的上下文理解的transformer为基础的模型,面向任务的对话系统,通过广泛的实验。
Unsupervised Extractive Summarization by Pre-training Hierarchical Transformers
Microsoft Research Asia(微软亚洲研究院);Shanghai Qi Zhi institute(上海期智研究院)
无监督提取文档摘要旨在从文档中选择重要句子,而无需在训练期间使用标记摘要。现有的方法大多是基于图的句子作为节点和句子的相似性衡量的边的权重。在这项工作中,我们发现,Transformer注意力可以用来排名句子的无监督提取摘要。具体来说,我们首先只使用未标记的文档来预训练分层Transformer模型。然后,我们提出了一种方法来排名的句子,使用双水平的自我注意力和预训练目标。在CNN/DailyMail和New York Times数据集上的实验表明,该模型在无监督摘要方面具有最先进的性能。我们还发现,在实验中,我们的模型是依赖于句子位置。当使用我们的模型和最近的无监督模型显式建模句子位置的线性组合时,我们获得了更好的结果。
Hierarchical GPT with Congruent Transformers for Multi-Sentence Language Models
School of Electrical Engineering, Korea Advanced Institute of Science and Technology(韩国科学技术院电气工程学院);KI for Artificial Intelligence, Korea Advanced Institute of Science and Technology(韩国科学技术院人工智能研究所)
Hierarchical Label-wise Attention Transformer Model for Explainable ICD Coding
University of New South Wales(新南威尔士大学);The Australian e-Health Research Centre, CSIRO(澳大利亚联邦科学与工业研究组织澳大利亚电子健康研究中心);Australian Institute of Health and Welfare(澳大利亚卫生与福利研究所)
CMATH: Cross-Modality Augmented Transformer with Hierarchical Variational Distillation for Multimodal Emotion Recognition in Conversation
Chongqing University of Technology(重庆理工大学);Fuzhou University(福州大学);China Automotive Engineering Research Institute Co., Ltd.(中国汽车工程研究院股份有限公司);Chongqing Changan Automobile Co., Ltd.(重庆长安汽车股份有限公司)