Current Transformer-based natural language understanding (NLU) models heavily rely on dataset biases, while failing to handle real-world out-of-distribution (OOD) instances. Many methods have been proposed to deal with this issue, but they ignore the fact that the features learned in different layers of Transformer-based NLU models are different. In this paper, we first conduct preliminary studies to obtain two conclusions: 1) both low- and high-layer sentence representations encode common biased features during training; 2) the low-layer sentence representations encode fewer unbiased features than the highlayer ones. Based on these conclusions, we propose a simple yet effective self-debiasing framework for Transformer-based NLU models. Concretely, we first stack a classifier on a selected low layer. Then, we introduce a residual connection that feeds the low-layer sentence representation to the top-layer classifier. In this way, the top-layer sentence representation will be trained to ignore the common biased features encoded by the low-layer sentence representation and focus on task-relevant unbiased features. During inference, we remove the residual connection and directly use the top-layer sentence representation to make predictions. Extensive experiments and indepth analyses on NLU tasks show that our framework performs better than several competitive baselines, achieving a new SOTA on all OOD test sets.
UGID: Unified Graph Isomorphism for Debiasing Large Language Models
University of Electronic Science and Technology of China(电子科技大学);Mohamed bin Zayed University of Artificial Intelligence(Mohamed bin Zayed人工智能大学);South China University of Technology(华南理工大学)
Generalization in NLI: Ways (Not) To Go Beyond Simple Heuristics
The University of Texas at Dallas(德克萨斯大学达拉斯分校);RIKEN Center for Computational Science(理化学研究所计算科学中心);Tokyo Institute of Technology(东京工业大学);Center for Social Data Science, University of Copenhagen(哥本哈根大学社会数据科学中心)
UniDrop: A Simple yet Effective Technique to Improve Transformer without Extra Cost
National Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);Microsoft Research Asia(微软亚洲研究院)
Transformer体系结构在丰富的自然语言处理任务中取得了巨大的成功。Transformer模型的过参数化已经激发了大量的工作来减轻其过拟合以获得更好的性能。通过一些探索,我们发现简单的技术,如dropout,可以大大提高模型的性能与精心设计。因此,在本文中,我们将不同的dropout技术集成到Transformer模型的训练中。具体来说,我们提出了一种名为UniDrop的方法,将从细粒度到粗粒度的三种不同的dropout技术结合起来,即,特征丢失、结构丢失和数据丢失。理论上,我们证明了这三个辍学发挥不同的作用,从正规化的角度来看。从经验上讲,我们在神经机器翻译和文本分类基准数据集上进行了实验。广泛的结果表明,Transformer with UniDrop可以在IWSLT14翻译任务上实现约1.5 BLEU的改进,并且即使使用强大的预训练RoBERTA作为骨干,也可以获得更好的分类准确性。