Why an Ensemble Needs Negative Weights: From Portfolio Theory to Credit Scoring

Ivan Astakhov16 Nov 2026

Problem

A risk team has several probability-of-default models and wants one blended score. The usual habit is to give every model a positive weight. Optimization can instead return something like 1.34 and −0.34: the second model's forecast is subtracted. A long-only blend would set that weight to zero, and the second model drops out together with the information it carries.

Example from the article: On the public L&T Vehicle Loan Default Prediction data (186,523 loans, 21.7% defaults), a blend of two LightGBM models gets the weights 1.3393 and −0.3393.

Solution in brief

Treat the blend like a portfolio and the model errors like asset returns. When errors share a common component, a negative weight hedges it, and the optimal weights have a closed form in the matrix of error second moments. The article fits weights under three rules (unconstrained, non-negative, sum-to-one with any sign) on out-of-fold forecasts and checks the gain on a test sample with bootstrap.

Questions this case answers
  • How to combine the probability forecasts of several correlated models so that the blend beats a non-negative weighted average, and verify the gain is not noise
  • How to choose weights when blending several default-probability models?
  • How to tell whether a negative ensemble weight is useful or just overfitting?
  • How to check that the gain from allowing negative weights is stable?

Tools and methods

  • Blend weights on out-of-fold forecasts — linear stacking by minimizing the Brier score.
  • Long-only and long-short constraints — non-negative weights versus any sign, both summing to 1.
  • Pairwise bootstrap and bootstrap of weights — confidence intervals for the gain and for weight signs.
  • LightGBM, CatBoost, Optuna — base models and hyperparameter search.
Continue reading — it's free

Google or a one-time email code. No password.