Large Language Model Adaptation for Financial Sentiment Analysis

Pau Rodriguez Inserte, Mariam Nakhlé, Raheel Qader, Gaetan Caillaut, Jingshu Liu


Abstract
Natural language processing (NLP) has recently gained relevance within financial institutions by providing highly valuable insights into companies and markets’ financial documents. However, the landscape of the financial domain presents extra challenges for NLP, due to the complexity of the texts and the use of specific terminology. Generalist language models tend to fall short in tasks specifically tailored for finance, even when using large language models (LLMs) with great natural language understanding and generative capabilities. This paper presents a study on LLM adaptation methods targeted at the financial domain and with high emphasis on financial sentiment analysis. To this purpose, two foundation models with less than 1.5B parameters have been adapted using a wide range of strategies. We show that through careful fine-tuning on both financial documents and instructions, these foundation models can be adapted to the target domain. Moreover, we observe that small LLMs have comparable performance to larger scale models, while being more efficient in terms of parameters and data. In addition to the models, we show how to generate artificial instructions through LLMs to augment the number of samples of the instruction dataset.
Anthology ID:
2023.finnlp-2.1
Volume:
Proceedings of the Sixth Workshop on Financial Technology and Natural Language Processing
Month:
November
Year:
2023
Address:
Bali, Indonesia
Editors:
Chung-Chi Chen, Hen-Hsen Huang, Hiroya Takamura, Hsin-Hsi Chen, Hiroki Sakaji, Kiyoshi Izumi
Venues:
FinNLP | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
1–10
Language:
URL:
https://aclanthology.org/2023.finnlp-2.1
DOI:
10.18653/v1/2023.finnlp-2.1
Bibkey:
Cite (ACL):
Pau Rodriguez Inserte, Mariam Nakhlé, Raheel Qader, Gaetan Caillaut, and Jingshu Liu. 2023. Large Language Model Adaptation for Financial Sentiment Analysis. In Proceedings of the Sixth Workshop on Financial Technology and Natural Language Processing, pages 1–10, Bali, Indonesia. Association for Computational Linguistics.
Cite (Informal):
Large Language Model Adaptation for Financial Sentiment Analysis (Rodriguez Inserte et al., FinNLP-WS 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.finnlp-2.1.pdf