Skip to main content
QUICK REVIEW

[Paper Review] Confidence estimation of classification based on the distribution of the neural network output layer

Abdel Aziz Taha, Leonhard Hennig|arXiv (Cornell University)|Oct 14, 2022
Neural Networks and ApplicationsComputer Science5 citations
TL;DR

This paper proposes confidence estimation methods for neural network classification by analyzing the distribution of logits in the output layer, enabling prediction filtering without model retraining. It introduces two confidence estimators—KRT and WDF—showing WDF significantly improves precision at the cost of recall, especially on noisy, real-world data like web-scraped knowledge extraction.

ABSTRACT

One of the most common problems preventing the application of prediction models in the real world is lack of generalization: The accuracy of models, measured in the benchmark does repeat itself on future data, e.g. in the settings of real business. There is relatively little methods exist that estimate the confidence of prediction models. In this paper, we propose novel methods that, given a neural network classification model, estimate uncertainty of particular predictions generated by this model. Furthermore, we propose a method that, given a model and a confidence level, calculates a threshold that separates prediction generated by this model into two subsets, one of them meets the given confidence level. In contrast to other methods, the proposed methods do not require any changes on existing neural networks, because they simply build on the output logit layer of a common neural network. In particular, the methods infer the confidence of a particular prediction based on the distribution of the logit values corresponding to this prediction. The proposed methods constitute a tool that is recommended for filtering predictions in the process of knowledge extraction, e.g. based on web scrapping, where predictions subsets are identified that maximize the precision on cost of the recall, which is less important due to the availability of data. The method has been tested on different tasks including relation extraction, named entity recognition and image classification to show the significant increase of accuracy achieved.

Motivation & Objective

  • Address the lack of reliable confidence estimation in neural network predictions, especially in real-world applications where generalization fails.
  • Develop methods to estimate prediction confidence without modifying existing neural networks or requiring retraining.
  • Enable filtering of predictions to maximize precision in knowledge extraction pipelines, where data is abundant but noisy and heterogeneous.
  • Provide a thresholding mechanism that ensures a given confidence level (e.g., 90%, 95%, 99%) is met by the filtered subset of predictions.
  • Demonstrate applicability across diverse tasks including NLP (relation extraction, NER) and computer vision (image classification)

Proposed method

  • Use the distribution of logit values from the output layer of a trained neural network to estimate prediction confidence.
  • Propose two confidence estimation functions: KRT (based on kurtosis and skewness of logits) and WDF (based on weighted distribution of logits).
  • Calculate a confidence threshold for a given model and desired confidence level using the model’s original accuracy and the confidence estimator’s output.
  • Apply the threshold to filter predictions into two subsets: high-confidence (to be used) and low-confidence (to be discarded).
  • Use the threshold to ensure the filtered subset achieves the target confidence level (e.g., 95% accuracy) regardless of original model performance.
  • Validate the method across multiple tasks: relation extraction (TACRED, SemEval2010), named entity recognition, and image classification (VGG16 on cats vs. dogs)

Experimental results

Research questions

  • RQ1Can the distribution of logits in the output layer reliably estimate the confidence of a neural network’s prediction without model modification?
  • RQ2How effective are the proposed confidence estimators (KRT and WDF) in improving precision when filtering predictions in low-accuracy, noisy environments?
  • RQ3Can a threshold be computed that ensures the filtered prediction subset achieves a specified confidence level (e.g., 95%)?
  • RQ4Does the method generalize across different tasks, including NLP and computer vision?
  • RQ5How does the exploit ratio (proportion of high-confidence predictions) vary with model accuracy and confidence level?

Key findings

  • The WDF confidence estimator outperforms KRT in both accuracy and exploit ratio across all tested confidence levels (90%, 95%, 99%).
  • Enhanced accuracy (E.ACCU) significantly exceeds original model accuracy, especially for less accurate models, demonstrating effective precision gain.
  • The exploit ratio remains reasonable except in extreme cases (e.g., very low model accuracy with very high confidence level), where it drops sharply.
  • The method successfully increases precision in knowledge extraction tasks by filtering out low-confidence predictions, even when original model accuracy is low.
  • The approach is effective across diverse domains, including text-based relation extraction and image classification, confirming its generalizability.
  • The thresholding mechanism successfully aligns the filtered prediction subset with the target confidence level, regardless of the original model’s performance

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.