Campus Bio-Medico Builds a RAG System That Gives AI CT Scans Real Anatomy
A new RAG-style approach injects retrieved anatomical structure into a 3D diffusion model, producing CT scans that are both semantically accurate and spatially coherent
ProTakeaways
- Core idea: A RAG-style system retrieves a real CT case whose report matches the query, then uses its segmentation mask to anatomically guide a 3D diffusion model.
- Key problem solved: Text-only CT generation produces anatomically inconsistent volumes; structure-guided methods need annotations that don't exist at inference time.
- New capability: Explicit spatial controllability in text-to-CT generation, previously impossible with pure text conditioning.
- Benchmark: Evaluated on CT-RATE (25,692 chest CT scans from 21,304 patients) using CT-CLIP for retrieval.
- Results: Retrieval-augmented generation improves image fidelity and clinical consistency over text-only baselines across all evaluation axes.
- Code: Promised but not yet released; paper available at arXiv:2603.08305.
Generating synthetic CT scans from radiology reports sounds straightforward until you realize the fundamental tension at the heart of the problem: text is great at describing what is wrong with a patient, but terrible at encoding where things are. A report might say "bilateral pleural effusion with mild cardiomegaly" but give no spatial blueprint for the lungs, heart, or surrounding anatomy. A new paper from researchers at Campus Bio-Medico University of Rome tackles this gap head-on with a retrieval-augmented generation (RAG) framework that borrows anatomical structure from real clinical cases at inference time.
The work, titled "Retrieval-Augmented Anatomical Guidance for Text-to-CT Generation", proposes a system that, given a radiology report, retrieves a semantically similar CT case from a database and uses its segmentation mask as a structural scaffold for generation. The result is a 3D chest CT that respects both the clinical meaning of the report and the spatial logic of human anatomy.
Why text alone is not enough
The field of text-conditioned medical image synthesis has grown quickly, but a persistent flaw has followed it. Text-conditioned generative models for volumetric medical imaging provide semantic control but lack explicit anatomical guidance, often resulting in outputs that are spatially ambiguous or anatomically inconsistent. The obvious fix is to condition generation on anatomical segmentation masks, which explicitly encode where each organ lives. But this creates a circular problem: structure-driven methods ensure strong anatomical consistency but typically assume access to ground-truth annotations, which are unavailable when the target image is to be synthesized.
You cannot annotate a scan that does not exist yet. This is the core dilemma the paper solves.
A prominent research direction in this field is text-conditioned generation, where radiology reports guide the synthesis process. Radiological narratives provide high-level semantic descriptions derived from expert interpretation, enabling clinically aligned controllability. Nevertheless, reports are inherently underspecified with respect to spatial structure: they describe pathological findings but do not encode explicit organ positions, sizes, or relative geometry.
Borrowing anatomy from a neighbor
The authors propose a retrieval-augmented approach for Text-to-CT generation that integrates semantic and anatomical information under a realistic inference setting. Given a radiology report, the method retrieves a semantically related clinical case using a 3D vision-language encoder and leverages its associated anatomical annotation as a structural proxy. This proxy is injected into a text-conditioned latent diffusion model via a ControlNet branch, providing coarse anatomical guidance while maintaining semantic flexibility.
The key insight is elegant: instead of requiring annotations for the target scan, the system finds a real patient in the database whose report is semantically close to the query, then borrows that patient's segmentation mask as a rough anatomical template. This template is not meant to be a perfect match, just a plausible structural prior that keeps the generator from hallucinating impossible anatomy.

