Abstract
Large Language Models (LLMs) demonstrate significant potential in general tasks but often fail in specialized, high-stakes domains like finance due to "hallucinations." This paper explores a hybrid approach combining Supervised Fine-Tuning (SFT) and advanced Retrieval-Augmented Generation (RAG) to improve accuracy. By utilizing Parameter-Efficient Fine-Tuning (PEFT) and active retrieval strategies like FLARE, the study demonstrates that models can be hardened for professional use with minimal high-quality data.
Introduction
In financial contexts, the accuracy of information extraction is paramount. A minor error, such as a misplaced decimal in revenue reporting (e.g., $23.7M instead of $2.37M), can lead to significant financial consequences. While base LLMs are trained on vast amounts of general web data, they often lack the domain-specific precision required for analyzing 10-K filings or earnings reports. This research addresses the "hallucination" problem by evaluating how targeted fine-tuning and sophisticated retrieval mechanisms can bridge the gap between general-purpose models and professional-grade financial tools.
Methodology
The RAG Framework
The core of the proposed system is a Retrieval-Augmented Generation (RAG) pipeline. Unlike standard LLM generation, RAG systems retrieve relevant information from external knowledge sources to provide the model with an "enhanced context" before generating a response.
To improve upon "vanilla" RAG, which often fails to capture nuanced context, the researchers employed FLARE (Forward-looking active retrieval augmented generation) and HyDE (Hypothetical Document Embeddings). FLARE is particularly notable for its "active" nature; it triggers new searches if the model's confidence in its generated tokens drops below a threshold, ensuring the model remains grounded in source documents throughout the generation process.
Supervised Fine-Tuning (SFT)
To specialize the models, the team utilized Parameter-Efficient Fine-Tuning (PEFT) techniques, specifically LoRA (Low-Rank Adaptation) and QLoRA. These methods allow for the adaptation of large models like LLaMA-2 without the prohibitive cost of full retraining.
The researchers tested the impact of data volume by iteratively training models on increments of 10 to 50 human-curated labels. This allowed for an assessment of how performance scales with small amounts of "gold standard" data.
Experimental Setup and Datasets
The study utilized two primary benchmarks to evaluate performance:
- FinanceBench: A dataset containing over 10,000 questions derived from real-world public filings (10-Ks, 10-Qs) of 40 US companies, including human-verified evidence strings.
- RAG Instruct Benchmark Tester: A 200-question dataset designed to simulate enterprise scenarios such as processing invoices, contracts, and technical articles.
Results and Discussion
The evaluation focused on textual overlap (ROUGE-L), semantic alignment (Cosine Similarity), and qualitative scoring via an "LLM-as-a-judge" framework using GPT-3.5.
Scaling and Fine-Tuning
A consistent upward trend in accuracy was observed across all tested models (Claude, GPT-3.5, LLaMA-2, GPT4ALL) as the number of training labels increased from 10 to 50. Crucially, fine-tuned models significantly outperformed zero-shot baselines, indicating that out-of-the-box models are insufficient for the nuances of financial analysis.
The Active Retrieval Advantage
The implementation of FLARE provided higher stability in scores compared to standard retrieval methods, particularly on the RAG Instruct dataset. By allowing the model to re-query knowledge sources mid-sentence, the system effectively mitigated the risk of the model "losing its way" during complex extractions.
Quality Over Quantity
One of the most significant findings was that substantial performance gains could be achieved with as few as 50 high-quality labels. This suggests that for specialized domains, the focus should be on the curation of a small, high-fidelity dataset rather than massive, noisy data collection.
Conclusion
This research demonstrates that a combination of PEFT and active retrieval strategies can significantly enhance the reliability of LLMs in professional domains. While closed-source models offer ease of use, open-source models like LLaMA-2 provide a viable path for organizations with strict data privacy requirements, provided they invest in targeted fine-tuning. Future work will explore re-ranking algorithms and Reinforcement Learning from Human Feedback (RLHF) to further refine these systems.
Summary updated