|
1 | | -# Mutatis Mutandis |
| 1 | +# *Mutatis Mutandis* |
2 | 2 |
|
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. |
7 | 4 |
|
8 | 5 | [](LICENSE) |
9 | 6 | [](https://www.python.org/downloads/) |
|
13 | 10 | [](https://github.com/astral-sh/ruff) |
14 | 11 | [](https://www.conventionalcommits.org/) |
15 | 12 |
|
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)). |
17 | 14 |
|
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. |
24 | 50 |
|
25 | 51 | ## Overview |
26 | 52 |
|
@@ -162,9 +188,3 @@ research repository is |
162 | 188 | [cc-jalvarez/revisiting-the-comparator](https://github.com/cc-jalvarez/revisiting-the-comparator). |
163 | 189 | This open-source release is distributed and maintained by **Santander AI Lab** |
164 | 190 | 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