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

Poly-encoders:Transformer架构和预训练策略,用于快速准确的多句评分

Poly-encoders: Transformer Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoring

Facebook AI Research(脸书人工智能研究院)

Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, Jason Weston

摘要:

深度预训练的双向Transformers的使用已经在许多应用中导致了显著的进步(Devlin等人,2018年)。对于在序列之间进行成对比较的任务,将给定的输入与相应的标签进行匹配,有两种方法是常见的:交叉编码器对该对进行完全自注意,双编码器对该对进行单独编码。前者通常性能更好,但对于实际使用来说太慢了。在这项工作中,我们开发了一个新的Transformer架构,多编码器,学习全球,而不是令牌级的自我关注功能。我们对这三种方法进行了详细的比较,包括哪些预训练和微调策略效果最好。我们展示了我们的模型在三个现有任务上实现了最先进的结果; Poly-encoders比Cross-encoders更快,比Bi-encoders更准确;最好的结果是通过在类似于下游任务的大型数据集上进行预训练获得的。

英文摘要:

The use of deep pre-trained bidirectional transformers has led to remarkable progress in a number of applications (Devlin et al., 2018). For tasks that make pairwise comparisons between sequences, matching a given input with a corresponding label, two approaches are common: Cross-encoders performing full self-attention over the pair and Bi-encoders encoding the pair separately. The former often performs better, but is too slow for practical use. In this work, we develop a new transformer architecture, the Poly-encoder, that learns global rather than token level self-attention features. We perform a detailed comparison of all three approaches, including what pre-training and fine-tuning strategies work best. We show our models achieve state-of-the-art results on three existing tasks; that Poly-encoders are faster than Cross-encoders and more accurate than Bi-encoders; and that the best results are obtained by pre-training on large datasets similar to the downstream tasks.

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

↑