CondUQ: Calibrated Conditional Uncertainty Quantification Using Distribution Matching

Shizhuang Wang, Tianhao Wang, Xingqun ZhanarXiv 2026

TL;DR

Real-world prediction and measurement systems rarely fail uniformly; their errors depend heavily on operating conditions—like whether a GPS receiver is under open sky or trapped in an urban canyon. CondUQ is a plug-and-play framework that learns to sort inputs into distinct "quality" buckets without human labels, giving each bucket its own calibrated, well-behaved Gaussian error distribution. It turns messy, unpredictable black-box errors into reliable uncertainty estimates you can actually trust for safety-critical decisions.

What Problem Does This Paper Address?

If you ask a standard machine learning model or sensor system how confident it is, you often run into a fundamental trap. If you pool all of a system's historical errors together, you get a messy, heavy-tailed distribution. Fitting a single global bell curve (Gaussian) to this mess means you are simultaneously overestimating errors in easy conditions (making your system overly cautious) and underestimating extreme errors in hard conditions (creating safety risks).

Fig. 1. Motivation for conditional uncertainty quantification in relative pose estimation. Image pairs with different feature richness and overlap exhibit different error behavior. Pooling all these errors produces a complex global distribution that is poorly represented by a single Gaussian. Grouping samples by a latent quality index (for example, from easy to hard) yields approximately Gaussian conditional error distributions. CondUQ learns to predict this index from observable inputs without quality annotations.

Existing fixes have notable blind spots. Conformal prediction and global calibration methods often guarantee accuracy on average, which still hides dangerous under-confidence in tricky edge cases. Meanwhile, neural networks that predict a unique error distribution for every single input cannot be reliably calibrated, because you only ever observe one error sample per distribution. Engineers used to solve this by manually slicing data into operating regimes based on intuition (e.g., binning GPS satellites by elevation angle), which falls apart when inputs are high-dimensional images or abstract neural features.

Methods

CondUQ sits on top of any existing, frozen system—even a total black box—and operates in three stages:

Fig. 2. Overview of the proposed CONDUQ framework. First, a quality index (QI) predictor is learned from input-dependent data (e.g., image pairs) and latent variables in the pipeline of the measurement, estimation, or prediction system. Without QI annotations, a distribution-matching loss encourages the conditional error distribution associated with each predicted QI to be approximately Gaussian. Second, samples in a large held-out calibration dataset are partitioned into groups, with each group comprising samples assigned the same QI by the frozen QI predictor. A conservative Gaussian error model is then fitted separately to each group. Third, at inference time, the predicted QI of a new sample selects the corresponding conditional error model, providing calibrated uncertainty for the system output without requiring ground truth.
  1. Unsupervised Quality Index (QI) Learning: A lightweight neural network looks at observable inputs (and internal latent features, if available) and assigns each sample to one of $K$ discrete groups, called Quality Indices. Because there are no ground-truth "quality labels," the network is trained end-to-end using a novel distribution-matching loss. It minimizes the KL divergence between the empirical errors in each group and a fitted Gaussian. For multidimensional errors, CondUQ cleverly sidesteps expensive math by invoking the Cramér–Wold theorem: it projects error vectors onto random 1D directions and checks if those 1D slices look Gaussian. An entropy-based balance regularization term prevents the network from lazily dumping all samples into a single bucket.
  2. Group-Wise Calibration: With the QI predictor frozen, a large held-out dataset is sorted into the $K$ buckets. Because each bucket holds plenty of data, CondUQ can reliably fit and calibrate a simple Gaussian model (or a small Gaussian mixture, if needed) for each specific group.
  3. Online Inference: At runtime, a new input passes through the frozen QI predictor, which instantly looks up the pre-calibrated error distribution for that exact operating condition—no ground truth required.

Datasets

Rather than introducing new benchmarks, the authors construct massive training and calibration splits from established sources across three distinct domains:

  • GPS Multipath Errors: $10^6$ range observations from International GNSS Service (IGS) stations (Jan 2024), plus 24-hour differential positioning data from two stations (ACSX and AR27, Jan 2025).
  • Visual Relative Pose Estimation: ~15 million DSLR image pairs across 1,006 scenes from ScanNet++, processed through the frozen Reloc3r transformer.
  • World Model Rollouts: 8 million 5-step prediction windows generated from 95,000 trajectories on the Push-T robotic manipulation task, using the LeWM world model.

Key Insights and Ideas

  • Rediscovering Physics Without Labels: The QI predictor only knows one mathematical goal: make the errors in each bucket look like a bell curve. Yet, in doing so, it spontaneously discovers real physical principles. In the GPS task, it cleanly partitioned the 2D space of satellite elevation and signal-to-noise ratio—isolating low-angle, weak-signal satellites into the highest-error group. In the vision task, feeding 2048-dimensional abstract transformer features into CondUQ yielded groups that strongly tracked independent multi-view geometry uncertainty (keypoint match counts and spatial spread).
Fig. 7. Distribution of each group in the elevation-C/N0 plane.
  • Quarantining the Heavy Tails: By isolating the "hardest" inputs into a dedicated high-variance group (e.g., G12), CondUQ prevents extreme outliers from inflating the uncertainty estimates of the 80%+ of samples that are actually easy and predictable.
  • Preventing Collapse Improves Fit: You might expect forcing balanced group sizes to hurt the Gaussian fit within each group. An ablation study proved the opposite: without balance regularization, 8 of 12 groups died out completely; with it, all 12 groups were utilized and the average KL divergence from a true Gaussian dropped by 45.6% to 87.4%.

Key Results

  • Tighter and Safer Bounds: Across all three systems—spanning 1D scalar errors, 3D rotation vectors, and 5-step time-correlated world model rollouts—QI-conditioned distributions matched empirical errors dramatically better than global Gaussians. For example, in Reloc3r pose estimation, CondUQ separated samples with error standard deviations ranging from a razor-sharp $0.16^\circ$ up to $5.62^\circ$, whereas a global model smeared them all into a single $\sigma = 1.27^\circ$. In 5-step world model rollouts, orientation uncertainty ranged from $6.12^\circ$ (G1) to $99.48^\circ$ (G12).
  • Real Downstream Gains: When CondUQ's learned variances were used to weight GPS measurements in a weighted least-squares (WLS) positioning solver, 3D root-mean-square positioning errors dropped by 21.9%, 22.3%, and 17.9% along the X, Y, and Z axes compared to ordinary least-squares using a global error model.
  • Fast Overhead: Training the QI predictor took ~2 minutes for the GPS MLP and 1.5–2.0 hours on a single RTX 5090 GPU for the multi-million-sample vision and world-model tasks.

Limitations and Future Work

CondUQ calibrates uncertainty strictly within the operating regimes covered by its offline training and calibration datasets. It does not currently handle out-of-distribution (OOD) inputs—situations entirely alien to the historical data—though the authors plan to tackle OOD extensions next. Additionally, while the authors demonstrated downstream sensor fusion in GPS positioning, integrating these calibrated uncertainties into active decision-making—such as uncertainty-aware robot planning with world models and autonomous driving—remains open for future work.

Summary updated

BibTeX
@misc{wang2026conduq,
  author = {Shizhuang Wang and Tianhao Wang and Xingqun Zhan},
  title = {{CondUQ: Calibrated Conditional Uncertainty Quantification Using Distribution Matching}},
  year = {2026},
  eprint = {2611.33939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33939},
}
Figure