Abstract Robustness studies of black-box models is recognized as a necessary task for numerical models based on structural equations and predictive models learned from data. These studies must assess the model’s robustness to possible misspecification of regarding its inputs (e.g., covariate shift). The study of black-box models, through the prism of uncertainty quantification (UQ), is often based on sensitivity analysis involving a probabilistic structure imposed on the inputs, while ML models are solely constructed from observed data. Our work aim at unifying the UQ and ML interpretability approaches, by providing relevant and easy-to-use tools for both paradigms. To provide a generic and understandable framework for robustness studies, we define perturbations of input information relying on quantile constraints and projections with respect to the Wasserstein distance between probability measures, while preserving their dependence structure. We show that this perturbation problem can be analytically solved. Ensuring regularity constraints by means of isotonic polynomial approximations leads to smoother perturbations, which can be more suitable in practice. Numerical experiments on real case studies, from the UQ and ML fields, highlight the computational feasibility of such studies and provide local and global insights on the robustness of black-box models to input perturbations.
Introduction
In the fields of Machine Learning (ML) and Uncertainty Quantification (UQ), models are frequently treated as "black boxes." While these models provide powerful predictive capabilities, their reliability under distributional shifts—such as changes in covariate distributions—remains a critical concern. A recent study by Il Idrissi et al. proposes a unified mathematical framework to address these "what-if" scenarios by bridging optimal transport theory with intuitive quantile constraints. This approach allows researchers to test model robustness for both data-driven neural networks and physics-based simulations.
Methodology: Quantile-Constrained Wasserstein Projections
The core of the proposed framework is the Quantile-constrained Wasserstein projection. Unlike traditional metrics like Kullback-Leibler divergence, the 2-Wasserstein distance measures the geometric "work" required to transform one distribution into another. This makes it particularly suited for moving probability mass into previously unobserved regions of the input space.
To make these perturbations interpretable for domain experts, the framework allows users to set specific constraints on quantiles (e.g., "what happens if the 90th percentile of this variable increases?").
Copula Preservation and Smoothing
A significant challenge in perturbing individual variables is maintaining their relationship with other inputs. The authors utilize a "marginal perturbation map" that alters a single variable's distribution while keeping its copula (underlying dependency structure) intact.
Furthermore, the raw analytical solution to the Wasserstein projection often results in "spiky" or atomic distributions. To ensure the perturbed distributions are practical for continuous models, the authors introduce isotonic piece-wise polynomial smoothing. By forcing these polynomials to be non-decreasing, the resulting distributions are smooth and realistic for real-world testing.
Experimental Validation
The framework was validated on two distinct case studies:
- Acoustic Fire Extinguisher Dataset: A classification task involving ~15,000 samples to predict fire extinction based on acoustic and airflow features.
- Hydrological Model: A numerical model based on Saint-Venant equations used to predict river water levels, focusing on parameters like the Strickler roughness coefficient.
Key Insights
- Analytical and Efficient: The authors demonstrated that the "closest" distribution satisfying quantile constraints can be solved analytically. When smoothing is required, the problem is formulated as a convex quadratic program, solvable in seconds even for high-degree polynomials.
- Stability of Feature Importance: In the fire extinguisher case, "Shapley effects" (feature importance) remained stable under perturbation, confirming the model's internal logic.
- Identifying Fragility: The method revealed "fragile" zones in the ML model—specific input ranges where small perturbations caused predictions to flip—and showed that surrogate models might fail to capture extreme "tail risks" in hydrological simulations.
Conclusion
This framework provides a generic, interpretable, and computationally efficient tool for stress-testing black-box models. By unifying UQ and ML perspectives, it offers a path toward more robust and transparent AI and numerical modeling. Future work will explore automated polynomial degree selection and extending the framework to multivariate quantile constraints.
Summary updated