Large Language Model Adaptation for Financial Sentiment Analysis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Inserte, Pau Rodriguez, Nakhlé, Mariam, Qader, Raheel, Caillaut, Gaetan, Liu, Jingshu
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916106493493248
author Inserte, Pau Rodriguez
Nakhlé, Mariam
Qader, Raheel
Caillaut, Gaetan
Liu, Jingshu
author_facet Inserte, Pau Rodriguez
Nakhlé, Mariam
Qader, Raheel
Caillaut, Gaetan
Liu, Jingshu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_14777
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Large Language Model Adaptation for Financial Sentiment Analysis
Inserte, Pau Rodriguez
Nakhlé, Mariam
Qader, Raheel
Caillaut, Gaetan
Liu, Jingshu
Computation and Language
Artificial Intelligence
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.
title Large Language Model Adaptation for Financial Sentiment Analysis
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2401.14777