NumLLM: Numeric-Sensitive Large Language Model for Chinese Finance

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Su, Huan-Yi, Wu, Ke, Huang, Yu-Hao, Li, Wu-Jun
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914779212283904
author Su, Huan-Yi
Wu, Ke
Huang, Yu-Hao
Li, Wu-Jun
author_facet Su, Huan-Yi
Wu, Ke
Huang, Yu-Hao
Li, Wu-Jun
contents Recently, many works have proposed various financial large language models (FinLLMs) by pre-training from scratch or fine-tuning open-sourced LLMs on financial corpora. However, existing FinLLMs exhibit unsatisfactory performance in understanding financial text when numeric variables are involved in questions. In this paper, we propose a novel LLM, called numeric-sensitive large language model (NumLLM), for Chinese finance. We first construct a financial corpus from financial textbooks which is essential for improving numeric capability of LLMs during fine-tuning. After that, we train two individual low-rank adaptation (LoRA) modules by fine-tuning on our constructed financial corpus. One module is for adapting general-purpose LLMs to financial domain, and the other module is for enhancing the ability of NumLLM to understand financial text with numeric variables. Lastly, we merge the two LoRA modules into the foundation model to obtain NumLLM for inference. Experiments on financial question-answering benchmark show that NumLLM can boost the performance of the foundation model and can achieve the best overall performance compared to all baselines, on both numeric and non-numeric questions.
format Preprint
id arxiv_https___arxiv_org_abs_2405_00566
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle NumLLM: Numeric-Sensitive Large Language Model for Chinese Finance
Su, Huan-Yi
Wu, Ke
Huang, Yu-Hao
Li, Wu-Jun
Computational Engineering, Finance, and Science
Computation and Language
General Finance
Recently, many works have proposed various financial large language models (FinLLMs) by pre-training from scratch or fine-tuning open-sourced LLMs on financial corpora. However, existing FinLLMs exhibit unsatisfactory performance in understanding financial text when numeric variables are involved in questions. In this paper, we propose a novel LLM, called numeric-sensitive large language model (NumLLM), for Chinese finance. We first construct a financial corpus from financial textbooks which is essential for improving numeric capability of LLMs during fine-tuning. After that, we train two individual low-rank adaptation (LoRA) modules by fine-tuning on our constructed financial corpus. One module is for adapting general-purpose LLMs to financial domain, and the other module is for enhancing the ability of NumLLM to understand financial text with numeric variables. Lastly, we merge the two LoRA modules into the foundation model to obtain NumLLM for inference. Experiments on financial question-answering benchmark show that NumLLM can boost the performance of the foundation model and can achieve the best overall performance compared to all baselines, on both numeric and non-numeric questions.
title NumLLM: Numeric-Sensitive Large Language Model for Chinese Finance
topic Computational Engineering, Finance, and Science
Computation and Language
General Finance
url https://arxiv.org/abs/2405.00566