Work

Uncovering and Mitigating Bias in Recommender Systems: Using Counterfactual Explanations

Year: 2025
Type: dissertation
Abstract: In recent years, the ethical implications of artificial intelligence have become a focal point of academic and industrial discourse, particularly in the context of recommender systems.These systems play a significant role in shaping user experiences and decision-making across domains such as e-commerce, streaming, and social media.However, their growing influence has brought to light concerns regarding algorithmic bias, especially biases tied to sensitive user attributes such as gender, age, and occupation.These biases can lead to unequal treatment of users and perpetuate social inequalities.This thesis investigates both individual-level and group-level biases in recommender systems using counterfactual explanations, a post-hoc interpretability technique that identifies how minimal changes to a user's profile can alter system predictions.The proposed methodology is formalized through a series of structured algorithms covering data preprocessing, logistic regression training and test prediction, group-level bias rate computation, post-hoc counterfactual neutralization, and accuracy evaluation, ensuring reproducibility and clarity.Two benchmark datasets, MovieLens 100K and MovieLens 1M, are used for empirical analysis.A logistic regression model serves as the backbone for prediction tasks, chosen for its interpretability and efficiency in binary classification settings.Comparative experiments between the two datasets reveal consistent bias reduction across demographic groups, with post-hoc counterfactual neutralization achieving fairness improvements for both datasets while maintaining nearly identical accuracy.The analysis includes quantitative fairness metrics such as demographic parity, individual consistency, and group bias rates, and detailed visual comparisons illustrating how data scale affects fairness outcomes.The results highlight that counterfactual reasoning not only exposes hidden discriminatory patterns but also offers a lightweight, effective pathway to mitigate them with minimal compromise to predictive performance.Ultimately, this research contributes to the growing body of work on ethical AI by delivering an interpretable and scalable fairness framework.The algorithms, comparative findings, and visualization techniques developed herein provide practical insights for designing fairer and more transparent recommendation systems.
Language: Finnish
Open Access status: green
OpenAlex ID: W7132920298
Cites: 30
Cited by:
Related to: 10