NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Hongcheng Ding, Xuanze Zhao, Shamsul Nahar Abdullah, Deshinta Arrova Dewi, Zixiao JiangarXiv 2024 · DOI

Introduction

Sentiment analysis in specialized domains, particularly finance, presents unique challenges for general-purpose Large Language Models (LLMs). Financial discourse is characterized by industry-specific jargon, implicit sentiment, and high volatility. To address these complexities, researchers have introduced a Dynamic Adaptive Optimization (DAO) module. This framework treats sentiment analysis as a multi-task learning (MTL) problem—simultaneously performing regression (to predict precise sentiment scores) and classification (to categorize sentiment polarity). By dynamically adjusting task weights during training, the DAO approach achieves significant performance gains over traditional fixed-weight methods.

The Challenge of Multi-Task Learning in Sentiment Analysis

While MTL is a common strategy to improve model robustness, it typically faces two major hurdles:

  1. Inter-task Difficulty Discrepancy: Predicting a continuous sentiment score (regression) is inherently more granular and difficult than selecting a discrete label (classification). In standard training, an easier task might dominate the gradient updates, leading to sub-optimal convergence for the harder task.
  2. Data Imbalance: Real-world financial datasets often exhibit skewed distributions. Models frequently over-fit to majority classes, failing to capture rare but critical sentiment shifts that drive market movements.

Traditional fine-tuning employs constant weights for these tasks, a static approach that cannot adapt as the model's proficiency evolves during the training cycle.

Proposed Methodology: DAO and LoRA

The researchers proposed a framework that integrates a RoBERTa-Large backbone with the novel DAO module and Low-Rank Adaptation (LoRA) for parameter efficiency.

The Dynamic Adaptive Optimization (DAO) Module

The DAO module acts as an automated "tutor" for the model. Instead of relying on human-defined constants, it uses a small neural network to monitor training dynamics in real-time. It calculates the L2 norms of the gradients for both regression and classification tasks and computes weighting coefficients ($\lambda$) to ensure balanced learning. Furthermore, it incorporates a regularization term that forces the model to prioritize minority classes based on the specific distribution of each training batch.

Architecture of the proposed framework featuring the Dynamic Adaptive Optimization (DAO) module and LoRA-based parameter-efficient fine-tuning.

Parameter Efficiency with LoRA

To manage computational overhead, the team utilized LoRA, injecting trainable rank-decomposition matrices into the transformer layers. Interestingly, the study found that while LoRA is often used with low ranks (e.g., 8 or 16), complex financial sentiment tasks required a significantly higher rank (up to 512) to capture necessary nuances and match the performance of full fine-tuning.

Experimental Setup and Dataset

The study utilized a customized financial text dataset focused on EUR/USD exchange rates, comprising 23,242 records scraped from major financial news outlets. The authors leveraged ChatGPT-4.0 to filter noise and annotate the text with sentiment polarity scores ranging from -1 to 1. These continuous scores served the regression task, while a stratified sampling algorithm mapped them into five discrete categories (from Strong Negative to Strong Positive) for the classification task.

Key Results and Insights

The DAO-enhanced framework demonstrated clear superiority over traditional constant-weight baselines. The researchers observed an "Aha" moment regarding task weighting: the optimal weight for the classification task started high (~0.5) but naturally stabilized around 0.15 as the model gained confidence, allowing the more challenging regression task to eventually take the lead in the optimization process.

Performance comparison between fixed-weight multi-task learning and the proposed dynamic adaptive weight approach across MSE and Accuracy metrics.

Key performance metrics include: * Error Reduction: A 15.58% reduction in Mean Squared Error (MSE) compared to the best constant-weight baseline. * Accuracy Boost: A top accuracy of 77.37%, representing a 1.24% improvement. * Efficiency: By using LoRA with a rank of 512, the model achieved results comparable to full fine-tuning while reducing training time by 33.98%.

Conclusion and Future Work

The DAO module provides a robust, plug-and-play solution for balancing multi-task objectives in LLM fine-tuning. While highly effective for the EUR/USD domain, future research will focus on "data-aware" classification to improve performance in extremely data-limited scenarios and testing the framework's generalization across other volatile asset classes like cryptocurrencies and commodities.

Summary updated

BibTeX
@misc{ding2024dynamic,
  author = {Hongcheng Ding and Xuanze Zhao and Shamsul Nahar Abdullah and Deshinta Arrova Dewi and Zixiao Jiang},
  title = {{Dynamic Adaptive Optimization for Effective Sentiment Analysis Fine-Tuning on Large Language Models}},
  year = {2024},
  eprint = {2408.11856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.11856},
}
Figure