cs.CVNov 23, 2026

Medical Image Segmentation Is Now Just Another Coding Task

Authors: Shuheng Cao, Ruiqi Chen, Qizhen Lan, Edward Wang, Xiyun Hu, Yilei Wang, Juqy Chen, Weilin Huang, 

Organizations: University of California, San Diego · University of Michigan · The University of Texas Health Science Center at Houston · University of North Carolina at Chapel Hill

Abstract

For decades, every new medical image segmentation task has needed an expert, a dedicated architecture, and a framework such as nnU-Net. This is no longer the case: medical image segmentation is now just another coding task. Given only a task description, labeled data, and a CPU (with no segmentation framework, no pretrained weights, and no human in the loop), four off-the-shelf coding agents built segmenters for 13 tasks across four imaging modalities within hours, an ability that has emerged rather than been built. On the nine 2D tasks, their best programs reach 99% of the Dice of a GPU-trained nnU-Net. Like any code, a segmenter improves by being revised and checked, so we ask how far the same agents can improve their own segmentations and what unlocks further gains. On unseen cases there is no reference, so the agents inspect renderings of their own predictions: this alone lifts the worst tenth of cases by 0.09 Dice and cuts boundary error (HD95) by almost a quarter. Far more is within reach. Told the true Dice of each attempt, the same agents improve in all 14 matched pairs, rescue 85% of failed masks instead of 30%, and surpass the GPU-trained nnU-Net on average, by producing better masks rather than by choosing among them. What unlocks these gains is a quality signal, which neither visual inspection, nor more rounds, nor a quality estimator trained by the agents themselves yet supplies: we call this the quality blind spot. The ability to build and to repair is already present; the next advance will come not from another segmentation model, but from reference-free quality estimation that coding agents can call.

Figures & tables

Explore similar work

CardsList
  1. nnInteractive Agent: General-Purpose AI Agents as 3D Image Annotators

    Oct 22, 2026Fabian Isensee, Constantin Ulrich Harsy, Maximilian Rokuss +3Medical AI AgentsTool-Using Agents

  2. GazeRefine: Expert Gaze as a Test-Time Prompt for Training-Free Medical Image Segmentation

    Sep 1, 2026Mohammed Oussama Benyahia, Marouane Tliba, Mohamed Amine Kerkouri +10Interactive Medical Image SegmentationImage Segmentation

  3. SegBanana: Steering Unified Multimodal Models into Medical Segmenters

    Sep 28, 2026Xiaoye Liang, Ye Yan, Mingze Yin +5Unified Multimodal ModelsMedical Image Segmentation