arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.13469cs.CLcs.AIcs.LG
收藏

编码器 vs 解码器:编码器与解码器语言模型在多语自然语言理解任务上的对比分析

Encoder vs Decoder: Comparative Analysis of Encoder and Decoder Language Models on Multilingual NLU Tasks

The Alexandra Institute(亚历山德拉研究所);University of Aarhus(奥胡斯大学);University of Southern Denmark(南丹麦大学)

Dan Saattrup Nielsen, Kenneth Enevoldsen, Peter Schneider-Kamp

AI总结:

该研究扩展ScandEval基准以纳入解码器模型,对比了日耳曼语族多语NLU任务中编码器与解码器模型的性能,发现参数量少得多的编码器模型性能更优,并通过UMAP分析揭示两类模型的独特能力,为多语场景模型选择提供参考。

摘要:

本文探究了编码器和解码器语言模型在多语自然语言理解(NLU)任务上的性能,重点覆盖日耳曼语族语言。基于最初仅用于评估编码器模型的ScandEval基准,我们扩展了该评估框架以纳入解码器模型。我们提出了一种在NLU任务上评估解码器模型的方法,并将其应用于丹麦语、瑞典语、挪威语、冰岛语、法罗语、德语、荷兰语和英语。通过一系列实验与分析,我们还解答了关于编码器与解码器模型的性能对比、NLU任务类型的影响以及不同语言资源间差异的研究问题。研究结果表明,尽管编码器模型的参数量少几个数量级,但其NLU性能显著优于解码器模型。此外,我们通过UMAP分析探究了解码器与任务性能之间的相关性,揭示了解码器和编码器模型的独特能力。本研究有助于深化对NLU任务中语言模型范式的理解,为多语场景下的模型选择与评估提供了宝贵见解。

英文摘要:

This paper explores the performance of encoder and decoder language models on multilingual Natural Language Understanding (NLU) tasks, with a broad focus on Germanic languages. Building upon the ScandEval benchmark, initially restricted to evaluating encoder models, we extend the evaluation framework to include decoder models. We introduce a method for evaluating decoder models on NLU tasks and apply it to the languages Danish, Swedish, Norwegian, Icelandic, Faroese, German, Dutch, and English. Through a series of experiments and analyses, we also address research questions regarding the comparative performance of encoder and decoder models, the impact of NLU task types, and the variation across language resources. Our findings reveal that encoder models can achieve significantly better NLU performance than decoder models despite having orders of magnitude fewer parameters. Additionally, we investigate the correlation between decoders and task performance via a UMAP analysis, shedding light on the unique capabilities of decoder and encoder models. This study contributes to a deeper understanding of language model paradigms in NLU tasks and provides valuable insights for model selection and evaluation in multilingual settings.

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

↑