PAC Confidence Sets for Deep Neural Networks via Calibrated Prediction

TL;DR

PAC Confidence Sets combine temperature scaling with a binomial generalization bound, yielding finite-sample coverage on ImageNet, tracking, and Half-Cheetah.

cs.LG 🔴 Advanced 2020-01-01 19 views
Sangdon Park Osbert Bastani Nikolai Matni Insup Lee
PAC learning confidence sets temperature scaling deep learning conformal prediction

Key Findings

Methodology

The paper first trains a neural probability forecaster by maximum likelihood, then calibrates it by fitting only a scalar temperature τ. It defines C_T(x)={y:f(y|x)≥e^-T}, minimizes the scalar size metric T, and constrains validation error. Theorem 1 selects α(n,ε,δ) through a binomial tail, giving P(L(C_T̂)>ε)<δ. Sorting validation examples yields an efficient exact threshold.

Key Results

  • For ResNet on ImageNet, the study uses 20,000 validation images with ε=0.01 and δ=10^-5. The authors report a noticeable reduction in maximum set size from calibrated probabilities; the VC-bound ablation is infeasible under the default parameters, whereas Theorem 1 produces valid sets.
  • For visual tracking, the Wu et al. benchmark contains 99 labeled video sequences and uses n=5,000, ε=0.01, and δ=10^-5. A Gaussian regressor predicts (xmin,ymin,xmax,ymax); the resulting ellipsoidal set is overapproximated by a box that contains the ground-truth box with high probability.
  • Ablations show that the direct binomial bound is substantially more useful than the VC-dimension-1 bound. Incorrectly classified ImageNet examples receive much larger sets, and ε affects set size far more strongly than logarithmically scaled δ.

Significance

Deep networks commonly produce overconfident probabilities even when test data are in distribution. This work turns calibrated probabilities into input-dependent sets with finite-sample PAC coverage, exposing both alternative labels and an interpretable risk guarantee. The framework offers a bridge between modern deep prediction and safety-oriented statistical decision making in medicine, robotics, and reinforcement learning. Its significance is practical as well as theoretical: a system can abstain or plan conservatively when its set expands. The guarantee, however, is distributional rather than adversarial or out-of-distribution.

Technical Contribution

The main contribution is separating high-dimensional model fitting from one-dimensional risk control. The neural parameters φ̂ may be complex, but calibration fits only τ and set construction fits only T, enabling a low-complexity analysis. Theorem 1 chooses k through ∑_{i=0}^k C(n,i)ε^i(1−ε)^{n−i}<δ. Algorithm 1 then sorts validation likelihoods and obtains T in essentially O(n log n) time. The framework covers classification, Gaussian regression, and multi-step model-based RL trajectories.

Novelty

Temperature scaling traditionally improves probability calibration without a formal coverage guarantee. Conformal prediction offers related finite-sample validity, but this paper explicitly combines calibrated deep predictors, a PAC optimization view, and an efficient threshold algorithm, while extending the construction to reinforcement-learning dynamics. The fundamental novelty is therefore the integrated, computable confidence-set framework—not temperature scaling itself.

Limitations

  • The guarantee assumes exchangeability between calibration, validation, and deployment data. Under distribution shift, adversarial examples, or severe class imbalance, the stated coverage may fail even if the neural predictor appears well calibrated.
  • Regression relies on Gaussian predictive densities, while the RL extension accumulates one-step variances heuristically. These choices may misrepresent heavy-tailed, multimodal, or strongly correlated trajectory uncertainty.
  • Incorrect predictions can produce very large sets, preserving coverage but reducing usefulness for downstream decisions.

Future Work

Future research should develop distributionally robust and class-conditional coverage, adaptive thresholds under shift, and principled sequence-level uncertainty for dynamics models. Comparisons with modern conformal and risk-controlling prediction are natural. Another direction is to train the forecaster with set compactness or downstream control cost directly, rather than treating the probability model as fixed.

AI Executive Summary

Deep neural networks often report probabilities that look precise but are systematically overconfident. Temperature Scaling can improve calibration, yet it does not say how often a reported prediction set contains the truth. Park and colleagues’ ICLR 2020 paper addresses this gap with PAC Confidence Sets for Deep Neural Networks via Calibrated Prediction: construct the smallest practical set while controlling its population error with explicit finite-sample confidence.

