[Paper Review] No Cost Likelihood Manipulation at Test Time for Making Better Mistakes in Deep Networks
This paper proposes a post-hoc test-time correction using Conditional Risk Minimization (CRM) to improve mistake severity in deep learning classifiers by reweighting softmax likelihoods based on a label hierarchy, without retraining. CRM significantly reduces average hierarchical distance in top-k predictions across datasets with minimal accuracy drop, outperforming state-of-the-art hierarchy-aware methods while preserving model calibration.
There has been increasing interest in building deep hierarchy-aware classifiers that aim to quantify and reduce the severity of mistakes, and not just reduce the number of errors. The idea is to exploit the label hierarchy (e.g., the WordNet ontology) and consider graph distances as a proxy for mistake severity. Surprisingly, on examining mistake-severity distributions of the top-1 prediction, we find that current state-of-the-art hierarchy-aware deep classifiers do not always show practical improvement over the standard cross-entropy baseline in making better mistakes. The reason for the reduction in average mistake-severity can be attributed to the increase in low-severity mistakes, which may also explain the noticeable drop in their accuracy. To this end, we use the classical Conditional Risk Minimization (CRM) framework for hierarchy-aware classification. Given a cost matrix and a reliable estimate of likelihoods (obtained from a trained network), CRM simply amends mistakes at inference time; it needs no extra hyperparameters and requires adding just a few lines of code to the standard cross-entropy baseline. It significantly outperforms the state-of-the-art and consistently obtains large reductions in the average hierarchical distance of top-$k$ predictions across datasets, with very little loss in accuracy. CRM, because of its simplicity, can be used with any off-the-shelf trained model that provides reliable likelihood estimates.
Motivation & Objective
- To address the limitation of existing hierarchy-aware deep learning models that increase low-severity mistakes, undermining practical utility despite improved metric scores.
- To demonstrate that current mistake-severity metrics can be misleading, favoring models that make more low-severity errors over those that make fewer, higher-severity ones.
- To propose and validate a simple, post-hoc test-time correction using Conditional Risk Minimization (CRM) that improves ranking of predictions without retraining or hyperparameter tuning.
- To show that CRM maintains model calibration and accuracy while significantly reducing hierarchical distance in top-k predictions.
- To advocate for the revival of classical CRM as a practical, effective alternative to complex, retraining-based hierarchy-aware methods.
Proposed method
- Apply Conditional Risk Minimization (CRM) at test time to reweight class likelihoods using a predefined cost matrix based on label hierarchy.
- Use the standard cross-entropy trained model's softmax outputs as input likelihood estimates to CRM.
- Define mistake severity as the graph distance (e.g., LCA height) between predicted and true labels in a hierarchy (e.g., WordNet).
- Formulate the risk minimization problem as minimizing expected hierarchical distance over predictions, solved via closed-form update of likelihoods.
- Integrate CRM as a lightweight post-processing step requiring only a few lines of code, with no additional hyperparameters or model retraining.
- Use temperature scaling to improve calibration of baseline models, but show CRM likelihoods remain well-calibrated without it.
Experimental results
Research questions
- RQ1Does the current mistake-severity metric used in hierarchy-aware learning truly reflect the quality of mistakes, or can it be manipulated by increasing low-severity errors?
- RQ2Can a simple, post-hoc test-time correction outperform complex, retraining-based hierarchy-aware deep learning methods in reducing hierarchical distance of top-k predictions?
- RQ3How does incorporating label hierarchy during training affect model calibration, and does it degrade likelihood reliability?
- RQ4Can a classical method like CRM be effectively revived in modern deep learning to simultaneously improve ranking, accuracy, and calibration?
- RQ5Is there a practical, low-cost alternative to training-time hierarchy integration that maintains model reliability and performance?
Key findings
- CRM significantly reduces average hierarchical distance in top-k predictions across multiple datasets, including tiered-ImageNet and iNaturalist-H, outperforming state-of-the-art methods.
- The improvement from CRM is consistent across k=1 to k=5, with large reductions in hierarchical distance while maintaining or slightly reducing top-1 accuracy.
- Models trained with hierarchy-aware losses (e.g., Soft-labels, HXE, label smoothing) show severe miscalibration, with Expected Calibration Error (ECE) values up to 88.32% before temperature scaling.
- Temperature scaling reduces miscalibration in baseline models but does not bring them close to the calibration level of the vanilla cross-entropy baseline or CRM predictions.
- CRM likelihoods remain well-calibrated even without temperature scaling, and ECE/MCE scores for CRM predictions are nearly identical to those of the original cross-entropy model.
- The proposed method requires no retraining, no hyperparameters, and only a few lines of code, making it highly deployable with any off-the-shelf deep network providing reliable likelihoods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.