Abstract
FAT Forensics is an open-source Python toolbox designed to bring software engineering rigor to the evaluation of algorithmic Fairness, Accountability, and Transparency (FAT). By providing a modular, well-documented framework, it moves the field beyond "paperware"—code created solely for a single publication—and offers a path toward reproducible research and robust deployment of ethical AI.
Introduction: Addressing the "Paperware" Problem
The field of AI and Machine Learning faces a "reproducibility crisis," exacerbated by what the authors call paperware: standalone code packages abandoned immediately after publication. These tools often lack documentation, testing, and maintenance, making them difficult to integrate into real-world systems. Furthermore, the lack of standardized evaluation frameworks forces researchers to "reinvent the wheel" when checking for bias or generating explanations, leading to inconsistent results and high barriers to entry for ethical AI safeguards.
Methodology: Modularity and Interoperability
FAT Forensics is built on the standard scientific Python stack (NumPy and SciPy) and emphasizes modularity. Key features include:
- Dual Operation Modes: A Research Mode for interactive exploratory analysis (e.g., Jupyter Notebooks) and a Deployment Mode for numerical analytics integrated into automated pipelines (CI/CD, monitoring).
- The bLIMEy Meta-algorithm: A modular framework for building surrogate explainers. It allows users to swap components for data sampling, interpretable representation, and explanation generation to create bespoke tools.
- Model Agnosticism: By assuming a standard
fit/predictinterface, the toolbox can wrap models from scikit-learn, TensorFlow, or PyTorch. - Atomic Decomposition: Techniques are broken into reusable "building blocks," such as feature grouping or density estimation.
Evaluation and Results
The authors demonstrate the toolbox using the UCI Census Income (Adult) dataset, a benchmark in fairness research.
Fairness Auditing
Using FAT Forensics, the authors identified systematic biases. While "equal opportunity" appeared relatively fair across racial groups, metrics like "equal accuracy" and "demographic parity" revealed significant disparities, particularly for the 'Other' and 'Asian-Pac-Islander' sub-populations.
Accountability and Transparency
The tool identified performance disparities linked to sample-size imbalances. Additionally, the authors introduced LIMEtree, a surrogate explainer built with the toolbox's modular components, which provides more faithful and consistent explanations than standard LIME.
Key Insights
- Decoupling Logic: Separating core algorithms from visualization ensures utility in both headless production servers and research notebooks.
- Density as Trust: Neighbor-based density estimation helps identify unreliable predictions in sparse data regions, flagging potentially "unrealistic" counterfactuals.
- Robustness over Wrappers: Instead of wrapping existing libraries (and their bugs), FAT Forensics builds tools from the ground up using modular components to ensure accountability.
Limitations and Future Work
Currently optimized for tabular data and scikit-learn APIs, future versions of FAT Forensics aim to support:
- Sensory Data: Native handling of images and text.
- Deep Learning: Enhanced support for neural network-specific transparency techniques.
- Ecosystem Integration: Wrapping other prominent FAT packages under a unified API.
Summary updated