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

Twitter/X情感分析中的多语言语言模型微调:一项关于东欧V4语言的研究

Fine-tuning multilingual language models in Twitter/X sentiment analysis: a study on Eastern-European V4 languages

Silesian University in Opava(奥帕瓦西里西亚大学);University of Ostrava(俄斯特拉发大学)

Tomáš Filip, Martin Pavlíček, Petr Sosík

AI总结:

本文针对V4语言的Twitter/X ABSA任务微调BERT、BERTweet、Llama等模型,比较多种设置,证明小模型可用少量训练数据达到SOTA并找出最佳组合。

摘要:

基于方面的情感分析(ABSA)是一项标准NLP任务,拥有众多方法和基准,其中大语言模型(LLM)代表了当前最先进水平。我们关注基于Twitter/X数据、面向代表性不足语言的ABSA子任务。在此类狭窄任务上,经过微调的小型语言模型往往可以优于通用大模型,从而提供可用且低成本的解决方案。我们微调了若干LLM(BERT、BERTweet、Llama2、Llama3、Mistral),用于在持续军事冲突背景下对针对俄罗斯和乌克兰的情感进行分类。训练/测试数据集于2023年通过Twitter/X学术API获得,并限定为V4国家(捷克、斯洛伐克、波兰、匈牙利)的语言。随后,我们以GPT4作为参考模型,在多种设置下测量其性能,包括翻译、情感目标、上下文学习等。我们记录了若干有趣现象,除其他结果外,这些现象表明:某些模型在多语言Twitter任务上比其他模型更适合微调,并且它们可以用非常小的训练集达到SOTA水平。最后,我们识别出可提供最佳结果的设置组合。

英文摘要:

The aspect-based sentiment analysis (ABSA) is a standard NLP task with numerous approaches and benchmarks, where large language models (LLM) represent the current state-of-the-art. We focus on ABSA subtasks based on Twitter/X data in underrepresented languages. On such narrow tasks, small tuned language models can often outperform universal large ones, providing available and cheap solutions. We fine-tune several LLMs (BERT, BERTweet, Llama2, Llama3, Mistral) for classification of sentiment towards Russia and Ukraine in the context of the ongoing military conflict. The training/testing dataset was obtained from the academic API from Twitter/X during 2023, narrowed to the languages of the V4 countries (Czech Republic, Slovakia, Poland, Hungary). Then we measure their performance under a variety of settings including translations, sentiment targets, in-context learning and more, using GPT4 as a reference model. We document several interesting phenomena demonstrating, among others, that some models are much better fine-tunable on multilingual Twitter tasks than others, and that they can reach the SOTA level with a very small training set. Finally we identify combinations of settings providing the best results.

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

↑