Here is the pipeline broken down step by step:
- Encode the query report. The input radiology report is embedded using a 3D vision-language model based on the CLIP paradigm extended with a 3D image encoder. Text conditioning is implemented through embeddings extracted from a vision-language model based on the CLIP paradigm, extended with a 3D image encoder. This formulation enables the alignment of radiology reports and CT volumes in a shared embedding space.
- Retrieve a structural proxy. The text embedding is used to query a database of real CT cases. The closest match by semantic similarity is retrieved, and its pre-computed anatomical segmentation mask is extracted.
- Inject anatomy via ControlNet. The authors propose a retrieval-augmented framework for report-conditioned 3D CT synthesis that treats anatomical structure as a latent, retrievable proxy. They introduce a multimodal integration strategy that injects retrieved anatomical proxies into a text-conditioned latent diffusion model via ControlNet, enabling anatomical guidance without annotations at inference time.
- Generate the CT volume. The latent diffusion model synthesizes the 3D volume conditioned on both the text embedding and the structural proxy, producing a scan that is semantically aligned with the report and anatomically grounded.
The dataset and retrieval backbone
All experiments run on CT-RATE, a large-scale open benchmark purpose-built for this kind of work. CT-RATE consists of 25,692 non-contrast chest CT volumes, expanded to 50,188 through various reconstructions, from 21,304 unique patients, along with corresponding radiology text reports, multi-abnormality labels, and metadata. The CT-RATE dataset counts 18 abnormalities in diagnostic reports, covering common abnormalities in the chest area.
For the retrieval step, the paper uses CT-CLIP, a contrastive language-image pretraining framework trained specifically on 3D chest CT data. CT-CLIP is a CT-focused contrastive language-image pretraining framework designed for broad applications without the need for task-specific training. It can be used in multi-abnormality detection and case retrieval, and outperforms state-of-the-art fully supervised models across all key metrics. CT-CLIP supports both report-to-volume and volume-to-volume retrieval, making it a natural fit for finding semantically similar cases from a text query.
What actually improves
Experiments on the CT-RATE dataset show that retrieval-augmented generation improves image fidelity and clinical consistency compared to text-only baselines, while additionally enabling explicit spatial controllability, a capability inherently absent in such approaches. The evaluation covers three axes: image fidelity (how realistic the generated volumes look), clinical consistency (whether the generated pathology matches the report), and spatial controllability (whether the anatomy lands in the right place).
A particularly interesting ablation studies retrieval quality directly. Further analysis highlights the importance of retrieval quality, with semantically aligned proxies yielding consistent gains across all evaluation axes. This is a critical finding: the system degrades gracefully when retrieval quality drops, but the gains are real and consistent when the retrieved case is a good semantic match. It also means the approach is bounded by the quality of the retrieval model and the diversity of the database.
The real unlock: spatial control without annotations
The headline result is not just better FID scores. The deeper contribution is that the system unlocks a new capability that pure text-to-image models simply cannot offer: explicit spatial control over where pathology appears in the generated volume. By swapping in different retrieved proxies with different anatomical configurations, a user can steer the generator toward specific structural layouts without ever writing a single segmentation mask by hand.
This matters for several practical use cases:
- Data augmentation for rare conditions. Training classifiers or segmentation models on rare pathologies requires more examples than most hospitals can provide. Synthetic CT generation can fill that gap, but only if the anatomy is plausible.
- Privacy-preserving simulation. Synthetic scans derived from real reports but with borrowed (not copied) anatomy sidestep many patient privacy concerns while preserving clinical realism.
- Controlled benchmarking. Generating scans with known, controllable pathology locations enables more rigorous evaluation of downstream diagnostic models.
- Curriculum learning pipelines. Gradually increasing the difficulty of synthetic training cases by controlling pathology severity and location.
Where it falls short
The approach has a few structural limitations worth noting. First, it is currently scoped to chest CT using the CT-RATE dataset. Extending to abdominal, brain, or multi-organ CT would require a comparable paired dataset and a retrieval backbone trained on those domains. Second, the quality ceiling is tied to the retrieval database: if the database does not contain a case semantically close to the query, the structural proxy will be a poor match, and the anatomical guidance will be noisy rather than helpful. Third, the segmentation masks used as proxies come from existing annotations, meaning the method still depends on annotated data existing somewhere in the database, even if not for the specific target scan.
Code is listed as forthcoming in the paper. The authors note it will be released, making this a system that the community will be able to build on directly once that happens. Given the growing interest in synthetic medical data for training and evaluation, the combination of retrieval-augmented structure with diffusion-based generation is a pattern likely to see rapid adoption.