Don't stop me now: How Validation Criteria Affect Checkpoint Selection and Early Stopping
Organizations: Department of Information Engineering, Electrical Engineering, and Applied Mathematics (DIEM), University of Salerno, Via Giovanni Paolo II, 132, Fisciano (Salerno), 84084, Italy. · Department of Electrical Engineering and Information Technology, University of Naples Federico II, Via Claudio 21, Naples, 80125, Italy.
Abstract
Checkpoint selection is a standard component of neural network training, yet the validation criterion used to select a checkpoint is often chosen heuristically. Moreover, the same criterion may be used either only to rank checkpoints after completion of a predefined training run or also to determine when training should stop, thereby affecting both the selected checkpoint and the set of checkpoints available for selection. In this work, we systematically investigate the role of validation criteria under these two settings. We separately vary the training loss, the validation criterion, and the target evaluation metric, and compare post-hoc checkpoint selection, in which training proceeds for all predefined epochs, with patience-based early stopping, in which the validation criterion also controls training termination. We consider three Cross-Entropy, C-Loss, and PolyLoss as training losses, and accuracy, macro-F1, and Matthews correlation coefficient as target metrics. Selection quality is assessed through the relative gap between the test performance of the validation-selected checkpoint and the best-observed test performance for the same target metric over the complete predefined training run.
Figures & tables
| Name | Instances | N. classes | Name | Instances | N. classes |
|---|---|---|---|---|---|
| Pen-Based Recognition of Handwritten Digits | 10992 | 10 | Cardiotocography | 2126 | 10 |
| Page Blocks Classification | 5473 | 5 | Maternal Health Risk | 1013 | 3 |
| Molecular Biology (Splice-junction Gene Sequences) | 3190 | 3 | Spambase | 4601 | 2 |
| Steel Plates Faults | 1941 | 7 | Bank Marketing | 45211 | 2 |
| Website Phishing | 1353 | 3 | Letter Recognition | 20000 | 26 |
| Taiwanese Bankruptcy Prediction | 6819 | 2 | Waveform Database Generator (Version 1) | 5000 | 3 |
| Metric | Dataset Type | Training Loss | Val. Criterion | |||
|---|---|---|---|---|---|---|
| CE | CLoss | PolyLoss | Metric | |||
| MCC | Image | CE | 0.083 | 0.005 | 0.069 | 0.005 |
| CLoss | 0.055 | 0.011 | 0.050 | 0.007 | ||
| PolyLoss | 0.096 | 0.005 | 0.095 | 0.006 | ||
| UCI | CE | 0.165 | 0.129 | 0.159 | 0.107 | |
| CLoss | 0.272 | 0.095 | 0.217 | 0.090 | ||
| Metric | Dataset Type | Training Loss | Val. Criterion | |||
|---|---|---|---|---|---|---|
| CE | CLoss | PolyLoss | Metric | |||
| MCC | Image | CE | 0.083 | 0.005 | 0.069 | 0.007 |
| CLoss | 0.346 | 0.025 | 0.346 | 0.018 | ||
| PolyLoss | 0.096 | 0.005 | 0.095 | 0.007 | ||
| UCI | CE | 0.185 | 0.279 | 0.187 | 0.324 | |
| CLoss | 0.395 | 0.201 | 0.393 | 0.382 | ||
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.