Abstract
InvestLM is a state-of-the-art financial large language model (LLM) developed by fine-tuning LLaMA-65B on a small but exceptionally high-quality dataset of 1,335 instructions. Despite the limited training volume, InvestLM matches or exceeds the performance of commercial giants like GPT-4 and Claude-2 in investment-related tasks. This research highlights that for domain-specific alignment, data quality and diversity are more impactful than sheer quantity, supporting the superficial alignment hypothesis.
Introduction
The financial sector requires high-precision reasoning and domain-specific knowledge. While general-purpose LLMs like GPT-4 show promise, they are often "black boxes" with high operational costs. Conversely, specialized models like BloombergGPT are proprietary and closed to the research community. Open-source alternatives often lack the depth for complex investment reasoning or are over-optimized for narrow tasks like sentiment analysis. InvestLM addresses this gap by providing an open-parameter model tuned specifically for the complexities of financial investment.
Methodology
InvestLM utilizes LLaMA-65B as its foundation, employing Low-Rank Adaptation (LoRA) for efficient instruction tuning. This allowed the researchers to target specific projection layers within the transformer blocks without retraining the entire model. To handle lengthy financial documents, such as SEC filings, the context window was expanded from 2,048 to 8,192 tokens using Linear Rope Scaling. The approach is grounded in the "superficial alignment hypothesis," which posits that the model already possesses the necessary facts from pre-training; instruction tuning serves to align its output style and format with professional financial discourse.
Data Curation
The core innovation of InvestLM is its training set. Rather than using millions of noisy data points, the authors manually curated 1,335 high-quality examples from diverse professional sources, including:
- Stackexchange QFin: Quantitative finance discussions.
- CFA Exams: Questions and detailed explanations from Chartered Financial Analyst exams.
- Academic Journals: Insights from top-tier finance journals.
- Textbooks: Exercises from classic finance texts.
- SEC Filings: Q&A extracted from earnings call transcripts and regulatory filings.
Results and Evaluation
InvestLM demonstrates superior performance across a wide range of financial NLP benchmarks, including sentiment analysis (FinSent), numerical reasoning (FinQA), and summarization (ECTSum).
The model outperformed the base LLaMA-65B in 8 out of 9 tasks, showing strong zero-shot generalization. Beyond automated metrics, the researchers employed GPT-4 as an automated judge to compare model responses.
Notably, GPT-4 preferred InvestLM's responses over its own 62% of the time and over GPT-3.5's 78% of the time. Human expert evaluations by hedge fund managers and research analysts further confirmed that InvestLM’s responses are comparable to or better than those of GPT-4 in many investment scenarios.
Discussion and Conclusion
InvestLM proves that specialized domain performance can be achieved with minimal, high-quality data. The model shows a significantly higher ability to stay "grounded" in provided text, mitigating the hallucinations common in base models. While it excels in directness, future work will focus on safety tuning for broader use and integrating real-time market data via Retrieval-Augmented Generation (RAG).
Summary updated