The pipeline first fits a neural probability forecaster by maximum likelihood, then calibrates it by learning one temperature parameter τ. A scalar threshold T defines C_T(x)={y:f(y|x)≥e^-T}. On an independent validation set, the algorithm minimizes T subject to an empirical error budget α. Theorem 1 chooses α using a binomial tail, and Algorithm 1 obtains the optimal threshold by sorting the true-label probabilities. Complex representation learning is therefore separated from low-dimensional statistical control.

Experiments cover ResNet on ImageNet, visual object tracking, and Half-Cheetah dynamics. ImageNet uses 20,000 validation images with ε=0.01 and δ=10^-5; calibration reduces maximum set size, while the VC-bound baseline is infeasible at these settings. Tracking uses 99 video sequences and n=5,000, producing boxes that cover ground truth with high probability. The method is promising for diagnosis, robotics, and safe RL, but assumes in-distribution data and uses Gaussian or heuristic trajectory uncertainty models.

Deep Analysis

Background

Softmax confidence is often misaligned with accuracy. Platt’s Temperature Scaling and Guo et al.’s calibration work improve probability quality, but do not provide finite-sample coverage. Conformal Prediction supplies related validity guarantees, yet the paper emphasizes calibrated deep predictors, explicit PAC optimization, and applications beyond classification.

Core Problem

Given x, construct a set C(x) such that P(y∈C(x))≥1−ε, with probability at least 1−δ over the validation sample, while minimizing average set size. The challenge is that the neural model is high-dimensional and overfit, whereas coverage and compactness pull in opposite directions.

Innovation

  • �� Separate neural training, temperature calibration, and threshold selection.
  • �� Use a one-dimensional nested family C_T for tractable generalization analysis.
  • �� Replace a loose VC bound with Theorem 1’s binomial-tail criterion.
  • �� Solve the constrained problem by sorting validation likelihoods.
  • �� Extend the same principle to classification, Gaussian regression, and model-based RL.

Methodology

  • �� Training: minimize −∑log fφ(y|x) on Z_train to obtain φ̂.
  • �� Calibration: fit τ on a second dataset using fφ̂,τ(y|x)∝exp(τ log fφ̂(y|x)).
  • �� Set family: C_T(x)={y:fφ̂,τ(y|x)≥e^-T}; use S(T)=T.
  • �� Statistical control: choose the largest k/n satisfying ∑_{i=0}^k C(n,i)ε^i(1−ε)^{n−i}<δ.
  • �� Optimization: sort validation points by true-label probability and set T̂=−log f(yk*+1|xk*+1).
  • �� Regression uses Gaussian density; trajectories use accumulated one-step covariance and a joint Gaussian forecaster.

Experiments

The benchmarks are ResNet/ImageNet classification, the Held et al. visual single-object tracker, and a Chua et al. probabilistic Half-Cheetah dynamics model. ImageNet uses n=20,000 validation images; tracking uses 99 video sequences and n=5,000. Default parameters are ε=0.01 and δ=10^-5. Ablations compare calibrated versus uncalibrated probabilities and Theorem 1 versus the VC bound; sensitivity to ε and δ is also examined.

Results

On ImageNet, calibration reduces the maximum confidence-set size and the direct bound succeeds where the VC baseline is infeasible at default ε and δ. Incorrectly labeled images have substantially larger sets. In tracking, box-overapproximations of ellipsoidal sets contain ground-truth boxes with high probability. Across plots, ε has the stronger effect on set size, while δ changes are milder on a logarithmic scale.

Applications

A clinical classifier can return a candidate diagnosis set rather than a single label. A robot or autonomous vehicle can plan around every predicted trajectory in a high-probability set. Safe RL can use Half-Cheetah dynamics sets to identify uncertain states. Deployment requires representative calibration data, independent validation data, and monitoring for distribution shift.

Limitations & Outlook

The guarantee is not adversarial or out-of-distribution robust. Sets may become too large on difficult or misclassified examples. Gaussian regression may fail for multimodal or heavy-tailed errors. The RL construction accumulates one-step variances and does not rigorously capture state-dependent correlations, so sequence-level guarantees remain an important open issue. Runtime is modest for threshold fitting but downstream set manipulation can be expensive in high-dimensional outputs.

Plain Language Accessible to non-experts

Imagine a shop assistant recommending products. An ordinary assistant points to one item and sounds certain, even when wrong. This paper makes the assistant offer a basket of plausible items instead. The basket is based on scores: products with sufficiently high scores enter, while the threshold controls how cautious the assistant is.

