Papers › Post-hoc Uncertainty Learning using a Dirichlet Meta-Model

Post-hoc Uncertainty Learning using a Dirichlet Meta-Model

14 Dec 2022arXiv:2212.07359archive 2025-07-28

Maohao Shen, Yuheng Bu, Prasanna Sattigeri, Soumya Ghosh, Subhro Das, Gregory Wornell

It is known that neural networks have the problem of being over-confident when directly using the output label distribution to generate uncertainty measures. Existing methods mainly resolve this issue by retraining the entire model to impose the uncertainty quantification capability so that the learned model can achieve desired performance in accuracy and uncertainty prediction simultaneously. However, training the model from scratch is computationally expensive and may not be feasible in many situations. In this work, we consider a more practical post-hoc uncertainty learning setting, where a well-trained base model is given, and we focus on the uncertainty quantification task at the second stage of training. We propose a novel Bayesian meta-model to augment pre-trained models with better uncertainty quantification abilities, which is effective and computationally efficient. Our proposed method requires no additional training data and is flexible enough to quantify different uncertainties and easily adapt to different application settings, including out-of-domain data detection, misclassification detection, and trustworthy transfer learning. We demonstrate our proposed meta-model approach's flexibility and superior empirical performance on these applications over multiple representative image classification benchmarks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2212.07359")

Code

Syntology Ran 2 of 11 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

maohaos2/PosthocUQ officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 2 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran
9unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from maohaos2/PosthocUQ. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

format_time maohaos2/PosthocUQ/utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 8d7ec010c29e813b · report
get_mean_and_std maohaos2/PosthocUQ/utils.py official repository ran · metamorphic tier: well formed MIT (permissive) · 3cbdd3b190b16350 · report
CIFAR10 maohaos2/PosthocUQ/dataloaders.py official repository unverified MIT (permissive) · f26da832e81bbb10 · report
KMNIST maohaos2/PosthocUQ/dataloaders.py official repository unverified MIT (permissive) · fcc3eae6062f90be · report
Omniglot maohaos2/PosthocUQ/dataloaders.py official repository unverified MIT (permissive) · 5bc7d4551a2d7a08 · report
ROC_OOD maohaos2/PosthocUQ/utils.py official repository unverified MIT (permissive) · 88c562f8ba622f2e · report
betaln maohaos2/PosthocUQ/losses.py official repository unverified MIT (permissive) · 1935876fa2184234 · report
compute_entropy maohaos2/PosthocUQ/metrics.py official repository unverified MIT (permissive) · ecf2ba21313d2f00 · report
compute_max_prob maohaos2/PosthocUQ/metrics.py official repository unverified MIT (permissive) · 61de670b1e4cf1f1 · report
compute_total_entropy maohaos2/PosthocUQ/metrics.py official repository unverified MIT (permissive) · b406ae07e3a761fc · report
kl_div_dirichlets maohaos2/PosthocUQ/losses.py official repository unverified MIT (permissive) · f1502fb08f979867 · report

Tasks

Image ClassificationTransfer LearningUncertainty Quantificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

BASE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections