GET: Generative Embedding Translation for Medical Image Segmentation
Organizations: Texas A&M University, College Station, TX, USA · Independent Researcher · Alfa Laval
Abstract
Generative segmentation provides an alternative to direct pixel-wise prediction by operating on learned latent representations, but effective image-to-mask translation must preserve target structure while remaining computationally efficient. We propose Generative Embedding Translation (GET), a structured embedding-translation framework that progressively transforms image embeddings into mask embeddings within the frozen latent space of a Stable Diffusion VAE. GET uses a U-Net-style Embedding Translation Network with 1.07M trainable parameters, combining Mobile Bottleneck Convolutions, Subsampled Self-Attention, and Multi-scale Feature Enrichment for local modeling, global context, and multi-scale refinement. Across five medical segmentation datasets, GET outperforms generative, CNN, and Transformer baselines. Compared with the strongest generative baseline, GMS, GET improves average Dice and IoU by 0.93% and 1.26%, reduces HD95 by 0.81 pixels, and uses 31.41% fewer trainable parameters. Under bidirectional BUS-BUSI domain shift, GET further improves Dice and IoU by 3.51% and 3.39%, while reducing HD95 by 27.37 pixels. Our code is available at: https://github.com/maklachur/GET.
Figures & tables
| AT | Model | Trainable Params (M) | BUS | BUSI | ||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |||
| C | UNet [ 28 ] | 14.03 | 81.65 .50 | 70.98 .73 | 17.50 1.90 | 72.42 .79 | 63.18 1.05 | 35.22 4.10 |
| C | MultiResUNet [ 15 ] | 7.26 | 80.56 .47 | 70.54 .69 | 19.04 2.02 | 72.58 .82 | 62.77 1.08 | 33.99 3.85 |
| C | ACC-UNet [ 14 ] | 16.77 | 83.30 .51 | 73.36 .77 | 16.62 1.73 | 77.34 .65 | 68.71 .92 | 25.26 2.85 |
| C | nnUNet [ 16 ] | 20.6 | 85.61 .36 | 78.53 .58 | 11.56 1.15 | 79.60 .59 | 71.20 .86 | 21.89 2.41 |
| C | EGE-UNet [ 29 ] | 0.05 | 72.94 .75 | 62.15 .98 | 27.57 3.05 | 75.32 .89 | 60.42 1.14 | 29.30 3.42 |
| Model | GlaS | Kvasir–Instrument | HAM10000 | ||||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | DSC | IoU | HD95 | |
| UNet | 88.08 .47 | 80.17 .72 | 18.27 1.96 | 93.86 .29 | 89.30 .49 | 8.69 .79 | 92.36 .29 | 87.14 .50 | 13.51 1.22 |
| MultiResUNet | 88.41 .50 | 80.45 .77 | 17.29 1.83 | 92.33 .27 | 87.06 .46 | 9.48 .86 | 92.64 .26 | 87.43 .46 | 13.29 1.17 |
| ACC-UNet | 88.72 .46 | 81.03 .70 | 16.92 1.69 | 93.96 .31 | 89.82 .57 | 8.71 .76 | 93.33 .25 | 88.67 .45 | 10.58 .92 |
| nnUNet | 87.30 .43 | 78.32 .68 | 19.98 2.12 | 93.97 .26 | 90.24 .45 | 8.50 .72 | 93.89 .28 | 89.43 .51 | 9.31 .79 |
| EGE-UNet | 83.20 .67 | 71.24 .99 | 28.87 2.98 | 92.62 .38 | 86.25 .68 | 9.06 .87 | 93.03 .31 | 87.97 .54 | 11.14 .98 |
| Model | BUSI BUS | BUS BUSI | ||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |
| UNet | 63.20 | 51.11 | 46.50 | 53.71 | 47.81 | 98.07 |
| MultiResUNet | 61.61 | 50.25 | 53.71 | 56.24 | 50.32 | 92.40 |
| ACC - UNet | 64.71 | 52.39 | 42.08 | 47.61 | 46.68 | 136.11 |
| nnUNet | 78.33 | 67.84 | 20.90 | 59.18 | 53.75 | 88.27 |
| EGE - UNet | 68.90 | 56.81 | 33.94 | 54.37 | 50.39 | 106.08 |
| Modules | BUS | BUSI | GlaS | ||||||||
| MBC | MFE | SSA | DSC | IoU | HD95 | DSC | IoU | HD95 | DSC | IoU | HD95 |
| Baseline | 88.48 | 80.05 | 6.72 | 79.23 | 70.73 | 21.06 | 87.38 | 78.56 | 18.82 | ||
| ✓ | 89.34 | 81.26 | 6.53 | 80.27 | 71.33 | 19.43 | 87.68 | 79.24 | 17.84 | ||
| ✓ | 89.15 | 80.95 | 6.76 | 81.01 | 72.07 | 21.15 | 88.22 | 79.91 | 16.75 | ||
| ✓ | 89.27 | 81.04 | 7.11 | 80.78 | 71.95 | 20.09 | 87.96 | 79.37 | 18.54 | ||
| ✓ | ✓ | 90.01 | 82.42 | 5.71 | 81.41 | 72.17 | 19.26 | 88.61 | 80.44 | 18.30 | |
| Dilation Rates ( ) | BUS | GlaS | ||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |
| Two-branch | ||||||
| 89.20 | 81.26 | 6.21 | 88.21 | 78.89 | 18.83 | |
| 89.58 | 81.60 | 5.97 | 88.57 | 79.50 | 18.57 | |
| 89.82 | 81.52 | 5.38 | 88.80 | 79.83 | 18.00 | |
| 90.07 | 81.87 | 5.68 | 88.82 | 80.02 | 17.50 | |
| Loss | BUS | GlaS | |||||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | ||||
| ✓ | ✓ | 90.09 | 82.29 | 8.62 | 87.05 | 78.40 | 20.43 | ||
| ✓ | ✓ | ✓ | 90.48 | 83.09 | 6.40 | 88.83 | 80.92 | 17.78 | |
| ✓ | ✓ | ✓ | 90.38 | 82.81 | 8.07 | 88.05 | 79.96 | 17.81 | |
| ✓ | ✓ | 89.60 | 81.64 | 6.34 | 87.79 | 79.46 | 18.24 | ||
| ✓ | ✓ | ✓ | 90.18 | 82.58 | 5.30 | 88.70 | 80.87 | 17.11 | |
| Aux Decoder(s) | BUS | GlaS | ||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |
| None | 88.51 | 79.93 | 6.99 | 89.07 | 81.35 | 17.14 |
| s1 | 90.76 | 83.48 | 4.84 | 89.24 | 81.67 | 15.62 |
| s2 | 90.28 | 82.60 | 5.26 | 89.18 | 81.45 | 17.41 |
| s3 | 89.79 | 82.01 | 5.61 | 88.93 | 80.96 | 17.14 |
| s1+s2 | 90.55 | 83.11 | 5.11 | 89.27 | 81.63 | 16.43 |
| Dataset | Dice | IoU | HD95 | |||
| SD | VQ | SD | VQ | SD | VQ | |
| BUSI [ 2 ] | 83.03 | 81.16 | 74.56 | 72.66 | 16.99 | 21.30 |
| HAM10000 [ 32 ] | 94.23 | 93.09 | 89.95 | 88.19 | 9.06 | 12.48 |
| Kvasir-Instr. [ 17 ] | 94.55 | 92.97 | 90.63 | 89.11 | 8.45 | 10.85 |
| Model | GFLOPs | Throughput (samples/s) | Speedup (×) |
| MedSegDiff-V2 [ 39 ] | 972.66 | 0.62 | |
| SDSeg [ 19 ] | 655.34 | 15.04 | |
| GSS [ 5 ] | 476.28 | 16.24 | |
| GMS [ 12 ] | 343.85 | 27.68 | |
| GET (Ours) | 341.14 | 28.07 |
| BUS | GlaS | |||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |
| 1 | 90.40 | 82.89 | 5.19 | 89.03 | 81.27 | 16.42 |
| 2 | 90.76 | 83.48 | 4.84 | 89.24 | 81.67 | 15.62 |
| 4 | 88.72 | 80.53 | 6.45 | 87.63 | 79.44 | 18.18 |
| DS Weights ( ) | BUS | GlaS | ||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |
| Uniform weights: (1.0, 1.0, 1.0, 1.0) | 86.42 | 78.72 | 11.62 | 86.37 | 77.37 | 21.82 |
| Linear weights: (1.0, 0.75, 0.5, 0.25) | 89.22 | 81.43 | 10.65 | 88.40 | 80.48 | 16.79 |
| Monotonic weights: (1.0, 0.4, 0.3, 0.2) | 90.76 | 83.48 | 4.84 | 89.24 | 81.67 | 15.62 |
| BUS | GlaS | |||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |
| 0.1 | 89.83 | 81.55 | 7.15 | 87.86 | 79.51 | 17.26 |
| 0.3 | 90.12 | 82.41 | 5.94 | 88.15 | 80.00 | 17.49 |
| 0.4 | 90.40 | 82.89 | 5.19 | 88.63 | 80.57 | 18.50 |
| 0.5 | 90.76 | 83.48 | 4.84 | 89.24 | 81.67 | 15.62 |
| 0.6 | 90.28 | 82.73 | 5.76 | 89.06 | 81.12 | 16.04 |
| BUS | GlaS | |||||
| DSC | IoU | HD95 | DSC | IoU | HD95 | |
| 0.001 | 88.52 | 80.34 | 8.94 | 88.37 | 80.19 | 17.89 |
| 0.005 | 89.25 | 81.41 | 7.78 | 88.94 | 80.97 | 16.38 |
| 0.01 | 90.76 | 83.48 | 4.84 | 89.24 | 81.67 | 15.62 |
| 0.02 | 89.02 | 81.04 | 6.94 | 88.72 | 80.89 | 17.06 |
| 0.05 | 88.13 | 79.93 | 9.05 | 88.21 | 79.97 | 17.14 |
Image Segmentation
Image segmentation assigns pixels or voxels to objects and regions, supporting measurement, scene understanding, and decisions across image domains.
See all 399 papers