Monitoring of Static Fairness

Thomas A. Henzinger, Mahyar Karimi, Konstantin Kueffner, Kaushik MallikarXiv 2025 · DOI

Abstract

Ensuring fairness in automated decision-making systems is a critical challenge as these systems are increasingly deployed in high-stakes domains. While static auditing techniques exist, they often fail to account for the dynamic, stateful nature of real-world deployments. This paper presents a framework for the runtime monitoring of algorithmic fairness in systems modeled as Markov chains. By introducing specialized specification languages and leveraging concentration inequalities, the authors provide monitors that offer real-time fairness estimates with provable statistical guarantees. The approach distinguishes between pointwise and uniform soundness, ensuring reliability across entire execution traces. Experimental results demonstrate that these monitors are computationally efficient and provide tighter error bounds than existing methods.

Introduction

The deployment of machine learning models in sectors like finance, education, and criminal justice has sparked significant research into algorithmic fairness. Most existing approaches focus on "pre-processing" data or "post-processing" model outputs to satisfy fairness constraints like demographic parity or equal opportunity. However, these methods typically assume that decisions are independent and identically distributed (i.i.d.) and that the system's environment is static. In practice, many systems are stateful; for instance, a bank's ability to grant a loan today may depend on the outcomes of loans granted yesterday. This paper bridges the gap by providing a rigorous framework for monitoring fairness in Markovian systems at runtime.

Problem Statement and Modeling

The core challenge lies in monitoring systems where the internal state is either fully or partially observable. The authors model the decision-maker as a generator of events following a Markovian structure. To specify fairness properties, they introduce Bounded Specification Expressions (BSE) for Partially Observed Markov Chains (POMCs) and Probabilistic Specification Expressions (PSE) for fully observable Markov Chains (MCs).

The POMC model used to represent a bank's lending decisions. States include applicant groups (A, B), credit scores (1-4), and outcomes (Yes/No).

As shown in the figure above, a lending system can be represented as a POMC where the state includes the applicant's group and credit score, leading to a binary outcome. Monitoring such a system requires accounting for the transitions between states and the resulting dependencies in the decision stream.

Methodology

The framework provides two levels of statistical guarantees:

  1. Pointwise Soundness: Ensures the monitor's verdict is correct at any specific time $t$ with high probability.
  2. Uniform Soundness: Ensures the monitor's verdict remains correct across the entire execution trace. This is a significantly harder property to satisfy, requiring wider confidence intervals that grow according to the Law of the Iterated Logarithm.

For POMCs, the authors adapt McDiarmid-style concentration inequalities. This method relies on the "mixing time" of the system—the time it takes for the Markov process to reach its steady-state distribution. For MCs, they employ a "random reshuffling" technique. By storing counters and generating i.i.d. Bernoulli variables on the fly, the monitor can use Hoeffding’s inequality for pointwise bounds and Howard’s "stitching" bounds for uniform bounds, resulting in high memory efficiency and tight confidence intervals.

Evaluation and Results

The proposed monitors were evaluated across three distinct scenarios:

  • Lending: Monitoring demographic parity and equal opportunity in a bank model.
  • College Admissions: Assessing "Social Burden," defined as the expected cost for students to reach admission thresholds.
  • Hypercube Walk: A synthetic test case used to analyze the impact of mixing time on monitor convergence.

Key results indicate that the monitors are exceptionally fast, with update times ranging from 13µs to 54µs. This makes them suitable for high-throughput production environments. Furthermore, the monitors successfully converged to ground-truth fairness values in all experiments, providing tighter confidence intervals than previous state-of-the-art runtime monitors.

Discussion and Future Work

A critical insight from this work is the dependency on mixing time for partially observed systems. If the mixing time is unknown or poorly estimated, the monitor's utility may be limited by overly conservative bounds. Additionally, while the current monitors are passive observers, they lay the groundwork for "active" monitoring or "shielding," where a monitor could intervene in real-time to prevent biased decisions. Future research will also explore more efficient model-checking procedures to complement runtime verification.

Conclusion

This paper provides a mathematically grounded approach to ensuring algorithmic fairness in dynamic, stateful environments. By moving beyond i.i.d. assumptions and providing provable statistical bounds, the framework offers a practical path toward more accountable and transparent automated decision-making systems.

Summary updated

BibTeX
@misc{henzinger2025monitoring,
  author = {Thomas A. Henzinger and Mahyar Karimi and Konstantin Kueffner and Kaushik Mallik},
  title = {{Monitoring of Static Fairness}},
  year = {2025},
  eprint = {2507.03048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.03048},
}
Figure