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.
- 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.
- 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.
- 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.
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.
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