TL;DR
Continuous auditing of multi-stream machine learning systems often relies on conservative Bonferroni corrections that fail to exploit widespread system failures. This paper introduces a "balanced" sequential test that blends average and product martingale-merging rules. The resulting test matches the performance of standard methods when failures are rare (sparse) but drastically accelerates detection times when failures are widespread (dense).
What Problem Does This Paper Address?
As machine learning models are increasingly deployed in high-stakes environments like healthcare and criminal justice, we need ways to continuously audit them in real time. This is often modeled as a sequential hypothesis testing problem across multiple ($k$) parallel data streams (e.g., checking if a medical imaging model performs fairly across different demographic groups or scanning modalities).
The goal is to sound an alarm the moment the system fails on any stream—a setup known as testing a global null hypothesis. The standard approach applies a Bonferroni correction to individual stream tests. However, Bonferroni only tracks the single worst-performing stream. If a model is systematically underperforming across many streams simultaneously (a "dense alternative"), Bonferroni wastes valuable statistical evidence, resulting in unnecessarily long delays before an alarm is raised.
Methods
The authors frame the problem using the testing-by-betting framework. Instead of computing traditional p-values, the auditor starts with a baseline wealth of 1 and places sequential bets against the null hypothesis on each stream. If the null is false, the auditor's wealth grows exponentially, forming a test martingale. Bets are dynamically optimized using the Online Newton Step (ONS) algorithm.
To test the global null hypothesis, the paper explores different ways to merge the wealth accumulated across all $k$ streams:
- Product Wealth Process ($\phi^{\text{prod}}$): Multiplies the wealth of all streams. It provides massive evidence when many streams fail but performs poorly if only a few streams fail.
- Average Wealth Process ($\phi^{\text{ave}}$): Averages the wealth across streams. It is robust to sparse failures but doesn't fully exploit dense ones.
- Balanced Sequential Test ($\phi^{\text{balance}}$): The core novelty of the paper. It splits initial wealth equally between the average and product strategies: $$W^{\text{balance}}_t = \frac{1}{2}W^{\text{ave}}_t + \frac{1}{2}W^{\text{prod}}_t$$
By analyzing the expected stopping times (the time it takes for wealth to cross the rejection threshold $1/\alpha$), the authors prove that this simple combination inherits the theoretical strengths of both regimes.
Datasets
The methods were validated using both synthetic simulations and a real-world machine learning auditing scenario:
- Synthetic Data: Streams simulated using uniform distributions with varying dimensions ($k \in \{25, 100, 250\}$) and varying proportions of failing streams (from 1% to 75%) to test sparse, moderate, and dense failure settings.
- ConceptCLIP Evaluation: A real-world dataset evaluating ConceptCLIP, a medical vision-language model. The authors audited the model's zero-shot multiaccuracy across $k=10$ distinct groups defined by the intersection of imaging modalities and anatomical regions (e.g., lung CT, chest X-ray, retinal OCT, colon endoscopy).
Key Insights and Ideas
- The Product Rule's Achilles' Heel: Multiplying martingales creates an incredibly powerful test under dense alternatives. However, if even a few streams conform to the null hypothesis, their wealth will fluctuate around 1, heavily dragging down the overall product and preventing the test from rejecting in sparse settings.
- Hedging via Linear Combinations: Splitting wealth evenly between two merging rules acts as a flawless statistical hedge. Whichever process takes off under the true alternative will quickly dominate the sum.
- The "Cheap" Cost of Ignorance: Choosing the balanced test over a perfectly tailored test costs only a constant factor of 2 in wealth. In terms of stopping time, this penalty is negligible, meaning you get universal robustness across all failure patterns for free.
Key Results
- Dense Regime Superiority: When 75% of the synthetic streams were faulty, the product and balanced tests rejected the null hypothesis significantly faster than Bonferroni, matching the predicted theoretical speedup from $O(\ln \frac{k}{\alpha})$ down to $O(\frac{1}{k} \ln \frac{1}{\alpha})$.
- Sparse Regime Robustness: When only 1% of streams were faulty, the product test failed completely, while the balanced test successfully matched the rapid detection times of the Bonferroni and average tests.
- Real-World Auditing: ConceptCLIP exhibited systematic bias in 8 out of 10 sub-groups. The balanced and product tests flagged this widespread bias almost immediately ($t < 50$ steps). When the data was post-processed to simulate a sparse failure (biasing only the colon endoscopy stream), the balanced test automatically adapted, matching Bonferroni's quick detection while the pure product test lagged behind.
Limitations and Future Work
While the paper establishes strong theoretical guarantees for expected stopping times, it primarily focuses on bounded mean tests where data streams are assumed to be independent. The authors note that the product rule's dominance relies on this independence. Future work could explore how these merging strategies behave under highly correlated data streams or extend the framework to handle more complex, unbounded data distributions and online False Discovery Rate (FDR) control.
Summary updated