---
title: Negative Correlation Learning (NCL)
url: https://www.emergentmind.com/topics/negative-correlation-learning-ncl
type: topic
---

# Negative Correlation Learning (NCL)

Negative Correlation Learning (NCL) is an ensemble learning framework that explicitly controls the trade-off between individual learner accuracy and ensemble diversity through a penalization mechanism operating at the loss-function level. Initially designed for regression with squared error loss, NCL has since been generalized to arbitrary twice-differentiable losses and adopted in deep learning with significant theoretical and empirical advances. Its central insight is that penalizing positive correlations among base learners can reduce generalization error by optimally managing the bias–variance–covariance decomposition. This article provides a comprehensive technical account of NCL, covering its mathematical formulations, theoretical properties, algorithmic instantiations, connections to related approaches, and practical tunability.

## 1. Core Formulation and Diversity Penalty

The canonical NCL objective augments per-learner losses with a diversity penalty to enforce negative correlation among members of the ensemble. For $M$ learners $\{f_m(x;\theta_m)\}_{m=1}^M$, let the ensemble prediction be $F(x)=\tfrac1M\sum_{m=1}^M f_m(x)$. The per-sample (regression) NCL loss is defined as
$$
\mathcal{L}_\lambda = \frac{1}{N}\sum_{i=1}^N \frac{1}{M}\sum_{m=1}^M \left[ (f_m(x_i)-y_i)^2 - \lambda (f_m(x_i) - F(x_i))^2 \right],
$$
where $\lambda\in[0,1)$ is the diversity parameter and $(f_m(x_i) - F(x_i))^2$ is the diversity penalty encouraging each learner to decorrelate from the ensemble mean [1803.00314].

Alternative algebraic forms express the penalty in terms of pairwise covariances [2508.04948, 1908.09066]:
$$
\sum_{i<j} \mathrm{Cov}(f_i, f_j), \quad \text{or} \quad (f_i-\bar{f})\sum_{j\neq i}(f_j-\bar{f}),
$$
with $\bar{f}$ denoting the ensemble average.

The strength of $\lambda$ governs the bias–variance–covariance trade-off: increasing $\lambda$ penalizes redundancy, fostering diversity, but excessive penalization may degrade accuracy by over-dispersing the base models [1908.09066, 2011.02952].

## 2. Theoretical Properties and Degrees of Freedom

Within linear regression on a fixed basis, NCL admits an exact characterisation of effective degrees of freedom (DoF):
$$
\mathrm{DoF}(\lambda) = d + \frac{(M-1)d}{1-\lambda},
$$
where $d$ is the basis size and $M$ the ensemble size. The function $\mathrm{DoF}(\lambda)$ is continuous, convex, and strictly increasing in $\lambda$ [1803.00314]. This demonstrates that diversity regularization increases the model capacity allocated to the diversity directions.

The NCL penalty is equivalently a block-Tikhonov regularizer that acts only on the (M-1)-dimensional diversity subspace, leaving the consensus direction unregularized. In the presence of noise, an optimally chosen $\lambda>0$ lowers ensemble MSE compared to unregularized averaging by suppressing variance in the diversity subspace.

For deep ensembles, the DoF and its connection to generalization error are estimated stochastically using the Monte Carlo Hutchinson estimator, enabling gradient-free tuning of $\lambda$ via SURE [1803.00314].

## 3. Extensions and Generalizations

The classical NCL framework has been extended along multiple axes:

- **Self-Error Adjustment (SEA)** [2508.04948]: Decomposes ensemble error into self-error and diversity-interaction terms. Introduces a parameter $k$ to weight diversity in the per-learner loss:
  $$
  e_i^{SEA} = (f_i-t)^2 - 2k(f_i-t)(g_i-t),
  $$
  with $g_i$ defined by the complementary-prediction constraint. SEA yields tighter theoretical ranges for $k$ and more predictable, linear diversity tuning than standard NCL. Empirically, SEA outperforms NCL and its corrected variants on both regression and classification tasks.

- **Generalized Negative Correlation Learning (GNCL)** [2011.02952]: For twice-differentiable losses $\ell$, GNCL couples the per-sample ensemble loss and the mean individual losses:
  $$
  L_{\mathrm{GNCL}} = \lambda\,\ell(\bar{f}, y) + (1-\lambda)\frac{1}{M}\sum_{i=1}^M \ell(f_i, y),
  $$
  allowing smooth interpolation between independent ($\lambda=0$) and fully joint ($\lambda=1$) training. GNCL admits a second-order bias–variance decomposition for arbitrary loss functions, subsuming classical NCL and extending it to classification and more.

- **Deep Ensembles** [1908.09066, 2212.07070]: NCL is adapted to parameter-efficient architectures by sharing network backbones while splitting into $M$ heads. Negative correlation is enforced via diversity terms in the loss. In classification (DNCC), the diversity penalty is the Bregman divergence between individual softmax outputs and the ensemble mean. These approaches achieve state-of-the-art results in various vision tasks with negligible parameter overhead.

- **Hybrid Architectures** [1509.01270]: NCL-inspired ensembles are hybridized with gating networks (Gated-NCL) or with probabilistic mixture-of-experts (Mixture of Negatively Correlated Experts, MNCE), which integrate input-dependent specialization with explicit negative correlation penalties.

