[Paper Review] Overfitting of neural nets under class imbalance: Analysis and improvements for segmentation
This paper identifies that overfitting under class imbalance causes logit activations of under-represented foreground classes in segmentation to shift toward and cross the decision boundary, reducing sensitivity. To address this, it proposes asymmetric modifications to loss functions and regularizers—such as large margin loss, focal loss, adversarial training, and mixup—resulting in significant performance gains, especially in low-data regimes, with up to 12% improvement in DSC and 15% increase in sensitivity on brain tumor core segmentation.
Overfitting in deep learning has been the focus of a number of recent works, yet its exact impact on the behavior of neural networks is not well understood. This study analyzes overfitting by examining how the distribution of logits alters in relation to how much the model overfits. Specifically, we find that when training with few data samples, the distribution of logit activations when processing unseen test samples of an under-represented class tends to shift towards and even across the decision boundary, while the over-represented class seems unaffected. In image segmentation, foreground samples are often heavily under-represented. We observe that sensitivity of the model drops as a result of overfitting, while precision remains mostly stable. Based on our analysis, we derive asymmetric modifications of existing loss functions and regularizers including a large margin loss, focal loss, adversarial training and mixup, which specifically aim at reducing the shift observed when embedding unseen samples of the under-represented class. We study the case of binary segmentation of brain tumor core and show that our proposed simple modifications lead to significantly improved segmentation performance over the symmetric variants.
Motivation & Objective
- To analyze how overfitting under class imbalance affects logit distributions in deep neural networks for image segmentation.
- To identify that under-represented foreground classes suffer from reduced sensitivity due to logit shift toward the decision boundary during inference.
- To develop asymmetric modifications of existing loss functions and regularizers that specifically target the overfitting behavior of under-represented classes.
- To improve segmentation performance, particularly sensitivity, in low-data, high-class-imbalance scenarios common in medical imaging.
- To provide a diagnostic tool using logit distribution analysis for practitioners to detect and understand model overfitting.
Proposed method
- Analyzes logit distributions in the final layer of CNNs trained on varying amounts of data, comparing training and test samples for foreground and background classes.
- Proposes asymmetric variants of loss functions and regularizers—large margin loss, focal loss, adversarial training, and mixup—by modifying their optimization objectives to prioritize under-represented class robustness.
- For large margin loss, the margin is applied asymmetrically to push only unseen foreground logits away from the decision boundary.
- For focal loss, the focusing parameter is adjusted to remove constraints on foreground samples, preventing logit saturation near the boundary.
- For adversarial training, the perturbation is applied only to foreground samples to improve their generalization.
- For mixup, the interpolation is biased toward foreground samples to generate more robust embeddings and shift the decision boundary away from the foreground.
Experimental results
Research questions
- RQ1How does overfitting under class imbalance affect the distribution of logit activations in deep neural networks for image segmentation?
- RQ2Why does sensitivity degrade for under-represented foreground classes during inference despite stable precision?
- RQ3To what extent do symmetric loss functions and regularizers fail to address the logit shift issue in imbalanced segmentation?
- RQ4Can asymmetric modifications to existing regularization techniques effectively reduce logit shift and improve sensitivity in low-data settings?
- RQ5How do the proposed asymmetric methods compare to symmetric baselines in terms of DSC, sensitivity, and precision across varying training data sizes?
Key findings
- With only 5% of training data, sensitivity drops to 43% in standard cross-entropy training, while precision remains high at 79%, indicating a sensitivity loss due to overfitting.
- The mean logit activation for unseen foreground samples shifts significantly toward the decision boundary (Δẑ = 0.88) when trained on 5% data, causing false negatives.
- Asymmetric large margin loss increases DSC from 0.51 to 0.55 and sensitivity from 0.43 to 0.51 at 5% training data, outperforming symmetric variant.
- Asymmetric mixup achieves the largest improvement, boosting DSC to 0.59 and sensitivity to 0.58 at 5% data, with a 12% relative gain in sensitivity over baseline.
- The combination of all four asymmetric techniques achieves a DSC of 0.62 and sensitivity of 0.66 at 5% data, representing a 22% relative improvement in sensitivity over vanilla cross-entropy.
- Logit distribution analysis reveals that symmetric methods fail to prevent foreground logit shift, while asymmetric variants maintain positive logits for unseen foreground samples.
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.