Manuscript Offprint

arXiv:2610.32266

Hyperparameter-Free Boundary-Interior t-vMF Dice Loss for Medical Image Segmentation

Hinako Mitsuoka, Kazuhiro Hotta

ABSTRACT

Class imbalance and errors near anatomical boundaries remain challenges in medical image segmentation, motivating loss functions that account for these difficulties. Adaptive t-vMF Dice Loss adjusts the similarity function during training but requires hyperparameter tuning. We propose Self-Tuned Boundary-Aware t-vMF Dice Loss (STB-tvMF Dice), which adapts the function separately for boundary and interior regions without tuning shape-adaptation parameters. Each region's shape parameter of t-vMF function is determined from its mean prediction–target cosine similarity in the preceding epoch and remains fixed throughout the current epoch. This rule maximizes the slope of the similarity function at the observed mean similarity, providing a principled basis for adaptation without validation-based parameter selection. Experiments on three datasets and architectures demonstrated its effectiveness. On Synapse with U-Net, STB-tvMF Dice achieved a mean DSC of 70.75%, compared with 63.03% for Adaptive t-vMF Dice Loss. Our code will be available soon.

Index Terms— Loss function, Semantic segmentation, Medical image, Hyperparameter-free learning, boundary-aware learning

1. INTRODUCTION

Medical image segmentation is challenged by substantial class imbalance and ambiguous image information near anatomical boundaries. Loss functions play an important role in determining how prediction errors are evaluated during training. Cross-entropy and Dice losses [1]^{[1]} provide complementary objectives based on pixel-wise classification and region overlap, respectively. Various extensions have been developed to address their limitations. Tversky loss adjusts the relative contributions of false positives and false negatives, while Focal Tversky loss emphasizes difficult predictions [2,3]^{[2, 3]}. Other approaches combine cross-entropy and Dice through additive or multiplicative formulations to incorporate both objectives [4]^{[4]}. Beyond selecting which errors to emphasize, the mapping from prediction–target agreement to a loss value determines how improvements in agreement influence optimization. Adaptive t-vMF Dice Loss addresses

(a) How is the shape parameter set?

Figure

(b) DSC under hyperparameter sweep vs. Ours

Fig. 1. Self-tuning mechanism and performance of STB-tvMF Dice Loss. (a) Boundary and interior shape parameters are updated using mean cosine similarities from the previous training epoch, without hyperparameter search. (b) DSC across three datasets and three architectures. Blue dots show Adaptive t-vMF Dice Loss with λ∈{2,32,128,256,1024}\lambda \in \{2, 32, 128, 256, 1024\}; dotted lines connect these settings, not uncertainty intervals. Labels indicate the best λ\lambda selected retrospectively by test DSC. Red stars denote our method.

this aspect by adapting a similarity function using class-wise validation performance[5]. However, its adaptation requires validation data and a manually selected scaling coefficient. Moreover, prediction agreement can differ between boundary and interior regions within the same class, motivating adaptation that distinguishes these regions. This raises the question of whether the similarity function can be determined directly from the learning state of each region without manual parameter search.

We propose Self-Tuned Boundary-Aware t-vMF Dice Loss (STB-tvMF Dice). The proposed loss partitions pixels into boundary and interior regions using ground-truth labels and evaluates prediction-target cosine similarity separately in each region. For each region, a bounded parameter ρ\rho controls the shape of the similarity function. We derive a self-tuning rule by maximizing the slope of this function at the observed mean cosine similarity. The resulting rule sets ρ\rho to the mean cosine similarity of the corresponding region. Statistics are accumulated during training, and the mean from the preceding epoch determines the shape parameter for the current epoch. This procedure adapts the shape parameters using training statistics alone, without validation data or hyperparameter search.

Our contributions are twofold. First, we introduce a boundary-interior t-vMF Dice formulation with a self-tuning rule grounded in the local sensitivity of the similarity function, eliminating manual search for loss-specific adaptation parameters. Second, we evaluated the proposed loss through experiments on Kvasir-SEG, ACDC, and Synapse[6, 7, 8] using U-Net, TransUNet, and EMCAD[9, 10, 11]. Compared with the best tested scaling-coefficient settings of Adaptive t-vMF Dice Loss, our method improved the mean Dice similarity coefficient (DSC) on Synapse by 7.72 and 2.56% with U-Net and TransUNet, respectively. With EMCAD, our method outperformed all compared losses on Kvasir-SEG and ACDC, and achieved a comparable DSC on Synapse for the best Adaptive t-vMF setting. Our method achieved these results without manual search for shape-adaptation parameters.

References (14)

  • V-net: Fully convolutional neural networks for volumetric medical image segmentation
  • Tversky loss function for image segmentation using 3d fully convolutional deep networks
  • A novel focal tversky loss function with improved attention u-net for lesion segmentation
  • Multiplicative loss for enhancing semantic segmentation in medical and cellular images
  • Adaptive t-vmf dice loss: An effective expansion of dice loss for medical image segmentation
  • Kvasirseg: A segmented polyp dataset
  • Deep learning techniques for automatic mri cardiac multi-structures segmentation and diagnosis: Is the problem solved?
  • Multi-atlas labeling beyond the cranial vault - workshop and challenge (opens the publisher in a new tab)
  • U-net: Convolutional networks for biomedical image segmentation
  • TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation
  • Em-cad: Efficient multi-scale convolutional attention decoding for medical image segmentation
  • t-vmf similarity for regularizing intra-class feature distribution
  • Topk dice loss for medical image segmentation
  • Adaptive boundary-enhanced dice loss for image segmentation