One, No One and One Hundred Thousand CTs: Testing Anatomical Control in Text-to-CT Generation
Organizations: Politecnico di Milano, AIRLab, Italy
Abstract
Recent advances in deep learning and the public availability of computed tomography (CT) datasets with paired reports have enabled many Text-to-CT generators. However, their evaluations almost always differ in preprocessing and metrics, which hinders comparison. Moreover, their protocols almost never test how editing the report changes the CT, not even at the same seed, so the report is often assumed to control the anatomy without evidence of how much and how consistently it does. We therefore propose CtrlCT, a toolkit that tests two properties of a generator, Credibility and Control. Credibility tests compare generated CTs, as a population, with real CTs and reports; Control tests are metamorphic and need no reference CT: at a fixed seed, editing one finding should change it as requested, keep negated findings absent and shift distant anatomy no more than a new seed, and the change should hold across seeds. A Report Card summarises all measures and insights for each generator. We benchmark five public generators on 940 chest CTs and 687 edits of pleural effusion and cardiomegaly, holding out a sixth to test the toolkit. Among them, the most credible generators barely respond to an added effusion, while the most responsive produce less realistic and less diverse CTs. The analyses proposed in the literature do not reveal this. We release CtrlCT, its edits, seeds and 30,525 synthetic CTs after acceptance.
Figures & tables
| Work | #Generators | #Metrics | Same-Seed Edits | Multiple Seeds | Real-CT Reference | Downstream Utility | Perturbed Reports |
| GenerateCT [ 15 ] | 3 | 3 | ✘ | ✘ | (✔) | ✔ | ✘ |
| MedSyn [ 48 ] | 4 | 3 | ✘ | (✔) | ✔ | ✔ | ✘ |
| Text2CT [ 32 ] | 3 | 5 | ✘ | (✔) | ✔ | ✔ | ✘ |
| RAGText2CT [ 33 ] | 5 | 5 | ✘ | (✔) | ✔ | ✘ | ✘ |
| MedSyn2 [ 5 ] | 3 | 7 | (✔) | (✔) | ✔ | (✔) | ✘ |
| CTFlow [ 45 ] | 4 | 3 | ✘ | ✘ | ✘ | ✘ | ✘ |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Work | Compared baselines | Evaluation metrics | Partly met in Tab. 1 |
| GenerateCT [ 15 ] | Imagen, Stable Diffusion, Phenaki | FID, FVD (I3D, CT-Net), CLIP score | Real-CT reference: reported for training pairs only |
| MedSyn [ 48 ] | WGAN, -GAN, HA-GAN, Medical Diffusion | FID, MMD, airway volume | Multiple seeds: shown with anatomy masks, not quantitatively evaluated |
| Text2CT [ 32 ] | GenerateCT, MedSyn, Report2CT | FID (2.5D, 3D), AUC, precision, anatomical realism, report consistency | Multiple seeds: FID averaged over 10 seeds |
| RAGText2CT [ 33 ] | GenerateCT, MedSyn, Text2CT, Report2CT, MAISI | FID (2.5D, 3D), AUC, precision, Dice, HD95 | Multiple seeds: 5 seeds used for significance tests |
| MedSyn2 [ 5 ] | GenerateCT, MedSyn, Text2CT | FID, CLIP scores (T2I, I2I), accuracy, precision, AUROC, F1 | Same-seed edits: qualitative only; multiple seeds: mask-conditioned examples; utility: mask-only segmentation |
| CTFlow [ 45 ] | Imagen, Stable Diffusion, Phenaki, GenerateCT | FID, FVD, CLIP score | – |
| Set | Cases (patients) | Construction | Used by |
| Cohort | 940 (782) | one reconstruction per scan of the Text2CT evaluation list (1,817): soft-tissue kernel when available (875), then the finest slice spacing; Findings and Impression; 18 CT-RATE labels (effusion 189, cardiomegaly 164) | all tests |
| Effusion edits | 567 (479) | 396 additions, 171 removals; 5 of the 572 reports with an effusion statement excluded, whose statement cannot be separated from another finding | C1–C3 |
| Heart edits | 120 (120) | 50 enlargements, 70 normalisations; one case per patient among the effusion cases, drawn before generation; normalisations exclude reports describing a dilated chamber | C1, C3 |
| Swap | 940 (782) | fixed derangement of the 940 reports (seed 0); another patient in 939 cases | Report Agreement, Report Use (Eq. (1)) |
| Scramble | 940 (782) | words of Findings and Impression permuted (seed 0), headings removed | Report Use |
| Off-topic | 940 (782) | passage of Moby-Dick (Project Gutenberg #2701) from a random start (seed 0), same word count | Report Use |
| Edit / perturbation | Original report (excerpt) | Modified report (excerpt) |
| Effusion Add | No pleural or pericardial effusion was detected. | There is bilateral pleural effusion. No pericardial effusion was detected. |
| Effusion Remove | A free pleural effusion measuring 1 cm in thickness is observed on the left. | No pleural effusion was detected. |
| Heart Enlarge | Mediastinal main vascular structures, heart contour, size are normal. | Mediastinal main vascular structures are normal. Heart size increased. |
| Heart Normalise | Coronary atherosclerosis and cardiomegaly. | Coronary atherosclerosis. Heart contour and size are normal. |
| Swap | Findings: Trachea and both main bronchi are normal. No occlusive pathology was detected … | Findings: Trachea and main bronchi are open. Right upper-bilateral lower paratracheal, … |
| Scramble | (as for Swap) | be There both observed given. and the increased upper descending or both anterior … |
| Median training scans | No matching | ||
| with the same labels, | training scan, | ||
| Edit | Cases | original edited | original edited |
| Effusion Add | 396 | 10.5 1 | 17% 41% |
| Effusion Remove | 171 | 0 0 | 64% 63% |
| Heart Enlarge | 50 | 7 0 | 16% 62% |
| Heart Normalise | 70 | 0 0 | 56% 53% |
| Generator | Text encoder, window | Reports longer than the window | Training text | Additional conditioning | Sampling (released pipeline) | Training data |
| GenerateCT | T5, 256 tokens | 528 | age, sex, Impression | none | MaskGIT, 18 steps, guidance 5; diffusion super-resolution, 25 steps | CT-RATE |
| MedSyn | CXR-BERT, 2,048 positions, first 192 kept | 0 | UPMC reports | none | authors’ diffusion sampler | UPMC |
| Text2CT | 3D CLIP, 512 tokens | 93 | Findings, Impression | none | rectified flow, 30 steps, guidance 5 | CT-RATE |
| MedSyn2 | CXR-BERT, 2,048 positions, first 192 kept | 0 | sections joined by a separator | none (masks not used) | midpoint solver | CT-RATE |
| RAGText2CT | 3D CLIP, 512 tokens | 93 | Findings, Impression | top-1 retrieved anatomical mask | as Text2CT; ControlNet scale 1 | CT-RATE |
| CTFlow (held out) | CXR-BERT with CT-CLIP weights, 128 tokens | – | sex, age, report | none | autoregressive latent flow matching over slice blocks | CT-RATE |
| Effusion Add | Effusion Remove | |||||||||
| Generator | Net | Net | ||||||||
| GenerateCT | 59.8 | 26.1 | 5.9 | 8.2 | 20.2 | 13.1 | 18.1 | 9.2 | 59.6 | 9.0 |
| MedSyn | 38.1 | 56.6 | 0.0 | 5.3 | 56.6 | 33.3 | 40.7 | 0.2 | 25.7 | 40.5 |
| Text2CT | 88.6 | 4.5 | 2.0 | 4.9 | 2.4 | 59.3 | 23.6 | 2.3 | 14.8 | 21.2 |
| MedSyn2 | 37.6 | 47.1 | 0.3 | 15.1 | 46.8 | 42.1 | 27.5 | 0.0 | 30.4 | 27.5 |
| RAGText2CT | 87.2 | 6.0 | 1.2 | 5.6 | 4.8 | 61.2 | 21.4 | 3.5 | 13.8 | 17.9 |
| seed coupling | |||||
| (true ) | 0 | 0.5 | 0.9 | 0.99 | |
| 0 (0) | 0.001 | 0.000 | 0.000 | 0.000 | |
| MAE | 1.127 | 0.797 | 0.356 | 0.113 | |
| 1 (0.5) | 0.499 | 0.502 | 0.500 | 0.501 | |
| MAE | 1.399 | 1.167 | 1.004 | 1.000 | |
| (1) | 1.002 | 1.004 | 1.003 | 1.001 | |
| Evaluator | Output | Used for | On the 940 real CTs |
| RadImageNet [ 30 ] | 2.5D slice features | Realism (FD) | FD between patient-disjoint subsets: 0.035 |
| Pillar-0 [ 1 ] | 3D CT and report embeddings | precision, recall, coverage; Report Use; Utility | report–CT cosine : 27.1 (26.4) |
| NV-Reason-CT [ 35 ] | P(yes) of the 18 findings | Report Agreement; Negated Findings | macro AUROC: 0.85 (0.87) |
| TotalSegmentator [ 46 ] | effusion and heart masks | C1; C3; Distant Anatomy; Pre-Flight Checks | effusion: Youden’s 0.86; heart volume for cardiomegaly: AUROC 0.83 |
| Measure | Null | Real or ideal | GenerateCT | MedSyn | Text2CT | MedSyn2 | RAGText2CT |
| C1 Target Response | |||||||
| Effusion Add | 0.00 | 1.00 | +0.20 [0.16, 0.25] | +0.57 [0.52, 0.61] | +0.02 [0.01, 0.04] | +0.47 [0.43, 0.50] | +0.05 [0.03, 0.07] |
| Effusion Remove | 0.00 | 1.00 | +0.09 [0.03, 0.16] | +0.41 [0.34, 0.47] | +0.21 [0.16, 0.27] | +0.27 [0.23, 0.32] | +0.18 [0.12, 0.24] |
| Heart Enlarge | 0.00 | +0.37 | 0.02 [ 0.09, 0.04] | +0.15 [0.13, 0.16] | +0.16 [0.11, 0.22] | +0.07 [0.06, 0.08] | +0.13 [0.04, 0.22] |
| Heart Normalise | 0.00 | +0.37 | +0.00 [ 0.07, 0.07] | +0.13 [0.11, 0.16] | +0.21 [0.17, 0.25] | +0.06 [0.05, 0.07] | +0.20 [0.12, 0.28] |
| C2 Containment | |||||||
| Within the text window | All edits, at 10 mL | ||||
| Generator | Effusion Add | Effusion Remove | Seed Agreement ( ) | Effusion Add | Effusion Remove |
| GenerateCT | +0.26 [0.21, 0.32] | +0.13 [0.04, 0.23] | 0.65 [0.57, 0.73] | +0.19 [0.15, 0.23] | +0.09 [0.03, 0.16] |
| MedSyn | +0.57 [0.52, 0.61] | +0.41 [0.34, 0.47] | 0.70 [0.64, 0.76] | +0.56 [0.51, 0.60] | +0.43 [0.37, 0.50] |
| Text2CT | +0.02 [0.01, 0.04] | +0.21 [0.16, 0.27] | 0.10 [0.00, 0.19] | +0.02 [0.01, 0.04] | +0.22 [0.17, 0.27] |
| MedSyn2 | +0.47 [0.43, 0.50] | +0.27 [0.23, 0.33] | 0.36 [0.27, 0.44] | +0.47 [0.43, 0.50] | +0.30 [0.24, 0.35] |
| RAGText2CT | +0.05 [0.03, 0.07] | +0.18 [0.12, 0.24] | 0.62 [0.46, 0.76] | +0.03 [0.01, 0.05] | +0.19 [0.13, 0.26] |
| Macro AUROC, 18 findings | Effusion AUROC | |||||
| Generator | Original | Edited | Difference | Original | Edited | Difference |
| GenerateCT | 0.501 | 0.501 | +0.001 [ 0.017, 0.018] | 0.33 | 0.59 | +0.26 [0.21, 0.31] |
| MedSyn | 0.614 | 0.609 | 0.004 [ 0.017, 0.009] | 0.11 | 0.70 | +0.59 [0.55, 0.64] |
| Text2CT | 0.698 | 0.697 | 0.000 [ 0.012, 0.012] | 0.09 | 0.18 | +0.10 [0.07, 0.13] |
| MedSyn2 | 0.591 | 0.595 | +0.004 [ 0.009, 0.016] | 0.16 | 0.61 | +0.45 [0.41, 0.50] |
| RAGText2CT | 0.687 | 0.689 | +0.001 [ 0.011, 0.014] | 0.08 | 0.20 | +0.12 [0.08, 0.16] |
| Source | Complete | Spacing | HU | Pose | Seed | Text Window |
| lung width | effusion heart | effusion heart | ||||
| Real CTs | reference: 940 CTs; lung width (234–321 mm) and directions (LPS) on 40 | |||||
| GenerateCT | ✓ | ✓ 288 mm | ! air +102, lung +215, fat +70 | ! header | ✓ 0/567 0/120 | ! 148/567 6/120 |
| MedSyn | ✓ | ! 1 1 1, 222 mm | ✓ | ✓ | ✓ 0/567 0/120 | ✓ 0/567 0/120 |
| Text2CT | ✓ | ✓ 298 mm | ✓ | ✓ (flip [0, 1]) | ✓ 0/567 0/120 | ! 1/567 1/120 |
| MedSyn2 | ✓ | ! 1 1 1, 393 mm | ! air +36 | ✓ (flip [1]) | ✓ 0/567 0/120 | ✓ 0/567 0/120 |
| Measures | (null control) | (real/ideal) | ||
| C1, Seed Agreement, Diversity, Report Agreement, Utility | ||||
| Realism | FD 1.910 | FD 0.26 | FD 0.035 | |
| Distant Anatomy | – | |||
| Negated Findings | – | |||
| Report Use | or | or |
| Measure | Same first | |
| Realism (FD) | 1.00 | 100% |
| Realism (precision) | 0.96 | 80% |
| Diversity (recall) | 0.78 | 72% |
| Diversity (coverage) | 0.94 | 72% |
| Report Agreement (AUROC) | 0.97 | 86% |
| (drop under Swap) | 0.98 | 94% |
| Rule | Condition | Real | GenerateCT | MedSyn | Text2CT | MedSyn2 | RAGText2CT | CTFlow † |
| Behaviour | ||||||||
| Specific but not editable | drop under Swap and Effusion Add (first seed) | n/a | – | – | ✓ | – | ✓ | – |
| Seed-driven | report share and (new seed) (Off-topic) | n/a | – | ✓ | – | ✓ | – | (✓) |
| Reads wording, not content | (Scramble) (Off-topic) | n/a | ✓ | – | – | – | – | – |
| Not patient-specific | drop under Swap | – | ✓ | – | – | – | – | – |
| Rewrites the chest when editing | SSIM beyond 50 mm (0: another patient; 1: unchanged) | n/a | ✓ | – | – | – | – | (✓) |
| Measure | Null | Real or ideal | GenerateCT | MedSyn | Text2CT | MedSyn2 | RAGText2CT | CTFlow |
| C1 Target Response | ||||||||
| Effusion Add | 0.00 | 1.00 | +0.25 | +0.54 | +0.05 | +0.49 | +0.02 | +0.29 |
| Effusion Remove | 0.00 | 1.00 | +0.09 | +0.45 | +0.19 | +0.35 | +0.22 | +0.11 |
| Heart Enlarge | 0.00 | +0.37 | 0.02 | +0.15 | +0.16 | +0.07 | +0.13 | +0.25 |
| Heart Normalise | 0.00 | +0.37 | +0.00 | +0.13 | +0.21 | +0.06 | +0.20 | +0.14 |
| C2 Containment | ||||||||
| Motivation | Measuring the anatomical control of Text-to-CT generators (Sec. 1). |
| Composition | 940 CT-RATE validation cases (782 patients); 567 effusion edits (396 additions, 171 removals), 120 heart edits (50 enlargements, 70 normalisations), 80 rewordings (79 analysed, Sec. C.8 ); seeds and text hashes. 30,525 synthetic CTs of five generators (NIfTI, HU) with manifests and readouts. Real-CT reference: RadImageNet and Pillar-0 features of the 940 real CTs. Reference results of the five generators (Tab. 2, Report Cards), versioned with the toolkit. |
| Not included | CT-RATE data and the edited texts (rebuilt by a script from the user’s copy); CTFlow volumes (no stated terms). |
| Collection | Released code, weights and settings of each generator ( Sec. A.3 ); seeds and edits fixed before generation. |
| Preprocessing | None, except the header orientation ( Sec. D.1 ). |
| Uses | Benchmarking. Not for clinical use; MedSyn2 CTs not for training other models. |
| Privacy | No new acquisitions; RAGText2CT CTs follow the anatomy of a training patient; the CT-RATE re-identification ban applies. |
Controllable Image Generation
Controllable image generation steers images using spatial, visual, semantic, stylistic, or physical constraints beyond ordinary text prompts.
See all 235 papers