Metric Positional Encoding in Transformer-Based 3D Medical Image Segmentation Under Controlled Spacing Changes

In 3D computed tomography segmentation, differences in voxel spacing mean that equal separations on the voxel grid correspond to different physical distances. Many Transformers incorporate positional encodings because self-attention does not explicitly represent position. However, index-based encodings do not express these distances. Whether metric coordinates improve performance or the response to resampling remains unclear. We evaluated this effect using a factorial UNETR design that combined index or physical coordinates with additive Fourier encoding or 3D RoPE. In KiTS23, we evaluated 391 patients across three folds; 117 were resampled to inter-slice spacings of 3, 4, and 5 mm. Control conditions varied the supplied spacing without altering the image. We repeated the RoPE comparison after training the models from scratch on AMOS22-CT. Among the 117 eligible KiTS23 cases, the metric variants responded to the supplied spacing, but no average advantage in Surface Dice change after resampling was demonstrated (contrast: −0.0029; 95% CI: −0.0104 to 0.0043). In 38 eligible AMOS22-CT cases, metric RoPE maintained higher absolute Surface Dice than index-based RoPE, although its advantage decreased from 0.0512 at the original spacing to 0.0216 at 5 mm. The change in Surface Dice from the original-spacing condition was less favorable for metric RoPE (contrast: −0.0241; 95% CI: −0.0296 to −0.0186). For the evaluated models, metric coordinates did not demonstrate a more favorable response to retrospective resampling, despite sensitivity to supplied spacing and higher absolute Surface Dice in AMOS22-CT. The 95% confidence intervals quantify uncertainty due to patient sampling conditional on the trained models; they do not capture variability across training runs.

Authors

Publication Details

Journal
Journal of Imaging
Published
2026-11-09
DOI
https://doi.org/10.3390/jimaging12110562
Primary Topic
Medical Image Segmentation Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Metric Positional Encoding in Transformer-Based 3D Medical Image Segmentation Under Controlled Spacing Changes

German Sanchez-Torres, Carlos N. Henríquez-Miranda, Malak A. Sanchez-Cataño
Journal of Imaging
Medical Image Segmentation Techniques
article

Metric Positional Encoding in Transformer-Based 3D Medical Image Segmentation Under Controlled Spacing Changes

German Sanchez-Torres, Carlos N. Henríquez-Miranda, Malak A. Sanchez-Cataño
article en

Abstract

In 3D computed tomography segmentation, differences in voxel spacing mean that equal separations on the voxel grid correspond to different physical distances. Many Transformers incorporate positional encodings because self-attention does not explicitly represent position. However, index-based encodings do not express these distances. Whether metric coordinates improve performance or the response to resampling remains unclear. We evaluated this effect using a factorial UNETR design that combined index or physical coordinates with additive Fourier encoding or 3D RoPE. In KiTS23, we evaluated 391 patients across three folds; 117 were resampled to inter-slice spacings of 3, 4, and 5 mm. Control conditions varied the supplied spacing without altering the image. We repeated the RoPE comparison after training the models from scratch on AMOS22-CT. Among the 117 eligible KiTS23 cases, the metric variants responded to the supplied spacing, but no average advantage in Surface Dice change after resampling was demonstrated (contrast: −0.0029; 95% CI: −0.0104 to 0.0043). In 38 eligible AMOS22-CT cases, metric RoPE maintained higher absolute Surface Dice than index-based RoPE, although its advantage decreased from 0.0512 at the original spacing to 0.0216 at 5 mm. The change in Surface Dice from the original-spacing condition was less favorable for metric RoPE (contrast: −0.0241; 95% CI: −0.0296 to −0.0186). For the evaluated models, metric coordinates did not demonstrate a more favorable response to retrospective resampling, despite sensitivity to supplied spacing and higher absolute Surface Dice in AMOS22-CT. The 95% confidence intervals quantify uncertainty due to patient sampling conditional on the trained models; they do not capture variability across training runs.

Journal of ImagingVol. 12(11)
Medical Image Segmentation Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon