A Function-Centric Perspective on Flat and Sharp Minima
Organizations: Department of Informatics, UKRI Safe and Trusted AI, London, United Kingdom · Queen Mary University of London, London, United Kingdom · Department of Informatics, King’s College London, London, United Kingdom
Abstract
Flat minima are strongly associated with improved generalisation in deep neural networks. However, this connection has proven nuanced in recent studies, with both theoretical counterexamples and empirical exceptions emerging in the literature. In this paper, we revisit the role of sharpness in model performance and examine sharpness as a function-dependent property rather than as a direct indicator of poor generalisation. We conduct extensive empirical studies ranging from single-objective optimisation, synthetic non-linear binary classification tasks, to modern image classification tasks. In single-objective optimisation, we show that flatness and sharpness are relative to the function being learned: equally optimal solutions can exhibit markedly different local geometry. In synthetic non-linear binary classification tasks, we show that increasing decision-boundary tightness can increase sharpness even when models generalise perfectly, suggesting that sharpness is not reducible to memorisation alone. Finally, in large-scale experiments, we find that sharper minima often emerge when models are regularised (e.g., via weight decay, data augmentation, or SAM), and can coincide with better generalisation, calibration, robustness, and functional consistency. Our findings are consistent with a function-centric interpretation of minima geometry: flatness should not be treated as a universal proxy for generalisation, and sharper minima can reflect desirable inductive biases associated with improved predictive behaviour, calling for a function-centric reappraisal of minima geometry.
Figures & tables
| Global Minimum | Condition Number | Hessian Trace | Hessian determinant | Max Eigenvalue |
|---|---|---|---|---|
| (3.0, 2.0) | 3.200 | 108.000 | 2116.000 | 82.284 |
| (-2.805118, 3.131312) | 1.242 | 145.39 | 5222.890 | 80.550 |
| (-3.77931, -3.283186) | 1.892 | 204.500 | 9460.560 | 133.786 |
| (3.584428, -1.848126) | 3.674 | 134.110 | 3024.540 | 105.419 |
| Function | Condition Number | Hessian Trace | Hessian determinant | Max Eigenvalue |
|---|---|---|---|---|
| Sphere | 1.000 | 4.000 | 4.000 | 2.000 |
| Rosenbrock | 2508.010 | 1002.000 | 400.000 | 1001.600 |
| Rastrigin | 1.000 | 793.568 | 157438.000 | 396.784 |
| Beale | 162.473 | 49.281 | 14.766 | 48.980 |
| Booth | 9.000 | 20.000 | 36.000 | 18.000 |
| Three hump camel | 2.784 | 6.000 | 7.000 | 4.414 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 28.050 | 0.720 | 0.186 | 58.614 | 0.282 | 1.366E-05 | 0.032 | 34.607 |
| Baseline + SAM | 20.588 | 0.794 | 0.108 | 66.342 | 0.168 | 5.823E-05 | 0.107 | 75.093 |
| Augmentation | 10.399 | 0.886 | 0.077 | 68.755 | 0.121 | 1.905E-01 | 3.940 | 2903.220 |
| Augmentation + SAM | 6.864 | 0.908 | 0.014 | 71.419 | 0.069 | 1.303E-01 | 5.571 | 4970.972 |
| Weight Decay | 27.942 | 0.721 | 0.174 | 58.562 | 0.281 | 3.391E-05 | 0.065 | 59.767 |
| Weight Decay + SAM | 19.788 | 0.802 | 0.096 | 67.079 | 0.162 | 8.733E-05 | 0.127 | 88.807 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (0.96) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 47.010 | 0.530 | 0.220 | 38.760 | 0.452 | 2.607E-04 | 0.294 | 32.085 |
| Baseline + SAM | 44.421 | 0.556 | 0.191 | 41.888 | 0.410 | 4.231E-04 | 0.399 | 123.791 |
| Augmentation | 29.642 | 0.697 | 0.185 | 44.613 | 0.288 | 1.110E-01 | 3.587 | 2766.925 |
| Augmentation + SAM | 28.999 | 0.705 | 0.145 | 45.428 | 0.269 | 1.081E-01 | 4.179 | 4196.832 |
| Weight Decay | 47.838 | 0.521 | 0.099 | 37.868 | 0.474 | 5.192E-04 | 0.861 | 136.969 |
| Weight Decay + SAM | 45.644 | 0.543 | 0.106 | 40.604 | 0.444 | 1.528E-03 | 1.788 | 360.271 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.93) | ✓ (0.89) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (0.96) | ✓ (0.96) | ✓ (1.0) | ✓ (1.0) | ✓ (0.92) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm |
| Baseline | 49.643 | 0.503 | 0.257 | 28.347 | 0.385 | 3.202E-04 | 0.479 |
| Baseline + SAM | 46.255 | 0.537 | 0.223 | 28.984 | 0.344 | 3.080E-04 | 0.427 |
| Augmentation | 19.993 | 0.508 | 0.102 | 34.457 | 0.544 | 1.680E+00 | 25.887 |
| Augmentation + SAM | 16.777 | 0.520 | 0.044 | 35.324 | 0.514 | 1.446E+00 | 25.193 |
| Weight Decay | 49.689 | 0.503 | 0.202 | 28.997 | 0.384 | 2.297E-04 | 0.998 |
| Weight Decay + SAM | 46.061 | 0.539 | 0.177 | 34.549 | 0.339 | 3.784E-04 | 0.736 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm |
|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) |
| Augmentation | ✓ (1.0) | ✓ (0.8) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✓ (0.51) | ✗ (N/A) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Radius | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| 0.000 | 28.050 | 0.720 | 0.186 | 58.614 | 0.282 | 1.366E-05 | 0.032 | 34.607 |
| 0.5000 | 1.605 | 0.629 | 0.079 | 52.847 | 0.221 | 6.814E-02 | 14.767 | 4156.344 |
| 0.2500 | 9.751 | 0.835 | 0.026 | 68.479 | 0.089 | 3.884E-02 | 8.712 | 4876.348 |
| 0.0500 | 20.588 | 0.794 | 0.108 | 66.342 | 0.168 | 5.823E-05 | 0.107 | 75.093 |
| 0.0250 | 22.602 | 0.774 | 0.124 | 64.224 | 0.195 | 2.587E-05 | 0.065 | 70.223 |
| 0.0050 | 25.793 | 0.742 | 0.167 | 60.985 | 0.250 | 4.861E-05 | 0.082 | 57.886 |
| Radius | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| 0.5000 | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✓ (0.69) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| 0.2500 | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| 0.0500 | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| 0.0250 | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| 0.0050 | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.96) |
| 0.0025 | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) |
| Percentage of Random Data | Train Accuracy | Train Loss | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|
| 0% (Baseline) | 1.000 | 9.997E-05 | 1.344E-05 | 0.031 | 33.700 |
| 20% | 1.000 | 1.039E-04 | 2.594E-01 | 107.830 | 38.615 |
| 40% | 1.000 | 1.071E-04 | 4.180E-01 | 160.742 | 42.111 |
| 60% | 1.000 | 1.085E-04 | 8.927E-01 | 203.816 | 44.990 |
| 80% | 1.000 | 1.107E-04 | 4.984E-01 | 242.238 | 47.011 |
| 100% | 1.000 | 1.094E-04 | 3.450E-01 | 283.181 | 47.095 |
Appendix figures & tables41 assets
Supplementary material from the paper’s appendix.
Appendix
| Control Condition | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|
| Augmentation | 1.905E-01 | 3.940 | 2903.220 |
| Augmentation + SAM | 1.303E-01 | 5.571 | 4970.972 |
| Control Condition | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|
| Augmentation | 1.591E-02 | 3.962 | 2972.554 |
| Augmentation + SAM | 2.035E-02 | 5.084 | 5105.327 |
| Control Condition | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|
| Augmentation | 1.967E-01 2.298E-02 | 3.505 0.155 | 688.897 26.348 |
| Augmentation + SAM | 9.777E-02 1.126E-02 | 4.278 0.027 | 1609.212 22.719 |
| Control Condition | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|
| Augmentation | 9.589E-03 1.438E-03 | 2.322 0.125 | 481.312 23.358 |
| Augmentation + SAM | 1.497E-02 7.363E-04 | 3.756 0.030 | 1413.712 22.212 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 28.050 | 0.720 | 0.186 | 58.614 | 0.282 | 1.366E-05 | 0.032 | 34.607 |
| Baseline + SAM | 20.588 | 0.794 | 0.108 | 66.342 | 0.168 | 5.823E-05 | 0.107 | 75.093 |
| Augmentation | 10.399 | 0.886 | 0.077 | 68.755 | 0.121 | 1.905E-01 | 3.940 | 2903.220 |
| Augmentation + SAM | 6.864 | 0.908 | 0.014 | 71.419 | 0.069 | 1.303E-01 | 5.571 | 4970.972 |
| Weight Decay | 27.942 | 0.721 | 0.174 | 58.562 | 0.281 | 3.391E-05 | 0.065 | 59.767 |
| Weight Decay + SAM | 19.788 | 0.802 | 0.096 | 67.079 | 0.162 | 8.733E-05 | 0.127 | 88.807 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 16.203 | 0.838 | 0.109 | 70.814 | 0.138 | 7.648E-06 | 0.015 | 16.641 |
| Baseline + SAM | 14.549 | 0.855 | 0.084 | 72.618 | 0.110 | 2.019E-05 | 0.042 | 49.022 |
| Augmentation | 7.593 | 0.921 | 0.056 | 72.923 | 0.078 | 1.091E-01 | 2.390 | 1604.778 |
| Augmentation + SAM | 6.920 | 0.931 | 0.037 | 73.483 | 0.058 | 2.267E-02 | 1.165 | 1173.090 |
| Weight Decay | 16.791 | 0.832 | 0.071 | 68.538 | 0.157 | 3.673E-05 | 0.097 | 99.041 |
| Weight Decay + SAM | 14.022 | 0.860 | 0.050 | 73.100 | 0.116 | 3.238E-04 | 0.446 | 178.169 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (0.96) | ✓ (0.96) | ✓ (0.93) | ✓ (0.96) | ✓ (0.99) | ✓ (0.75) | ✓ (0.96) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.90) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.96) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (0.96) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.96) | ✓ (0.99) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 23.325 | 0.767 | 0.154 | 63.035 | 0.227 | 5.181E-06 | 0.013 | 27.916 |
| Baseline + SAM | 16.714 | 0.833 | 0.083 | 69.769 | 0.126 | 2.640E-05 | 0.072 | 139.589 |
| Augmentation | 9.110 | 0.905 | 0.065 | 71.516 | 0.099 | 9.266E-02 | 2.465 | 3735.018 |
| Augmentation + SAM | 6.869 | 0.921 | 0.013 | 72.870 | 0.058 | 8.913E-02 | 4.070 | 7532.582 |
| Weight Decay | 23.504 | 0.765 | 0.137 | 62.879 | 0.231 | 2.241E-05 | 0.047 | 80.599 |
| Weight Decay + SAM | 16.433 | 0.836 | 0.072 | 70.226 | 0.124 | 4.797E-05 | 0.110 | 194.034 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 15.027 | 0.850 | 0.109 | 71.960 | 0.125 | 1.094E-06 | 0.003 | 8.785 |
| Baseline + SAM | 13.231 | 0.868 | 0.081 | 73.053 | 0.099 | 1.021E-05 | 0.024 | 70.694 |
| Augmentation | 7.455 | 0.923 | 0.057 | 72.594 | 0.076 | 8.274E-02 | 2.086 | 2864.657 |
| Augmentation + SAM | 6.678 | 0.933 | 0.036 | 73.565 | 0.056 | 2.173E-02 | 1.012 | 2354.005 |
| Weight Decay | 12.695 | 0.873 | 0.057 | 70.979 | 0.103 | 1.265E-04 | 0.159 | 355.345 |
| Weight Decay + SAM | 12.606 | 0.874 | 0.036 | 72.795 | 0.107 | 5.880E-04 | 0.745 | 439.467 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.96) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.82) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.96) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.93) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Genralisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 21.805 | 0.782 | 0.160 | 64.316 | 0.204 | 7.649E-06 | 0.022 | 7.374 |
| Baseline + SAM | 18.444 | 0.815 | 0.108 | 66.655 | 0.150 | 1.495E-03 | 0.938 | 140.164 |
| Augmentation | 11.289 | 0.879 | 0.084 | 68.497 | 0.121 | 1.967E-01 | 3.505 | 688.897 |
| Augmentation + SAM | 8.139 | 0.903 | 0.019 | 71.268 | 0.075 | 9.777E-02 | 4.278 | 1609.212 |
| Weight Decay | 21.801 | 0.782 | 0.151 | 64.405 | 0.202 | 1.315E-05 | 0.048 | 16.494 |
| Weight Decay + SAM | 18.394 | 0.816 | 0.104 | 66.827 | 0.151 | 3.210E-03 | 1.121 | 157.592 |
| Control Condition | Genralisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✓ (0.41) | ✗ (N/A) | ✓ (0.96) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 13.507 | 0.865 | 0.105 | 71.476 | 0.119 | 1.604E-06 | 0.004 | 0.807 |
| Baseline + SAM | 13.183 | 0.868 | 0.081 | 71.908 | 0.103 | 4.290E-05 | 0.077 | 25.287 |
| Augmentation | 8.565 | 0.910 | 0.065 | 71.491 | 0.092 | 1.146E-01 | 2.555 | 396.136 |
| Augmentation + SAM | 7.969 | 0.920 | 0.040 | 73.037 | 0.071 | 3.122E-02 | 1.087 | 429.679 |
| Weight Decay | 15.241 | 0.836 | 0.118 | 68.294 | 0.184 | 2.302E-02 | 5.120 | 237.081 |
| Weight Decay + SAM | 13.188 | 0.868 | 0.063 | 71.618 | 0.117 | 5.764E-04 | 0.742 | 124.537 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (0.75) | ✓ (0.75) | ✓ (1.0) | ✓ (0.78) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✓ (0.29) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 18.026 | 0.820 | 0.140 | 68.325 | 0.167 | 8.460E-07 | 0.008 | 5.824 |
| Baseline + SAM | 15.059 | 0.849 | 0.089 | 69.791 | 0.115 | 5.689E-04 | 0.649 | 242.483 |
| Augmentation | 9.988 | 0.895 | 0.074 | 70.671 | 0.107 | 1.708E-01 | 2.851 | 1158.004 |
| Augmentation + SAM | 7.594 | 0.916 | 0.017 | 72.194 | 0.066 | 7.664E-02 | 3.469 | 2487.050 |
| Weight Decay | 17.485 | 0.825 | 0.127 | 68.655 | 0.158 | 4.918E-06 | 0.044 | 29.566 |
| Weight Decay + SAM | 14.803 | 0.851 | 0.082 | 69.699 | 0.114 | 1.089E-03 | 0.802 | 298.386 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 12.661 | 0.873 | 0.100 | 71.689 | 0.111 | 3.227E-07 | 0.003 | 1.331 |
| Baseline + SAM | 12.248 | 0.878 | 0.077 | 71.838 | 0.100 | 8.424E-06 | 0.054 | 40.853 |
| Augmentation | 8.333 | 0.913 | 0.063 | 72.114 | 0.091 | 1.605E-01 | 2.510 | 772.205 |
| Augmentation + SAM | 7.791 | 0.922 | 0.038 | 72.470 | 0.072 | 3.497E-02 | 1.076 | 1155.243 |
| Weight Decay | 14.589 | 0.839 | 0.110 | 66.692 | 0.187 | 7.018E-03 | 6.253 | 608.657 |
| Weight Decay + SAM | 12.295 | 0.877 | 0.052 | 71.167 | 0.116 | 5.407E-04 | 1.193 | 406.163 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.75) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (0.89) | ✓ (0.82) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 42.454 | 0.575 | 0.253 | 40.749 | 0.396 | 2.123E-04 | 0.158 | 8.384 |
| Baseline + SAM | 43.815 | 0.561 | 0.232 | 39.690 | 0.399 | 7.520E-04 | 0.529 | 67.485 |
| Augmentation | 32.519 | 0.646 | 0.222 | 40.832 | 0.358 | 2.835E-01 | 7.156 | 1430.826 |
| Augmentation + SAM | 32.008 | 0.656 | 0.157 | 41.276 | 0.326 | 1.971E-01 | 5.653 | 2085.080 |
| Weight Decay | 41.579 | 0.584 | 0.138 | 41.266 | 0.384 | 3.302E-04 | 0.678 | 45.728 |
| Weight Decay + SAM | 44.631 | 0.553 | 0.189 | 38.961 | 0.429 | 2.630E-03 | 2.138 | 153.194 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.71) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.89) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm |
| Baseline | 39.588 | 0.604 | 0.303 | 39.082 | 0.238 | 2.642E-04 | 0.337 |
| Baseline + SAM | 36.131 | 0.638 | 0.199 | 41.815 | 0.186 | 3.364E-04 | 0.419 |
| Augmentation | 20.952 | 0.578 | 0.119 | 42.359 | 0.473 | 1.893E+00 | 20.033 |
| Augmentation + SAM | 17.927 | 0.594 | 0.056 | 44.449 | 0.440 | 1.665E+00 | 19.230 |
| Weight Decay | 39.622 | 0.604 | 0.265 | 39.148 | 0.222 | 2.679E-04 | 0.207 |
| Weight Decay + SAM | 35.922 | 0.641 | 0.180 | 42.106 | 0.185 | 3.072E-04 | 0.342 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm |
|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) |
| Augmentation | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 39.040 | 0.610 | 0.308 | 54.805 | 0.408 | 8.769E-05 | 0.221 | 347.198 |
| Baseline + SAM | 39.935 | 0.600 | 0.276 | 54.792 | 0.421 | 1.458E-03 | 1.576 | 1459.292 |
| Augmentation | 1.305 | 0.724 | 0.019 | 64.092 | 0.217 | 4.741E-01 | 22.809 | 38465.647 |
| Augmentation + SAM | -1.199 | 0.668 | 0.030 | 60.535 | 0.201 | 4.352E-01 | 22.372 | 18412.664 |
| Weight Decay | 38.746 | 0.613 | 0.301 | 55.077 | 0.402 | 1.359E-04 | 0.328 | 422.966 |
| Weight Decay + SAM | 39.881 | 0.600 | 0.268 | 54.797 | 0.419 | 2.890E-03 | 2.250 | 1908.688 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
| Baseline | 69.048 | 0.309 | 0.402 | 25.936 | 0.723 | 3.428E-04 | 0.646 | 112.185 |
| Baseline + SAM | 67.376 | 0.326 | 0.386 | 27.628 | 0.697 | 4.539E-04 | 0.821 | 124.472 |
| Augmentation | 37.472 | 0.508 | 0.227 | 38.680 | 0.483 | 5.995E-01 | 17.321 | 17401.462 |
| Augmentation + SAM | 32.136 | 0.523 | 0.146 | 40.275 | 0.446 | 4.649E-01 | 19.664 | 17812.985 |
| Weight Decay | 67.524 | 0.325 | 0.324 | 27.364 | 0.700 | 8.440E-04 | 1.563 | 251.148 |
| Weight Decay + SAM | 67.227 | 0.327 | 0.284 | 27.739 | 0.695 | 4.323E-03 | 5.181 | 1554.595 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Corruption Accuracy | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✗ (N/A) | ✗ (N/A) | ✗ (N/A) |
| Augmentation | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Augmentation + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (0.93) | ✓ (1.0) | ✓ (1.0) |
| Weight Decay + SAM | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) | ✓ (1.0) |
| Control Conditon | Generalisation Gap | Test Accuracy | Test ECE | Prediction Disagreement | Fisher Rao norm | SAM Sharpness | Relative Flatness |
| Baseline | 12.393 | 0.876 | 0.080 | 0.109 | 0.044 | 3.658E-05 | 13.968 |
| Baseline + SAM | 12.282 | 0.874 | 0.054 | 0.117 | 0.457 | 5.861E-03 | 188.148 |
| Augmentation | 10.239 | 0.888 | 0.062 | 0.114 | 0.767 | 4.238E-01 | 218.364 |
| Augmentation + SAM | 5.187 | 0.871 | 0.016 | 0.094 | 1.810 | 6.950E-01 | 1080.307 |
| Weight Decay | 12.320 | 0.877 | 0.078 | 0.108 | 0.050 | 4.043E-05 | 15.427 |
| Weight Decay + SAM | 12.242 | 0.874 | 0.052 | 0.116 | 0.499 | 6.311E-03 | 203.940 |
| Control Condition | Generalisation Gap | Test Accuracy | Test ECE | Prediction Disagreement | SAM Sharpness | Fisher-Rao norm | Relative Flatness |
|---|---|---|---|---|---|---|---|
| Baseline + SAM | ✗(N/A) | ✗(N/A) | ✓(1.0) | ✗(N/A) | ✓(1.0) | ✓(1.0) | ✓(1.0) |
| Augmentation | ✓(1.0) | ✓(0.96) | ✓(1.0) | ✗(N/A) | ✓(1.0) | ✓(1.0) | ✓(1.0) |
| Augmentation + SAM | ✓(1.0) | ✗(N/A) | ✓(1.0) | ✓(1.0) | ✓(1.0) | ✓(1.0) | ✓(1.0) |
| Weight Decay | ✗(N/A) | ✗(N/A) | ✓(0.82) | ✓(0.42) | ✓(1.0) | ✓(1.0) | ✓(1.0) |
| Weight Decay + SAM | ✗(N/A) | ✗(N/A) | ✓(1.0) | ✗(N/A) | ✓(1.0) | ✓(1.0) | ✓(1.0) |