Open-FinLLMs: Open Multimodal Large Language Models for Financial Applications

Qianqian Xie, Dong Li, Mengxi Xiao, Zihao Jiang, Ruoyu Xiang, Xiao Zhang, Zhengyu Chen, Yueru He, Weiguang Han, Yuzhe Yang, Shunian Chen, Yifei Zhang, Lihang Shen, Daniel Kim, Zhiwei Liu, Zheheng Luo, Yangyang Yu, Yupeng Cao, Zhiyang Deng, Zhiyuan Yao, Haohang Li, Duanyu Feng, Yongfu Dai, VijayaSai Somasundaram, Peng Lu, Yilun Zhao, Yitao Long, Guojun Xiong, Kaleb Smith, Honghai Yu, Yanzhao Lai, Min Peng, Jianyun Nie, Jordan W. Suchow, Xiao-Yang Liu, Benyou Wang, Alejandro Lopez-Lira, Jimin Huang, Sophia Ananiadou · OpenReview

Abstract

Large language models (LLMs) have advanced financial applications, yet they often lack sufficient financial knowledge and struggle with tasks involving multi-modal inputs like tables and time series data. To address these limitations, we introduce Open-FinLLMs, a series of Financial LLMs. We begin with FinLLaMA, pre-trained on a 52 billion token financial corpus, incorporating text, tables, and time-series data to embed comprehensive financial knowledge. FinLLaMA is then instruction fine-tuned with 573K financial instructions, resulting in FinLLaMA-instruct, which enhances task performance. Finally, we present FinLLaVA, a multimodal LLM trained with 1.43M image-text instructions to handle complex financial data types. Extensive evaluations demonstrate FinLLaMA's superior performance over LLaMA3-8B, LLaMA3.1-8B, and BloombergGPT in both zero-shot and few-shot settings. FinLLaMA-instruct outperforms GPT-4 and other Financial LLMs on 15 datasets, while FinLLaVA excels in understanding tables and charts. Additionally, FinLLaMA achieves impressive Sharpe Ratios in trading simulations, highlighting its robust financial application capabilities.

Introduction

Financial analysis is inherently multimodal, requiring experts to synthesize information from news articles, dense tabular reports, and intricate price charts. While general-purpose LLMs have shown promise, they often stumble in finance due to a "knowledge gap" regarding domain-specific terminology, regulations, and market nuances.

Furthermore, existing financial models are often closed-source or restricted to text-only data. This leaves a significant gap in handling non-textual components like tabular layouts and time-series visualizations, which are critical for real-world applications like portfolio optimization and trend analysis. Open-FinLLMs aims to bridge this gap by providing a transparent, high-performing, and multimodal alternative.

Methodology

The Open-FinLLMs suite is developed through a tiered training approach designed to build deep domain expertise while maintaining general reasoning capabilities.

  1. FinLLaMA (Foundational Knowledge): Built on top of LLaMA3-8B, this model underwent Continual Pre-training (CPT) on a 52-billion-token financial corpus. To prevent "catastrophic forgetting," financial data was mixed with general web data at a 3:1 ratio.
  2. FinLLaMA-Instruct (Task Optimization): This version was fine-tuned using Instruction Fine-tuning (IFT) on 573,000 high-quality financial instructions, teaching the model to follow specific commands like entity extraction or earnings call summarization.
  3. FinLLaVA (Multimodal Reasoning): To handle visual data, a CLIP vision encoder was integrated with the FinLLaMA backbone. Training involved aligning visual features with the language model's embedding space, followed by supervised fine-tuning on 1.43 million multimodal pairs.
Overview of the Open-FinLLMs training and evaluation pipeline, spanning continual pre-training to multimodal extension.

Data and Benchmarks

The project utilized an extensive array of data sources to ensure comprehensive coverage:

  • Pre-training Corpus (52B tokens): Sourced from financial papers (SSRN), conference calls, annual reports, technical indicators, news, historical stock data, and SEC filings.
  • Instruction Tuning (573K samples): Compiled from datasets like FLUPE, finred, and MathInstruct.
  • Multimodal Tuning (1.43M pairs): Included general vision datasets and specialized financial ones like SynthTabNet (tables), UniChart, and ChartQA (charts).

To evaluate these models, the authors introduced ChartBench and TableBench, specifically designed to test the interpretation of financial visualizations and complex tabular data.

Key Insights and Results

The development of Open-FinLLMs yielded several critical insights for domain-specific AI:

  • Specialization vs. Scale: The 8B parameter FinLLaMA consistently outperformed the 50B parameter BloombergGPT. This suggests that for vertical domains like finance, high-quality, domain-specific data is more impactful than raw model size.
  • Multimodality is Essential: Treating tables as images rather than flattened text allows the model to learn spatial relationships between cells. Integrating vision directly enables holistic reasoning that mimics a human analyst "seeing" trends in charts.
Comparison of Open-FinLLMs with existing financial and general-purpose models across various training stages and evaluation tasks.

In terms of performance, FinLLaMA outperformed LLaMA3-8B and BloombergGPT across 19 zero-shot financial tasks. FinLLaMA-Instruct surpassed GPT-4 in sentiment analysis, named entity recognition (NER), and numeric understanding. In trading simulations, FinLLaMA achieved a Sharpe Ratio of over 1.0, indicating superior risk-adjusted returns compared to all baseline models.

Conclusion

Open-FinLLMs represents a significant step forward in open-source financial AI. By combining massive domain-specific pre-training with multimodal capabilities, these models offer a powerful tool for both academia and industry. Future work will focus on scaling the architecture, expanding language support beyond English, and incorporating additional modalities like audio and video.

Summary updated

BibTeX
@misc{xie2024open,
  author = {Qianqian Xie and Dong Li and Mengxi Xiao and Zihao Jiang and Ruoyu Xiang and Xiao Zhang and Zhengyu Chen and Yueru He and Weiguang Han and Yuzhe Yang and Shunian Chen and Yifei Zhang and Lihang Shen and Daniel Kim and Zhiwei Liu and Zheheng Luo and Yangyang Yu and Yupeng Cao and Zhiyang Deng and Zhiyuan Yao and Haohang Li and Duanyu Feng and Yongfu Dai and VijayaSai Somasundaram and Peng Lu and Yilun Zhao and Yitao Long and Guojun Xiong and Kaleb Smith and Honghai Yu and Yanzhao Lai and Min Peng and Jianyun Nie and Jordan W. Suchow and Xiao-Yang Liu and Benyou Wang and Alejandro Lopez-Lira and Jimin Huang and Sophia Ananiadou},
  title = {{Open-FinLLMs: Open Multimodal Large Language Models for Financial Applications}},
  year = {2024},
  eprint = {2408.11878},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.11878},
}
Figure