Skip to content

Commit 07c564b

Browse files
Revise README for clarity and additional references by author (#6)
Updated README to enhance clarity and detail about the project, including references and citation requirements as requested by the author of the paper and repo. Co-authored-by: Open Source Santander AI <opensource@gruposantander.com>
1 parent d7960d5 commit 07c564b

1 file changed

Lines changed: 38 additions & 18 deletions

File tree

README.md

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# Mutatis Mutandis
1+
# *Mutatis Mutandis*
22

3-
> **Open source by Santander AI Lab.** A Python **library** for **algorithmic fairness** and
4-
> **responsible AI**: it implements **situation testing** — a **machine learning** method for
5-
> detecting discrimination — together with a **counterfactual** comparator (`cfST`) for auditing
6-
> decision rules against protected groups.
3+
> Repository for [*Mutatis Mutandis: Revisiting the Comparator in Discrimination Testing*](https://arxiv.org/abs/2405.13693), forthcoming in [*Computational Intelligence*](https://onlinelibrary.wiley.com/journal/14678640), by [Jose M. Alvarez](https://cc-jalvarez.github.io/) (Santander AI Lab) and [Salvatore Ruggieri](https://pages.di.unipi.it/ruggieri/) (University of Pisa). Also visit [the main repository](https://github.com/cc-jalvarez/revisiting-the-comparator) maintained by the authors.
74
85
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
96
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
@@ -13,14 +10,43 @@
1310
[![Ruff](https://img.shields.io/badge/linter-ruff-261230.svg)](https://github.com/astral-sh/ruff)
1411
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://www.conventionalcommits.org/)
1512

16-
Part of [**Santander AI Open Source**](https://github.com/SantanderAI) open source AI projects from Banco Santander ([santander.com](https://santander.com)).
13+
Part of [**Santander AI Open Source**](https://github.com/SantanderAI): open source AI projects from Banco Santander ([santander.com](https://santander.com)).
1714

18-
Research code accompanying the paper *Mutatis Mutandis: Revisiting the Comparator
19-
in Discrimination Testing* (forthcoming in *Computational Intelligence*). It
20-
implements **situation testing** — comparing each individual's outcome against a
21-
neighbourhood of similar protected (control) and non-protected (test)
22-
individuals — and a **counterfactual** variant (`cfST`) that draws the test
23-
centre from a counterfactual twin of the individual.
15+
The paper re-examines the role of comparators in individual discrimination testing, arguing that comparator construction is a causal modeling problem. It introduces two comparator types: *Ceteris Paribus* (CP), which changes only the protected attribute, and *Mutatis Mutandis* (MM), which also adjusts non-protected attributes affected by the protected attribute. Through a real-world case study and the counterfactual situation testing method, the authors show how these comparator choices can lead to different discrimination assessments and highlight opportunities for machine learning in implementing MM comparators.
16+
17+
## References
18+
19+
If you make use of the code, please cite the following papers:
20+
21+
*Counterfactual Situation Testing: From Single to Multidimensional Discrimination*. Jose M. Alvarez, and Salvatore Ruggieri. Journal of Artificial Intelligence Research (JAIR), 82, 2279-2323, 2025.
22+
23+
<pre><code>
24+
@article{DBLP:journals/jair/AlvarezR25,
25+
author = {Jos{\'{e}} M. {\'{A}}lvarez and
26+
Salvatore Ruggieri},
27+
title = {Counterfactual Situation Testing: From Single to Multidimensional
28+
Discrimination},
29+
journal = {J. Artif. Intell. Res.},
30+
volume = {82},
31+
pages = {2279--2323},
32+
year = {2025}
33+
}
34+
</code></pre>
35+
36+
*Mutatis Mutandis: Revisiting the Comparator in Discrimination Testing*. Jose M. Alvarez, and Salvatore Ruggieri. Forthcoming in Computational Intelligence, 2026.
37+
38+
<pre><code>
39+
@article{DBLP:journals/corr/abs-2405-13693,
40+
author = {Jos{\'{e}} M. {\'{A}}lvarez and
41+
Salvatore Ruggieri},
42+
title = {Mutatis Mutandis: Revisiting the Comparator in Discrimination Testing},
43+
journal = {CoRR},
44+
volume = {abs/2405.13693},
45+
year = {2024}
46+
}
47+
</code></pre>
48+
49+
The Law School dataset must be cited separately; see [data/README.md](data/README.md) for the data statement and citation.
2450

2551
## Overview
2652

@@ -162,9 +188,3 @@ research repository is
162188
[cc-jalvarez/revisiting-the-comparator](https://github.com/cc-jalvarez/revisiting-the-comparator).
163189
This open-source release is distributed and maintained by **Santander AI Lab**
164190
with the author's consent. See [NOTICE](NOTICE) for details.
165-
166-
## Citation
167-
168-
If you use this repository, please cite the accompanying paper (see
169-
[CITATION.cff](CITATION.cff)). The Law School dataset must be cited separately;
170-
see [data/README.md](data/README.md) for the data statement and citation.

0 commit comments

Comments
 (0)