Variable Selection in the Context of AI Fairness

arXiv:2608.11251 · cs.CY, cs.AI, cs.LG · Submitted 2026-08-04 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Next we'll be talking about the paper "Variable Selection in the Context of AI Fairness".

Jane: The paper was written by Ivan Luciano Danesi, Chiara Frigerio, Fabio Maccaferri, Giorgio Alessandro Motta and Pietro Zecca from UniCredit S.p.A. and Università Cattolica del Sacro Cuore and Cetif.

Tom: Stay tuned as we take you through the paper and discuss its implications.

Title: Tom: Alright, welcome back to the show, everyone. We've got a fresh one from the arXiv this week, and it's called "Variable Selection in the Context of AI Fairness." Jane, I have to say, the title alone got me hooked, because it's pointing at something that feels really counterintuitive.

Jane: Oh, absolutely, Tom. And I think that's exactly why we need to talk about it. The paper is by a team from UniCredit and Università Cattolica in Milan, and they're basically asking a question that flips a lot of common wisdom on its head. We usually think that if we want a fair AI, we should just remove the sensitive stuff, like race or gender, from the data.

Tom: Right, just don't look at it, and then it can't be biased, right? That's the old "fairness through unawareness" idea.

Jane: Exactly. But this paper argues that this approach, while it sounds clean, can actually make things worse. They're saying that by throwing away those variables, you lose information that the model needs to make accurate predictions, and that loss of accuracy can actually hurt the very groups you were trying to protect.

Tom: So it's like trying to fix a leaky pipe by just not looking at the water meter? You're not fixing the problem, you're just hiding it.

Jane: That's a great way to put it. They even walk through some real-world examples, like in credit scoring. You can remove race from the model, but the postal code or the type of spending habits can act as a proxy for it anyway. So the bias just sneaks back in through the back door.

Tom: And that's the core tension, right? We want fairness, but we also want accuracy. The paper suggests these aren't necessarily in conflict, but the way we've been choosing variables is forcing us to pick one over the other.

Jane: Precisely. And they're not just philosophizing about it. They actually build a mathematical framework to show that keeping all the variables, including the sensitive ones, gives you a better starting point. You can then audit the model for fairness after the fact, rather than just hoping it's fair because you hid the data.

Tom: So it's a more honest approach. You keep everything on the table, you see what the model does, and then you correct it. That sounds like a much more mature way to handle this than just pretending the problem doesn't exist.

Jane: It really is. And it aligns with what regulators in Europe are starting to demand. The EU AI Act doesn't just say "don't be biased," it says you need to actively manage and document how you're addressing bias. You can't just say you removed the variable and call it a day.

Tom: Okay, so we've got the big idea. But I'm curious about the actual math they use to back this up. That's what we're digging into next.

Summary: Tom: So, Jane, we've established that this paper, "Variable Selection in the Context of AI Fairness," is arguing against the "just remove the sensitive data" approach. But what's the actual meat of their argument? What are they showing us mathematically?

Jane: Well, they set up a scenario where you have a full dataset, let's call it the complete set of variables. Then you have a subset, which is what you get when you start deleting things, like the sensitive attributes. They show that if you train a model on the full set, you get the best possible error rate, the lowest prediction error.

Tom: Because you have all the information, so the model can make the most informed guesses.

Jane: Exactly. Now, if you train on the subset, your error rate goes up. It's suboptimal, mathematically speaking. But here's the kicker: they then look at fairness. They define a function that measures fairness under different definitions, like demographic parity or equal opportunity.

Tom: And what do they find when they compare the fairness of the full model versus the reduced model?

Jane: They lay out three possible outcomes. The reduced model could be less fair, equally fair, or more fair than the full model. But they argue that in two out of those three cases, the full model is either better or just as good. And even in the third case, where the reduced model is somehow fairer, they show you can use the information from the full model to fix that specific unfairness.

Tom: So they're saying that starting with everything is almost always the right move, and if it's not, you can still fix it.

Jane: Right. And they even have a clever trick for that third case. If the reduced model is fairer for a specific group, you can create a hybrid model. You use the full model for most people, but for that specific group, you use the reduced model's output. It's a surgical fix.

Tom: That's really smart. It's like having a general practitioner and a specialist. You use the general one for most things, but you call in the specialist when you need that specific expertise.

Jane: That's a perfect analogy. And the key point is that you can only do that if you still have access to the sensitive variables. If you've already thrown them away, you can't identify who needs the specialist treatment. You're flying blind.

Tom: So the paper is essentially saying that variable exclusion is a blunt instrument that takes away your ability to do nuanced fairness work later.

Jane: Exactly. And it also connects back to explainability. If you don't have the variables, you can't explain why a decision was made for a specific person. You lose the ability to audit and understand the model.

Tom: So it's not just about accuracy, it's about the whole toolkit for responsible AI. I'm starting to see why this is such a big deal. But I'm wondering, what does this mean for the people actually building these systems? What's the practical advice here?

Improvements: Tom: So we've got the theory, and it sounds great on paper. But Jane, what does this actually mean for a team of engineers or data scientists working on a real product? How does this paper change what they should do on Monday morning?

Jane: I think the biggest takeaway is a shift in workflow. Instead of starting with a list of variables to exclude, you start with the full dataset. You train your model on everything, you optimize for accuracy, and then you run a rigorous fairness audit on the output.

Tom: So the variable selection happens after you see the results, not before.

Jane: Exactly. And this is where I think we need to bring in some other voices. Lu, you've been working on fairness in machine learning for a while now. Does this match what you see in practice?

Lu: It does, and I think it's a much more robust approach. The problem with preemptive exclusion is that you're making a decision based on assumptions about correlation that you haven't actually tested in your specific model. By keeping everything in, you let the data speak for itself. You can then use statistical methods, like the error optimization they mention, to see which variables actually matter.

Meng: But from an engineering standpoint, that sounds expensive. Training on a full dataset with all those variables takes more compute, more time, and more memory. Is that a realistic ask for every team?

Jane: That's a fair point, Meng. And the paper does acknowledge that you need to be smart about this. They're not saying you should keep every single variable forever. They're saying you should start with everything to find the optimal model, and then use objective criteria to trim it down.

Lu: And the key is that the trimming should be based on statistical significance and error contribution, not on a gut feeling that a variable is "too sensitive." If a variable doesn't help the model, it will drop out naturally. If it does help, then removing it is going to hurt accuracy, and you need to know that.

Meng: So it's like a two-stage process. First, you find the best model with everything. Then, you look at the fairness metrics and decide if you need to make any trade-offs. That's a lot more deliberate than just scrubbing the data upfront.

Jane: Exactly. And the paper even provides a mathematical guarantee that this approach, where you start full and then adjust, will keep your error rate bounded. You won't end up with a wildly inaccurate model just to gain a tiny bit of fairness.

Lalam: I would add that this approach also improves the cultural and ethical posture of an organization. By keeping the sensitive variables in the loop, you are signaling a commitment to understanding the impact of your model, rather than hiding from it. It fosters a culture of accountability, which is exactly what the EU AI Act is pushing for.

Tom: So it's not just a technical fix, it's a cultural shift. You're building a system that is transparent about its biases and actively working to correct them.

Jane: And that's the real improvement the paper suggests. It moves us from a place of ignorance and hope to a place of knowledge and control.

Conclusion: Tom: Well, we've covered a lot of ground on "Variable Selection in the Context of AI Fairness." Jane, can you help us wrap this up and say goodbye to this paper?

Jane: I'd love to. The core message is that trying to achieve fairness by deleting sensitive variables is a flawed strategy. It hurts accuracy, it doesn't actually remove bias because proxies sneak in, and it destroys your ability to explain and audit your model.

Tom: And the alternative they propose is to start with everything, optimize for accuracy, and then use a fairness audit to make targeted corrections.

Jane: Exactly. It's a more honest and more effective path. It acknowledges that fairness is a complex, context-dependent issue that can't be solved with a simple deletion. It requires careful analysis and, as Lu and Lalam pointed out, a cultural commitment to accountability.

Tom: And it lines up perfectly with the regulatory direction in Europe, where they're demanding that companies actively manage bias rather than just claim it doesn't exist.

Jane: Right. This paper gives us a mathematical foundation for doing that. It's a bridge between the abstract ethical goal of fairness and the concrete reality of building a model that works in the real world.

Tom: So we're saying goodbye to this paper with a sense of hope. It gives us a practical, rigorous way to build AI that we can trust.

Jane: Absolutely. And it sets the stage for a much more interesting conversation about how we define and measure fairness in the first place. But that's a topic for another paper.

Tom: Indeed it is. Thanks for joining us, everyone. We'll be back next week with another deep dive into the latest research.

Jane: Take care, and keep questioning the data.

Ivan Luciano Danesi, Chiara Frigerio, Fabio Maccaferri, Giorgio Alessandro Motta, Pietro Zecca

UniCredit S.p.A. · Università Cattolica del Sacro Cuore · Cetif

cs.CY, cs.AI, cs.LG

Submitted: 2026-08-04

Updated: 2026-08-13

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 48/100

The gist: (1) discussing current efforts to understand fairness beyond mathematical and statistical analysis, (2) bridging theory and practice by discussing fairness auditing and compliance with international

Terminology

Summary

Summary

The paper Variable Selection in the Context of AI Fairness by Ivan Luciano Danesi, Chiara Frigerio, Fabio Maccaferri, Giorgio Alessandro Motta, and Pietro Zecca addresses the challenge of fairness in AI systems, particularly in the context of variable selection and the exclusion of sensitive attributes. The authors argue that traditional approaches to fairness, such as fairness through unawareness (excluding protected attributes from models), are insufficient and can paradoxically introduce or perpetuate bias.

The paper's contributions are threefold: (1) discussing current efforts to understand fairness beyond mathematical and statistical analysis, (2) bridging theory and practice by discussing fairness auditing and compliance with international standards such as the EU AI Act, and (3) presenting a mathematical approach illustrating conditions under which retaining all variables, including sensitive ones, may lead to fairer classification outcomes.

The authors emphasize that fairness is a multifaceted, context-dependent concept that cannot be fully captured by statistical formulas alone. They cite Verma and Rubin (2018), who note that the question Is the classifier fair? depends critically on which definition of fairness one adopts, including measures such as demographic parity, equal opportunity, and individual fairness. They also reference Benthall and Haynes (2019), who argue that even the categories used in machine learning, particularly racial categories, can embed historical biases and oversimplify complex social constructs.

The paper highlights that eliminating sensitive variables does not necessarily prevent discriminatory outcomes, as seemingly neutral features—so-called proxy variables—can encode and perpetuate social biases due to high correlation with protected attributes. Examples include credit scoring, where postal code, employment history, or consumer spending patterns act as proxies for race and socioeconomic background; healthcare, where risk prediction algorithms using spending as a feature undermined fairness; and employment, where gender is indirectly reintroduced through educational institutions or extracurricular activities.

The regulatory landscape is discussed, noting that the GDPR, in force since May 2018, establishes guidelines for data collection and processing, emphasizing data minimization. The European AI Act, a more recent initiative, creates a regulatory framework for AI systems, aiming to safeguard fundamental rights, ensure safety and transparency, and mandate measures against unfair bias in high-risk AI systems. The authors compare these with regulations in the USA and Asia, noting that the EU AI Act is likely to set a global standard for AI regulation.

The methodology involves a pre-literature review conducted using digital libraries such as Elsevier, Google Scholar, and Scopus, following the strategies of Rowley and Slack (2004). The initial research yielded over 50,000 results using keywords such as AI ethics, AI fairness metrics, Explainable AI, AI transparency, Robust AI, Fairness in AI-driven decision making, Sustainable AI in business ecosystem, AI Act EU, Federated learning for privacy, Differential privacy in AI, AI auditing frameworks, Discrimination, Trade-offs in fair AI, social impact of AI, ethics and AI. A further selection of articles was performed using recommendations that articles should be relevant, up to date, have extensive sources referencing, and be written by an authoritative author, resulting in a final set of 33 papers.

The research question is formulated as: "Given a data set D, the fairness assessment of the classifier c can be addressed with a higher level of reliability awareness as the variables of the learning data set D′ (D′ ⊆ D) potentially pertinent to the purpose of the application of the classifier increase without a priori screening and elimination actions." The hypothesis states that the training data set D of a classifier C should be consistent and represent the available operational reality as completely as possible. The authors recommend an initial training phase with the full dataset D to ensure the model incorporates all observed data distributions, mitigating the risk of overlooking minority group patterns.

The paper discusses the distinction between bias and fairness, noting that bias is a systematic error leading to skewed results, while fairness involves normative principles related to justice and equity. Addressing bias often means correcting data imbalances, but fairness requires a broader ethical consideration throughout the AI lifecycle. The authors present various fairness definitions, including fairness through unawareness, demographic parity, equality of opportunity, individual fairness, group fairness, and subgroup fairness.

The core mathematical framework is presented in Section 3. The authors define a classifier C that satisfies fairness through unawareness if the prediction function excludes sensitive attributes from its input. They consider a synthetic dataset of 100,000 entries where all characteristics remain constant except for the sensitive attribute, and argue that if predictions remain identical regardless of variations in the sensitive attribute, the variable could be excluded without compromising predictive performance. However, they note that numerous situations exist where the removal of certain variables affects model behavior.

The mathematical argument proceeds as follows: Let D be an optimized training sample for a generic AI model M, with m, n ∈ N, n ≥ m denoting the number of predictors in D and in a subset D′ ⊂ D obtained by removing n − m variables. Using step forward feature selection, a finite sequence of models Mk is generated. Error optimization (e.g., MSE) allows choosing a subset of cardinality k̄ so that Mk̄,X̄k̄ makes the smallest mistake εk̄. Since D′ is arbitrarily chosen among subsets of assigned cardinality n ≤ m, the authors assume without loss of generality that εn ≥ εk̄.

Let X be the set of variables vectors V representing the population of p subjects on which the classifier C has been trained. Let S be the set of sensitive variables, such that S ⊂ V, then V S = V′. Training the classifier on V′ is not optimal since it results in higher error values. The authors claim that excluding sensitive variables during training is counterproductive because the information loss may affect fairness as well.

Let M and M′ be the outcomes of the classifier C trained on V and V′ respectively. Let Θ be the family of all possible fairness definitions, and ∆ identifies a specific class of subjects potentially discriminated by classification choices. Assessing fairness of a classifier C is equivalent to defining a real valued function fθ,∆ for any θ ∈ Θ and ∆. Since training M is optimal, any other choice including M′ is suboptimal in terms of error, meaning reducing significant information can introduce a higher level of bias.

The bias affects classification in three possible ways: (1) the trained model M′ is less fair than model M (fθ,∆(V, M) ≥ fθ,∆(V′, M′)), (2) the trained model M′ is as fair as model M (fθ,∆(V, M) = fθ,∆(V′, M′)), or (3) the trained model M′ is more fair than model M (fθ,∆(V, M) ≤ fθ,∆(V′, M′)). The authors conclude that the model M trained on V (all variables) is usually preferable or, at worst, equivalent (2 of 3 conditions), justifying the recommendation to train on all variables to optimize predictive performance before evaluating fairness.

Furthermore, if in the third scenario, knowledge of sensitive features allows identification of subjects vi that are fairly classified by M′ but not by M, a new outcome M̃i can be defined that classifies vi fairly while maintaining fθ,∆(V, M̃i) ≥ fθ,∆(V, M) and ε̃i ≥ ε, where ε is the mean square error. By iteration, an outcome M̃ is obtained such that ε ≤ ε̃ ≤ ε + (max∆(M′(vj) − ŷj)2 / p) · card(∆).

The authors advocate for using a model that considers all variables and excludes them based on objective criteria such as error optimization (e.g., MSE). If optimization excludes sensitive variables, they would either have low predictive impact or induce bias, and therefore would not statistically significantly affect the model's decisions or its fairness. Subsequent fairness tests operate on an optimized set of variables with reduced risk of implicit correlation.

