Dealing with Overconfidence in Neural Networks: Bayesian Approach – Jonathan Ramkissoon
I trained a classifier on images of animals and gave it an image of myself, it's 98% confident I'm a dog. This is an exploration of a possible Bayesian fix. Code available too
I trained a multi-class classifier on images of cats, dogs and wild animals and passed an image of myself, it’s 98% confident I’m a dog. The problem isn’t that I passed an inappropriate image, because models in the real world are passed all sorts of garbage. It’s that the model is overconfident about an image far away from the training data. Instead we expect a more uniform distribution over the classes. The overconfidence makes it difficult to post-process model output (setting a threshold on predictions, etc.), which means it needs to be dealt with by the architecture. In this post I explore
related reading
- Bayesian Neural Networkscs.toronto.edu
- On Getting Confidence Estimates from Neural Networks | Bharath's notesbharathpbhat.github.io
- Toy Models of Superpositiontransformer-circuits.pub
- A Recipe for Training Neural Networkskarpathy.github.io
- [1706.04599] On Calibration of Modern Neural Networksarxiv.org
- A Recipe for Training Neural Networkskarpathy.github.io
- Understanding deep learning requires rethinking generalizationarxiv.org
- On Calibration of Modern Neural Networksarxiv.org
- guo17a.pdfproceedings.mlr.press
- Maybe I was too harsh on deep learning theory (three days ago) — LessWronglesswrong.com
- [2503.02113] Deep Learning is Not So Mysterious or Differentarxiv.org
- arxiv.org/pdf/1805.08522arxiv.org