Abstract
Large language models (LLMs) have shown the potential of revolutionizing natural language processing tasks in diverse domains, sparking great interest in finance. Accessing high-quality financial data is the first challenge for financial LLMs (FinLLMs). While proprietary models like BloombergGPT have taken advantage of their unique data accumulation, such privileged access calls for an open-source alternative to democratize Internet-scale financial data. In this paper, we present an open-source large language model, FinGPT, for the finance sector. Unlike proprietary models, FinGPT takes a data-centric approach, providing researchers and practitioners with accessible and transparent resources to develop their FinLLMs. We highlight the importance of an automatic data curation pipeline and the lightweight low-rank adaptation technique in building FinGPT. Furthermore, we showcase several potential applications as stepping stones for users, such as robo-advising, algorithmic trading, and low-code development. Through collaborative efforts within the open-source AI4Finance community, FinGPT aims to stimulate innovation, democratize FinLLMs, and unlock new opportunities in open finance.
Introduction
The financial sector presents a unique set of challenges for artificial intelligence. Financial data is characterized by high temporal sensitivity, where information can lose its value in minutes; constant dynamism, requiring frequent model updates; and a low signal-to-noise ratio, where critical insights are often buried under social media chatter and complex jargon.
While proprietary models like BloombergGPT have attempted to address these issues, they rely on privileged access to private data and incur massive training costs (estimated at $3 million). FinGPT offers an end-to-end, open-source alternative designed to democratize financial LLMs by shifting the focus from massive model pre-training to a "data-centric" approach. By utilizing lightweight fine-tuning and a novel reinforcement learning strategy, FinGPT achieves state-of-the-art performance at a fraction of the cost.
The FinGPT Framework
FinGPT employs a five-layer full-stack framework designed to handle the entire lifecycle of a financial LLM, from raw data ingestion to end-user applications.
As shown in the architecture above, the framework integrates:
- Data Source Layer: Aggregates real-time data from news (Finnhub, Yahoo Finance), social media (Twitter, Reddit), and regulatory filings (SEC).
- Data Engineering Layer: An automated pipeline for cleaning, tokenization, and vector embedding to prepare data for LLM consumption.
- LLM Layer: Supports various base models (Llama3, Mistral, etc.) and utilizes Retrieval-Augmented Generation (RAG) to reduce hallucinations.
- Task Layer: Focuses on core financial NLP tasks like sentiment analysis, NER, and numerical reasoning.
- Application Layer: Provides implementations for robo-advising, algorithmic trading, and risk management.
Training Methodology
FinGPT introduces two key innovations to make domain-specific adaptation efficient and effective:
Lightweight Adaptation (LoRA)
Rather than retraining billions of parameters, FinGPT uses Low-Rank Adaptation (LoRA). This technique reduces the number of trainable parameters significantly—for example, from 6.17B to just 3.67M. This allows researchers to fine-tune models on consumer-grade hardware for approximately $300, compared to the millions required for full pre-training.
Reinforcement Learning on Stock Prices (RLSP)
Traditional LLMs rely on Reinforcement Learning from Human Feedback (RLHF), which is expensive and subjective in a financial context. FinGPT introduces RLSP, where the model is rewarded based on how well its sentiment predictions align with subsequent stock price changes ($\Delta p$). By using market volatility as a feedback mechanism, the market itself acts as the ground-truth labeler, ensuring the model's outputs are grounded in financial reality.
Experimental Results
FinGPT was evaluated primarily on financial sentiment analysis, a critical task for generating market alpha. The results demonstrate that a data-centric, fine-tuned approach can outperform much larger general-purpose models.
As illustrated in the table above, FinGPT (SFT+RLSP) achieved a top accuracy of 82.1% and a Macro-F1 score of 80.9%. It significantly outperformed specialized models like FinBERT (71.2% accuracy) and general-purpose models like ChatGPT (63.4% accuracy) in zero-shot settings. Ablation studies confirmed that while LoRA fine-tuning provides the initial performance jump, the addition of the RLSP layer provides the final boost necessary for state-of-the-art results.
Conclusion and Future Work
FinGPT demonstrates that in the fast-moving world of finance, a fresh, automated data pipeline is more valuable than the sheer size of a model trained on stale data. By providing an open-source framework and the FinNLP pipeline, the authors aim to stimulate innovation in open finance. Future work will focus on standardizing financial LLM benchmarks and refining RLSP to better account for macro-economic noise that can influence stock price movements independently of specific news headlines.
Summary updated