Demystifying Domain-adaptive Post-training for Financial LLMs

Zixuan Ke, Yifei Ming, Xuan-Phi Nguyen, Caiming Xiong, Shafiq Joty

Abstract

Domain-adaptive post-training of large language models (LLMs) has emerged as a promising approach for specialized domains such as medicine and finance. However, significant challenges remain in identifying optimal adaptation criteria and training strategies across varying data and model configurations. To address these challenges, we introduce FINDAP, a systematic and fine-grained investigation into domain-adaptive post-training of LLMs for the finance domain. Our approach consists of four key components: FinCap, which defines the core capabilities required for the target domain; FinRec, an effective training recipe that jointly optimizes continual pre-training and instruction-following, along with a novel preference data distillation method leveraging process signals from a generative reward model; FinTrain, a curated set of training datasets supporting FinRec; and FinEval, a comprehensive evaluation suite aligned with FinCap. The resulting model, Llama-Fin, achieves state-of-the-art performance across a wide range of financial tasks. Our analysis also highlights how each post-training stage contributes to distinct capabilities, uncovering specific challenges and effective solutions, providing valuable insights for domain adaptation of LLMs.

Introduction

While general-purpose LLMs like Llama 3 demonstrate impressive capabilities, they often struggle with the specialized vocabulary and complex multi-step reasoning required in the financial sector. Tasks such as analyzing SEC filings or passing professional finance exams require a level of domain expertise that general models lack.

Existing adaptation methods typically follow a sequential pipeline: Continual Pre-training (CPT) on raw domain text followed by Instruction Tuning (IT). However, this approach often leads to "catastrophic forgetting," where the model gains domain knowledge but loses its ability to follow instructions effectively. Furthermore, standard preference alignment methods (like RLHF or DPO) often rely on "sparse" signals—rewarding only the final answer—which is insufficient for teaching models the intricate logic required for financial reasoning.

The FINDAP Framework

To overcome these hurdles, the researchers developed the FINDAP framework, a holistic approach to domain adaptation structured around four pillars: capabilities, training recipes, data curation, and evaluation.

The FINDAP framework overview, illustrating the integration of FinCap, FinRec, FinTrain, and FinEval.
  1. FinCap (Capabilities): Defines four essential pillars for a financial expert: domain concept understanding, task-specific performance (e.g., sentiment analysis), complex reasoning, and natural instruction-following.
  2. FinTrain (Data): A curated mix of 6 billion tokens of raw financial text (from 70 websites and books) and 3 million instruction prompts, balanced with general-domain data to maintain broad reasoning capabilities.
  3. FinEval (Evaluation): A massive suite of 35 tasks, including the new "CFA-Challenge" based on Level III CFA exams, designed to test high-level synthesis of financial information.
  4. FinRec (The Recipe): The core innovation of the framework, focusing on joint training and dense supervision.

Innovative Training Strategies

The FINDAP framework introduces two critical improvements to the standard training pipeline:

Joint CPT+IT

Instead of the traditional sequential approach, FINDAP utilizes a "joint" training recipe. By mixing raw financial text with instruction-following data, the model learns domain-specific knowledge while simultaneously reinforcing its ability to follow prompts. This prevents the "instruction forgetting" trap, where models lose their conversational utility during domain adaptation.

Stepwise Corrective Preference (SCP)

In the final alignment phase, the researchers moved beyond simple "right or wrong" feedback. They introduced Stepwise Corrective Preference (SCP), which uses a Generative Reward Model to provide dense supervision.

Comparison between standard Final Answer Preference (FAP) and the proposed Stepwise Corrective Preference (SCP).

As shown in the figure above, while standard preference alignment (FAP) only evaluates the final solution, SCP identifies the first erroneous step in a reasoning chain and provides a corrected version. This "tutor-like" feedback teaches the model exactly where its logic failed, which is crucial for complex financial mathematics and multi-step reasoning.

Key Results and Insights

The resulting model, Llama-Fin (8B), achieved state-of-the-art results among open-source financial models, often outperforming much larger models like the 70B-parameter Palmyra-Fin.

  • Superior Generalization: On "Novel" tasks unseen during training, Llama-Fin significantly outperformed its base model, particularly in reasoning-heavy benchmarks.
  • CFA Performance: On the CFA-Challenge, Llama-Fin improved reasoning accuracy by 20% compared to the base Llama-3 model, demonstrating the efficacy of the SCP method.
  • The Importance of General Data: The study confirmed that including general-domain data (like MMLU or common sense tasks) acts as a safety net, maintaining the model's overall cognitive "sanity" while it specializes.

Conclusion and Future Work

FINDAP provides a systematic blueprint for domain adaptation. By prioritizing process-based supervision (SCP) and joint training, Llama-Fin achieves high performance with a relatively small parameter count. Future work will look toward integrating Retrieval-Augmented Generation (RAG) to address static knowledge limitations and expanding the framework to handle multi-modal financial data, such as charts and complex tables found in annual reports.

Summary updated

Abstract

Domain-adaptive post-training of large language models (LLMs) has emerged as a promising approach for specialized domains such as medicine and finance.However, significant challenges remain in identifying optimal adaptation criteria and training strategies across varying data and model configurations.To address these challenges, we introduce FINDAP, a systematic and fine-grained investigation into domain-adaptive post-training of LLMs for the finance domain.Our approach consists of four key components: FinCap, which defines the core capabilities required for the target domain; FinRec, an effective training recipe that jointly optimizes continual pre-training and instruction-following, along with a novel preference data distillation method leveraging process signals from a generative reward model; FinTrain, a curated set of training datasets supporting FinRec; and FinEval, a comprehensive evaluation suite aligned with FinCap.The resulting model, Llama-Fin, achieves state-ofthe-art performance across a wide range of financial tasks.Our analysis also highlights how each post-training stage contributes to distinct capabilities, uncovering specific challenges and effective solutions, providing valuable insights for domain adaptation of LLMs.
BibTeX
@misc{ke2025demystifying,
  author = {Zixuan Ke and Yifei Ming and Xuan-Phi Nguyen and Caiming Xiong and Shafiq Joty},
  title = {{Demystifying Domain-adaptive Post-training for Financial LLMs}},
  year = {2025},
  eprint = {2501.04961},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.04961},
}
Figure