Beyond scalar losses: calibrating segmentation models via gradient vector field surgery

Laurin Lux, Alexander H. Berger, Moritz Knolle, Daniel Rückert, Johannes C. Paetzold
7/15/2026
cs.CVcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Region-based loss functions, such as the Dice loss, have established themselves as the de facto standard for highly class- and region-imbalanced segmentation tasks. However, models trained using region-based loss functions are notoriously miscalibrated and typically yield over-confident predictions.

Show full abstract

In medical imaging applications, such as defining tumor resection margins, this miscalibration is hindering clinical adoption. In this work, we outline a novel gradient perspective on this overconfidence and show how it affects region-based loss functions. We propose a "surgery" on the gradient vector field as a simple, yet effective intervention to mitigate calibration issues. This surgery adds a factor to the loss's partial derivative, scaling the gradient's magnitude linearly with the prediction error. In empirical evaluations across 2D and 3D medical segmentation tasks, we demonstrate the effectiveness of this intervention while maintaining high prediction accuracy when used in conjunction with any region-based loss function.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lux2026beyond,
  title  = {Beyond scalar losses: calibrating segmentation models via gradient vector field surgery},
  author = {Laurin Lux and Alexander H. Berger and Moritz Knolle and Daniel Rückert and Johannes C. Paetzold},
  year   = {2026},
  eprint = {2607.14338},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.14338v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.14338.svg)](https://codeofpaper.com/paper/2607.14338)

Discussion