Free · WaitlistJoin the waitlist for the free 2-day Vibecoding & AI Agents Intensive (autonomous Hermes + DeepSeek agent · led by Jemal Hamidun, Head of AI at Alpina Digital & MIPT)Join the waitlist →
ReleaseInsight · On RadarHabr AI→ original

Credit Scoring: 500 Defaults Give the Same Quality at 2,000 and 50,000 Applications

Banks train models to predict who won't repay a loan (a default), and the instinct is to collect as many applications as possible. But on Alfa-Bank data, three samples of 2,000, 5,000 and 50,000 applications, each with the same 500 defaults, gave CatBoost almost identical quality: ROC AUC of 0.683, 0.681 and 0.686. So the priority is collecting rare defaults, not more "good" applications.

AI-processed from Habr AI; edited by Hamidun News
Credit Scoring: 500 Defaults Give the Same Quality at 2,000 and 50,000 Applications
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1The number of defaults explains 86–92% of the variation in quality, and sample size explains 23–44%
Key metric #2TabPFN-2.5 misses 75.0% of defaults, CatBoost misses 77.7%, when 10% of applications are rejected
Key metric #3The TabPFN-2.5 license is non-commercial, so a bank cannot deploy it as is

When a team builds a credit scoring model, meaning a model that estimates whether a client will repay a loan, the first instinct is usually that more applications in training mean a better model. Here, a default means non-repayment: a payment overdue by more than 90 days within 12 months. The author of a Habr analysis tested the "more applications" hypothesis on open Alfa-Bank data and got an uncomfortable result.

He took three training sets, each with exactly 500 defaults: the first with 2,000 applications, the second with 5,000, and the third with 50,000. The size differs by a factor of 25, yet CatBoost's quality is nearly identical. He measured it with ROC AUC, a score for how well a model ranks risky clients above reliable ones, where 0.

5 is random guessing and 1.0 is perfect. The results were 0.

683, 0.681 and 0.686.

He also compared CatBoost with the new tabular model TabPFN-2.5 and calculated how much the quality gain costs.

What exactly was tested

He used a set of 3 million applications with a default rate of 3.55%. Each client's history, meaning several past loans, was collapsed into a single row of 128 features. The split was made by time: the model learns from the past and is validated on the future. A random split would hide drift, and the default rate does shift: 3.61% in training, 3.49% in validation, 3.21% in test.

The models were not compared at a 0.5 threshold, because the probabilities of models trained on samples with different default rates are biased. Instead, the rejection rate was fixed: the bank rejects the 10% riskiest applications. Type II error (rejecting a good client) came out nearly the same for all models, around 9–10%. So the focus was on Type I error: how many future defaults the model missed and approved.

From the training pool he cut 60 subsamples ranging from 2,000 to 50,000 applications, with default rates of 1%, natural, 10% and 25%, with three repeats each.

Finding one: count defaults, not rows

Regression showed that the number of training defaults explains 86–92% of the variation in quality between runs, while sample size explains only 23–44%. The author notes that data volume also matters, but these factors are correlated.

The practical meaning is simple. If defaults are scarce, a million "good" applications barely help. The bottleneck in scoring is the rare class, and that is what you need to collect, label and protect.

Finding two: where TabPFN wins and what it costs

TabPFN-2.5 is a tabular foundation model. It is pretrained on a huge number of synthetic tasks and does not learn from your data in the usual sense: the training set is fed to it as context, and the prediction comes out in a single forward pass.

With training sets up to 10,000 objects, TabPFN is never worse than CatBoost on ROC AUC, and in 7 of 12 regimes the gain is statistically significant. These are mostly cases with a 1% default rate and the natural rate. As the number of defaults grows, the advantage shrinks, and at 25,000 objects the models are indistinguishable. In business terms, TabPFN misses 75.0% of defaults on average, versus 77.7% for CatBoost. That is a few percentage points, not a revolution, and the errors remain high: AUC around 0.7, with roughly three quarters of defaults slipping through.

The price is paid in computation. TabPFN's "training" is nearly free, but at inference the entire training set passes through the network, so runtime grows faster than data size. LightGBM trains in seconds, CatBoost in tens of seconds on a CPU. The hardware in the measurements differed (CPU and a Tesla T4 GPU), so only orders of magnitude can be compared. On the T4, TabPFN could not be run up to 50,000 objects because it ran out of memory. There is also a legal barrier: the TabPFN-2.5 license is non-commercial, which means a bank cannot simply deploy it.

A "model manager" and honest caveats

The author tried a switching rule: with few defaults and a small sample, use TabPFN, otherwise CatBoost. The parameter μ sets how much error the bank is willing to concede in exchange for saving computation. If computation were free (μ = 0), TabPFN should always be used.

The relative computation cost is 0.19 for CatBoost and 1.00 for TabPFN.

At μ = 0.01, Type I error rises by 0.3 percentage points (the interval includes zero), while computation drops by half.

At μ = 0.02, it rises by 0.8 percentage points (the difference is significant), and savings reach two thirds.

But the default-count threshold is unstable: removing a single sample size changes it, so this is a method, not a ready-made production rule.

Another uncomfortable fact: 69.1% of defaults were missed by both models at once, while at least one model caught only 30.9% (15.2% by both, 10.7% by TabPFN alone, 5.0% by CatBoost alone). So an ensemble adds almost nothing. TabPFN's advantage is concentrated among clients with short histories: with one to three prior loans, it misses 56–57% of defaults versus 69–70% for CatBoost. The clients it misses are nearly indistinguishable from reliable ones based on the available features, and the dataset contains no questionnaire data.

The author lists the limitations himself. TabPFN was evaluated on a 10,000-object test subset, on a single accelerator, without hyperparameter tuning. CatBoost was not tuned either, so with tuning the gap could narrow. The sample contains only applications the bank approved, so the conclusions cannot be extended to the full application flow.

What to do in practice

If you build scoring with strong class imbalance, count rare examples, not rows: they set the ceiling on quality. On small data with rare defaults, TabPFN is worth trying as a research benchmark, bearing in mind the license and the inference cost. Boosting remains a fast and cheap baseline, especially when defaults are plentiful. Model selection here means choosing a point on the "error versus computational cost" curve, not searching for a single winner. The author published the code and reproduction scripts on GitHub; the data is not included in the repository.

Story

Key Questions Answered

What exactly was tested?

He used a set of 3 million applications with a default rate of 3.55%. Each client's history, meaning several past loans, was collapsed into a single row of 128 features. The split was made by time: the model learns from the past and is validated on the future. A random split would hide drift, and the default rate does shift: 3.61% in training, 3.49% in validation, 3.21% in test.

What are the key details on Finding one: count defaults, not rows?

Regression showed that the number of training defaults explains 86–92% of the variation in quality between runs, while sample size explains only 23–44%. The author notes that data volume also matters, but these factors are correlated. The practical meaning is simple. If defaults are scarce, a million "good" applications barely help. The bottleneck in scoring is the rare class, and that is what you need to collect, label and protect.

What are the key details on Finding two: where TabPFN wins and what it costs?

TabPFN-2.5 is a tabular foundation model. It is pretrained on a huge number of synthetic tasks and does not learn from your data in the usual sense: the training set is fed to it as context, and the prediction comes out in a single forward pass. With training sets up to 10,000 objects, TabPFN is never worse than CatBoost on ROC AUC, and in 7 of 12 regimes the gain is statistically significant. These are mostly cases with a 1% default rate and the natural rate.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…