Socrates Loss for training ad-hoc calibrated selective classifiers
Reliability;Confidence Calibration;Selective Classification;Neural Networks
Yes
No ethics review needed.
Please refer to my comments in the weakness.
This paper’s contribution lies in integrating both into a single, optimized framework, overcoming limitations found in existing models such as Confidence-aware Contrastive Learning for Selective Classification (CCL-SC) and Self-Adaptive Training (SAT). The Socrates Loss method incorporates an unknown class, allowing the model to abstain from uncertain predictions, and uses a unified loss function that simultaneously calibrates and classifies.
The paper introduces the Socrates Loss, a novel method aimed at improving model reliability in high-risk applications through ad-hoc calibrated selective classification. Traditional approaches, like Confidence Calibration and Selective Classification, often address reliability issues separately or require post-hoc adjustments.
1.	The paper’s illustrations, specifically Figures 1 and 2, lack clarity in key areas. The labeling in Figure 1 is insufficiently detailed, and there is inconsistency in color schemes, which could hinder comprehension of the data presented. Figure 2 further lacks a legend, which reduces the effectiveness of the visual comparison between methods. Improved and uniform color schemes and more detailed annotations are recommended to ensure the visual clarity of these figures.

2.	The parameters 𝛼_dynamic and 𝛼_momentum appear in the Socrates loss formulation but are not sufficiently distinguished in the text. The similarities in naming make it challenging for readers to discern their distinct roles in the model. Enhanced textual explanations, with a focus on practical and mathematical differentiation between these parameters, would clarify their unique contributions and improve readability.

3.	Key parameters, such as the regularization parameters 𝛾 and 𝛼_dynamic , are briefly introduced without sufficient mathematical justification or detailed explanation of their effects on the model. For instance, while 𝛾 is noted to control the smoothness of the prediction distribution, the specific mathematical mechanisms by which this smooths the output are not elucidated. Similarly, the role of 𝛼_dynamic in balancing the selection function’s weight lacks rigorous theoretical backing. A more thorough derivation of these parameters and their influence on the calibration function would enhance the technical rigor of the discussion.

4.	Although the paper compares the Socrates loss with methods like SAT and CCL-SC, it lacks an analysis of its performance against widely accepted post-hoc calibration techniques such as Platt Scaling and Temperature Scaling. A broader comparative analysis with recent methods below would provide a stronger empirical basis for evaluating Socrates loss’s effectiveness in practical applications.

[1] Meta-Cal: Well-controlled Post-hoc Calibration by Ranking

[2] Mix-n-Match: Ensemble and Compositional Methods for Uncertainty Calibration in Deep Learning

[3] Test Time Augmentation Meets Post-hoc Calibration: Uncertainty Quantification under Real-World Conditions

[4] Pseudo-Calibration: Improving Predictive Uncertainty Estimation in Unsupervised Domain Adaptation

5.	In the theoretical proof presented in the paper, the author employs the Bernoulli inequality to simplify the expression of Socrates loss. While the error terms associated with the Bernoulli inequality are generally negligible in higher-order derivations, their accumulation may have substantial implications when applied to the loss function in deep learning, particularly within high-dimensional spaces and complex data distributions. Such cumulative errors could potentially impact the stability of the training process and the effectiveness of model calibration. However, the paper’s proof lacks a rigorous error analysis, overlooking how error accumulation in high-dimensional spaces may influence model convergence and stability.

6.	Observational results suggest that Socrates loss may not generalize well across all datasets, particularly performing poorly on complex datasets like Food-101. While this issue is noted, it is not fully explored in the text. An in-depth analysis of factors contributing to this performance discrepancy would offer valuable insights for practitioners seeking to apply Socrates loss in diverse real-world applications
Yes
No ethics review needed.
**$\alpha$'s:** Are $\alpha_{momentum}$ and $\alpha_{dynamic}$ the same?

**Unclear advantage compared to SAT:** Could you summarize the main advantage of the proposed method compared to SAT?

**Figures:** The legends in the figures are too small and the descriptions of axes are incomplete. In addition, Figure 2 can be re-located to the place nearby the part of the main text explaining it.
**A new approach:** The paper introduces a new ad-hoc method for training calibrated selective classifiers, which is a considerable approach.
This paper introduces a new approach of training ad-hoc calibrated selective classifiers with “Socrates loss”. The proposed method aims to unify classification and confidence calibration into a single optimization framework that includes an unknown class, thereby enhancing model reliability and enabling selective abstention in high-risk predictions. Through experiments on various datasets and architectures, the authors present Socrates Loss as an alternative to existing methods such as SAT and CCL-SC, aiming to improve model calibration throughout training without the need for post-hoc processing.
**Poor readability:** The manuscript is difficult to follow. The main text is not concise and well-organized. Due to the missing explanations (e.g., $t_{i, y_i}$ in eq (1)), the authors' claims are not delivered and justified in the main text. 

