Rethinking CT Synthesis through Semantics-Structure Alignment

Riyu Qiu, Qichao Zhou, jiacheng wang, Liansheng WangNeurIPS 2026

TL;DR

Generative AI models can create synthetic CT scans that look convincing at a glance, yet silently scramble the underlying X-ray physics and hallucinate subtle anatomy. By introducing a plug-and-play training objective called the Semantics and Structure Loss ($\mathcal{L}_{S^2}$), the authors teach off-the-shelf image generators to respect organ-specific physical densities and sharp anatomical boundaries. Whether plugged into GANs, diffusion models, flow models, or 3D foundation models, this loss turns "pretty pictures" into physically reliable medical data.

What Problem Does This Paper Address?

Standard image generators—like those creating pictures of cats or landscapes—optimize for global visual plausibility across RGB pixels. Computed Tomography (CT) scans, however, are not ordinary photographs. They are physical measurements of tissue radiodensity quantified in Hounsfield Units (HU), spanning a massive dynamic range (from $-1000$ for air to $+1000$ and beyond for dense bone).

When radiologists read a CT scan, they adjust "window" settings to zoom into narrow HU slices, revealing subtle contrasts inside soft tissues. Because current mask-guided CT generators inherit training objectives built for natural images, they treat the entire HU spectrum uniformly. The result? Synthetic scans that look fine globally, but suffer from shifted organ densities (HU drift) and warped or missing unannotated structures (like bone cortices or sinus walls)—rendering them unreliable for clinical tasks like radiotherapy planning or training segmentation models.

Figure 1: Visual, spectral, and semantic distribution comparison on SegRap. (a) LDM variants exhibit similar visual and spectral patterns. (b) Organ-wise HU histograms reveal distribution gaps between the pixel-modeling baseline (blue), frequency-domain method (green), and our distribution-based method (red), with our method better aligned to real CTs (black). (c) Our method consistently improves semantic distribution across GAN, diffusion, and flow paradigms. All CT images use window setting [-1000, 1000] HU.

Methods

Instead of inventing a brand-new generator architecture, the authors rethink what the generator is penalized for during training. They propose the Semantics and Structure Loss ($\mathcal{L}_{S^2}$), which decomposes CT synthesis into two complementary parts:

