Camyla: Scaling Autonomous Research in Medical Image Segmentation
Organizations: University of Science and Technology of China · Shanghai Innovation Institute · Shanghai Jiao Tong University · Shanghai Artificial Intelligence Laboratory
Abstract
We present Camyla, a system for fully autonomous research within the scientific domain of medical image segmentation. Camyla transforms raw datasets into literature-grounded research proposals, executable experiments, and complete manuscripts without human intervention. Autonomous experimentation over long horizons poses three interrelated challenges: search effort drifts toward unpromising directions, knowledge from earlier trials degrades as context accumulates, and recovery from failures collapses into repetitive incremental fixes. To address these challenges, the system combines three coupled mechanisms: Quality-Weighted Branch Exploration for allocating effort across competing proposals, Layered Reflective Memory for retaining and compressing cross-trial knowledge at multiple granularities, and Divergent Diagnostic Feedback for diversifying recovery after underperforming trials. The system is evaluated on CamylaBench, a contamination-free benchmark of 31 datasets constructed exclusively from 2025 publications, under a strict zero-intervention protocol across two independent runs within a total of 28 days on an 8-GPU cluster. Across the two runs, Camyla generates more than 2,700 novel model implementations and 40 complete manuscripts, and surpasses the strongest per-dataset baseline selected from 14 established architectures, including nnU-Net, on 22 and 18 of 31 datasets under identical training budgets, respectively (union: 24/31). Senior human reviewers score the generated manuscripts at the T1/T2 boundary of contemporary medical imaging journals. Relative to automated baselines, Camyla outperforms AutoML and NAS systems on aggregate segmentation performance and exceeds six open-ended research agents on both task completion and baseline-surpassing frequency. These results suggest that domain-scale autonomous research is achievable in medical image segmentation.
Figures & tables
| ID | Dataset | Region | Modality | N | C | Cfg | Baseline | Dice | ID | Dataset | Region | Modality | N | C | Cfg | Baseline | Dice |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 † | GDMRI-CT | Brain | MRI | 50 | 1 | 3D | STU-Net | 70.6 | 17 | Fundus-AVSeg | Ophthal. | Fundus | 100 | 3 | 2D | U-Mamba | 77.6 |
| 2 † | MRE-BSA | Abdomen | MRI | 114 | 10 | 3D | U-Mamba | 71.8 | 18 | HRUS-MBT | Soft Tiss. | Ultrasound | 34 | 1 | 3D | nnU-Net | 50.1 |
| 3 † | PNPC | Head&Neck | MRI | 277 | 1 | 3D | nnU-Net | 60.6 | 19 | LapGC-KVAD | Abdomen | Laparoscopy | 1252 | 4 | 2D | U-Mamba | 52.8 |
| 4 † | AMSMC-HTM | Head&Neck | MRI | 24 | 4 | 3D | nnU-Net | 81.4 | 20 | LongCIU | Lung | CT | 90 | 2 | 2D | nnU-Net | 73.5 |
| 5 † | NLSTseg | Lung | CT | 604 | 1 | 3D | nnU-Net | 23.2 | 21 | MSLesSeg | Brain | MRI | 115 | 1 | 3D | U-Mamba | 69.6 |
| 6 | SMRI-FB | Brain | MRI | 70 | 8 | 3D | MedNeXt | 85.3 | 22 | MU-Glioma | Brain | MRI | 594 | 4 | 3D | nnU-Net | 71.6 |
| Cycle | Trial | Dice | Status | Diagnostic | Modification Record (abridged) |
| Cycle 1: HCP-Net — Hierarchical Token Diffusion replacing skip connections | |||||
| 1 | 1 | 0.7142 | Baseline | — | Precomputed UKAN baseline. |
| 1 | 2 | 0.6835 | Underperf. | impl. shortcut | HTD with cross-attention; hierarchy embedding omitted. |
| 1 | 3 | 0.7682 | Success | — | HTD at 64 64; learnable hierarchy embeddings as query bias. |
| 1 | 6 | 0.7610 | Success | — | Reverted to query-bias (guided by Trial 3 in cycle memory). |
| 1 | 7 | 0.6976 | Underperf. | regression | Added Sobel edge-aware refinement; hurt Dice. |
| Camyla | Camyla | |
| Idea generator model | DeepSeek V3.2 | Claude Sonnet 4.6 |
| Success rate (all 31) | 18 / 31 (58.1%) | 22 / 31 (71.0%) |
| Blind-test (26) | 14 / 26 (53.8%) | 18 / 26 (69.2%) |
| Validation (5) | 4 / 5 | 4 / 5 |
| Win via Dice | 16 | 11 |
| Win via HD95 tiebreak | 2 | 11 |
| All (31) | Blind-test (26) | |
| Both runs succeed | 16 | 12 |
| Camyla only | 2 | 2 |
| Camyla only | 6 | 6 |
| Neither | 7 | 6 |
| Union | 24 (77.4%) | 20 (76.9%) |
| Method | Type | Search Space | Paper |
|---|---|---|---|
| AutoNNUNet | AutoML | Closed | No |
| DiNTS | NAS | Closed | No |
| AutoSeg3D | Ensemble | Closed | No |
| autoresearch | Research agent | Open | No |
| AI Scientist | Research agent | Open | Yes |
| AI Scientist-v2 | Research agent | Open | Yes |
| Method | Datasets | Mean Dice | Pareto vs Camyla |
|---|---|---|---|
| AutoNNUNet | 31 | 64.27% | 9/31 |
| DiNTS (retrained) | 31 | 58.03% | 1/31 |
| AutoSeg3D | 18 | 63.43% | 5/18 |
| Camyla | 31 | 65.93% | — |
| Camyla | 31 | 65.22% | — |
| Family | Configuration | Completed | Baseline | Proposal Drift | Mean Dice | Mean HD95 | Median Dice | Median HD95 |
| autoresearch | Claude Code + Opus 4.6 | 18 / 26 | 10 / 26 | 4 / 26 | 63.14% | 34.72 | 67.25% | 20.83 |
| autoresearch | Claude Code + MiniMax 2.5 | 15 / 26 | 12 / 26 | 14 / 26 | 62.58% | 36.41 | 66.43% | 22.15 |
| autoresearch | Claude Code + GLM 4.7 | 16 / 26 | 10 / 26 | 12 / 26 | 62.21% | 37.06 | 65.89% | 23.04 |
| autoresearch | Codex + GPT-5.4 ( xhigh ) | 12 / 26 | 8 / 26 | 10 / 26 | 61.35% | 38.92 | 64.71% | 24.67 |
| AI Scientist | Default workflow | 18 / 26 | 5 / 26 | – | 60.24% | 40.55 | 63.18% | 26.31 |
| AI Scientist-v2 | BFTS workflow | 12 / 26 | 3 / 26 | – | 58.73% | 43.18 | 61.52% | 28.94 |
| Tier | Journals | Papers | Representative venues |
|---|---|---|---|
| T1 | 2 | 10 | IEEE Transactions on Medical Imaging; Medical Image Analysis |
| T2 | 7 | 35 | IEEE Journal of Biomedical and Health Informatics; Artificial Intelligence in Medicine; et al. |
| T3 | 9 | 45 | International Journal of Computer Assisted Radiology and Surgery; Biomedical Physics & Engineering Express; et al. |
| Total | 18 | 90 |
| Source | T1 | T2 | T3 | Internal | Ext. Overall |
|---|---|---|---|---|---|
| Junior reviewers | 3.208 | 3.109 | 2.433 | 3.053 | 2.954 |
| Senior reviewers | 3.364 | 3.217 | 2.792 | 3.311 | 3.038 |
| All human | 3.257 | 3.145 | 2.558 | 3.137 | 2.972 |
| AI average (5 models) | 3.644 | 3.051 | 2.492 | 3.610 | 2.862 |
| T1 | T2 | T3 | Int. Blind | Int. Val. | Int. All | Ext. All | |
| Stanford Agentic | 5.690 | 4.603 | 4.422 | 4.766 | 4.363 | 4.685 | 4.633 |
| Configuration | Wins ( / 5) | Mean Dice | Mean FSP | Mean Nodes |
|---|---|---|---|---|
| Full Camyla | 4 | +1.85 | 4.8 | 21.4 |
| QWBE | 3 | +1.31 | 9.5 | 26.8 |
| LRM | 2 | +0.47 | 6.3 | 24.2 |
| DDF | 3 | +1.02 | 7.3 | 23.6 |
| ID | Dataset | BL | Best | FSP | N | ID | Dataset | BL | Best | FSP | N | ||
| Full Camyla | QWBE | ||||||||||||
| 1 | GDMRI-CT | 72.33 | 73.87 | +1.53 | 12 | 30 | 1 | GDMRI-CT | 72.33 | 72.98 | +0.65 | 18 | 30 |
| 2 | MRE-BSA | 71.79 | 70.40 | 1.39 | – | 30 | 2 | MRE-BSA | 71.79 | 69.87 | 1.92 | – | 30 |
| 3 | PNPC | 60.63 | 61.34 | +0.71 | 19 | 30 | 3 | PNPC | 60.63 | 61.08 | +0.45 | 22 | 30 |
| 4 | AMSMC-HTM | 81.41 | 82.69 | +1.29 | 1 | 30 | 4 | AMSMC-HTM | 81.41 | 82.25 | +0.84 | 6 | 30 |
| 5 | NLSTseg | 23.20 | 41.78 | +18.58 | 1 | 30 | 5 | NLSTseg | 23.20 | 36.41 | +13.21 | 3 | 30 |
| Camyla (DeepSeek V3.2) | Camyla (Claude Sonnet 4.6) | ||||||||||
| ID | Dataset | BL (%) | Best | BL | FSP | Mech. | Best | BL | FSP | Mech. | |
| 1 † | GDMRI-CT | 72.33 | 73.87 | +1.54 | 12 | D | 72.49 | +0.16 | 1 | H | 1.38 |
| 3 † | PNPC | 60.63 | 61.34 | +0.71 | 19 | H | 61.95 | +1.32 | 18 | D | 0.61 |
| 4 † | AMSMC-HTM | 81.41 | 82.69 | +1.28 | 1 | D | 82.89 | +1.48 | 6 | H | 0.20 |
| 5 † | NLSTseg | 23.20 | 41.78 | +18.58 | 3 | D | 41.26 | +18.06 | 11 | D | 0.52 |
| 6 | SMRI-FB | 85.30 | 86.44 | +1.14 | 2 | H | 85.74 | +0.44 | 6 | H | 0.70 |
| AutoNNUNet | Camyla | Camyla | Baseline | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ID | Dataset | Cfg. | Dice | HD95 | Dice | HD95 | Dice | HD95 | Dice | HD95 |
| 1 † | GDMRI-CT | 3d | 72.83% | 7.52 | 73.87% | 5.58 | 72.49% | 7.11 | 72.33% | 8.45 |
| 2 † | MRE-BSA | 3d | 70.73% | 16.38 | 70.40% | 16.21 | 69.13% | 17.00 | 71.79% | 17.75 |
| 3 † | PNPC | 3d | 61.20% | 52.45 | 61.34% | 21.05 | 61.95% | 27.73 | 60.63% | 45.28 |
| 4 † | AMSMC-HTM | 3d | 82.77% | 2.60 | 82.69% | 2.60 | 82.89% | 2.62 | 81.41% | 2.89 |
| 5 † | NLSTseg | 3d | 47.33% | 111.85 | 41.78% | 165.10 | 41.26% | 183.73 | 23.20% | 183.22 |
| DiNTS | |||||||
|---|---|---|---|---|---|---|---|
| ID | Dataset | Cfg. | Search | Retrained | Camyla | Camyla | Baseline |
| 1 † | GDMRI-CT | 3d | 65.85% | 66.15% | 73.87% | 72.49% | 70.29% |
| 2 † | MRE-BSA | 3d | 57.92% | 63.45% | 70.40% | 69.13% | 69.72% |
| 3 † | PNPC | 3d | 48.21% | 45.79% | 61.34% | 61.95% | 60.63% |
| 4 † | AMSMC-HTM | 3d | 24.95% | 79.36% | 82.69% | 82.89% | 81.41% |
| 5 † | NLSTseg | 3d | 46.78% | 24.45% | 41.78% | 41.26% | 23.20% |
| AutoSeg3D | Camyla | Camyla | Baseline | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ID | Dataset | Cfg. | Dice | HD95 | Dice | HD95 | Dice | HD95 | Dice | HD95 |
| 1 † | GDMRI-CT | 3d | 72.03% | 7.91 | 73.87% | 5.58 | 72.49% | 7.11 | 72.33% | 8.45 |
| 2 † | MRE-BSA | 3d | 69.78% | 16.86 | 70.40% | 16.21 | 69.13% | 17.00 | 71.79% | 17.75 |
| 3 † | PNPC | 3d | 58.43% | 50.30 | 61.34% | 21.05 | 61.95% | 27.73 | 60.63% | 45.28 |
| 4 † | AMSMC-HTM | 3d | 82.50% | 2.72 | 82.69% | 2.60 | 82.89% | 2.62 | 81.41% | 2.89 |
| 5 † | NLSTseg | 3d | 41.84% | 122.56 | 41.78% | 165.10 | 41.26% | 183.73 | 23.20% | 183.22 |
| Item | Value |
|---|---|
| Benchmark datasets | 31 |
| Validation datasets | 5 |
| Blind-test datasets | 26 |
| External papers | 90 |
| Internal papers | 40 |
| Total papers | 130 |
| Group | Venue / Source | Definition | # Papers | Role in Benchmark |
| T1 | IEEE Transactions on Medical Imaging | Top-tier medical image analysis venue | 5 | External benchmark |
| T1 | Medical Image Analysis | Top-tier medical image analysis venue | 5 | External benchmark |
| T2 | IEEE Journal of Biomedical and Health Informatics | JCR Q1 specialty journal | 5 | External benchmark |
| T2 | Computerized Medical Imaging and Graphics | JCR Q1 specialty journal | 5 | External benchmark |
| T2 | Biomedical Signal Processing and Control | JCR Q1 specialty journal | 5 | External benchmark |
| T2 | Computer Methods and Programs in Biomedicine | JCR Q1 specialty journal | 5 | External benchmark |
| Architecture | 2D | 3D | Family |
| nnU-Net | ✓ | ✓ | Convolutional |
| SwinUNETR | ✓ | ✓ | Transformer |
| SegResNet | ✓ | ✓ | Convolutional |
| U-Net++ | ✓ | ✓ | Convolutional |
| U-Mamba | ✓ | ✓ | State-space |
| MedNeXt | ✓ | Convolutional |
| Configuration | Wins | ( ) | ( ) | Wilson 95% CI |
|---|---|---|---|---|
| Camyla (all 31) | 22/31 | 0.015 | [53.4%, 83.9%] | |
| Camyla (all 31) | 18/31 | 0.237 | 0.001 | [40.8%, 73.6%] |
| Camyla (blind 26) | 18/26 | 0.038 | [50.0%, 83.5%] | |
| Camyla (blind 26) | 14/26 | 0.423 | 0.007 | [35.5%, 71.2%] |
| Union (all 31) | 24/31 | 0.002 | — | [60.2%, 88.6%] |
| Union (blind 26) | 20/26 | 0.004 | — | [57.8%, 89.4%] |
| ID | Dataset | Cfg | BL Dice | Best Dice | Dice | (Dice) | Sig | (HD95) | Sig | |
| 1 | GDMRI-CT | 3D | 44 | 0.7233 | 0.7387 | +0.0153 | 5.07e-01 | n.s. | 9.75e-01 | n.s. |
| 3 | PNPC | 3D | 325 | 0.6063 | 0.6134 | +0.0071 | 1.38e-01 | n.s. | 3.85e-01 | n.s. |
| 4 | AMSMC-HTM | 3D | 251 | 0.8141 | 0.8298 | +0.0157 | 6.26e-09 | 1.28e-06 | ||
| 5 | NLSTseg | 3D | 1,446 | 0.2320 | 0.4686 | +0.2365 | 1.29e-66 | 3.04e-11 | ||
| 6 | SMRI-FB | 3D | 1,242 | 0.8530 | 0.8667 | +0.0136 | 4.52e-40 | 1.89e-22 | ||
| 7 | LMD-BM | 3D | 383 | 0.4619 | 0.5151 | +0.0532 | 1.58e-15 | 4.10e-04 |
| ID | Dataset | Cfg | BL Dice | Best Dice | Dice | (Dice) | Sig | (HD95) | Sig | |
| 1 | GDMRI-CT | 3D | 44 | 0.7233 | 0.7277 | +0.0044 | 9.52e-01 | n.s. | 3.20e-01 | n.s. |
| 3 | PNPC | 3D | 325 | 0.6063 | 0.6195 | +0.0133 | 1.64e-01 | n.s. | 4.43e-01 | n.s. |
| 4 | AMSMC-HTM | 3D | 251 | 0.8141 | 0.8289 | +0.0148 | 7.47e-06 | 1.15e-07 | ||
| 5 | NLSTseg | 3D | 1,446 | 0.2320 | 0.4126 | +0.1805 | 1e-300 | 4.95e-07 | ||
| 6 | SMRI-FB | 3D | 1,242 | 0.8530 | 0.8590 | +0.0059 | 6.77e-14 | 1.97e-07 | ||
| 7 | LMD-BM | 3D | 383 | 0.4619 | 0.5101 | +0.0482 | 1.05e-08 | 2.56e-04 |
| Run D (18) | Run S (22) | Total (40) | |
|---|---|---|---|
| Dice significant | 12 (67%) | 12 (55%) | 24 (60%) |
| HD95 significant | 11 (61%) | 13 (59%) | 24 (60%) |
| Either metric | 13 (72%) | 15 (68%) | 28 (70%) |
| Both metrics | 10 (56%) | 10 (45%) | 20 (50%) |
| Metric | Value |
|---|---|
| Total experiments | 62 |
| Total GPU-hours | 5,461.9 h |
| Total GPU-days | 227.6 d |
| Mean GPU-hours / experiment | 88.1 h |
| Median GPU-hours / experiment | 34.2 h |
| Baseline-beating experiments (40) | 2,595.2 h (mean 64.9 h) |
| ID | Dataset | Att.1 | Att.2 | Tot. | Sav. | ID | Dataset | Att.1 | Att.2 | Tot. | Sav. |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 † | GDMRI-CT | 33.6 | 9.6 | 43.2 | 52.3 | 17 | Fundus-AVSeg | 6.5 | 31.2 | 37.8 | 33.0 |
| 2 † | MRE-BSA | 81.3 | 33.5 | 114.8 | 0.0 | 18 | HRUS-MBT | 243.5 | 9.5 | 253.0 | 144.3 |
| 3 † | PNPC | 34.7 | 22.8 | 57.4 | 42.0 | 19 | LapGC-KVAD | 188.1 | 235.9 | 423.9 | 153.9 |
| 4 † | AMSMC-HTM | 45.0 | 21.4 | 66.4 | 109.6 | 20 | LongCIU | 42.7 | 9.4 | 52.1 | 50.0 |
| 5 † | NLSTseg | 26.5 | 32.6 | 59.1 | 61.0 | 21 | MSLesSeg | 51.9 | 12.4 | 64.3 | 80.7 |
| 6 | SMRI-FB | 48.4 | 23.1 | 71.5 | 78.9 | 22 | MU-Glioma | 474.7 | 256.1 | 730.8 | 0.0 |
| Dimension | Count |
|---|---|
| Datasets covered | 31 |
| Independent experiments | 62 |
| Experimental-discovery directories | 147 |
| Agent event files (.jsonl) | 2,865 |
| Agent session summaries (.md) | 3,953 |
| Generated experiment code files (.py) | 1,343 |
| Dataset | Domain | Scope | Events | Code |
|---|---|---|---|---|
| SWE-bench | Software eng. | Bug fixes | Patch-level | Yes |
| ML-bench | Machine learning | Task completion | Limited | Yes |
| CamylaTrace-232k | Scientific research | Iterative research | 232K | 1,343 |
| # | Category | Priority | Suggestion |
|---|---|---|---|
| 1 | Proposal_Gap | High | Implement the learnable hierarchy embedding ( ) in the HTD module as described in the proposal. Currently the cross-attention only uses projected features; adding the hierarchy embedding to the Key ( ) will allow the model to learn the spatial/structural relationship between the optic disc and cup. |
| 2 | Architecture | Medium | Replace the fixed spatial pooling in the HTD module with a higher resolution ( ). The current implementation significantly downsamples high-resolution fundus features before attention, likely losing fine boundary details. |
| 3 | Code_Fix | High | Fix the SADCB fusion logic. The proposal specifies a channel-wise gating mechanism ( ) to fuse parallel branches, but the current code uses a simplified selection or summation. |
| 4 | Architecture | Medium | Add a residual connection around the HTD module in the decoder. A residual path for the original skip-connection information alongside the diffused tokens would stabilize training. |
| 5 | Hyperparameter | Medium | Increase base_channels from 32 to 64 and adjust embed_dim in the HTD module to 128. |
| # | Category | Priority | Suggestion |
|---|---|---|---|
| 1 | Proposal_Gap | High | Implement the Complexity Estimator in RATF using a Sobel filter or local variance to generate a complexity map, then use this map to weight a Softmax over different pooling kernel sizes to achieve true adaptive tokenization. |
| 2 | Architecture | High | Convert the CATA block into a bottleneck style where the multi-scale attention output is concatenated with a depthwise-separable convolution branch before the final projection, ensuring local spatial consistency. |
| 3 | Code_Fix | Medium | Reduce the token_reduction factor from 4 to 2 and increase the initial hidden_sizes from 64 to 96. |
| 4 | Architecture | Medium | Replace the learned Positional Embedding with Conditional Positional Encoding (CPE) using a depthwise convolution applied to the token grid. |
| 5 | Proposal_Gap | Medium | Implement the Size-Biased Attention formula: , directly injecting scale information into the attention map as proposed. |
| Module | Status | Description |
|---|---|---|
| HTD Tokenization | Simplified | Uses AdaptiveAvgPool2d instead of strided projection |
| HTD Hierarchy Embedding | Simplified | Additive vector vs. conditional attention bias |
| SADCB Gating | Simplified | Softmax over branches vs. per-channel adaptive gating |
| Cycle | Trial | W. Dice | L. Dice | Status | Diagnostic | Key Modification |
| Cycle 1: HCP-Net — Hierarchical Token Diffusion replacing skip connections | ||||||
| Seeded from: Baseline (UKAN, Dice = 0.7142) | ||||||
| 1 | 1 | 0.7142 | — | Baseline | — | Precomputed UKAN baseline. |
| 1 | 2 | 0.6835 | Err | Underperf. | code_issue | HTD with patch embedding + cross-attention; hierarchy embedding omitted, spatial pooling too aggressive ( ). |
| 1 | 3 | 0.7682 | 0.6753 | Success | — | HTD at higher resolution ( ); learnable hierarchy embeddings as query bias in cross-attention. |
| 1 | 4 | 0.6916 | 0.6053 | Underperf. | regression | Moved hierarchy embedding from query to key; mathematical formulation change degraded performance. |
| Cycle | Proposal | Best Dice | BL | Best Trial | Trials | Key Insight |
|---|---|---|---|---|---|---|
| 1 | HCP-Net | 0.7682 | +5.40 | 3 | 11 | Token diffusion with query-bias works; boundary modules hurt. |
| 2 | BAFNet | 0.7829 | +6.87 | 8 | 11 | Boundary-aware normalization works if numerically stable; multi-scale detection hurts. |
| 3 | ARTNet | 0.8191 | +10.49 | 6 | 11 | Adaptive tokenization via complexity estimation; simplicity complexity confirmed. |
Autonomous Research Agents
Autonomous research agents use language models and tools to search literature, design and run experiments, analyze results, and support scientific discovery.
See all 318 papers