**Concerns in theoretical analysis:** The theoretical analysis leaves several aspects unclear. In particular, the role of $\Delta_{\text{reg}}$ is unclear. It has a dependence on $\gamma$ and thus the implication of each term in eq (2) is not convincing nor interpretable.

**Concerns in experiments:** There is a lack of clarity around the reported failure of SAT with Food-101. The authors do not sufficiently explore whether this failure might be due to unfair hyperparameter choices or other factors. A clear explanation of the failure of SAT and the success of Socrates could be the main message of this work but is absent in the current manuscript.

**Limited impact:** The performance improvements observed with Socrates Loss are often minor, making the practical advantage of the proposed method unclear. More substantial evidence is needed to demonstrate a meaningful benefit.

**Unclear description of the process of choosing hyperparameters:** The paper does not sufficiently clarify whether hyperparameters were chosen fairly for each baseline, leading to concerns about the fairness of comparisons.
Yes
No ethics review needed.
1. Why do we need to consider an additional unknown class?

2. How's the calibration with unknown class different from transfer learning?

3. What do the coverage rates mean? Why does lower coverage have better performance?

4. Only VGG-16 and ResNet-34 architecture was used as the backbone network, why not use more powerful networks?

5. The loss curve for CCL-SC is vibrating after 150 epochs, which is kind of strange. Is it because CCL-SC is only enabled after 150 epochs? What happens if it is started from 0 epoch, and what happens if we do not use either CCL-SC or Socrates? In Fig 2, it seems brown lines are better than CLL-SC before the 150 epoch.

6. What samples/labels are available in training and testing?

7. How does Ad-hoc methods enhance both accuracy and calibration during training? Does it has access to test samples?
The proposed method tries to address an important problem - model reliability.

This manuscript provides detailed theoretical analysis and extensive experiments in multiple datasets.

The proposed method seems to be easy to implement.
This manuscript proposed an ad-hoc calibration method to improve the model reliability.
The problem and motivation setting is a bit unclear. The rational behind Socrates Loss needs more clarification.

The results were not sufficiently analyzed. More discussions is needed for each table/figure to provide the justification of the proposed method.

The presentation needs to be improved, for example, the plotted curves in some figures do not have a legend, making it very hard to understand. For example, figure 2 and 3.

Comparison to other methods is limited.
Yes
No ethics review needed.
See the above.
The combination of confidence calibration and selective classification into a unified training objective is an interesting direction for research. The authors also offer valuable theoretical insights into the Socrates loss, which enhances the understanding of its potential benefits and applications.
The paper proposes Socrates loss which trains both a classifier and a calibrator with a unified optimization goal and presents theoretically analysis on Socrates loss.
1. The writing quality is poor. For instance:
   - Line 341: "a rise was observed in ECE after the 150 epochs in the first epochs decreasing after convergence."
   - Line 896: "the gamma of the losses was;"
   - Line 868: "E (s) notation"
   - Line 452: "Socrates loss is a suitable loss to output calibrated models."
   
   I suggest that the authors start each paragraph with a summary sentence, as seen in Section 6.1. Consider using bullet points or numbered lists for observations and claims to improve readbility and emphasis.

2.  The motivation lacks conviction. The abstract claims that *the lack of an unknown class is a drawback of CCL-SC*. However, selective classification can be achieved using baseline methods like SR[1] without needing an unknown class. As noted by Feng et al.[2], *the best-performing selection mechanism should be rooted in the classifier itself, not in the presence of an unknown class*.

3. The paper claims that CCL-SC's is the **only** method combining confidence calibration and selective classification seems overly absolute. Combining the differentiated expected calibration error[3] with selective classification could achieve similar goals.

4. The proposed architecture is limited. Testing other architectures, such as ViT-based methods, and conducting more experiments would add value.  Moreover, as seen in related methods like CCL-SC[4] conducted with ImageNet. Additionally, in resource-limited scenarios, lightweight models could be trained using CLIP model features.

5. In Figure 1, what does "Ep=0" represent? Is it possibly "E_s"?

6. Excessive use of uppercase letters can make the text look cluttered and reduce readability (e.g., Confidence Calibration, Selective Classification, Focal Loss, Weight Decay).

7. An important baseline is missing in Table 2. What about the performance of CE training + SR? Additionally, there's a discrepancy in CCL-SC performance between this paper and the original (both in CIFAR10 and VGG16). For instance, the error rate at 100% coverage in the CCL-SC paper is 5.97±0.11, but it is 6.38 ± 0.14 in this paper. Note that the error rate at 100% coverage is crucial for selective classification error.

