Abstract
The Benjamini-Hochberg (BH) procedure is a cornerstone of statistical inference, widely utilized to control the False Discovery Rate (FDR) in large-scale multiple testing scenarios. As machine learning (ML) increasingly integrates BH for tasks such as out-of-distribution (OOD) detection and anomaly screening, its robustness in adversarial environments becomes a critical concern. This paper investigates the adversarial robustness of the BH procedure, demonstrating that its statistical guarantees can be significantly compromised by minimal perturbations. By reframing BH as a combinatorial "balls into bins" process and utilizing generalized ballot problems, we derive non-asymptotic lower bounds on FDR inflation. Our findings reveal that even a single strategically perturbed test score can lead to a catastrophic breakdown of FDR control, particularly when the underlying signal is weak.
Introduction
In the era of high-dimensional data, the problem of multiple testing is ubiquitous. Whether identifying fraudulent transactions or screening for biological markers, researchers must balance the discovery of true signals against the risk of false positives. The Benjamini-Hochberg (BH) procedure has long been the gold standard for this task, offering a distributionally robust method to maintain the False Discovery Rate (FDR) below a pre-specified threshold $q$.
However, the deployment of BH in security-sensitive ML pipelines—such as malware detection or financial monitoring—introduces a new threat model: the strategic adversary. While BH is robust to unknown data distributions, its vulnerability to adversarial manipulation remains under-explored. This study addresses this gap, questioning whether an adversary can trick the BH procedure into accepting a disproportionate number of false positives through subtle, localized perturbations of test scores.
Methodology: A Combinatorial Perspective
To analyze the mechanics of BH under pressure, we move beyond traditional p-value distributions and reframe the procedure as a combinatorial "balls into bins" process. In this model, p-values are treated as balls falling into sequential bins that represent probability intervals. The BH algorithm identifies the largest index $k$ such that the $k$-th smallest p-value is less than or equal to $kq/n$. In our framework, this is equivalent to finding the largest sequence of bins that maintains a specific density of balls.
Adversarial Algorithms
We introduce two primary algorithms designed to manipulate the BH threshold:
INCREASE-c: A heuristic approach where an adversary selects $c$ null p-values (representing normal data) and decreases their values to force them into the rejection region. This expansion of the rejection threshold causes the algorithm to "sweep up" many unperturbed null points, incorrectly flagging them as discoveries.MOVE-1: A mathematically optimal algorithm for an adversary restricted to perturbing exactly one ($c=1$) p-value.
Our technical analysis employs martingales and generalized ballot problems to provide non-asymptotic guarantees on the expected adversarial adjustment to the FDR, providing a theoretical foundation for the observed fragility.
Experimental Results
Synthetic Simulations
We evaluated the impact of perturbations on synthetic datasets where p-values were derived from normal distributions. We tested varying signal strengths, represented by the distance between the means of "normal" and "anomaly" distributions ($\mu_1$).
- Weak Signal ($\mu_1=0$): With a target FDR of 10% ($q=0.10$), perturbing just one p-value out of 1,000 caused the actual FDR to skyrocket to 99%.
- Moderate Signal ($\mu_1=1$): Even with a more distinguishable signal, a single perturbation raised the FDR to 75%, rendering the statistical guarantee meaningless.
Real-World Application: Fraud Detection
To test these vulnerabilities in a realistic setting, we applied the BH procedure to a Kaggle dataset of European credit card transactions. We utilized an Isolation Forest to generate conformal p-values for flagging fraud.
In the absence of an adversary, the system maintained an FDR of 0.09, successfully staying below the 0.10 target. However, when an adversary was allowed to perturb just 10 out of 1,000 test points, the FDR more than doubled to 0.23. Increasing the perturbations to 20 points pushed the FDR to 0.31. These results confirm that the theoretical vulnerabilities of BH translate directly to modern ML pipelines.
Key Insights
The Signal-Robustness Trade-off
Our analysis reveals a critical dichotomy: BH's robustness is inversely proportional to the strength of the signal. When anomalies are distinct and "far" from the null distribution, the procedure is highly robust. However, when signals are subtle—the very scenario where BH's distributional robustness is most valued—the procedure sits at a "tipping point." An attacker can exploit this conservative state to trigger a cascade of false discoveries.
Disproportionate Impact
A primary takeaway is the efficiency of these attacks. An adversary does not need to corrupt a large portion of the dataset. Because BH uses a dynamic, step-up threshold, a single strategic move can shift the entire rejection boundary, leading to a disproportionate increase in false positives.
Conclusion
The Benjamini-Hochberg procedure, while powerful, possesses a significant blind spot regarding adversarial robustness. In environments where test scores can be manipulated, the theoretical FDR guarantees provided by BH can be easily circumvented. This fragility suggests that for security-critical applications, researchers and practitioners should look beyond standard step-up procedures or develop new variants specifically designed to withstand strategic perturbations. Future research will explore whether other members of the step-up family share these catastrophic failure modes.
Summary updated