How Does Loss Function Affect Generalization Performance of Deep Learning? Application to Human Age Estimation
Ali Akbari, Muhammad Awais, Manijeh Bashar, Josef Kittler
Abstract
Good generalization performance across a wide variety of domains caused by many external and internal factors is the fundamental goal of any machine learning algorithm. This paper theoretically proves that the choice of loss function matters for improving the generalization performance of deep learning-based systems. By deriving the generalization error bound for deep neural models trained by stochastic gradient descent, we pinpoint the characteristics of the loss function that is linked to the generalization error, and can therefore be used for guiding the loss function selection process. In summary, our main statement in this paper is: choose a stable loss function, generalize better. Focusing on human age estimation from the face which is a challenging topic in computer vision, we then propose a novel loss function for this learning problem. We theoretically prove that the proposed loss function achieves stronger stability, and consequently a tighter generalization error bound, compared to the other common loss functions for this problem. We have supported our findings theoretically, and demonstrated the merits of the guidance process experimentally, achieving significant improvements.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers4
- Spectral Co-Distillation for Personalized Federated LearningZihan Chen, Howard H. Yang, Tony Q. S. Quek, Kai Fong Ernest ChongNeurIPS 2023 · 30 citations
- Domain Generalized Medical Landmark Detection via Robust Boundary-Aware Pre-TrainingHaifan Gong, Yu Lu, Xiang Wan, Haofeng LiAAAI 2025 · 4 citations
- Improved Monocular Depth Prediction Using Distance Transform Over Pre-semantic Contours with Self-supervised Neural NetworksMarwane Hariat, Antoine Manzanera, David FilliatCVPR 2025
- SongBsAb: A Dual Prevention Approach against Singing Voice Conversion based Illegal Song CoversGuangke Chen, Yedi Zhang, Fu Song, Ting Wang et al.NDSS 2025
Related papers
- Stochastic Loss FunctionQingliang Liu, Jinmei LaiAAAI 2020 · 16 citations
- Order Regularization on Ordinal Loss for Head Pose, Age and Gaze EstimationTianchu Guo, Hui Zhang, ByungIn Yoo, Yongchao Liu et al.AAAI 2021 · 11 citations
- PML: Progressive Margin Loss for Long-Tailed Age ClassificationZongyong Deng, Hao Liu, Yaoxing Wang, Chenyang Wang et al.CVPR 2021
- Generalizability of Neural Networks Minimizing Empirical Risk Based on Expressive PowerLijia Yu, Yibo Miao, Yifan Zhu, Xiao-Shan Gao et al.ICLR 2025
- A step towards understanding why classification helps regressionSilvia L. Pintea, Yancong Lin, Jouke Dijkstra, Jan C. van GemertICCV 2023 · 17 citations
