Abstract
This paper introduces a novel framework for predicting stock market movements following earnings calls by fine-tuning Large Language Models (LLMs) using Quantized Low-Rank Adaptation (QLoRA). By "textualizing" raw financial metrics and combining them with earnings transcripts and broader market context, the researchers developed a model—specifically a fine-tuned Llama-3-8B—that achieves a 57.3% accuracy rate, significantly outperforming general-purpose models like GPT-4 in predicting next-day stock directions.
Introduction
Predicting how a stock will react to an earnings report is a "holy grail" for investors, yet it remains notoriously difficult. Traditional quantitative models excel at processing numerical data but often struggle with the "soft" data found in earnings call transcripts, where management tone and subtle nuances drive market sentiment. Conversely, human analysts often face information overload when synthesizing balance sheets, analyst grades, and lengthy audio transcripts simultaneously.
The authors identify a critical gap: classical machine learning models cannot effectively interpret the depth of financial narratives, while standard LLMs are not specifically optimized for the high-stakes, data-dense environment of financial forecasting. This study addresses this by creating a specialized pipeline for financial instruction tuning.
Methodology
The researchers employed a multi-step pipeline to transform raw financial data into actionable intelligence. A core component of this process is textualization, where numerical data (e.g., "growthNetIncome: 0.046") is converted into descriptive natural language (e.g., "Compared to the same quarter last year, Net Income grew by 4.6%"). This allows the model to leverage its inherent linguistic reasoning capabilities.
To ensure computational efficiency, the team utilized QLoRA (Quantized Low-Rank Adaptation) with 4-bit quantization. This allowed for the fine-tuning of large models like Llama-3-8B on consumer-grade hardware without sacrificing predictive power. The training data was categorized into two tiers:
- Base Factors: Internal company data including financial metrics and transcripts.
- External Factors: Broader context such as market index performance, analyst upgrades/downgrades, and earnings surprises.
The study utilized a comprehensive dataset covering 501 companies in the S&P 500, resulting in 8,556 rows of data with an average token count of over 12,000 per instance.
Results and Key Insights
The Llama-3-8B-Instruct-4bit model emerged as the top performer, demonstrating the efficacy of domain-specific fine-tuning over massive general-purpose models.
As shown in the results table, the model achieved an accuracy of 57.3% on the Full dataset, a significant lead over GPT-4’s 49.4%. The Weighted F1 Score reached 0.565, outperforming GPT-4 by approximately 10%. A key insight from the data was that "Context is King": moving from the "Base" dataset to the "Full" dataset (which includes external factors) led to a substantial jump in performance, sharpening the model's accuracy by providing necessary market awareness.
Conclusion and Future Work
While the study proves that smaller, specifically fine-tuned models can outperform larger peers in niche domains, the authors acknowledge several limitations. Currently, the model only provides binary "Long" or "Short" outputs, ignoring the "Hold" position common in real-world investing. Furthermore, the prediction horizon is limited to next-day performance.
Future research will focus on expanding output options to include neutral positions and extending the prediction horizon to weekly movements. The team also suggests that integrating even more diverse data types could further refine the detection of "black swan" market events.
Summary updated