Abstract
As machine learning models are increasingly deployed in high-stakes environments such as finance and insurance, the need for fairness becomes paramount. However, most existing fairness-aware algorithms are designed for static, offline datasets. In real-world applications, data often arrives as a continuous stream subject to both concept and fairness drift. This paper introduces FARF (Fair and Adaptive Random Forests), the first online ensemble classifier designed to mitigate bias in dynamic environments. By integrating a novel fairness-driven splitting criterion with a strategic under-sampling approach, FARF allows practitioners to maintain high predictive accuracy while precisely controlling the trade-off with statistical parity via a single tunable parameter.
Introduction
The transition of AI systems into regulated domains like mortgage approvals and insurance rating has highlighted a critical challenge: ensuring algorithmic fairness. While significant research has addressed fairness in offline settings, real-world data is rarely static. It typically arrives as a continuous stream where the underlying patterns—and the relationships between sensitive attributes and outcomes—can change over time. This phenomenon, known as "drift," can render a previously fair model biased or an accurate model obsolete.
Existing fairness methods often struggle with these dynamic environments, frequently requiring complex, non-intuitive hyper-parameters to balance the inevitable trade-off between accuracy and equity. FARF addresses these gaps by providing an adaptive, ensemble-based approach that monitors and corrects for both performance and fairness degradation in real-time.
Methodology
FARF adapts the Random Forest architecture for online learning through three primary innovations designed to handle the complexities of streaming data.
1. Fair Information Gain (FIG)
Standard decision trees utilize Information Gain (IG) to maximize predictive accuracy at each split. FARF introduces Fair Information Gain (FIG), which modifies the traditional IG by multiplying it with a "Fairness Gain" metric. This criterion encourages the model to select features that reduce discrimination at the node level, embedding fairness directly into the tree-building process.
2. Fairness-aware Under-sampling
While many fairness techniques attempt to over-sample protected groups (e.g., women in a credit model), this often leads to overfitting on small minority samples. FARF adopts a counter-intuitive but more robust strategy: under-sampling the unprotected positive group (e.g., men who received a loan). By reducing the weight of these instances, the model effectively "levels the playing field" and learns a decision boundary that generalizes better across the entire population without the risks associated with over-sampling.
3. Adaptive Drift Detection and the α Parameter
To handle non-stationary streams, FARF integrates the Adaptive Windowing (ADWIN) algorithm. Crucially, FARF monitors both accuracy and fairness metrics. When drift is detected, the algorithm initializes "standby trees" trained on the new data distribution, which eventually replace underperforming members of the ensemble.
To simplify deployment, FARF introduces a single parameter, α. This acts as a controllable "knob" that allows users to adjust the under-sampling ratio manually, ensuring the model can meet specific business or regulatory requirements without exhaustive hyper-parameter tuning.
Experimental Evaluation
The model was evaluated on two classic fairness benchmarks modified to simulate online streaming environments:
- Adult Dataset: Predicting whether an individual's income exceeds $50k/year (Sensitive attribute: Gender).
- Census (KDD Cup 1998) Dataset: A large-scale census dataset used to test scalability.
- Drift Simulation: To test the adaptive capabilities of FARF, the researchers sorted the data by the "race" attribute, creating artificial shifts in the data distribution as the stream progressed.
Key Insights and Results
FARF significantly outperformed existing fair online learners, such as FAHT and FEI, as well as standard ensemble methods like Adaptive Random Forest (ARF).
- Discrimination Reduction: On the Adult dataset, FARF reduced the discrimination score from approximately 24% (in standard models) to 8.89%. On the Census dataset, it achieved a near-perfect fairness score of 0.07%.
- Accuracy Retention: Despite the focus on fairness, FARF remained highly competitive. Its accuracy was typically within 0.8% of the best-performing "unfair" models, demonstrating that fairness does not necessarily require a significant sacrifice in performance.
- Robustness of Under-sampling: The results suggest that focusing on the privileged group's representation is more effective for long-term fairness than focusing solely on the discriminated group, as it prevents the model from becoming overly specialized on minority noise.
Limitations and Future Work
While FARF represents a significant step forward, it currently focuses on binary classification and binary sensitive attributes. Future research is required to extend the framework to multi-class problems and intersectional fairness (e.g., addressing race and gender simultaneously). Additionally, while FARF optimizes for Statistical Parity, adapting the framework to other metrics like Equalized Odds or Predictive Rate Parity remains an open challenge. Finally, the computational overhead of maintaining standby trees and calculating FIG for every split may require further optimization for extremely resource-constrained environments.
Summary updated