## 4. Convergence, Optimization, and Practical Tuning

Convergence guarantees for NCL-optimizing algorithms are established in several regimes:

- **Negative Correlation Extreme Learning Machine (NCELM)** [2009.14695]: The two-stage optimization alternates updates to base learners with an NCL penalty. The mapping from iterates to updated weights is a contraction under suitable conditions, admitting global convergence to a unique fixed point by Banach's theorem provided the penalty parameter $\lambda$ is sufficiently small so as not to destroy the positive-definiteness of the Hessians.

- **Hybrid Sub-model Selection and Weighting** [2104.02317]: NCL is formulated as a mixed-integer program for simultaneous model selection and weighting, solved by an interior-point filter line-search method. The NCL penalty induces sparser, more diverse ensembles than standard weighting or stacking, with empirically validated gains on regression benchmarks.

- **Diversity Parameter Selection** [1803.00314, 2508.04948]: The DoF of NCL and unbiased SURE-based risk estimation enable efficient line-searches over $\lambda$ to identify the optimal diversity level, either in closed-form (linear case) or by grid search with empirically robust ranges in deep or nonlinear settings.

#### Table: Diversity Control Parameterization in NCL and Extensions

| Method         | Diversity Parameter | Effective Range                 | Diversity Variation      |
|----------------|--------------------|---------------------------------|-------------------------|
| NCL            | $\lambda$          | [0, 1) (practical), up to $M/(M-1)$ (theoretical) | Nonlinear, convex       |
| SEA            | $k$                | $(-1/(M-1), 2+1/(M-1))$ (tight), [0,2] (practical) | Linear                  |
| GNCL           | $\lambda$          | [0,1]                           | Interpolates            |

SEA provides tighter and more practically meaningful diversity control than classical NCL, while GNCL allows the same philosophy to extend to arbitrary loss landscapes.

## 5. Empirical Performance and Applications

NCL and its refinements have been validated across regression, classification, and vision tasks:

- In regression, NCL-penalized ensembles consistently reduce test RMSE compared to simple averaging, least-squares-fitted weights, or stacking, and lower pairwise residual correlations [2104.02317, 2508.04948].
- In classification, deep NCL and DNCC architectures, leveraging shared backbone and head splitting with negative correlation penalties, surpass conventional ensembles, snapshot ensembles, and stochastic pseudo-ensembles in both CIFAR and ImageNet settings [2212.07070].
- In specific application domains, NCL-based architectures such as MNCE and GNCL outperform pure NCL, mixture-of-experts, and support vector machines in biological classification tasks [1509.01270].
- In deep regression, DNCL shows that the Rademacher complexity of the overall ensemble scales as $1/K$ that of a single-head network, providing a capacity reduction and bias–variance–covariance control that translate into superior performance in image counting, apparent personality, age estimation, and super-resolution [1908.09066].

Empirical studies confirm that optimal diversity parameter values typically exist in the interior of the permitted range; over-increasing diversity degrades performance, underscoring the necessity of principled tuning.

## 6. Limitations, Parameter Boundaries, and Best Practices

While NCL provides a powerful mechanism for trade-off control, several limitations and caveats have been identified:

- Theoretical upper bounds on the diversity parameter stemming from positivity of the per-sample loss Hessian are loose; error-decrease conditions (as in SEA) yield stricter, practically relevant limits [2508.04948].
- For large $\lambda$ (or $k$), ensembles can exhibit degraded accuracy due to over-dispersion. The diversity-accuracy trade-off is nonlinear under classical NCL and linear under SEA, with the latter permitting more predictable diversity adjustment.
- In deep learning, GNCL reveals that network capacity interacts strongly with optimal $\lambda$: high-capacity learners benefit from stronger diversity (lower $\lambda$), while weak models require more joint training ($\lambda$ closer to 1) [2011.02952]. This capacity dependence precludes one-size-fits-all parameter choices.
- Resource and scalability concerns are addressed via parameter-efficient branching (shared backbones), pseudo-ensembling, or snapshotting, in which NCL remains applicable through head splits or weight perturbations.

Recommended practice is to treat the diversity parameter as a hyperparameter to be tuned on validation data, guided by objective functions such as SURE for regression, or empirical ensemble accuracy/diversity trade-off charts in classification. The practitioner should account for model capacity and overfitting risk when determining the optimal diversity regime.

## 7. Connections to Broader Ensemble and Regularization Paradigms

NCL sits at the intersection of regularization theory, bias–variance decomposition, and ensemble learning:

- The explicit connection to Tikhonov/ridge regularization highlights its role as an inverse regularizer along diversity dimensions [1803.00314].
- GNCL unifies classical NCL, bagging, and fully joint (end-to-end) training under a single framework, parameterized by the diversity/ensemble coupling parameter [2011.02952].
- Extensions to hybrid and mixture-of-expert architectures combine NCL-style penalization with input-dependent expert selection, further enhancing specialization and diversity [1509.01270].

In summary, Negative Correlation Learning constitutes a mathematically principled, empirically validated family of ensemble objectives for trading individual learner performance against ensemble diversity. Its generalizations have made it central to both classical and modern deep learning ensembling frameworks, where explicit diversity control and resource efficiency are critical for robust generalization.

Source: https://www.emergentmind.com/topics/negative-correlation-learning-ncl