NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Robust Conditional Probabilities

Yoav Wald, Amir Globerson

In the world of machine learning, we often take conditional probabilities—the likelihood of a label $Y$ given an input $X$—for granted. We train a model (like a neural network or logistic regression), it spits out a number like 0.95, and we say, "The model is 95% sure." But that 95% is tied to the specific assumptions of that model. If those assumptions are wrong, that "confidence" is a house of cards.

In their paper Robust Conditional Probabilities, Yoav Wald and Amir Globerson propose a "model-free" way to reason about these probabilities, providing guaranteed bounds that don't rely on shaky parametric assumptions.

The Problem with Standard Inference

Most machine learning inference relies on modeling the distribution—assuming the data follows a specific form, such as a log-linear model or a conditional random field. However, these models rarely come with guarantees. If you use a model that assumes features are independent when they aren't, your probability estimates will be biased and potentially overconfident.

This is particularly problematic in semi-supervised learning or active learning, where a learner must decide which unlabeled samples are "safe" to label automatically. If a model is overconfident about a wrong label, it will "hallucinate" certainty and corrupt the training process. The authors ask: Can we find the absolute minimum probability a label could have, given only the basic statistics we've observed?

A Model-Free Approach to Certainty

The core idea is to move from point estimation (finding one "best" probability) to set-based reasoning.

  1. The Constraint Set: Instead of picking one distribution $p^*$, the authors consider the set of all possible distributions $\mathcal{P}(\mu)$ that are consistent with observed low-order marginals (e.g., "How often does Feature A appear with Label Y?").
  2. Robust Optimization: They define the "Robust Conditional" as the minimum possible value of $P(Y|X)$ across every single distribution in that set. If this lower bound is high, you can be certain of the prediction regardless of the model's specific structure.
  3. Tractability via Trees: Normally, optimizing over all possible distributions is NP-hard because the number of possible assignments grows exponentially. The authors show that if the marginals form a tree-structured graph, the problem can be solved in polynomial time using Linear Programming (LP).
  4. Closed-Form Solutions: For multiclass problems, they derive an elegant closed-form solution that allows these bounds to be calculated almost instantly, making them practical for deep learning.

Key Insights

  • Model-Free Certainty: The most powerful idea here is that you don't need a "perfect" model to be certain. If the data's basic correlations (marginals) are strong enough, any valid distribution must assign a high probability to the correct label.
  • The "Exclusion" Principle: To find the lower bound of $P(y|x)$, the authors show it's equivalent to maximizing the probability of all other labels. This reduces a fractional optimization problem to a simpler linear one.
  • Robustness as a Regularizer: In deep learning, they use these robust bounds as a replacement for "Entropy Regularization." Instead of just asking the model to be confident, they force it to learn features that result in high robust lower bounds.

Experimental Results

The authors evaluated their approach on two distinct tasks: MNIST (for semi-supervised learning) and Genbase (a protein classification dataset for multilabel structured prediction).

Competitive Semi-Supervised Learning

On MNIST with 1,000 labeled samples, the Robust Probabilities method achieved an error rate of 2.48%. This is significantly better than standard Entropy Regularization (3.15%) and nearly matches the performance of much more complex Variational Autoencoders (2.40%).

Semi-supervised learning error rates on MNIST. Robust Probabilities perform competitively with VAEs and outperform standard Entropy Regularization.

High-Precision Ranking and Calibration

In the Genbase experiment, the robust bounds were extremely effective at identifying correct predictions. For 85% of the samples, the robust lower bound was above 0.99. In that high-confidence group, the error rate was a tiny 0.59%.

Furthermore, "Accuracy vs. Coverage" curves demonstrate that the robust method is better at ranking its own certainty than standard neural network outputs (logits).

Accuracy vs. Coverage curves demonstrating that the robust method provides better calibration and ranking of its own certainty compared to standard outputs.

Limitations and Future Work

  • Tree Assumption: The most efficient algorithms in the paper require the feature correlations to form a tree. While the authors suggest using a "Maximum Spanning Tree" to approximate cyclic graphs, the bounds become less tight in highly loopy networks.
  • Discrete Variables: The current framework is designed for discrete variables. While they used a "smoothed" version for continuous deep learning activations, a native extension to continuous distributions remains an open challenge.
  • Scaling to Structured Output: While they touched on structured prediction, integrating the complex Max-Flow algorithms required for general graphs into a standard deep learning training loop is computationally demanding.

Summary updated

BibTeX
@inproceedings{wald2017robust,
  author = {Yoav Wald and Amir Globerson},
  title = {{Robust Conditional Probabilities}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=S1ZfHDZOZH},
}
Figure