---
title: "Parameter Efficient Instruction Tuning of LLMs for Financial Applications"
authors:
  - "Subhendu Khatuya"
doi: "10.24963/ijcai.2024/962"
url: "https://ijcai.org/proceedings/2024/962"
pdf: "https://ijcai.org/proceedings/2024/0962.pdf"
venue: "Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence"
year: 2024
pages: "8494-8495"
track: "Doctoral Consortium"
keywords:
  - "DC: Machine Learning"
  - "DC: Natural Language Processing"
  - "DC: Multidisciplinary Topics and Applications"
  - "DC: Data Mining"
---

# Parameter Efficient Instruction Tuning of LLMs for Financial Applications

Subhendu Khatuya

*Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence*, pages 8494-8495. DOI: [10.24963/ijcai.2024/962](https://doi.org/10.24963/ijcai.2024/962)

## Abstract

XBRL tagging in financial texts involves categorizing entities into numerous labels, presenting challenges for state-of-the-art models. Financial reports like 10-Q and 10-K, which must be tagged with XBRL according to a taxonomy with thousands of labels. The FNXL dataset exemplifies this with 2,794 labels. Manual tagging is neither scalable nor cost-effective, necessitating automatic annotation methods. Additionally, summarizing long Earnings Call Transcripts (ECTs) is crucial for financial decision-making. The ECTSum dataset highlights challenges in automatic summarization, including a high compression ratio and documents exceeding typical LLM token limits. This study proposes novel methods for both XBRL tagging and ECT summarization.

## Full text

## 1 Research Direction

In recent years, XBRL tagging has gained a special importance in financial domain, which involves tagging of numeric values. Datasets created for such a task are the FNXL dataset and FiNER which have a very large number of entity types compared to standard Named Entity Recognition (NER) tasks. The U.S. Securities and Exchange Commission (SEC) mandates publicly traded companies to disclose periodic filings such as quarterly 10-Q &amp; annual 10-K reports. Each company is directed to follow the Generally Accepted Accounting Principles (GAAP) to report the metrics appearing in these documents and tag them using the eXtensive Business Reporting Language (XBRL) according to a well-defined taxonomy consisting of thousands of labels. In a recently released FNXL dataset 1 , such numerals are tagged from a large set of 2,794 labels. First, we study the problem of automatically annotating relevant numerals occurring in the financial documents with their corresponding XBRL tags and propose a novel generative approach.

In finance, another important task is to quickly summarize the key facts of long Earnings Calls to take any financial decisions. Earnings Calls, typically a teleconference or a webcast, are hosted by publicly traded companies to discuss important aspects of their quarterly (10- Q), or annual (10-K) earnings reports, along with current trends and future goals that help financial analysts and investors to review their price targets and trade decisions. The corresponding call transcripts (called Earnings Call Transcripts, abbreviated as ECTs) are typically in the form of long unstructured documents consisting of thousands of words. Hence, it requires a great deal of time and effort, even on the part of trained analysts, to quickly summarize the key facts covered in these transcripts. While automatic summarization techniques have made significant advancements, their primary focus has been on summarizing short newswire articles or documents that have clear structural patterns like scientific articles or government reports. Unfortunately, there hasn't been much exploration into developing efficient methods for summarizing financial documents, which often contain complex facts and figures. Here, we study the problem of bullet point summarization of long earning call transcripts using recently released ECTSum dataset and propose a novel method.

[1 FNXL Data: https://github.com/subhendukhatuya/FNXL](https://github.com/subhendukhatuya/FNXL)

## 2 Research Questions and Contributions

In my PhD, in the last three years, I have addressed the following Research Questions and exploring further.

RQ1: Exploring Generative Paradigm for Extreme Financial Numeral Labelling: In the first stage, we formulate the problem as a generative task using LLMs. Let Si = (w1 i , ...,wa i , ...wb i , ..., wn i ) be the ith statement consisting of n tokens, where wa i and wb i be two different numerals with taga i and tagb i being their respective XBRL tag documentations. We prepend an instruction prompt IP, containing a natural language description of the task, to the statement Si. A question Qai is then appended to Si asking for the tag to be determined for a specific numeral, say wa i . The modified input Sa i therefore takes the shape IP||Si||Qai , where || is a text concatenation operation. The target answer genTaga i = LLM(Sa i ) for the LLM therefore becomes: taga i . In the second stage, we obtain the final XBRL tag through a separate Tag Matcher module, since the entire documentation may not be generated exactly. Note that, after extensive experimentation with different prompts, we have determined the optimal task-specific prompt for this.

Contribution: RQ1 - Solution Overview [Khatuya et

al.,2024]: Available state-of-the-art models for XFNL task lack the capacity to identify unseen labels during inference as they follow a discriminative paradigm. Different from prior works, we investigate the feasibility of solving this extreme classification problem using a generative paradigm through instruction tuning of Large Language Models (LLMs). To this end, we leverage metric metadata information to frame our target outputs while proposing a parameter efficient solution for the task using LoRA. We perform experiments on two recently released financial numeric labeling datasets. Our proposed model, achieves new state-of-the-art performances on both the datasets, outperforming several strong baselines. We explain the better scores of our proposed model by demonstrating its capability for zero-shot as well as the least frequently occurring tags. Also, even when we fail to predict the XBRL tags correctly, our generated output has substantial overlap with the ground-truth in most of the cases. FLAN-FinXC Framework: In this work, we show for the first time that generative models (LLMs) can achieve impressive results for the XFNL task. We systematically explore and propose FLAN-FinXC, a framework of ParameterEfficient Instruction Tuning for Extreme Classification. Our framework consists of FLAN-T5 models instruction-tuned with carefully-curated task-specific instructions, to generate the appropriate XBRL tag documentations. We then use an unsupervised Tag Matcher module to predict the final XBRL tag for this generated documentation. We perform extensive experiments to devise a total of five different model variants as part of our proposed framework, ranging from T5-Base to FLAN-T5-Large, and with varying training strategies.

We find that our model achieves impressive zero-shot Macro-F1 scores of 58.89% for the 67 XBRL tags that were unseen during training. Even for tags that appear fewer than 5 times in the training data, our model is able to achieve 41% Macro-F1 gains and 23% Hits@1 gains compared to AttentionXML. Qualitatively, among the instances where we fail to predict the correct XBRL tags, in around 60% of the cases, our generated tag documentations are very close to the ground truth documentations with high Jaccard Similarity scores.

RQ2: Bullet Point Summarization of Long Earnings Call Transcripts Here, I have worked on bullet point summarization of ECT reports on a recent new benchmark dataset ECTSum 2 containing 2,425 ECT report-summary pairs. The target summaries in their dataset are extremely concise bulletpoint style summaries. Given a long ECT, our goal is to propose an efficient and novel method to create a concise factually consistent bullet-point summary.

Contribution: RQ2 - Solution Overview [Khatuya et al.,2024]: In this work, we propose a novel two-stage generative framework, FLAN-FinBPS, that uses a combination of unsupervised and supervised methods to produce abstractive bullet point summaries of ECT documents. As opposed to the previous state-of-the-art method which used supervised fine-tuned approaches in both the stages of the model, we use an unsupervised question-based context generator module to produce the extractive summary in the first stage, thereby cutting down on the training time of our model. The second stage of our framework utilises a supervised parameterefficient instruction-tuned module to generate the abstractive bullet point summaries by using the extractive summary as the context. Typically, each bullet point summary highlights 3-4 crucial financial aspects of the input ECT document, such as revenue, income, earnings per share, sales, profit, equity, etc. This observation motivated us to initially identify the significant topics present in a given ECT. We first generate a list of questions for each ground truth bullet point summary in the train set using an unsupervised pre-trained T5 model. Our model outperforms the strongest baseline, achieving a notable 14.88% increase in average ROUGE score and a 16.36% rise in BERTScore, signifying a major enhancement in content quality. It also generates more precise numerical values, showcasing a 2.51% gain in Num-Prec, and produces more factually consistent summaries, demonstrating a 2.70% gain in SummaCCONV compared to the previous strongest state-ofthe-art method.

2 Publicly available ECTSum Dataset: https://github.com/ rajdeep345/ECTSum

## 3 Future Direction

A) [RQ1] In the near future I would like to work on few limitations of FLAN-FinXC approach - 1) Our system is unable to predict tag correctly in case of limited financial context. We plan to incorporate external financial knowledge and AIHuman feedback loop to mitigate the issue.