Before using the assistant, the researchers test it on a separate group of customers. They choose the smallest basket that almost never misses the item the customer actually wanted. Because the test group is finite, a statistical calculation also accounts for luck: it estimates how confident we should be that the observed miss rate represents future customers. The result is not a promise that every recommendation is correct, but a population-level safety promise.

Easy pictures lead to tiny baskets; confusing pictures lead to larger ones. A robot can treat the basket as possible routes, and a doctor can treat it as possible diagnoses. The method is useful only when future customers resemble the people in the test records. If the store suddenly receives unfamiliar products or customers, the old guarantee may no longer apply.

ELI14 Explained like you're 14

Suppose an image game asks, “What is in this picture?” A neural network might shout “cat!” with 99% confidence and still be wrong. This paper teaches it to be more honest. Instead of always giving one answer, it can say, “My shortlist is cat, fox, or small dog.” A short shortlist means strong confidence; a long one means the picture is tricky.

First, the network studies many examples. Then it gets a second quiz that teaches it how loud its confidence should sound. Researchers choose a cutoff so that the correct answer is missed only a small fraction of the time. They also use a math safety check because a small quiz can look unusually lucky. So the promise is about many similar future pictures, not magical perfection on every single picture.

The same idea works beyond photos. A tracking program can list possible locations for an object, and a robot can list possible future positions. In the ImageNet experiment, the team used 20,000 validation images; they also tested visual tracking and a Half-Cheetah robot simulator. Hard examples produced bigger lists, exactly what you would hope for from an honest system!

But there is a catch. If the real world changes dramatically, the old quiz may not predict new performance. And if the network knows almost nothing, its list may become huge. The method is like a cautious gaming teammate: it tells you when it is unsure instead of pretending every guess is perfect.

Glossary

PAC confidence set

A prediction set whose population error is at most ε with probability at least 1−δ over the calibration or validation sample. It gives a finite-sample statistical guarantee.

This is the paper’s target object C_T.

Temperature Scaling

A calibration method that learns one scalar τ to rescale predicted probabilities without retraining the underlying network. It changes confidence sharpness rather than representation.

Used to obtain fφ̂,τ.

VC dimension

A measure of hypothesis-class complexity used to derive generalization bounds. Lower complexity can yield stronger finite-sample guarantees.

The threshold family has VC dimension 1 in the baseline analysis.

Calibration

A property in which predicted probabilities match empirical event frequencies. Calibration alone does not imply a PAC coverage guarantee.

Temperature scaling improves the forecaster before set construction.

Conformal Prediction

A family of methods that constructs finite-sample-valid predictive sets from calibration data. It is closely related but conceptually distinct from this paper’s calibrated-PAC formulation.

Discussed as the closest related work.

Half-Cheetah

A standard simulated two-dimensional locomotion environment in reinforcement learning. The agent’s learned dynamics are used to form trajectory confidence sets.

One of the three experimental settings.

Open Questions Unanswered questions from this research

  • 1 How can coverage be preserved under distribution shift without making sets unusably large? Distributionally robust calibration, online drift detection, or conditional guarantees may be required.
  • 2 Does accumulated one-step covariance adequately represent correlated, multimodal multi-step dynamics? Principled sequence-level probabilistic models and trajectory-validity bounds remain open.
  • 3 How can misclassified examples receive useful rather than enormous sets while retaining global PAC validity? Class-conditional and cost-sensitive risk control are promising directions.

Applications

Immediate Applications

Clinical decision support

A hospital can expose a calibrated diagnosis set rather than a single label, allowing clinicians to see alternatives and a population-level miss-rate target. Deployment requires representative validation data and clinically chosen ε and δ.

Robotic safety planning

A robot can pass a predicted position or trajectory set to its planner and avoid all plausible outcomes. The dynamics model must be calibrated, computationally manageable, and monitored when operating conditions differ from validation data.

Long-term Vision

Verifiable autonomous systems

PAC sets could connect perception uncertainty directly to constraints for autonomous cars, drones, and safe RL controllers. The main obstacles are distribution shift, high-dimensional set computation, and obtaining strong conditional rather than merely marginal coverage.

Abstract

We propose an algorithm combining calibrated prediction and generalization bounds from learning theory to construct confidence sets for deep neural networks with PAC guarantees---i.e., the confidence set for a given input contains the true label with high probability. We demonstrate how our approach can be used to construct PAC confidence sets on ResNet for ImageNet, a visual object tracking model, and a dynamics model for the half-cheetah reinforcement learning problem.

cs.LG stat.ML