FinLangNet
A Unified Framework for Modeling Heterogeneous Financial Data via Dual-Granularity Prompting
FinLangNet combines DeepFM with a dual-prompt sequence encoder to model heterogeneous financial records and predict credit risk across multiple future horizons.
Research summaryA unified credit-risk model for static attributes and heterogeneous behavior sequences, using feature-level and user-level learnable prompts to predict risk across multiple future horizons.
- Relative reduction in delinquency rate
- −9.9%
- Paper deployment · Online A/B test
- Comparison: control arm in the same A/B test · Relative change
- Absolute KS improvement
- +6.3 pp
- Same online A/B test · Risk discrimination
- Comparison: online control model · Absolute percentage points
- Relative reduction in expected loss
- −12.3%
- Same online A/B test
- Comparison: control arm in the same A/B test · Relative change
Public deployment description ↗; reported separately from the six-task offline experiments and the sequence-modeling project's stage-level summary.
Contents · 7 sections
Why combine static attributes and behavioral sequences?
Credit risk modeling uses both basic user attributes and time-ordered records of inquiries, accounts, borrowing and repayment. Tabular models work well with the former. Compressing the latter entirely into summary statistics loses order, timing and trends.
FinLangNet combines both types of information to predict delinquency risk over multiple future windows. Each window has its own prediction head, producing a separate risk probability.
How the model works
Static attributes feed into DeepFM: FM learns pairwise feature interactions, while the deep network learns more complex combinations. Behavioral records feed into SRG(Sequence Representation Generator): records are sorted by time, continuous values are discretized, categorical features are encoded, and a sequence encoder extracts representations. Sources are processed separately before being combined.
Two types of prompts in SRG aggregate information at different levels:
- Feature-level prompts: learn patterns over time within a feature channel.
- User-level prompts: combine channels into a representation of that user's behavior within a data source.
These prompts are trainable vectors, not natural-language instructions for a general-purpose language model. The static and temporal branches are fused at their outputs and connected to the risk prediction heads.
During training, weighted log loss, a probability error term and dynamic sample weights jointly address class imbalance and sample difficulty. See the detailed formulas in Section 3 of the paper。
Six risk prediction tasks
Industrial experiments compare AUC and KS across six future windows. Below are selected shorter- and longer-horizon tasks and the mean KS across all six tasks. KS follows the percentage scale in the paper; the mean is recalculated from the six columns in Table 1.
| Model | Mean KS across six tasks | y₁ KS | y₆ KS |
|---|---|---|---|
| XGBoost | 31.45 | 32.85 | 28.31 |
| FinLangNet | 33.71 | 34.08 | 32.16 |
| FinLangNet + XGBoost | 34.61 | 36.55 | 30.97 |
Standalone FinLangNet improves mean KS over XGBoost by approximately 2.25 percentage points. The combined model has a higher mean, but the standalone model performs better on y₆. Deployment therefore still requires selecting a model for the prediction target.
Ablations address two specific questions: how useful are sequences, and are both prompt types necessary? On y₁, removing the sequence branch reduces KS from 34.08 to 12.53; removing the static branch reduces it to 32.75. Keeping both branches without prompts gives 32.62. Feature-level prompts alone give 32.79, and user-level prompts alone give 32.99.
A history truncation experiment shortens sequences to one quarter of their original length, reducing mean KS from 33.71 to 33.49. Public UEA experiments cover five multivariate time-series classification tasks, including accuracy of 1.000 on BasicMotions and 0.795 on Heartbeat. Some results tie with other methods, so they are not all unique best results.
Integrating with an existing risk model
The production system retains manually engineered summary features. In the paper's combined approach, FinLangNet prediction scores become additional XGBoost features. The figure shows deployment on the left and risk grouping and approval-rate curves in the middle and right.
The industrial data are not public, so the complete business results cannot be reproduced from the repository alone. Code and public time-series datasets can test the implementation. The paper's 6.3 percentage point statement uses a different evaluation basis from the six-task mean above; this page retains numbers reproducible from Table 1. Comparisons of zero-shot language models with supervised models also require attention to their different training conditions.
My contribution
I am a core author, corresponding author and project lead. The research was conducted during my financial algorithms work at DiDi. The paper appeared in ACL 2026 · Industry Track, pages 618–631; the authors' public version labels it an Oral presentation.
English overview
FinLangNet combines static attributes and behavioral sequences to predict credit risk over several future horizons. DeepFM encodes static features; SRG uses feature-level and user-level learnable prompts to summarize sequences. These prompts are trained vectors, not natural-language instructions.
The experiments include six industrial prediction tasks, component ablations, shortened histories, and five public UEA datasets. A separate deployment variant feeds FinLangNet scores into XGBoost. I am a core author, corresponding author, and project lead. The paper was published in the ACL 2026 Industry Track, with an oral presentation recorded in the author version.
Paper and code
- Official paper in ACL Anthology · PDF
- arXiv v6, version dated 19 April 2026
- FinLangNet code