Error Loss Networks

Badong Chen, Yunfei Zheng, Pengju RenIEEE TNNLS 2021 · DOI

Abstract

In supervised learning, the selection of an appropriate loss function is a critical yet often manual process. While Mean Square Error (MSE) is widely used, its performance degrades significantly in the presence of non-Gaussian noise and heavy-tailed outliers. This paper discusses the Error Loss Network (ELN), a novel framework that treats the loss function as a learnable neural network. By mapping error samples to loss values through a Radial Basis Function (RBF) architecture, the ELN adaptively learns the optimal loss shape based on the underlying error distribution. We demonstrate that ELN provides a unified approach that encompasses several traditional loss functions and significantly improves robustness in regression and classification tasks, particularly under high-noise conditions.

Introduction

The efficacy of a supervised learning model is fundamentally tied to its loss function, which quantifies the discrepancy between predicted and actual values. For decades, Mean Square Error (MSE) has served as the default choice due to its mathematical tractability and optimality under Gaussian noise assumptions. However, real-world data frequently violates these assumptions, containing outliers or complex noise distributions that cause MSE to over-penalize large errors, leading to biased models.

To combat this, researchers have historically turned to robust alternatives such as Mean Absolute Error (MAE), Huber loss, or Information Theoretic Learning (ITL) criteria like Maximum Correntropy. Despite their utility, these functions are typically "hand-picked" through trial and error. The Error Loss Network (ELN) addresses this limitation by providing a data-driven, unified framework for automatically designing loss functions that adapt to the specific characteristics of a dataset.

The Error Loss Network Framework

The core innovation of the ELN is the conceptualization of the loss function $l(e)$ as a small, trainable neural network.

Architecture

The ELN utilizes an architecture similar to a Radial Basis Function (RBF) network. The input to the network is an error sample $e_i = d_i - y_i$, and the output is the corresponding loss value. Specifically, the loss is calculated as a weighted sum of radial basis functions, typically Gaussian kernels. This structure allows the ELN to approximate a wide variety of functional forms.

A Unified Perspective

A significant theoretical contribution of this framework is the demonstration that many established loss functions are special cases of the ELN. By adjusting the weights and kernel widths within the RBF structure, the ELN can replicate the behavior of MSE, Maximum Correntropy Criterion (MCC), and Minimum Error Entropy (MEE). This unification allows practitioners to view loss function selection as a parameter optimization problem rather than a discrete choice between disparate mathematical formulas.

Two-Stage Learning Paradigm

The implementation of ELN follows a distinct two-stage process:

  1. Stage 1: Learning the Loss (PDF Matching): The ELN is first trained using a "PDF matching" approach. The objective is to shape the loss function such that it mirrors the negative probability density function (PDF) of the errors. By assigning low loss values to high-probability "normal" errors and higher, bounded loss values to low-probability "outliers," the network learns an intrinsic resistance to data anomalies.
  2. Stage 2: Learning the Task: Once the ELN is defined, it serves as the fixed loss function for training the primary learning machine (e.g., a regressor or deep neural network). For linear models, the authors utilize an efficient fixed-point iterative algorithm to optimize the task parameters.

Experimental Evaluation

The ELN was rigorously tested across multiple domains to validate its robustness and generalizability.

Regression Tasks

In synthetic linear regression tests involving complex noise (such as symmetric/asymmetric Gaussian mixtures and uniform noise), the ELN achieved a Root Mean Square Deviation (RMSD) of 0.0116. This performance significantly outperformed MSE, which recorded an RMSD of 0.1686, and even surpassed specialized robust criteria like MCC. Furthermore, on 10 standard UCI/LIBSVM nonlinear regression benchmarks (including California Housing and Concrete Slump), ELN achieved the lowest error in 7 out of 10 cases.

Classification and Label Noise

The framework's utility extends to deep learning and classification. On the Fashion-MNIST dataset, the authors introduced 40% label noise to simulate real-world data corruption. A LeNet5 architecture trained with an ELN achieved an accuracy of 85.87%, whereas the same architecture trained with standard Cross-Entropy loss reached only 77.90%. Similar improvements were observed across smaller UCI classification datasets with 30% label noise.

Discussion and Key Insights

The ELN introduces the powerful concept that the optimal loss function should be inversely related to the error's probability density. This "mirroring" effect allows the model to automatically ignore outliers without requiring the user to manually set sensitivity thresholds or hyperparameter "clipping" values.

Because the ELN is built upon Gaussian kernels, the resulting loss functions are naturally bounded. Unlike MSE, where the gradient increases linearly with the error (leading to infinite influence for extreme outliers), the ELN gradient approaches zero as errors become massive. This saturation property ensures that outliers do not disproportionately influence the model's parameters.

Limitations and Future Directions

Despite its advantages, the ELN introduces additional computational complexity due to the two-stage training process. While efficient for many applications, optimizing this overhead for extremely large-scale deep learning remains an area for future work. Additionally, while ELN reduces the need for manual loss selection, it introduces its own hyperparameters, such as the reference kernel width ($\sigma$), which still require tuning via cross-validation. Future research may explore more complex architectures for the ELN, such as Multi-Layer Perceptrons (MLPs), to model even more intricate error landscapes.

Conclusion

The Error Loss Network represents a significant step toward "learning how to learn." By allowing the data itself to dictate the penalty for errors, ELN removes much of the guesswork associated with robust statistics in machine learning. Its ability to unify existing loss functions while providing superior performance in noisy environments makes it a versatile tool for modern data science.

Summary updated

BibTeX
@article{chen2021error,
  author = {Badong Chen and Yunfei Zheng and Pengju Ren},
  title = {{Error Loss Networks}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2021},
  doi = {10.1109/tnnls.2022.3202989},
}
Figure