Multi-Task Learning With LLMs for Implicit Sentiment Analysis: Data-Level and Task-Level Automatic Weight Learning

Wenna Lai, Haoran Xie, Guandong Xu, Qing Li

TL;DR

Implicit Sentiment Analysis (ISA) is a "hard mode" version of sentiment analysis where opinions are implied rather than stated. This paper introduces MT-ISA, a framework that uses Large Language Models (LLMs) to generate auxiliary reasoning tasks and then employs a dual-level automatic weight learning system to filter out LLM "hallucinations" and balance different learning objectives. The result is a state-of-the-art approach that helps even smaller models punch above their weight in understanding nuanced human emotions.

What Problem Does This Paper Address?

Most sentiment analysis models look for "cue words" like excellent or terrible. But what happens when a customer says, "The waiter didn't come back to our table for 30 minutes"? There are no "bad" words there, yet the sentiment is clearly negative. This is Implicit Sentiment Analysis (ISA).

The two main hurdles in ISA are:

  1. Data Scarcity: It is difficult and expensive for humans to annotate the "hidden" reasoning behind every implicit sentence.
  2. Reasoning Gaps: Traditional models lack the "common sense" to know that a 30-minute wait is bad.

While LLMs can help by generating explanations, they often "hallucinate" or provide unreliable data. Furthermore, in a Multi-Task Learning (MTL) setup—where a model tries to learn the sentiment and the reasoning simultaneously—it’s notoriously difficult to balance these tasks without manual, time-consuming tuning.

Methods

The authors propose MT-ISA, which stands for Multi-Task Implicit Sentiment Analysis. The framework operates in three main stages:

  1. Auxiliary Task Construction: They use a high-performing LLM (GPT-4o-mini) as a "teacher" to generate auxiliary data. Specifically, the LLM identifies the hidden aspect (e.g., service) and the opinion (e.g., slow) for implicit sentences. They use a "self-refine" strategy to ensure the LLM's reasoning aligns with the actual ground-truth sentiment.
  2. Data-level Automatic Weight Learning (D-AWL): Since LLMs aren't perfect, the system calculates a confidence score for every generated explanation. They tested three strategies:
  3. Input (I): Scaling the input embeddings based on confidence.
  4. Output (O): Weighting the loss function so the model pays more attention to high-confidence examples.
  5. Input-Output (I-O): A combination of both.
  6. Task-level Automatic Weight Learning (T-AWL): Instead of a human deciding how much the model should care about "finding the aspect" vs. "predicting the sentiment," the framework uses homoscedastic uncertainty. This allows the model to dynamically adjust task weights during training, focusing on the most "critical" tasks for improvement.

Datasets

The researchers evaluated their framework on two gold-standard benchmarks from SemEval-2014:

  • Restaurant14
  • Laptop14

They followed prior research standards by splitting these datasets into "Explicit" and "Implicit" subsets to specifically measure how well the model handles the tricky implicit cases.

Key Insights and Ideas

  • Model Size Matters for Strategy: One of the most interesting findings was that model size dictates the best weighting strategy. Smaller models (like Flan-T5-Base) performed best with Input-level weighting, likely because they need help "filtering" noisy data before processing it. Larger models (Flan-T5-XXL) thrived on Output-level weighting, as they have enough capacity to handle complex data but benefit from knowing which labels to trust during the final loss calculation.
  • The "Self-Refine" Loop: Simply asking an LLM for an explanation isn't enough. By forcing the LLM to refine its answer until it matches the known sentiment label (polarity intervention), the authors significantly improved the quality of the auxiliary training data.
  • Stability in Loss Functions: The authors found that standard multi-task loss functions (ALF1) can sometimes lead to "trivial solutions" where the model ignores auxiliary tasks entirely. They adopted a modified version (ALF2) that uses a logarithmic regularizer to keep the training process stable.

Key Results

MT-ISA achieved State-of-the-Art (SOTA) results across the board:

  • Implicit Accuracy: On the Restaurant dataset, MT-ISA (using Flan-T5-XXL) reached an accuracy of 84.27% on implicit cases, a significant jump over previous specialized models like ISAIV or THOR.
  • Efficiency: Even the much smaller Flan-T5-Base version of MT-ISA outperformed many larger, dedicated models, proving that smart data weighting is often more important than raw parameter count.
  • Ablation Success: Removing the Automatic Weight Learning (AWL) components caused performance to drop by nearly 9 points in some scenarios, highlighting that the "automatic" part of the framework is doing the heavy lifting.

Limitations and Future Work

While the results are impressive, the authors note a few areas for growth:

  • LLM Dependency: The framework currently relies on an external, high-powered LLM (like GPT-4o) to generate the initial auxiliary data. This adds a pre-processing cost.
  • Confidence Calibration: While the prompt-based confidence scores worked well, the authors noted that "low confidence" scores can sometimes lead to garbled outputs if the threshold isn't clipped properly.
  • Future Directions: The authors suggest exploring how this "weight-aware" multi-task learning could be applied to other complex NLP tasks beyond sentiment, such as sarcasm detection or figurative language understanding.

Summary updated

BibTeX
@article{lai2026multi,
  author = {Wenna Lai and Haoran Xie and Guandong Xu and Qing Li},
  title = {{Multi-Task Learning With LLMs for Implicit Sentiment Analysis: Data-Level and Task-Level Automatic Weight Learning}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2026},
  doi = {10.1109/tkde.2025.3623941},
}
Figure