Submitted by thanderrine t3_zntz2d in MachineLearning
So I was wondering, basically the title.
If my CNN model is trained to classify images into cat and dog, and I show it an image of a horse. My model should be giving either dog or a cat as the answer, however the confidence of this answer (passing horse through a softmax) should be low.
But I have found that mostly the models are quite cocky with a high confidence that it is indeed a dog. Or a cat.
So is there a better way? Is there a technique or method or algorithm that gives accurate confidence on a classification?
ttt05 t1_j0jbubh wrote
What you are describing is exactly the problem of OOD detection in image classification. The canonical reference for that would be Dan Hendrycks et. al. 2019. In short, no. Softmax probability might not be the best indicator of confidence as deep networks are often over confident on the wrong outputs.