Equipping Language Models with Tool Use Capability for Tabular Data Analysis in Finance

Adrian Theuma, Ehsan Shareghi


Abstract
Large language models (LLMs) have exhibited an array of reasoning capabilities but face challenges like error propagation and hallucination, particularly in specialised areas like finance, where data is heterogeneous, and precision is paramount. We explore the potential of language model augmentation with external tools to mitigate these limitations and offload certain reasoning steps to external tools that are more suited for the task, instead of solely depending on the LLM’s inherent abilities. More concretely, using financial domain question answering datasets, we apply supervised finetuning on a LLAMA-2 13B CHAT model to act both as a task router and task solver. The task router dynamically directs a question to either be answered internally by the LLM or externally via the right tool from the tool set. Our tool-equipped SFT model, RAVEN, demonstrates an improvement of 35.2% and 5.06% over the base model and SFT-only baselines, respectively, and is highly competitive with strong GPT-3.5 results. To the best of our knowledge, our work is the first that investigates tool augmentation of language models for the finance domain.
Anthology ID:
2024.eacl-short.10
Volume:
Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 2: Short Papers)
Month:
March
Year:
2024
Address:
St. Julian’s, Malta
Editors:
Yvette Graham, Matthew Purver
Venue:
EACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
90–103
Language:
URL:
https://aclanthology.org/2024.eacl-short.10
DOI:
Bibkey:
Cite (ACL):
Adrian Theuma and Ehsan Shareghi. 2024. Equipping Language Models with Tool Use Capability for Tabular Data Analysis in Finance. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 2: Short Papers), pages 90–103, St. Julian’s, Malta. Association for Computational Linguistics.
Cite (Informal):
Equipping Language Models with Tool Use Capability for Tabular Data Analysis in Finance (Theuma & Shareghi, EACL 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.eacl-short.10.pdf
Note:
 2024.eacl-short.10.note.zip