arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.11856cs.CLcs.AI
收藏

用于大型语言模型情感分析微调的动态自适应优化

Dynamic Adaptive Optimization for Effective Sentiment Analysis Fine-Tuning on Large Language Models

Hongcheng Ding, Xuanze Zhao, Ruiting Deng, Shamsul Nahar Abdullah, Deshinta Arrova Dewi, Zixiao Jiang

AI总结:

针对大型语言模型在多任务情感分析微调中因任务复杂性和恒定权重导致性能不佳的问题,提出带有动态自适应优化模块的即插即用多任务学习框架,通过动态调整任务损失权重,在金融文本数据集上显著提升了MSE和ACC。

摘要:

情感分析在商业智能和金融预测等多个领域发挥着关键作用。大型语言模型(LLMs)已成为情感分析的流行范式,利用多任务学习来同时处理特定任务。然而,针对情感分析进行微调的LLMs往往由于管理多样化任务复杂性的固有挑战而表现不佳。此外,多任务学习中的恒定权重方法难以适应数据特征的变化,进一步影响了模型效果。为了解决这些问题,我们提出了一种带有动态自适应优化(DAO)模块的新型多任务学习框架。该模块被设计为即插即用组件,可无缝集成到现有模型中,为多任务学习提供有效且灵活的解决方案。DAO模块的关键组件是动态自适应损失,它根据不同任务的相对重要性和数据特征,在训练期间动态调整分配给这些任务的权重。在标准及定制的金融文本数据集上的情感分析表明,所提出的框架实现了卓越的性能。具体而言,与先前的工作相比,本研究将均方误差(MSE)和准确率(ACC)分别提高了15.58%和1.24%。

英文摘要:

Sentiment analysis plays a crucial role in various domains, such as business intelligence and financial forecasting. Large language models (LLMs) have become a popular paradigm for sentiment analysis, leveraging multi-task learning to address specific tasks concurrently. However, LLMs with fine-tuning for sentiment analysis often underperforms due to the inherent challenges in managing diverse task complexities. Moreover, constant-weight approaches in multi-task learning struggle to adapt to variations in data characteristics, further complicating model effectiveness. To address these issues, we propose a novel multi-task learning framework with a dynamic adaptive optimization (DAO) module. This module is designed as a plug-and-play component that can be seamlessly integrated into existing models, providing an effective and flexible solution for multi-task learning. The key component of the DAO module is dynamic adaptive loss, which dynamically adjusts the weights assigned to different tasks based on their relative importance and data characteristics during training. Sentiment analyses on a standard and customized financial text dataset demonstrate that the proposed framework achieves superior performance. Specifically, this work improves the Mean Squared Error (MSE) and Accuracy (ACC) by 15.58% and 1.24% respectively, compared with previous work.

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

↑