SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.04961 · EMNLP · 2025

Demystifying Domain-adaptive Post-training for Financial LLMs

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

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2501.04961.json · badge: /api/ran/2501.04961.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
salesforceairesearch/findap canonical (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
FunctionStatusWhere it lives
compute_loss_for_model_class Ran
ran on a synthesized input
salesforceairesearch/findap/FinDAP/utils/packing/assert_packing_loss.py
pointer only (licence: Apache-2.0) · get_code("84ea29bd52a389a1")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_token_type_ids_to_labels Ran
ran on a synthesized input
salesforceairesearch/findap/FinDAP/utils/data.py
pointer only (licence: Apache-2.0) · get_code("171a7c31640892cd")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_handler Ran
ran on a synthesized input
salesforceairesearch/findap/FinDAP/utils/common.py
pointer only (licence: Apache-2.0) · get_code("d27d234a55d8361e")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_max_seqlen_in_batch Ran
ran; our contract draft was wrong, not the code
salesforceairesearch/findap/FinDAP/utils/packing/monkey_patch_packing.py
pointer only (licence: Apache-2.0) · get_code("d4a53ff33a6fcd12")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_model Ran
ran; our contract draft was wrong, not the code
salesforceairesearch/findap/FinDAP/utils/model.py
pointer only (licence: Apache-2.0) · get_code("ebd151f2b9fc07af")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_unpad_data Ran
ran; our contract draft was wrong, not the code
salesforceairesearch/findap/FinDAP/utils/packing/monkey_patch_packing.py
pointer only (licence: Apache-2.0) · get_code("6167fdcdd4d5d961")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_warmup_steps Ran
ran on a synthesized input
salesforceairesearch/findap/FinDAP/utils/optimize.py
pointer only (licence: Apache-2.0) · get_code("9b01a85d9a4d9dd3")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

human_format Ran
ran; our contract draft was wrong, not the code
salesforceairesearch/findap/FinDAP/utils/model.py
pointer only (licence: Apache-2.0) · get_code("eb4492b8e8e4c8a7")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_balancing_loss_func Ran
ran on a synthesized input
salesforceairesearch/findap/FinDAP/utils/packing/monkey_patch_packing.py
pointer only (licence: Apache-2.0) · get_code("ecadd5acaff4db07")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_loss_of_model Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/findap/FinDAP/utils/packing/assert_packing_loss.py
pointer only (licence: Apache-2.0) · get_code("697041871781fa2d")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_labels_from_input_ids Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/findap/FinDAP/utils/packing/assert_packing_loss.py
pointer only (licence: Apache-2.0) · get_code("f1cc5b38196d54be")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

print_model_report Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/findap/FinDAP/utils/model.py
pointer only (licence: Apache-2.0) · get_code("d3c83499bcaf3c6b")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

share_argument Not yet run
unverified (harvested, no recorded run)
salesforceairesearch/findap/FinDAP/config.py
pointer only (licence: Apache-2.0) · get_code("7175b3832014a105")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, salesforceairesearch/findap, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_model 7 other papers
6 dated earlier, 1 same year, order not determinable · 2 only as an assembly brick
2003.09553 (2020-03)
Adversarial Continual Learning
2006.07326 (2020-06)
CPR: Classifier-Projection Regularization for Continual Learning
2010.01528 (2020-10)
Remembering for the Right Reasons: Explanations Reduce Catastrophic Forgetting
and 4 more not named here
human_format 4 other papers
4 dated earlier
1906.00794 (2019-06)
Blow: a single-scale hyperconditioned flow for non-parallel raw-audio voice conversion
1906.02425 (2019-06)
Uncertainty-guided Continual Learning with Bayesian Neural Networks
2003.09553 (2020-03)
Adversarial Continual Learning
and 1 more not named here
get_max_seqlen_in_batch 2 other papers
2 dated earlier
2402.12030 (2024-02)
Towards Cross-Tokenizer Distillation: the Universal Logit Distillation Loss for LLMs
2408.15793 (2024-08)
Language Adaptation on a Tight Academic Compute Budget: Tokenizer Swapping Works and Pure bfloat16 Is Enough
get_unpad_data 1 other paper
1 dated earlier
2408.15793 (2024-08)
Language Adaptation on a Tight Academic Compute Budget: Tokenizer Swapping Works and Pure bfloat16 Is Enough

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2501.04961")
get_code_for_paper("2501.04961")
have("2501.04961")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2501.04961.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2501.04961.svg)](https://syntology.ai/paper/2501.04961)

Connect an agent — have() is free.