FAT Forensics: A Python Toolbox for Implementing and Deploying Fairness, Accountability and Transparency Algorithms in Predictive Systems

Kacper Sokol, Alexander Hepburn, Rafael Poyiadzi, Matthew Clifford, Raúl Santos-Rodríguez, Peter A. FlacharXiv 2022 · DOI

Introduction

As predictive systems and machine learning algorithms increasingly make life-altering decisions—from credit scoring to legal sentencing—the lack of regulation and certification poses significant risks. While the research community has developed various methods to address Fairness (avoiding bias), Accountability (ensuring robustness and security), and Transparency (explaining how decisions are made), these tools are often fragmented. FAT Forensics addresses this by providing an open-source Python toolbox designed to integrate Fairness, Accountability, and Transparency (FAT) into every stage of the machine learning pipeline.

The Challenge of FAT Integration

Existing solutions frequently exist as standalone packages with incompatible APIs, making it difficult for practitioners to evaluate a system holistically. Furthermore, "Accountability" is often neglected in favor of fairness and transparency. FAT Forensics aims to bridge these gaps by providing a "one-stop-shop" that works across the entire predictive pipeline: from the raw data and features to the models and their final outputs.

Modular Architecture and Methods

The core of FAT Forensics is its modular architecture. Rather than being a monolithic library, it is built from shared functional building blocks. This design allows users to create new FAT algorithms simply by "connecting the right blocks," such as pairing a specific data augmenter with a transparent local model.

The modular architecture of FAT Forensics, illustrating the layers from data and models to FAT functionality and presentation.

Key technical features include:

  • Interoperability: It relies on standard data structures (2D NumPy arrays) and follows the scikit-learn "fit/predict" paradigm. This ensures it can be dropped into existing projects with minimal friction.
  • Two Modes of Operation:
    • Research Mode: Optimized for interactive environments like Jupyter Notebooks. It follows a "data in – visualization out" flow, helping researchers prototype and compare new metrics.
  • Deployment Mode: Designed for automated pipelines. It follows a "data in – data out" flow, producing numerical analytics for dashboards and monitoring systems.
  • Holistic Auditing: The toolbox can inspect three distinct elements: the data (and its features), the model itself, and the individual predictions.

Key Pillars and Insights

Unlike many FAT tools that focus solely on bias or explainability, FAT Forensics explicitly includes accountability features like robustness, security, safety, and privacy. By providing a common API, the toolbox lowers the barrier for researchers to compare their novel algorithms against the state-of-the-art.

Because it assumes models are plain Python objects with standard methods, it can easily wrap models from other libraries (like TensorFlow or PyTorch) without requiring them as hard dependencies. Furthermore, the authors emphasize a "four-pillar" documentation strategy—narrative tutorials, how-to guides, technical API docs, and a theoretical user guide—to build user confidence and ensure long-term maintainability.

Conclusion

The primary result of this work is the release of the fat-forensics package under the BSD 3-Clause license. It successfully collates functionality that was previously scattered across numerous libraries (such as LIME, Fairlearn, and the Adversarial Robustness Toolbox) into a single, cohesive framework. While the authors acknowledge that accountability remains relatively underexplored in the software landscape, the modular design of FAT Forensics makes the process of creating new algorithms significantly easier, supporting a diverse range of use cases from academic research to industrial deployment.

Summary updated

BibTeX
@misc{sokol2022fat,
  author = {Kacper Sokol and Alexander Hepburn and Rafael Poyiadzi and Matthew Clifford and Raúl Santos-Rodríguez and Peter A. Flach},
  title = {{FAT Forensics: A Python Toolbox for Implementing and Deploying Fairness, Accountability and Transparency Algorithms in Predictive Systems}},
  year = {2022},
  eprint = {2209.03805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.03805},
}
Figure