arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.01907cs.CL
收藏

一种简单而有效的面向 Transformer 模型的自去偏框架

A Simple yet Effective Self-Debiasing Framework for Transformer Models

Xiamen University(厦门大学);Baidu Inc.(百度公司);University of Michigan(密歇根大学)

Xiaoyue Wang, Lijie Wang, Xin Liu, Suhang Wu, Jinsong Su, Hua Wu

AI总结:

针对 Transformer NLU 模型依赖数据集偏差、难以处理 OOD 样本的问题,本文利用低层偏差特征多、无偏特征少的特点,提出低层分类器加残差连接的自去偏框架,并在全部 OOD 测试集上达到新 SOTA。

摘要:

当前基于 Transformer 的自然语言理解(NLU)模型严重依赖数据集偏差,同时无法处理现实世界中的分布外(OOD)样本。已有许多方法被提出以解决这一问题,但它们忽略了一个事实:基于 Transformer 的 NLU 模型在不同层中学习到的特征并不相同。本文首先开展初步研究并得到两个结论:1)在训练过程中,低层和高层句子表示都会编码共同的偏差特征;2)低层句子表示编码的无偏特征少于高层句子表示。基于这些结论,我们为基于 Transformer 的 NLU 模型提出了一种简单而有效的自去偏框架。具体而言,我们首先在选定的低层上堆叠一个分类器。随后,引入一条残差连接,将低层句子表示馈送到顶层分类器。通过这种方式,顶层句子表示将被训练为忽略低层句子表示所编码的共同偏差特征,并聚焦于与任务相关的无偏特征。在推理阶段,我们移除残差连接,直接使用顶层句子表示进行预测。在 NLU 任务上的大量实验和深入分析表明,我们的框架表现优于若干具有竞争力的基线,并在所有 OOD 测试集上取得了新的 SOTA。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