Abstract
The underlying paradigm of big data-driven machine learning reflects the desire of deriving better conclusions from simply analyzing more data, without the necessity of looking at theory and models. Is having simply more data always helpful? In 1936, The Literary Digest collected 2.3M filled in questionnaires to predict the outcome of that year's US presidential election. The outcome of this big data prediction proved to be entirely wrong, whereas George Gallup only needed 3K handpicked people to make an accurate prediction. Generally, biases occur in machine learning whenever the distributions of training set and test set are different. In this work, we provide a review of different sorts of biases in (big) data sets in machine learning. We provide definitions and discussions of the most commonly appearing biases in machine learning: class imbalance and covariate shift. We also show how these biases can be quantified and corrected. This work is an introductory text for both researchers and practitioners to become more aware of this topic and thus to derive more reliable models for their learning problems.
Introduction
The prevailing mantra in machine learning for the past decade has been that data volume trumps algorithmic sophistication. However, this "more is better" philosophy often ignores the critical issue of data representativeness. When a dataset is systematically biased, increasing its size merely leads to more confident but incorrect conclusions. This paper addresses the fundamental problem where the training distribution $P_{train}(X, Y)$ diverges from the real-world test distribution $P_{test}(X, Y)$, leading to failures in generalization, lack of reproducibility, and potential ethical harms such as algorithmic discrimination.
Taxonomy of Bias
The authors categorize data bias into two primary technical phenomena:
Class Imbalance
Class imbalance occurs when certain labels ($Y$) are significantly over- or under-represented. In such scenarios, standard metrics like raw accuracy become deceptive. For instance, in an anomaly detection task where only 0.1% of cases are irregular, a naive classifier that always predicts "regular" achieves 99.9% accuracy despite failing its primary purpose. The authors advocate for more robust metrics like the Matthews Correlation Coefficient (MCC) and Area Under the Curve (AUC).
Covariate Shift
Covariate shift refers to a change in the distribution of input features ($X$) between training and testing environments, while the relationship between $X$ and $Y$ remains constant.
The paper notes that "global learners" like decision trees are particularly sensitive to this shift as they attempt to model the entire distribution $P(X)$, whereas "local learners" like logistic regression are more robust as they focus primarily on the decision boundary $P(Y|X)$.
Detection and Correction Strategies
A novel contribution of this work is a methodology for quantifying covariate shift. Researchers can train a "proxy" decision tree to distinguish between training and test samples. A high MCC for this proxy model indicates a significant, quantifiable shift.
To mitigate these biases, several techniques are discussed:
- Instance Weighting: Adjusting the importance of samples during training to reflect the target distribution.
- Sampling: Utilizing methods like SMOTE (Synthetic Minority Over-sampling Technique) to balance classes.
- Batch Normalization: A deep learning technique that addresses "internal covariate shift" by stabilizing activations across network layers.
Case Studies and Datasets
The paper illustrates these concepts using both historical and modern datasets:
- 1936 US Election: A landmark case where a biased sample of 2.3 million voters failed to predict the election outcome, while a representative sample of 3,000 succeeded.
- MNIST: The classic handwritten digit database is used to show how even standard benchmarks can have subtle class imbalances that make accuracy a misleading metric.
- Non-Technical Losses (NTL): Analysis of electricity theft data reveals spatial biases where inspections are geographically concentrated.
- Google Photos: A qualitative example where under-representation in training data led to significant failures in automated image tagging.
Conclusion
While technical solutions like SMOTE and instance weighting are valuable, the authors conclude that the most effective defense against bias is practitioner awareness. Understanding that quality and representativeness are more critical than sheer volume is essential for building reliable, fair, and reproducible machine learning systems. Future work remains in developing computationally efficient correction methods for high-dimensional, non-linear data.
Summary updated