TL;DR
FairSFS is a novel algorithm designed for real-time streaming feature selection that prioritizes algorithmic fairness without sacrificing predictive accuracy. By leveraging Markov Blankets and causal intervention theory, it dynamically filters out features that act as proxies for sensitive attributes (like race or gender) as they arrive in a data stream.
What Problem Does This Paper Address?
In the era of big data, features often arrive sequentially in a "stream" rather than all at once. While existing Streaming Feature Selection (SFS) algorithms are excellent at identifying relevant variables on the fly, they are often "fairness-blind." They select features based purely on their correlation with the target, which can inadvertently introduce or amplify biases.
For example, a job recommendation system might not use "gender" as a feature, but it might select "hobbies" or "prior job titles" that act as strong proxies for gender. As shown in the figure below, incorporating such sensitive-linked features can lead to discriminatory outcomes, such as recommending high-tech roles primarily to men while pushing fashion-related content to women.
The challenge is to maintain fairness in an online environment where the total number of features is unknown and the data distribution may evolve over time.
Methods
The authors introduce FairSFS, which utilizes the concept of a Markov Blanket (MB)—the minimal set of variables (parents, children, and spouses) that renders a target variable independent of all other variables in a Bayesian network.
The algorithm operates in two primary steps for every incoming feature $X_i$:
- Preliminary Classification: When a new feature arrives, FairSFS first checks if it is dependent on the sensitive attribute $S$, conditioned on the current Markov Blanket of $S$ ($MB_S$). If it is dependent, it’s considered "tainted" by sensitive information and added to $MB_S$. If it is independent (and thus "fair"), the algorithm then checks if it is relevant to the target $T$ to decide if it should join the predictive set ($MB_T$).
- Dynamic Refinement: Because new features can change the conditional independence relationships of existing ones, FairSFS re-evaluates the "spouses" of the sensitive attribute. It looks for features that were previously flagged as biased but, with the arrival of new data, can now be proven independent of $S$ and moved into the predictive set $MB_T$.
This approach is grounded in Causal Fairness and the Do-operator, ensuring that the resulting feature set $MB_T$ blocks the flow of sensitive information to the final model.
Datasets
The algorithm was evaluated on seven real-world datasets commonly used in fairness research:
- Law: Predicting law school success (sensitive feature: race).
- Oulad: Open University Learning Analytics (sensitive feature: gender).
- German: Credit risk assessment (sensitive feature: age).
- Compas: Recidivism risk (sensitive feature: gender).
- CreditCardClients: Default prediction (sensitive feature: gender).
- StudentPerformance (Math & Port): Academic success (sensitive feature: gender).
Key Insights and Ideas
- Fairness is Dynamic: In a streaming environment, a feature's "fairness" isn't static. The arrival of a new feature can act as a conditioning variable that "unblocks" a previously biased feature, making it safe to use for prediction.
- Blocking vs. Deleting: Simply deleting sensitive attributes is insufficient. FairSFS focuses on identifying and blocking the paths through which sensitive information flows, using Markov Blankets to isolate the target from the sensitive source.
- Online Efficiency: Unlike traditional fair feature selection that requires the entire dataset upfront, FairSFS processes features one by one, making it suitable for modern real-time recommendation and decision-support systems.
Key Results
The researchers compared FairSFS against four leading streaming algorithms (like OSFS and SAOLA) and two fairness-aware batch algorithms (Auto and Seqsel) across three classifiers (Logistic Regression, Naive Bayes, and KNN).
- Accuracy: FairSFS maintained accuracy "on par" with state-of-the-art methods. While it occasionally sacrificed a small percentage of accuracy to ensure fairness (a common trade-off), it remained highly competitive.
- Fairness Metrics: FairSFS significantly outperformed competitors in Statistical Parity Difference (SPD) and Predictive Equality (PE). On the Law and Credit datasets using a Logistic Regression classifier, the fairness metrics dropped to near-zero (negligible) levels, indicating almost perfect fairness.
- Statistical Significance: Friedman and Nemenyi tests confirmed that FairSFS's improvements in fairness were statistically significant across the majority of tested scenarios.
Limitations and Future Work
The authors identify a primary limitation regarding dataset size. FairSFS relies on the $G^2$ independence test, which can be unreliable or "inadequate" when working with very small datasets, potentially leading to unforeseen outcomes.
Future research will focus on making the algorithm more robust in low-data scenarios and exploring how to enhance fairness when multiple sensitive attributes (e.g., race and gender) are present simultaneously.
Summary updated