High Confidence Safety Guarantees for Machine Learning

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 118 papers19 conceptsfrozen 2026-10-04

In high-stakes domains like medicine, criminal justice, and autonomous systems, "mostly safe" is not enough. Standard machine learning models typically treat safety or fairness as a soft penalty in a loss function—a trade-off where a bit more accuracy might be bought at the cost of a few more "errors" in sensitive areas.

A growing body of research, often referred to under the umbrella of Seldonian algorithms, proposes a different approach. Instead of treating safety as a negotiable objective, these frameworks provide rigorous, high-probability guarantees that a model will satisfy user-defined constraints before it is ever deployed.

The Problem of Safety Overfitting

The fundamental challenge in safe machine learning is that we only have access to a finite amount of data. If we optimize a model to be both accurate and fair on a single dataset, the optimization process will naturally exploit noise in that data. The model might appear fair on the training set simply because it found a specific configuration that happens to look good by chance, a phenomenon we can think of as "overfitting to the safety constraint."

When this model is deployed on new data, those coincidental patterns vanish, and the safety guarantees evaporate. To solve this, researchers like Philip S. Thomas and Blossom Metevier have championed a structural separation between the search for a model and the verification of its safety.

The Mechanism: Split Sample Calibration

The core mechanism behind these guarantees is a rigorous split-sample framework. Rather than using the entire dataset for training, the data is partitioned into two distinct sets:

  1. Candidate Selection Set: This data is used to search for the best possible model (the "candidate"). During this phase, the algorithm can use any optimization technique—gradient descent, reinforcement learning, or even heuristics—to find a model that it thinks will be safe and effective.
  2. Safety Test Set: This is a "vault" of data that the optimization process never sees. Once a candidate model is chosen, it is subjected to a one-time statistical test on this held-out data.

The intuition here is borrowed from clinical trials. You don't get to look at the results of the trial to decide which drug to test; you must nominate the drug first and then run the trial. In papers like Learning Treatment Allocations with Risk Control Under Partial Identifiability, Sofia Ek and Dave Zachariah use this split to ensure that medical treatment policies don't exceed a specific "treatment risk" threshold—the probability of treating a patient who won't benefit.

Building the Safety Certificate

The "guarantee" in these algorithms is usually a probabilistic bound. A user specifies a confidence level (e.g., $1-\delta = 0.95$) and a safety threshold (e.g., $\epsilon$). The algorithm then ensures that the probability of the model violating the constraint is less than $\delta$.

To achieve this, the safety test uses concentration inequalities (like Hoeffding's or Student's t-test) to calculate a high-confidence upper bound on the model's risk. If this upper bound is below the user's threshold, the model is "accepted" and deployed with a certificate of safety. If the bound is too high, the algorithm returns "No Solution Found," preferring to deploy nothing rather than something potentially harmful.

This "gatekeeping" logic is central to Safe Evaluation For Offline Learning by Hager Radi and Josiah P. Hanna, where they ensure an offline reinforcement learning policy truly outperforms the status quo before deployment.

Applications Across Domains

This framework is highly flexible because the "safety constraint" can be almost anything:

Why It Works: Decoupling Utility from Risk

The power of this research direction lies in its sobriety. It acknowledges that optimization is aggressive and will "cheat" if given the chance. By decoupling the optimization of utility (finding a good model) from the verification of risk (the safety test), these frameworks provide a mathematically sound way to say "no" to a model.

As Matteo Sesia and Lars Lindemann show in their work on Conformal Predictive Programming, this approach allows us to solve complex optimization problems while maintaining reliability guarantees that don't degrade as the system becomes more sophisticated. It moves machine learning from a world of "best efforts" to a world of certifiable reliability.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_high_confidence_safety_guarantees_for_ma_3c3c3944,
  title = {High Confidence Safety Guarantees for Machine Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/high-confidence-safety-guarantees-for-machine-learning/rdr_3c3c39448a80478da664ab773255cdcc},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_high_confidence_safety_guarantees_for_ma_3c3c3944_v1,
  title = {High Confidence Safety Guarantees for Machine Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/high-confidence-safety-guarantees-for-machine-learning/rdr_3c3c39448a80478da664ab773255cdcc/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}