B) [RQ2] While our current application focuses on the financial domain, we aim to expand this method to other domains in our future work. I also plan to try other recent LLMs like mistral, llama for extractive module.

C) [RQ3] Recently there is a focus of active research to increase the reasoning capabilities of LLMs. I plan to work on improving numerical reasoning of LLM on Financial Question Answering (FinQA) dataset.

## Acknowledgements

I am thankful to Prime Minister Research Fellow (PMRF) Grant for supporting my PhD.

## References

1. [Khatuya et al., 2024] Subhendu Khatuya, R Mukherjee, A Ghosh, M Hegde, K Dasgupta, N Ganguly, S Ghosh, P Goyal. Parameter-Efficient Instruction Tuning of Large Lan- guage Models For Extreme Financial Numeral Labelling. In Proceedings of North American Chapter of the Association for Computational Linguistics (NAACL), Main Conference, 2024 [
2. [Khatuya et al., 2024] Subhendu Khatuya, K Sinha, S Ghosh, N Ganguly and P Goyal. Instruction-Guided Bullet Point Summarization of Long Financial Earnings Call Transcripts. SIGIR Conference on Research and Development in Infor- mation Retrieval (SIGIR), 2024
3. [Khatuya et al., 2023] S Sharma, Subhendu Khatuya, M Hegde, A Shaikh, K Dasgupta, P Goyal, and N Ganguly. Fi- nancial numeric extreme labelling: dataset and benchmark- ing. ACL 2023 (Findings)
