When Does Aggregating Multiple Skills with Multi-Task Learning Work? A Case Study in Financial NLP

Jingwei Ni, Zhijing Jin, Qian Wang, Mrinmaya Sachan, Markus Leippold

Abstract

Multi-Task Learning (MTL) is a promising paradigm for improving model generalization, yet its application in specialized domains like Financial NLP remains challenging due to task interference. This paper investigates the properties that facilitate successful task aggregation and introduces SPAL-FinBERT, a parameter-efficient architecture. By utilizing shared parallel attention layers and a frozen backbone, the proposed method achieves superior performance with significantly fewer trainable parameters.

Introduction

Financial NLP requires a sophisticated blend of domain knowledge, numeric reasoning, and causal understanding. While MTL offers a path to leverage small, disparate datasets, "negative transfer" often degrades performance. This study moves beyond algorithmic heuristics to explore the fundamental task properties—diversity, relatedness, and capacity—that determine MTL success in the financial domain.

Methodology

The authors developed FinDATA, a benchmark suite comprising six diverse tasks: Target-based Sentiment Analysis (TSA), Sentiment Classification (SC), Number Classification (NC), Number Attachment (NAD), Financial Semantic Role Labeling (FSRL), and Causality Detection (CD).

To address the challenges of MTL, the researchers introduced SPAL-FinBERT. This architecture avoids full fine-tuning by inserting Shared Parallel Attention Layers (SPAL) into a frozen FinBERT model. This approach prevents the model from forgetting its general financial knowledge while learning specific task nuances.

The SPAL-FinBERT architecture employs shared parallel attention layers alongside a frozen transformer backbone to enable efficient multi-task learning.

Key Insights and Results

The experimental results yielded several critical findings regarding how tasks interact within a shared model:

  1. Diversity as a Catalyst: Counter-intuitively, adding "distant" skills like FSRL improved performance on sentiment and numeric tasks, suggesting that structural language understanding provides a beneficial foundation for diverse objectives.
  2. The Capacity Bottleneck: Task performance is highly sensitive to the shared model capacity. As illustrated in the analysis of Causality Detection (CD), performance scales with the hidden size of the shared layers. If the shared capacity is too small, performance on complex tasks degrades when auxiliary tasks are added.
Accuracy on the Causality Detection (CD) task increases as the SPAL hidden size grows, demonstrating the impact of shared capacity on complex task performance.
  1. Efficiency and Generalization: SPAL-FinBERT achieved its results using only 0.2% of the trainable parameters compared to vanilla MTL fine-tuning. Furthermore, models trained on FinDATA via MTL showed enhanced few-shot performance on unseen financial tasks, outperforming both single-task models and large-scale LLMs like GPT-3.

Conclusion

Successful Multi-Task Learning in Financial NLP is not merely a matter of data aggregation but a strategic alignment of task diversity and model capacity. By freezing the pre-trained backbone and utilizing shared parallel layers, SPAL-FinBERT provides a robust framework for cross-task knowledge transfer without the risks of catastrophic forgetting or excessive parameter overhead.

Summary updated

BibTeX
@inproceedings{ni2023when,
  author = {Jingwei Ni and Zhijing Jin and Qian Wang and Mrinmaya Sachan and Markus Leippold},
  title = {{When Does Aggregating Multiple Skills with Multi-Task Learning Work? A Case Study in Financial NLP}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.412},
}
Figure