Figure 2: Illustration of the semantic and structure loss which integrates a semantic intensity dis- tribution loss (solid lines) and a structural anatomy loss (dashed lines) to jointly enhance intensity consistency and structural fidelity.
  1. Semantic Intensity Distribution Loss ($\mathcal{L}_{Sid}$): Mimicking how radiologists view scans, the authors slice the image into semantic subspaces using both expert organ masks (e.g., liver, brain) and standardized clinical HU windows (e.g., lung window, bone window). Within each subspace, they minimize the Wasserstein-1 distance (Earth Mover's Distance) between the real and generated pixel intensity distributions. This anchors every organ to its true physical density profile.
  2. Structural Anatomy Loss ($\mathcal{L}_{Sa}$): Organ masks rarely label everything—fine details like trabecular bone or air-tissue interfaces are often left out. To prevent hallucinations in unmasked regions, the authors apply classical Sobel edge-detection filters. Crucially, raw CT gradients are noisy, and rigid pixel-by-pixel penalties fight against the stochastic nature of generative models. So, they threshold out tiny noise gradients and apply a Gaussian blur to create a spatially relaxed "anatomical attention map," comparing real and synthetic maps via MSE and SSIM.

Because $\mathcal{L}_{S^2}$ operates purely in image space via differentiable clean-image estimates, it drops seamlessly into GANs, Latent Diffusion Models (LDMs), flow-matching models (MOTFM), and 3D foundation models.

Datasets

The authors evaluate their approach on two public datasets of differing scales and anatomical regions (with no new benchmarks introduced):

  • SegRap: 120 head-and-neck cancer patients (15,312 2D slices) featuring 45 fine-grained organ-at-risk annotations, supplemented with body contours.
  • AutoPET: A larger whole-body dataset of 533 patients (197,304 2D slices) covering 144 anatomical structures.

Both datasets were split strictly at the patient level to prevent data leakage.

Key Insights and Ideas

  • Spectral alignment for free: Neural networks famously struggle to learn sharp, high-frequency details (spectral bias). Researchers often add explicit Fourier-domain losses to fix this, which still fail to prevent HU shifts in CTs. Surprisingly, $\mathcal{L}_{S^2}$ beats explicit frequency-domain losses on frequency metrics themselves—anchoring homogeneous organ densities naturally fixes low frequencies, while Sobel gradient regularization acts as a targeted high-pass filter for sharp anatomy.
  • Relaxing gradients tames stochasticity: Blurring thresholded Sobel gradients gives generative models enough wiggle room to sample diverse textures without hallucinating broken bones or fused organs.
  • Architecture-agnostic physics: You don't need a massive, bespoke medical diffusion architecture to fix physical fidelity; fixing the loss landscape upgrades everything from classic 2018 GANs to modern 2026 3D rectified-flow foundation models.

Key Results

Across all tested paradigms, adding $\mathcal{L}_{S^2}$ consistently boosts image quality, structural similarity, and physical HU accuracy:

  • 2D Synthesis Gains: Integrating $\mathcal{L}_{S^2}$ into a Latent Diffusion Model (LDM) on SegRap jumped PSNR from $28.81$ to $32.18$ and SSIM from $0.721$ to $0.834$, while slashing Fréchet Inception Distance (FID, lower is better) from $75.54$ to $51.50$ and cutting semantic HU Wasserstein error (HU-W1) more than in half ($36.23 \rightarrow 16.20$). Similar across-the-board improvements held for pix2pixHD (GAN) and MOTFM (flow).
  • 3D Foundation Model Scaling: Used as a fine-tuning plug-in for the 3D CT foundation model MAISI-v2, $\mathcal{L}_{S^2}$ lowered FID on SegRap ($63.89 \rightarrow 56.21$) and AutoPET ($22.66 \rightarrow 20.59$) while improving 3D structural and HU fidelity.
Figure 3: Visual comparison on SegRap (head, chest) and AutoPET (abdomen) showing the effective- ness of LS2 on different paradigms. All images share the same window setting [-1000, 1000] HU.
  • Clinical Reader Study: In a blinded test with a 13-year veteran radiologist evaluating 200 image-mask pairs, 83% of synthesized scans were rated clinically realistic (vs. 98% of real CTs), with no statistically significant difference in anatomical faithfulness scores ($1.930$ vs. $1.980$, $p = 0.0588$).
  • Downstream Utility: Training a segmentation network purely on LDM+$\mathcal{L}_{S^2}$ synthetic data outperformed both standard LDM synthetic data and even the real training set on SegRap, reaching a 0.9613 mean Dice score and reducing 95% Hausdorff boundary distance (HD95) by 9.07% over baseline LDM—with huge leaps on tricky structures like the spinal cord ($0.8086 \rightarrow 0.8454$ Dice).

Limitations and Future Work

  • Annotation dependence: Because the method is mask-guided, it still relies heavily on detailed segmentation masks during generation, limiting control over completely unannotated structures.
  • Normal anatomy vs. pathology: Experiments focused primarily on normal anatomical structures rather than synthesizing complex pathological lesions or tumors.
  • Single-reader evaluation: Only one radiologist participated in the user study, preventing an analysis of inter-rater agreement.

Looking ahead, the authors plan to adapt this semantics-structure framework to work under incomplete anatomical priors, tackle morphologically complex tissues, and expand into lesion-aware pathological CT synthesis.

Summary updated

Abstract

Mask-guided CT synthesis bridges structural annotations with imaging appearance, facilitating data augmentation and clinical tasks such as radiotherapy planning. Despite plausible visual realism, current methods seek optimal solutions by treating all tissues uniformly, failing to capture intrinsic CT properties such as tissue-specific distributions and strict anatomy, leading to semantic misalignment and structural hallucinations. To address this, we decompose CT synthesis into semantics-structure alignment through the proposed Semantics and Structure Loss. Specifically, the Semantic Intensity Distribution (SID) Loss partitions the broad Hounsfield Unit (HU) range into semantic subspaces to achieve tissue-specific intensity alignment. Building on SID-based semantic alignment, the Structural Anatomy (SA) Loss further improves structural fidelity by regularizing gradient manifolds within clinically-informed spatial domains. Extensive experiments across GAN, Diffusion, flow, and foundation models demonstrate the broad compatibility and consistent gains of our approach. A user study further confirms the clinical realism and mask fidelity, while downstream segmentation demonstrates the practical utility. Code is available at https://github.com/16rq/Semantics-and-Structure-Loss-for-CT-synthesis.
BibTeX
@inproceedings{qiu2026rethinking,
  author = {Riyu Qiu and Qichao Zhou and jiacheng wang and Liansheng Wang},
  title = {{Rethinking CT Synthesis through Semantics-Structure Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8cb59z0dK9},
}
Figure