[Paper Review] Robustness of different loss functions and their impact on networks learning capability
This paper investigates the robustness of various loss functions—specifically generalized (e.g., binary cross-entropy) and specialized (e.g., Dice, focal loss)—in deep learning models. Through controlled experiments on adversarial robustness, it demonstrates that combining loss functions enhances model resilience to gradient-based perturbations, with hybrid loss strategies improving accuracy retention under salient gradient attacks.
Recent developments in AI have made it ubiquitous, every industry is trying to adopt some form of intelligent processing of their data. Despite so many advances in the field, AIs full capability is yet to be exploited by the industry. Industries that involve some risk factors still remain cautious about the usage of AI due to the lack of trust in such autonomous systems. Present-day AI might be very good in a lot of things but it is very bad in reasoning and this behavior of AI can lead to catastrophic results. Autonomous cars crashing into a person or a drone getting stuck in a tree are a few examples where AI decisions lead to catastrophic results. To develop insight and generate an explanation about the learning capability of AI, we will try to analyze the working of loss functions. For our case, we will use two sets of loss functions, generalized loss functions like Binary cross-entropy or BCE and specialized loss functions like Dice loss or focal loss. Through a series of experiments, we will establish whether combining different loss functions is better than using a single loss function and if yes, then what is the reason behind it. In order to establish the difference between generalized loss and specialized losses, we will train several models using the above-mentioned losses and then compare their robustness on adversarial examples. In particular, we will look at how fast the accuracy of different models decreases when we change the pixels corresponding to the most salient gradients.
Motivation & Objective
- To understand how different loss functions affect deep neural network learning capability and robustness.
- To evaluate whether combining multiple loss functions improves model performance and robustness compared to single-loss training.
- To investigate the failure modes of AI systems under adversarial examples, particularly in safety-critical applications.
- To provide empirical insights into why specialized loss functions may outperform generalized ones in imbalanced or adversarial settings.
Proposed method
- Trained multiple deep learning models using combinations of generalized losses (e.g., binary cross-entropy) and specialized losses (e.g., Dice, focal loss).
- Applied gradient-based adversarial attacks by modifying pixels corresponding to the most salient gradients.
- Measured the rate of accuracy degradation under increasing perturbation intensity to assess robustness.
- Used standardized benchmarks to compare model performance across different loss configurations.
- Evaluated robustness through controlled ablation studies on image classification tasks with class imbalance.
- Tracked accuracy drop over time as perturbations were applied along high-gradient directions.
Experimental results
Research questions
- RQ1How does the choice of loss function affect the robustness of deep neural networks under adversarial attacks?
- RQ2Does combining multiple loss functions lead to improved generalization and resilience compared to single-loss training?
- RQ3Why do specialized loss functions like focal loss or Dice loss perform better in imbalanced or adversarial scenarios?
- RQ4How quickly does model accuracy degrade when perturbations are applied along the most salient gradients?
- RQ5What is the relationship between loss function design and the network's ability to reason under distributional shifts?
Key findings
- Models trained with hybrid loss functions (e.g., BCE + Dice or BCE + focal loss) showed significantly slower accuracy degradation under adversarial attacks compared to single-loss models.
- The combination of generalized and specialized losses improved robustness, particularly in scenarios with class imbalance.
- Focal loss demonstrated superior performance in handling long-tailed data distributions, maintaining higher accuracy under perturbations.
- Models using only binary cross-entropy exhibited faster accuracy decline when subjected to gradient-based adversarial attacks.
- The most salient gradients were found to be highly influential in determining model failure points, especially in single-loss setups.
- Robustness was not solely a function of model architecture but was significantly influenced by loss function design and training objective.
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.