Adaptive Real-Time Multi-Loss Function Optimization Using Dynamic Memory Fusion Framework: A Case Study on Breast Cancer Segmentation
Published version: https://doi.org/10.1016/j.bspc.2025.108388
Amin Golnari, Mostafa Diba. "Adaptive Real-Time Multi-Loss Function Optimization Using Dynamic Memory Fusion Framework: A Case Study on Breast Cancer Segmentation" https://doi.org/10.1016/j.bspc.2025.108388
Amin Golnari a, Mostafa Diba a
a) Faculty of Electrical Engineering, Shahrood University of Technology, Shahrood, Iran
Link to the preprint version: Click here
Or You Can Run this Python Code on Google Colab:
Compatibility:
- TensorFlow: 2.17.0
- Keras: 3.4.1
- TensorFlow Datasets: 4.9.6
The Dynamic Memory Fusion Framework is an adaptive, real-time, multi-loss functions optimization framework designed to improve deep learning task performance.
This framework is based on deep learning and addresses the inefficiencies of manual tuning in multi-loss functions by dynamically adjusting loss weights during training. It utilizes historical loss data to update weights and integrates auxiliary loss functions that enhance model performance, especially in the early stages of training. Additionally, the Class-Balanced Dice Loss function is introduced to address the issue of class imbalance, which is crucial for accurate segmentation tasks.
-
Dynamic Weight Adjustment:
- The framework dynamically adjusts the weighting of multiple loss functions in real time based on historical loss values.
- This adaptation ensures better performance across different training stages without the need for manual fine-tuning.
-
Class-Balanced Dice Loss (CB-Dice):
- A novel loss function that handles class imbalance by focusing more on underrepresented classes, improving the overall segmentation accuracy.
-
Auxiliary Loss Functions:
- Auxiliary loss functions are employed to assist in the early stages of training, helping the model converge faster.
-
Breast Ultrasound Dataset:
- The framework has been tested on breast ultrasound datasets, demonstrating improvements in segmentation accuracy and robustness across various metrics, such as Dice score and IoU (Intersection over Union).
The CB-Dice Loss function is crucial in image segmentation where there is often a significant class imbalance. In this framework, the Dice loss function has been modified to prioritize underrepresented classes, ensuring better accuracy for minority class segmentation (e.g., cancerous regions in medical images).
If our work is helpful to you, please kindly cite our paper as:
@article{GOLNARI2024DMF,
title={Adaptive Real-Time Multi-Loss Function Optimization Using Dynamic Memory Fusion Framework: A Case Study on Breast Cancer Segmentation},
author={Golnari, Amin and Diba, Mostafa},
journal={Biomedical Signal Processing and Control},
volume={111},
pages={108388},
year={2026},
doi={https://doi.org/10.1016/j.bspc.2025.108388}
}