Papers › Demystifying Domain-adaptive Post-training for Financial LLMs

Demystifying Domain-adaptive Post-training for Financial LLMs

9 Jan 2025arXiv:2501.04961archive 2025-07-28

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

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2501.04961")

Code

Syntology Ran 4 of 13 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

salesforceairesearch/findap officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 4 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
2ran
9unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from salesforceairesearch/findap. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_max_seqlen_in_batch salesforceairesearch/findap/FinDAP/utils/packing/monkey_patch_packing.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · d4a53ff33a6fcd12 · report
get_model salesforceairesearch/findap/FinDAP/utils/model.py official repository ran · our draft was wrong Apache-2.0 recorded; this copy not marked cleared · pointer only · ebd151f2b9fc07af · report
get_unpad_data salesforceairesearch/findap/FinDAP/utils/packing/monkey_patch_packing.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · 6167fdcdd4d5d961 · report
human_format salesforceairesearch/findap/FinDAP/utils/model.py official repository ran · our draft was wrong fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · eb4492b8e8e4c8a7 · report
compute_loss_for_model_class salesforceairesearch/findap/FinDAP/utils/packing/assert_packing_loss.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 84ea29bd52a389a1 · report
compute_loss_of_model salesforceairesearch/findap/FinDAP/utils/packing/assert_packing_loss.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 697041871781fa2d · report
convert_token_type_ids_to_labels salesforceairesearch/findap/FinDAP/utils/data.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 171a7c31640892cd · report
create_labels_from_input_ids salesforceairesearch/findap/FinDAP/utils/packing/assert_packing_loss.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · f1cc5b38196d54be · report
get_handler salesforceairesearch/findap/FinDAP/utils/common.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · d27d234a55d8361e · report
get_warmup_steps salesforceairesearch/findap/FinDAP/utils/optimize.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 9b01a85d9a4d9dd3 · report
load_balancing_loss_func salesforceairesearch/findap/FinDAP/utils/packing/monkey_patch_packing.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · ecadd5acaff4db07 · report
print_model_report salesforceairesearch/findap/FinDAP/utils/model.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · d3c83499bcaf3c6b · report
share_argument salesforceairesearch/findap/FinDAP/config.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 7175b3832014a105 · report

Tasks

Continual PretrainingDomain AdaptationInstruction Following

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections