Beyond Classification: Financial Reasoning in State-of-the-Art Language Models

Guijin Son, Hanearl Jung, Moonjeong Hahm, Keonju Na, Sol JinarXiv 2023

Abstract

Large Language Models (LLMs) have demonstrated remarkable abilities in complex multi-step reasoning, yet their application in the financial domain has remained largely unexplored. This research investigates the capacity of LLMs to engage in sophisticated financial reasoning, moving beyond simple sentiment classification. We introduce the Financial Investment Opinion Generation (FIOG) task and a corresponding synthetic dataset, sFIOG, containing 11,802 samples. Our findings reveal that coherent financial reasoning is an emergent property appearing at the 6-billion-parameter scale. Furthermore, we identify a significant "alignment gap" in evaluation, where even state-of-the-art models like GPT-4 fail to correlate with human expert judgment in assessing financial arguments.

Introduction

Traditional Financial Natural Language Processing (NLP) has focused on narrow classification tasks, such as labeling headlines as "bullish" or "bearish." However, professional investment analysis requires synthesizing disparate facts into a logically sound thesis. This study addresses the gap between simple classification and complex reasoning, exploring whether general-purpose LLMs can be transformed into competent financial analysts through prompting and instruction tuning.

Methodology and Task Formulation

To evaluate financial reasoning, we define the Financial Investment Opinion Generation (FIOG) task. In this setup, a model is provided with raw company data and tasked with producing a structured investment thesis.

We propose a novel input format called In-Context Question Answering (ICQA). Rather than providing a dense "wall of text" (Full-Text), information is presented as a series of refined Q&A pairs. This method strips away irrelevant noise, helping the model focus on core financial facts and reducing the likelihood of discussing extraneous issues.

The sFIOG Dataset

High-quality analyst reports are typically proprietary. To support open research, we developed the sFIOG (Synthetic-Financial Investment Opinion Generation) dataset. By using GPT-3.5 to generate synthetic Q&A pairs based on 1,087 real-world reports from major firms, we created a diverse training set of 11,802 samples that mimics professional reasoning without violating copyright restrictions.

Key Insights: Emergence and Evaluation Gaps

Our benchmarking of models ranging from 2.8B to 13B parameters yielded several critical insights:

  • The 6B Parameter Threshold: Reasoning capability is not linear. Models smaller than 6B parameters (e.g., Pythia 2.8B) failed to generate coherent arguments. Coherence emerged at 6B (GPT-J) and improved significantly at 13B (Llama).
  • The Failure of AI Evaluators: A striking finding was the inability of GPT-4 to act as a reliable judge for financial reasoning. Its evaluations showed a near-zero correlation (-0.07) with human experts, highlighting a lack of domain-specific nuance required to judge the soundness of a financial argument.
Figure 1: Heatmaps illustrating the distribution of evaluations between human experts and GPT-4, showcasing the significant alignment gap in judging financial reasoning.
  • Knowledge Staleness: Models struggled most with "Type #2" data—companies known from pre-training but paired with new, unfamiliar questions. This suggests that outdated internal knowledge can interfere with a model's ability to reason about current data.

Results and Performance Scaling

Llama-13B (Vicuna) emerged as the top performer, achieving the highest ROUGE-L and BERTScore metrics. Human preference tests confirmed this, with experts often preferring AI-generated theses over original reports due to the AI's more explicit step-by-step explanations.

Figure 5: ROUGE-L performance scaling as a function of dataset size and data type, demonstrating that reasoning quality improves with larger synthetic datasets.

As shown in the scaling analysis, performance consistently improves as the size of the synthetic training set increases from 1,502 to 11,802 samples, particularly for more complex data types.

Conclusion

This research demonstrates that while financial reasoning is an emergent capability in LLMs, it requires significant scale and specialized data formats like ICQA to be effective. The failure of current automated evaluators like GPT-4 to match human judgment remains a primary hurdle, suggesting that future work must focus on developing domain-specific metrics that prioritize logical soundness over mere text similarity.

Summary updated

BibTeX
@misc{son2023beyond,
  author = {Guijin Son and Hanearl Jung and Moonjeong Hahm and Keonju Na and Sol Jin},
  title = {{Beyond Classification: Financial Reasoning in State-of-the-Art Language Models}},
  year = {2023},
  eprint = {2305.01505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.01505},
}
Figure