8. The rationale for Socrates loss is not convincing. Why exclude the ground truth class probability when computing $\alpha_{dynamic}$? For example, is the performance gain from Socrates loss due to the focal loss term? In later training stages, does $\alpha_{dynamic}$ approach 0, resulting in an approximation to focal loss?

9. What constitutes an acceptable ECE range, as mentioned in Line 340?

10. The primary aim of Socrates loss is to merge calibration and selective classification. However, in Tables 4 and 5, SAT and CCL-SC outperform Socrates loss concerning ECE on most test datasets.

11. The claim that Socrates loss improves calibration seems largely empirical. Is the improvement on hard-to-classify datasets mainly due to the focal loss term?

---

References:

[1] Hendrycks, D. and Gimpel, K. "A baseline for detecting misclassified and out-of-distribution examples in neural networks." In The 5th International Conference on Learning Representations (ICLR), Toulon, France, 2017.

[2] Leo Feng, Mohamed Osama Ahmed, Hossein Hajimirsadeghi, and Amir H. Abdi. "Towards better selective classification." In The Eleventh International Conference on Learning Representations, 2023.

[3] Marx, Charlie, Sofian Zalouk, and Stefano Ermon. "Calibration by distribution matching: trainable kernel calibration metrics." Advances in Neural Information Processing Systems 36, 2024.

[4] Yu-Chang W, Shen-Huan Lyu and Haopu Shang, et al. "Confidence-aware Contrastive Learning for Selective Classification." In Forty-first International Conference on Machine Learning, 2024.
In the pursuit of reliable models, we introduce an original ad-hoc approach that uses an unknown class and a novel loss, Socrates loss, integrating classification and calibration into a unified optimization goal.
@inproceedings{
anonymous2024socrates,
title={Socrates Loss for training ad-hoc calibrated selective classifiers},
author={Anonymous},
booktitle={Submitted to The Thirteenth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=ZBL26FX0FT},
note={under review}
}
Model reliability is paramount for critical real-world applications. To enhance reliability, it is essential to quantify uncertainty in model predictions, as achieved through Confidence Calibration and Selective Classification. Confidence Calibration ensures prediction confidences accurately reflect the actual likelihood of correctness, while Selective Classification allows a model to abstain from making predictions when uncertain. Although related, existing methods address each aspect separately, or both through post-hoc approaches. Only one method, Confidence-aware Contrastive Learning for Selective Classification (CCL-SC), combines both in an ad-hoc manner. Despite being a powerful calibrator, CCL-SC has some drawbacks, including the absence of an additional unknown class, the use of two different losses (detrimental for calibration), and its cumbersome implementation. In the pursuit of reliable models and motivated by the idea of creating an ad-hoc calibrated selective classifier with an unknown class, we first empirically analyze the Self-Adaptive Training (SAT) method, a leading approach in ad-hoc selective classification. We identify that while SAT excels in selective classification, it falls short in confidence calibration, especially when training for a small number of epochs (e.g., <=100). To address this, we introduce an original approach that uses an unknown class and a unique novel loss, Socrates loss, which serves as a classifier and a calibrator with a unified optimization goal. This approach mitigates overfitting and ensures theoretically well-calibrated predictions across all epochs, addressing the drawbacks of both CCL-SC and SAT, without the need for post-hoc processing or additional data. We integrate our approach into the SAT implementation and extend it to provide selective classification and confidence calibration metrics. We show empirically that our approach matches or improves the selective classification error rate of SAT and CCL-SC, while producing well-calibrated models in an ad-hoc manner through the evaluation on 6 image benchmark datasets across two architectures, VGG-16 and ResNet-34.
I certify that there is no URL (e.g., github page) that could be used to find authors’ identity.
I acknowledge that I and all co-authors of this work have read and commit to adhering to the ICLR Code of Ethics.
Reliability Confidence Calibration Selective Classification Neural Networks
I certify that there is no acknowledgement section in this submission for double blind review.
/pdf/f8746076e80ed61c2d9d60d925e3bbf2d72305bb.pdf
alignment, fairness, safety, privacy, and societal considerations
I understand the reciprocal reviewing requirement as described on https://iclr.cc/Conferences/2025/CallForPapers. If none of the authors are registered as a reviewer, it may result in a desk rejection at the discretion of the program chairs. To request an exception, please complete this form at https://forms.gle/Huojr6VjkFxiQsUp6.
I certify that this submission complies with the submission instructions as described on https://iclr.cc/Conferences/2025/AuthorGuide.
Socrates Loss for training ad-hoc calibrated selective classifiers
ICLR 2025 Conference Submission
ICLR.cc/2025/Conference/Submission