In conclusion, the paper demonstrates that excluding critical variables in AI models leads to a potential loss of fairness and explainability. Mathematical measures offer essential tools for assessing algorithmic fairness but do not fully encapsulate the philosophical and sociological essence of fairness. AI models represent only a limited subset of reality, and making fair decisions requires accounting for social implications. The findings align with the objectives of the EU AI Act, which seeks to promote trustworthy and fair AI systems, but the authors advocate for a holistic approach merging mathematical rigor with philosophical ethics and social awareness.

Future research directions include investigating the integration of philosophical theories of fairness and comparative legal frameworks into AI system design, emphasizing empirical studies that provide qualitative analysis of social impacts, unintended consequences, and trade-offs, and conducting long-term studies to evaluate how AI influences social outcomes, trust, and perceptions.

Improvements for AI systems

Based on the paper, here are the specific improvements that can be made to AI systems and the resulting capabilities:

1. Replace Fairness through Unawareness with Fairness through Comprehensive Inclusion

  • Current flaw: Systems that exclude sensitive attributes (e.g., race, gender) from input features often fail to achieve fairness because proxy variables (e.g., postal code, spending patterns) reintroduce bias indirectly.

  • Improvement: Train the model initially on the full dataset including all sensitive and non-sensitive variables. Only after optimizing for predictive error (e.g., MSE) should fairness assessments be performed.

  • Resulting capability: The model captures nuanced relationships and avoids implicit bias from proxy correlations, while still allowing for post-hoc fairness evaluation.

2. Implement a Two-Stage Fairness Optimization Protocol

  • Stage 1: Optimize classification error using all available predictors (no a priori variable elimination).

  • Stage 2: Apply fairness metrics (e.g., demographic parity, equality of opportunity) to the optimized model. If unfairness is detected, use a targeted adjustment—not variable removal—to correct for specific subgroups.

  • Resulting capability: The system maintains high predictive accuracy while achieving measurable fairness, avoiding the suboptimal error trap of variable exclusion.

3. Introduce a Fairness-Aware Error Bound for Model Adjustments

  • Improvement: When a model trained on all variables is less fair than a reduced model for a specific subgroup, adjust the prediction for that subgroup individually, with a provable error bound:

  • ε ≤ ε̃ ≤ ε + (max∆(M′(v j) − ŷ j)2 / p) · card(∆)

  • Resulting capability: The system can correct unfair classifications for specific subgroups without degrading overall model performance beyond a mathematically guaranteed limit.

4. Build an Intersectional Fairness Monitoring Module

  • Improvement: Instead of evaluating fairness only on single protected attributes, implement subgroup fairness checks that consider intersections (e.g., race × gender × age).

  • Resulting capability: The system detects and mitigates bias that would otherwise be invisible when examining each attribute in isolation, aligning with the paper's emphasis on subgroup fairness.

  1. Detect hidden proxy bias: It can identify when non-sensitive variables (e.g., ZIP code, education level) act as proxies for protected attributes, and flag these for human review.

  2. Provide explainable fairness decisions: By retaining all variables, the system can explain why a decision was made (e.g., which features contributed most), rather than providing a black-box outcome after variable removal.

  3. Guarantee bounded fairness corrections: When fairness adjustments are made, the system can mathematically guarantee that the increase in prediction error stays within a specified limit, preventing overcorrection that harms overall accuracy.

  4. Comply with EU AI Act and GDPR: The system can demonstrate that it did not arbitrarily exclude variables, but instead used objective statistical criteria (error optimization) to select features, while maintaining transparency and auditability.

  5. Support counterfactual fairness testing: The system can generate synthetic datasets where only the sensitive attribute changes, and verify whether predictions remain stable—if they do not, it flags potential discrimination.

  6. Enable iterative fairness auditing: After initial training on all variables, the system can run fairness tests and, if needed, apply targeted corrections to specific subgroups, then re-audit—creating a closed-loop fairness improvement process.

Concrete example of improved behavior: In a credit scoring model, instead of removing gender and unknowingly using occupation as a proxy, the improved system would:

  • Train on all features (including gender).

  • Optimize for loan default prediction accuracy.

  • Test for demographic parity across gender groups.

  • If unfairness is found, adjust predictions for the disadvantaged group using the bounded error correction formula.

  • Report to regulators that fairness was achieved through targeted correction, not through blind variable removal.

Sources

Related papers