Banking
Applying elastic net models to credit risk
Elastic net takes the best of Lasso and Ridge to build a linear model that copes with large, correlated credit datasets better than ordinary regression, while staying explainable enough to defend.
It is the end of the reporting year and a bank’s credit risk models are recalibrated with new data. The discrimination looks fine. However, the story the model tells about itself does not. If a model’s predictive score is stable but the ranking of its most predictive features changes, then the model is subtly different. This instability in selecting which features are important or not is a significant problem for the independent validation function, and eventually, for a supervisor reviewing the model.
This is the kind of instability that has made elastic net models increasingly attractive to credit risk teams. Elastic net models keep the interpretability of a linear model while handling the correlated predictors that a logistic regression struggles with. For a lender that has to explain each coefficient to a validator, an auditor, and eventually a regulator, that combination matters.
It matters because lending is being pulled in two directions at once.
- More complex data. Teams are building on richer inputs: bureau variables, behavioural scores, affordability metrics, open-banking transaction feeds, and, increasingly, fields drawn from free-text or unstructured sources, the shift our article on the role of data in credit modelling argues matters more than the choice of algorithm.
- A higher governance burden. The bar for any model used in lending decisions continues to rise. Techniques that sit between classical logistic regression and black-box machine learning are getting a serious look.
When linear models wobble
The starting point is understanding where the instability begins. Logistic regression has been the baseline for decades, and with good reason. Each feature gets a single coefficient, and the sign is interpretable. The methodology slots into existing capital and impairment frameworks, and a developer, a validator, and a supervisor can all discuss the model in the same meeting.
What breaks the logic is modern data. A retail credit portfolio can easily generate several hundred candidate features, and more again where an automated method such as the deep feature synthesis we cover separately builds them from transaction data. Many are correlated because they genuinely capture overlapping aspects of credit quality.
Each feature tells you something slightly different. When predictors are correlated, the coefficients of each feature can change considerably. This is a well-known weakness of standard logistic regression, not an edge case.1
Under most model risk management frameworks, and under SS1/23 from the Prudential Regulation Authority (PRA) in particular, feature stability is not a nice-to-have. Our guide to SS1/23 sets it out in full. When model inputs change from one run to the next, teams spend more time documenting and explaining those shifts.2
The overfitting antidote
Instability in selecting which features are important has two distinct causes. The first is overfitting. The model predicts accurately on data it was trained on, but less well on data it has never seen. The second is correlation between features. Closely related drivers force the model to split predictive power between them, and small changes in the data shift that split. Regularisation is the statistical answer to the first issue; elastic net is designed to help with the second.
A regularised model adds a constraint when trying to minimise the difference between its predictions and the actual values. It forces itself to find the best coefficients within a boundary. This is known as a penalty term. The penalty pulls the model away from perfectly fitting the dataset. It also stabilises coefficients across different training samples, which yields a more stable set of predictive features. Ridge and Lasso are two common regularisation techniques. They differ in the shape of the penalty and in how each treats correlated features.
Picture a room full of light bulbs, where each bulb is a feature and its brightness is how much the model relies on it. Some bulbs are grouped together and others are alone. The closer they are to each other, the more correlated the features are. Ridge is a dimmer wired to each group of bulbs. Turn the dimmer down and every bulb in a cluster gets dimmer together. Nothing ever goes fully off; the room just glows more softly. Lasso is the opposite. Each bulb has its own on/off switch. Lasso flicks the weaker ones off completely and leaves the rest on. The catch is that if two bulbs are right next to each other, Lasso picks one and switches the other off.
Ridge and Lasso each solve part of the problem, neither solves all of it. Faced with two strongly correlated features, Lasso picks one arbitrarily and zeroes the other. This choice can flip between samples. Ridge has the mirror flaw: it keeps everything, even features that carry very little signal.
Lasso and Ridge, blended
An elastic net model takes both penalties and lets the modeller blend them.3 Two parameters control the blend. The mixing parameter, α (alpha), sets the ratio between Lasso and Ridge. At α = 1, the model is pure Lasso. At α = 0, pure Ridge. At intermediate values, it combines both. The strength parameter, λ (lambda), controls how aggressive the shrinkage is overall: how hard the penalty pulls every coefficient towards zero.
The blend of the Lasso and Ridge penalties is a choice, and the choice has to be defended. The practical effect is grouped selection. A cluster of correlated features collectively carrying signal is retained as a group and shrunk jointly, rather than having all but one member zeroed arbitrarily.3
To return to our light bulbs, elastic net models give you both on/off switches and dimmers. Isolated bulbs that are weak can be switched off (not just dimmed) and grouped bulbs that are bright are dimmed together (not just picking one to keep on). So Ridge dims every bulb, Lasso flicks switches, and elastic net models do both.
Explaining the model to a sceptic
Defending the choice of the blending and shrinkage parameters is where the governance work begins. A regulated credit model has to be explainable in three directions at once:
- To the validation team: the colleagues reviewing the model developer’s work before anyone else sees it.
- To the model risk committee: the body that approves the methodology and signs off on material changes.
- To the supervisor: the person or team that may later review the model in a regulatory context.
Each audience has a different tolerance for complexity, but the underlying question is the same: can the model’s behaviour be described in a few clear sentences that survive scrutiny?
Elastic net models tend to score better on explainability than a gradient-boosted tree or a neural network, the families our guide to machine learning in credit risk modelling works through one by one. They remain linear models. Each feature maps to a single coefficient. A developer can point to a positive coefficient on debt-service-to-income and explain, in one sentence, that higher leverage increases predicted default probability. That narrative is what the committee asks for and what a supervisory review expects in writing.4
The interpretability is not without its caveats. Defending α = 0.6 rather than α = 0.4 requires evidence from multiple training samples. This is a reasonable cost if it results in a model that a validator can approve.
That is not a guarantee the modelling decisions are right. It is a guarantee that they are arguable.
The cost of more accuracy
Interpretability matters even more when the alternative is a tree ensemble or a neural network. XGBoost, LightGBM, and CatBoost routinely offer a material uplift in discrimination on complex retail portfolios by capturing non-linear interactions between features. The accuracy gain is real. The interpretability cost is real too.
Tree ensembles are harder to explain. The standard workaround is to compute SHAP (SHapley Additive exPlanations) values5 or partial dependence plots, which are themselves a layer that can be challenged in validation. For example, a supervisor reviewing a capital model application is entitled to ask whether the SHAP values reflect the model’s actual behaviour in the tail. The answer is not always obvious, and what was meant as an explanation becomes another thing to defend.6
Neural networks push the trade-off further. They can exploit very large datasets and capture interactions no linear model would anticipate. The black-box behaviour means the cost of validation tends to be high.
For a retail portfolio with a small, well-understood feature set, the extra uplift from a tree-based model may rarely justify the additional supervisory validation burden. On the other hand, for a larger portfolio with thousands of features, the use of tree-based models or neural networks could be worth the scrutiny. Elastic net models cover the middle ground where the choice is not obvious.
A model worth considering
The goal in credit risk modelling is not to abandon classical methods but to improve them. Techniques that handle richer data while staying explainable will earn their place. Elastic net models are one of those improvements. They need a bit more fine-tuning. But for linear models that introduce much-needed stability during recalibration, they could shine a valuable light.
Frequently asked questions
What problem does regularisation actually solve in a credit model?
Correlated predictors make coefficient estimates unstable, and regularisation buys that stability back. The effect is measurable. In a simulation of 1,000 replications on 45 observations, raising the correlation between two predictors from zero to 0.95 widened the standard deviation of the fitted coefficients from about 0.13 to about 0.32, roughly two and a half times. Worse than the spread is the direction: the median fitted coefficient on the second predictor moved from +0.29 at zero correlation to −0.16 at 0.75 and −1.81 at 0.95. A model whose coefficient signs depend on which sample you drew is not a model a validator can sign.
Is imprecision or sign instability the bigger risk?
Sign instability is what gets noticed and imprecision is what does the damage. Andrija Djurović puts it directly in the source behind that simulation: "Practitioners typically view multicollinearity as a problem only when observing instability in the estimates' signs. The reduction of precision is often overlooked, although it warrants further investigation and potential model adjustments based on expert inputs." A coefficient with the right sign and a confidence interval wide enough to be operationally meaningless will pass a sign check and fail to support a decision.
How do Lasso and Ridge differ, and why does elastic net combine them?
Lasso applies an L1 penalty on the absolute size of the coefficients, which drives some exactly to zero and so performs implicit feature selection. Ridge applies an L2 penalty on the squared coefficients, which shrinks everything smoothly toward zero without eliminating anything, and keeps correlated groups moving together. Each fails where the other succeeds: Lasso faced with a cluster of collinear features tends to keep one and zero the rest, and the survivor is chosen numerically rather than economically, so a different training sample can pick a different one. Elastic net mixes the two penalties so that selection still happens but correlated groups shrink together rather than competing.
What do the two parameters control?
Alpha sets the blend and lambda sets the strength. Alpha decides how much of the penalty is L1 and how much L2, so it governs whether the model behaves more like Lasso, more like Ridge, or somewhere between. Lambda scales the whole penalty, so it governs how aggressively coefficients shrink toward zero regardless of the blend. Both are tuned on held-out data rather than chosen, and the practical consequence for governance is that the optimal blend can shift as the composition of the lending portfolio changes, which makes periodic recalibration part of the model's design rather than a remediation.
Why does interpretability matter more than a point of discrimination in a regulated model?
Because the CRR requires a traceable link between an input and a risk grade, and a non-linear model may not be able to supply one. The European Banking Authority (EBA) reads Article 171(1)(a) and (b) as potentially constraining "the use of models where you do not have a clear economic link between the input and the output variables", and Article 174(e) requires institutions to complement statistical models with human judgement and human oversight, an obligation the EBA reads as demanding that staff be able to assess whether the selected risk drivers contribute to the risk assessment in line with their economic meaning. The EBA immediately qualifies this: the constraint does not mean ML techniques are incompatible with the requirement, only that finding the required clear economic theory and assumptions behind the model may be a challenge. Elastic net satisfies both by construction, because each feature still carries one coefficient with a readable sign and magnitude. That is the argument for it: not that it predicts best, but that it defends cheapest.
Do post-hoc explanation tools not solve this for tree models?
Partly, and the picture is better than it was. The concern that different explanation methods give different answers was well founded for the methods available before 2017, and it is exactly what Lundberg and Lee set out to fix: they showed that among methods explaining a prediction as a sum of feature contributions, the Shapley value is the only one satisfying local accuracy, missingness and consistency at the same time. So the honest position is not that post-hoc explanation is unreliable, but that it is an extra layer with its own assumptions to validate. The EBA catalogues five techniques it describes as among the most widely used, of which Shapley values are one, and its 2023 survey found them the most widely used at 40% of respondents.
Is a simpler model ever the compliant choice rather than just the cautious one?
Yes, and the EBA says so in as many words. Its recommendation is that institutions "avoid unnecessary complexity in the modelling approach if it is not justified by a significant improvement in the predictive capacities", and it names three things to avoid: an excessive number of drivers or drivers with no significant predictive information, unstructured data where conventional data offers similar predictive capacity, and overly complex modelling choices where simpler approaches yield similar results. A regularised linear model that comes close to a boosted ensemble is not a compromise under that test. It is the answer the test points to.
Where does the UK model risk framework attach to this?
Through the complexity assessment in Principle 1 of the PRA's SS1/23, which may consider the use of unstructured data alongside interpretability, explainability and transparency, and the potential for designer or data bias. That places interpretability inside how a model is tiered rather than only in how it is documented, so a more interpretable model can genuinely carry a lighter governance load. SS1/23 came into effect on 17 May 2024 and the PRA republished it in April 2026 without narrowing the model definition.
What has to be recalibrated, and how often?
The mixing ratio and the penalty strength, on a cadence the portfolio sets rather than the calendar. Both parameters are fitted to data, so both drift as the book changes: a lender whose new lending is concentrated in a segment with a different correlation structure should expect the optimal blend to move. The governance point is that this is not model failure, and a framework that treats every parameter refit as a model change will either discourage recalibration or bury the change log. Deciding in advance what counts as a refit and what counts as a change is cheaper than deciding it during a validation.
Sources
- 1 Djurović. Consequences of Multicollinearity for OLS regression View source ↗
- 2 PRA SS1/23. Model risk management principles for banks View source ↗
- 3 Zou and Hastie (2005). Regularization and variable selection via the elastic net View source ↗
- 4 EBA. Discussion Paper on machine learning for IRB models (EBA/DP/2021/04) View source ↗
- 5 Lundberg and Lee (2017). A Unified Approach to Interpreting Model Predictions View source ↗
- 6 EBA. Follow-up report on machine learning for IRB models View source ↗