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

大语言模型会取代时间关系分类中的仅编码器模型吗?

Will LLMs Replace the Encoder-Only Models in Temporal Relation Classification?

University of Trento(特伦托大学)

Gabriel Roccabruna, Massimo Rizzoli, Giuseppe Riccardi

AI总结:

本研究针对时间关系分类任务,对比了7款开源与闭源大语言模型和RoBERTa类仅编码器模型的性能,发现上下文学习下的大语言模型表现更差,并通过可解释性分析揭示自回归特性是性能差距的重要原因。

摘要:

事件间时间关系的自动检测此前主要通过RoBERTa等仅编码器模型开展研究。大语言模型(LLM)近期在时间问答等时间推理任务中展现出可观性能,但现有研究仅测试了闭源模型的时间关系检测能力,限制了结果的可解释性。本研究探究了LLM在时间关系分类任务中的性能与决策过程:首先,针对7款开源与闭源LLM,结合上下文学习与轻量微调方法开展实验评估,结果显示,采用上下文学习的LLM性能显著逊于基于RoBERTa的小型仅编码器模型;随后,通过可解释性方法深入分析了这一性能差距的潜在成因,结果表明LLM的自回归特性导致其仅关注序列末尾部分,是其在该任务中存在局限的原因;此外,还评估了两类模型的词嵌入,以进一步理解其预训练差异。代码与微调模型可分别在GitHub上获取。

英文摘要:

The automatic detection of temporal relations among events has been mainly investigated with encoder-only models such as RoBERTa. Large Language Models (LLM) have recently shown promising performance in temporal reasoning tasks such as temporal question answering. Nevertheless, recent studies have tested the LLMs' performance in detecting temporal relations of closed-source models only, limiting the interpretability of those results. In this work, we investigate LLMs' performance and decision process in the Temporal Relation Classification task. First, we assess the performance of seven open and closed-sourced LLMs experimenting with in-context learning and lightweight fine-tuning approaches. Results show that LLMs with in-context learning significantly underperform smaller encoder-only models based on RoBERTa. Then, we delve into the possible reasons for this gap by applying explainable methods. The outcome suggests a limitation of LLMs in this task due to their autoregressive nature, which causes them to focus only on the last part of the sequence. Additionally, we evaluate the word embeddings of these two models to better understand their pre-training differences. The code and the fine-tuned models can be found respectively on GitHub.

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

↑