Detecting Errors in a Numerical Response via any Regression Model

Hang Zhou, Jonas Mueller, Mayank Kumar, Jane-Ling Wang, Jing Lei

TL;DR

This paper introduces a novel method for detecting erroneous numerical values in regression datasets by developing "veracity scores" that account for both epistemic and aleatoric uncertainties in model predictions. They also propose an iterative filtering procedure to improve these estimates and a new benchmark dataset for evaluating error detection methods, demonstrating superior performance over traditional residual-based approaches.

What Problem Does This Paper Address?

Real-world datasets often contain errors in their numerical response variables. These errors can arise from various sources like faulty sensors, data entry mistakes, or inaccurate human annotations. While methods exist for detecting errors in classification tasks, identifying erroneous numerical responses in regression settings is more challenging. Existing methods often rely on simple residuals, which can be misled by inherent uncertainties in the data (like varying noise levels or insufficient data points for certain predictions). This paper aims to address this by developing a more robust error detection mechanism that explicitly accounts for these uncertainties.

Methods

The core of the paper's contribution lies in two main areas:

  • Veracity Scores: Instead of relying solely on prediction residuals (the difference between the predicted and actual value), the authors introduce "veracity scores." These scores rescale the residual by incorporating estimates of two types of uncertainty:
  • Epistemic Uncertainty: Arises from a lack of data in certain regions of the feature space, making predictions less reliable.
  • Aleatoric Uncertainty: Represents inherent randomness or noise in the underlying relationship between features and the response, which cannot be reduced even with more data. The authors propose two specific veracity scores, $\hat{S}_a$ and $\hat{S}_g$, which use the arithmetic and geometric mean of these uncertainties, respectively, to adjust the residual.

  • Iterative Filtering Procedure: To mitigate the issue that uncertainty estimates themselves can be affected by erroneous data, the authors propose an iterative filtering procedure. This method works by:

  • Fitting a regression model and computing veracity scores.
  • Removing a small percentage of data points with the lowest veracity scores (i.e., the most suspicious errors).
  • Re-fitting the model on the remaining data and repeating the process. This iterative refinement helps to obtain more robust uncertainty estimates and, consequently, more accurate error detection.

Datasets

The authors introduce a new benchmark consisting of five real-world regression datasets with known true target values, allowing for the evaluation of error detection methods. These datasets are:

  • Air CO
  • Metaphor Novelty
  • Stanford Politeness Dataset (Stack edition)
  • Stanford Politeness Dataset (Wikipedia edition)
  • qPCR Telomere

In addition to these, they also use simulated datasets to evaluate their methods under controlled conditions, specifically exploring scenarios with non-parametric regression and epistemic/aleatoric uncertainty, and 5-D linear regression.

Key Insights and Ideas

  • Uncertainty is Key: The most significant insight is that simply looking at prediction errors (residuals) is insufficient for robust error detection in regression. Accounting for epistemic and aleatoric uncertainties is crucial for distinguishing genuine errors from natural data fluctuations.
  • Veracity Scores Outperform Residuals: The proposed veracity scores, which incorporate uncertainty, consistently show better performance than simple residual scores, especially in settings with higher uncertainty.
  • Iterative Filtering Improves Robustness: The iterative filtering procedure is vital for handling datasets where errors are prevalent. By progressively removing the most suspicious points, the method enhances the reliability of the regression model and its uncertainty estimates.
  • Model-Agnostic Applicability: The proposed method is designed to be model-agnostic, meaning it can be applied with any regression model (e.g., Random Forests, Neural Networks, Gradient Boosting), making it broadly useful.

Key Results

  • In simulation studies, the proposed veracity scores ($\hat{S}_a$ and $\hat{S}_g$) achieved better precision/recall than the standard residual score for detecting erroneous values.
  • On the newly introduced benchmark of five real-world datasets, the proposed method demonstrated superior performance compared to other approaches, including RANSAC, in terms of error detection.
  • The iterative filtering procedure led to a significant reduction in prediction error across various datasets, indicating that it effectively removes erroneous data.
  • For datasets with high aleatoric or epistemic uncertainty, the proposed scores consistently outperform residuals. For simpler datasets, the performance is similar, and for severely corrupted datasets, the filtering procedure significantly enhances robustness.

Limitations and Future Work

  • Systematically Biased Corruptions: The authors acknowledge that their method may fail to outperform baseline residuals in cases where corruptions are systematically biased, as such biases are difficult for any statistical procedure to detect. This is identified as an interesting area for future research.
  • Computational Cost: While the method is model-agnostic, the iterative filtering procedure involves multiple model fittings, which can increase computational cost. The paper suggests that grid search for the filtering proportion can be replaced by binary search or coarse-then-fine grids to optimize this.
  • Future Research: The paper suggests that the framework is useful for further research into detecting systematically biased corruptions.

Summary updated

BibTeX
@inproceedings{zhou2023detecting,
  author = {Hang Zhou and Jonas Mueller and Mayank Kumar and Jane-Ling Wang and Jing Lei},
  title = {{Detecting Errors in a Numerical Response via any Regression Model}},
  booktitle = {Accepted by DMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=CIQ5iemeTw},
}
Figure