Fin-R1: A Large Language Model for Financial Reasoning through Reinforcement Learning
In recent years, general-purpose large language models (LLMs) such as GPT, Gemini, Claude, and DeepSeek have advanced at an unprecedented pace. Despite these achievements, their application to finance remains challenging, due to fragmented data sources, reasoning processes, and weak transferability to business applications.
In response, we introduce Fin-R1, a reasoning LLM designed for financial scenarios.
With a compact size of 7 billion parameters, Fin-R1 reduces deployment costs while addressing the aforementioned challenges. Its development follows a two-stage pipeline.
First, we construct Fin-R1-Data, a high-quality financial dataset consisting of 60,091 chain-of-thought (CoT) samples, distilled and filtered from multiple authoritative benchmarks to ensure consistency and reliability. Second, we train Fin-R1 using Fin-R1-Data through supervised fine-tuning (SFT), followed by reinforcement learning (RL). This stage substantially improves the model’s ability to solve complex financial reasoning tasks, yielding outputs that are both accurate and interpretable.
Despite its relatively small parameter scale, Fin-R1 achieves competitive empirical performance across established financial benchmarks and demonstrates practical utility in compliance checking and robo-advisory. Our code is publicly available at https://github.com/SUFE-AIFLM-Lab/Fin-R1, and has already attracted over 700 stars.
Introduction. Large language models (LLMs) are highly sophisticated neural networks that can understand and generate human language. In recent years, they have achieved groundbreaking progress in natural language processing, making an important step toward artificial general intelligence (AGI, Touvron et al., 2023; Google, 2024; Naveed et al., 2025). At the core of LLMs lies a two-stage training paradigm. The first stage, pre-training (Bai et al., 2023; Google, 2023), leverages the transformer architecture (Vaswani et al., 2017) to enable LLMs to learn linguistic patterns, world knowledge, and basic reasoning capacities from vast amounts of unlabeled text. However, pre-trained LLMs remain limited in their ability to handle complex reasoning tasks. This limitation has led to the second stage, post-training, where customized algorithms have been developed to enhance reasoning ability and improve output domain (see Section 5). These limitations stem primarily from three sources:
Financial data are highly fragmented and lack a unified structure (Wang et al., 2024b; Guo et al., 2025b; Li et al., 2024; Dong et al., 2024), making the integration of knowledge extremely difficult. Specifically, information such as contractual terms, regulatory requirements, macroeconomic indicators, and market signals is often dispersed across heterogeneous sources, and can be inconsistent or even mutually contradictory. This not only increases the cost of data preprocessing but also explains why high-quality CoT data remain scarce in finance. As financial reasoning relies on the integration of economic, legal, and quantitative logic, the shortage of high-quality data limits the capability of existing models to reason coherently in finance.
Most existing LLMs still operate as “black boxes,” with reasoning processes that remain intransparent: we only observe the final outputs, but not the underlying reasoning paths (Wang et al., 2023; Zhao et al., 2024a; Tong et al., 2024). Such lack of transparency conflicts with the regulatory and compliance requirements of the financial sector where traceability and explainability are essential, restricting their deployment in practice.
In high-stakes financial applications, existing models often suffer from weak transferability and generalization, which makes their outputs unreliable (Yu et al., 2024; Fatouros et al., 2024; Zhou et al., 2024). Specifically, financial tasks involve evolving environments, which challenge the ability of existing models to generalize and adapt across scenarios.
For instance, models trained solely via SFT rely heavily on memorizing previously seen examples rather than performing reasoning grounded in financial logic (Zhang et al., 2025b). This largely limits their effectiveness in applications such as credit assessment and risk pricing.
Our contribution. To overcome these limitations, we propose a two-stage framework for training domain-specific reasoning LLMs tailored to financial applications. The proposed framework consists of a data construction stage and a model training stage, and the overall pipeline is shown in Figure 1. Specifically:
• In the first stage, we construct a reasoning dataset for finance, termed as Fin-R1-Data, which covers a wide range of financial scenarios encountered in practice. This stage addresses the first challenge of fragmented data sources and the scarcity of CoT data within financial domains, offering the basis for the subsequent SFT and RL. Specifically, Fin-R1-Data is a high-quality bilingual dataset containing over 60,000 entries, integrating Figure 1: The pipeline for constructing Fin-R1. The diagram depicts the two-stage construction framework of Fin-R1: Data Generation (using DeepSeek-R1 for reasoning to generate CoT data, followed by quality filtering with the Qwen2.5-72B-Instruct) and Model Training (including SFT pretraining and GRPO optimization for Fin-R1). Additionally, the right side highlights the performance of Fin-R1 in financial code generation, professional knowledge, and business knowledge. Here, x denotes the input query, c represents the generated reasoning content, y is the model output answer, and s∗corresponds to the ground-truth answer contained in y. data from diverse sources – including open-source datasets and proprietary examination problems – to ensure comprehensive coverage of professional expertise, business practices, and numerical reasoning. Its construction proceeds in two steps. During the data distillation step, we leverage DeepSeek-R1 (Guo et al., 2025a) to produce reasoning traces while standardizing answer formats. In the subsequent data filtering step, we employ Qwen2.5- coherence, and domain alignment of the data, screen out low-quality samples and retain high-quality data for reasoning. The left panel of Figure 1 depicts a high-quality CoT example after filtering.
Related work. Pre-training. Pre-training enables LLMs to learn linguistic patterns and fundamental knowledge from massive text corpora (Devlin et al., 2019; Floridi and Chiriatti, 2020; Xue et al., 2021). Through auto-regressive next-token prediction on trillions of internet tokens, these models absorbed knowledge across diverse domains such as programming (Kocetkov et al., 2022), mathematics (Drori et al., 2022), and other professional or scientific fields (Lo et al., 2020). However, LLM pre-training faces several practical challenges. First, it is highly resource-intensive: for example, training PaLM with 540 billion parameters requires 6,144 TPU v4 chips over several weeks (Chowdhery et al., 2023). Second, as high-quality internet text data show signs of exhaustion (Villalobos et al., 2024), the scaling law (Kaplan et al., 2020) that links model size, data volume, and performance appears to approach its limit.
Although large-scale synthetic corpora can be potentially employed, their effectiveness has not yet been fully validated (Shumailov et al., 2024). Third, pre-trained models often struggle to generalize to domain-specific reasoning tasks. This hinders their abilities to understand complex financial logic, such as derivative pricing or risk-hedging strategies (Zoph et al., 2020; Abnar et al., 2021).
Post-training. There is a growing consensus that additional algorithmic paradigms beyond pre-training are required to move closer to AGI. Recent reasoning-oriented models, such as OpenAI’s o1 and DeepSeek-R1, position post-training as such a paradigm (see Kumar et al., 2025, for an overview). Post-training aims to mitigate pre-trained models’ limitations by aligning their outputs with human values, while reducing biases and inaccuracies (Bai et al., 2022). It typically includes fine-tuning for task-specific adaptation (Trung et al., 2024), RL for encouraging the model to explore better outputs guided by feedback signals (Zhang et al., 2025a), and test-time scaling for boosting model performance without retraining the model (TTS, Hu et al., 2022). Among these methods, RL-based post-training has repeatedly demonstrated that well-defined reward signals can drive AI agents to achieve superhuman performance on complex tasks (Ouyang et al., 2022).
Among RL algorithms, PPO, a computationally efficient approximation to the trust region policy optimization algorithm (Schulman et al., 2015), has been widely adopted for posttraining LLMs. By limiting the divergence between the old and new policies, PPO effectively mitigates the issue of policy collapse commonly encountered in traditional policy gradient algorithms.
Method. In this section, we introduce Fin-R1-Data, a high-quality dataset specifically designed for post-training financial LLMs. Section 3.1 describes the overall structure of Fin-R1-Data and Section 3.2 details the data construction process.
Figure 3: The overall structure of Fin-R1-Data. The inner circle shows the four components of Fin-R1-Data, while the outer circle shows the raw datasets used to construct them.
Fin-R1-Data consists of 60,091 bilingual (Chinese and English) entries, organized into four categories, as shown in Figure 3. We refer to these four categories as financial advanced business knowledge, financial basic business knowledge, financial professional knowledge, and financial code, which will be explained in detail as follows. Each data category is derived by first collecting a raw dataset and then applying specific processing steps. The raw datasets are detailed in Section A of the Supplementary Material.
Financial advanced business knowledge. This data subset accounts for roughly 25% of the total data. It primarily consists of problems that require explicit reasoning in financial applications, and often integrates multiple capabilities such as numerical computation, causal inference, and contextual understanding. Some representative examples include numerical reasoning on financial data, sentiment classification of financial news, financial news categorization, and causal relationship extraction.
Financial basic business knowledge. This data subset primarily focuses on knowledge representation and content generation tasks that do not involve complex reasoning, and contributes over 50% of the total dataset. It is oriented toward the acquisition, expression, and standardization of basic financial information, covering tasks such as regulatory compliance, financial domain knowledge acquisition, and financial text generation.
Financial professional knowledge. This category of data is designed to handle complex, specialized application scenarios, covering questions that can only be answered by humans with sufficient professional financial expertise. It mainly contains three types of data: (i) explanations of financial terminology, providing precise interpretations of specialized terms and concepts; (ii) financial calculations, involving specialized computational algorithms and models; and (iii) questions from finance-related postgraduate entrance examinations. The last type of data is scarce. To address this, we constructed a financial postgraduate entrance exam (FinPEE) dataset using original examination questions from Shanghai University of Finance and Economics. This dataset was constructed in two steps: (a) text extraction, where PDF-based source materials were converted into Markdown format using Mineru (Wang et al., 2024a), and (b) expert review, in which structured question–answer pairs were verified by financial experts to ensure accuracy.
Financial code. The last dataset consists of financial code, i.e., scripts and programs designed to solve financial problems (e.g., quantitative trading). The purpose of constructing this dataset is to enable LLMs to automatically generate financial code and quantitative strategy scripts – both play a vital role in applications such as algorithmic trading which requires high-frequency code generation and execution, risk modeling which requires coding for building credit risk assessment models, and portfolio management which requires to implement portfolio optimization strategies.
In this section, we describe how Fin-R1-Data was constructed based on the raw datasets detailed in Section A of the Supplementary Material. Our data construction pipeline consists of two major steps: data distillation and data filtering. The first step leverages existing LLMs to generate answers to the questions in the raw datasets, whereas the second step reviews the generated answers to ensure their quality and consistency. Figure 4 visualizes the workflow of these two steps.
Data distillation. We extract all questions from the raw datasets and employ DeepSeek- R1-671B to generate both the reasoning paths and corresponding answers for each question.
Discussion. In the future, we will focus on advancing the field of fintech along two directions. First, we will refine Fin-R1’s architecture to accommodate financial multimodal data and deepen its application in cutting-edge areas. Second, we will promote the widespread adoption of LLMs in finance by fostering deeper integration with risk management and regulatory compliance, ultimately expanding the practical utility of Fin-R1.
Conclusion. We introduce Fin-R1, a financial LLM, in this paper to simultaneously address three core challenges in finance: fragmented financial data, intransparent reasoning processes of existing financial LLMs and their weak business generalization capabilities. We construct Fin-R1- Data—a high-quality financial reasoning CoT dataset—and train Fin-R1 using a combination of SFT and GRPO. Our model achieves state-of-the-art performance, outperforming much larger LLMs with over one-hundred-times more parameters, and attains the best scores of 85.0 and 76.0 on the ConvFinQA and FinQA benchmark datasets, respectively. Our proposal considerably advances the application of LLMs in finance.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
What organizational factors determine whether AI adoption generates positive returns? What determines whether models prioritize training knowledge over retrieved context?- Can LLM-distilled training data replace human expert knowledge in finance domains?
- When does knowledge distillation produce student models superior to teachers?
- How do label constraints improve synthetic data without ground truth validation?
- Do non-fine-tuned base models outperform these specialized models on finance tasks?
- Why do larger models fail completely on multivariate financial calculations?
- How do scale errors compound across multi-step financial reasoning tasks?
- How can smaller models help select useful data for larger models?