arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.09598cs.CLcs.AI
收藏

基于转换器的混合专家模型构建鲁棒QA系统

Build a Robust QA System with Transformer-based Mixture of Experts

Stanford University(斯坦福大学)

Yu Qing Zhou, Xixuan Julie Liu, Yuanzhe Dong

摘要:

在本文中,我们的目标是建立一个强大的问答系统,可以适应域外数据集。单个网络可能过拟合训练分布中的表面相关性,但具有有意义数量的专家子网络,为每个输入选择稀疏专家组合的门控网络,以及对专家子网络重要性的仔细平衡,专家混合(MoE)模型允许我们训练可以推广到域外数据集的多任务学习器。我们还探讨了将MoE层带到DistilBERT中间的可能性,并将密集前馈网络替换为稀疏激活的开关FFN层,类似于开关Transformer架构,其简化了MoE路由算法,降低了通信和计算成本。除了模型架构,我们还探索了数据增强技术,包括简易数据增强(EDA)和反向翻译,以在小的域外训练数据中创建更有意义的方差,从而提高模型的性能和鲁棒性。在本文中,我们展示了我们的最佳架构和数据增强技术的组合在域外评估中获得了53.477 F1分数,比基线性能提高了9.52%。在最终测试集上,我们报告了更高的59.506 F1和41.651 EM。我们成功地证明了混合专家架构的有效性,在一个强大的QA任务。

英文摘要:

In this paper, we aim to build a robust question answering system that can adapt to out-of-domain datasets. A single network may overfit to the superficial correlation in the training distribution, but with a meaningful number of expert sub-networks, a gating network that selects a sparse combination of experts for each input, and careful balance on the importance of expert sub-networks, the Mixture-of-Experts (MoE) model allows us to train a multi-task learner that can be generalized to out-of-domain datasets. We also explore the possibility of bringing the MoE layers up to the middle of the DistilBERT and replacing the dense feed-forward network with a sparsely-activated switch FFN layers, similar to the Switch Transformer architecture, which simplifies the MoE routing algorithm with reduced communication and computational costs. In addition to model architectures, we explore techniques of data augmentation including Easy Data Augmentation (EDA) and back translation, to create more meaningful variance among the small out-of-domain training data, therefore boosting the performance and robustness of our models. In this paper, we show that our combination of best architecture and data augmentation techniques achieves a 53.477 F1 score in the out-of-domain evaluation, which is a 9.52% performance gain over the baseline. On the final test set, we reported a higher 59.506 F1 and 41.651 EM. We successfully demonstrate the effectiveness of Mixture-of-Expert architecture in a Robust QA task.

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

↑