Manuscript Offprint

arXiv:2609.37605

TomoTransformer: Towards a Foundation Model for CT Reconstruction

AmirEhsan Khorashadizadeh, Benjamín Béjar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Supervised deep learning has advanced sparse-view tomographic reconstruction. However, conventional models, which typically map filtered back-projection (FBP) images or sinograms to clean reconstructions, are brittle under distribution shifts. Because they require retraining whenever projection counts and angles, detector resolutions, or data distributions change, their deployment in real-world applications remains limited. To address this, we introduce TomoTransformer, a transformer-based architecture that treats each local filtered projection as an individual token and predicts missing views via self-attention. Crucially, TomoTransformer operates in a back-projection space that separates projections across spatial locations, making view interpolation geometrically well-posed and invariant to detector size. This design yields a single foundation model that can process any number of input projections, at arbitrary angular locations and detector dimensions, and query any number of target angles without retraining. Trained on a large-scale dataset spanning diverse medical CT anatomies and natural images, TomoTransformer generalizes effectively across anatomies, materials, and resolutions. Extensive evaluations on several benchmark sparse-view datasets show that TomoTransformer significantly outperforms concurrent multi-purpose models like ViewTrans and matches or exceeds strong protocol-specific baselines, while remaining fully agnostic to the number of input and target projections. Furthermore, the model demonstrates robust zero-shot generalization on real experimental nanoscale brain data collected from an X-ray synchrotron, showcasing its practical utility for real-world applications.

1 Introduction

Computed tomography (CT) (Kak and Slaney, 2001) is among the most widely used imaging modalities for volumetric reconstruction, with many applications in biology (Eisenstein et al., 2023; Bosch et al., 2025), material science (Holler et al., 2017), and medicine (De Chiffre et al., 2014), to name a few. The objective of tomographic imaging is to reconstruct a 3D volume from a set of 2D projections acquired at different angles. Under dense angular sampling and noise-free conditions, filtered back-projection (FBP) (Kak and Slaney, 1988) is optimal and provides a closed-form inverse via the Fourier slice theorem. In practice, CT projections are acquired at discrete angular locations and are inherently affected by measurement noise. Constraints on radiation dose and scanning time often limit the number of acquired projections, motivating the even more challenging scenario of sparse-view CT. In that setting, the incomplete noisy measurements make image reconstruction

*Swiss Data Science Center (SDSC) in Paul Scherrer Institute (PSI), Villigen, Switzerland. Email: amirehsan.khorashadizadeh@psi.ch

†^{\dagger}Swiss Data Science Center (SDSC) in Paul Scherrer Institute (PSI), Villigen, Switzerland. Email: benjamin.bejar@psi.ch an ill-posed inverse problem, where FBP can produce streaking artifacts and lose structural and fine-scale details.

A large body of work has addressed sparse-view CT through model-based iterative reconstruction with hand-crafted priors, including total variation (Sidky and Pan, 2008) and wavelet sparsity, which partially suppress artifacts at the expense of iterative (slow) optimization. Over the past decade, supervised deep learning has emerged as the dominant alternative, providing faster inference and higher reconstruction quality. The common approach is post-processing of an initial estimate (e.g., an FBP reconstruction from a sparse sinogram) into a clean image (Kang et al., 2017; Adler and Öktem, 2018; Han and Ye, 2018; Chen et al., 2018; Wang et al., 2022; Yang et al., 2023; Ayad et al., 2024).

Despite their empirical success, existing supervised methods commonly have three fundamental limitations: (i) each model is trained for a specific acquisition geometry (i.e., a fixed projection count and angular range); (ii) each model is designed for a fixed image and detector size; and (iii) limited generalizability, a model is trained on a single, narrow data distribution (e.g., a single anatomical region). For instance, a network trained on 60-view sinograms cannot be deployed on a 90-view acquisition without retraining or architectural changes, and is similarly tied to the image, detector size, and data distribution used at training time. It is therefore, highly desirable to have a general model that could accommodate for and be robust to this variability. In line with the recent trend of developing foundations models, a single model trained at scale and adapted to a wide range of downstream tasks and conditions (Bommasani et al., 2021; Brown et al., 2020; Kirillov et al., 2023; Wasserthal et al., 2023; He et al., 2025; Liu et al., 2024), we advocate for a foundation model for CT reconstruction capable of ingesting arbitrary sparse acquisitions, with varying view counts, angular configurations, and detector resolutions. Recent attempts to partially achieve this goal have been made by ViewTrans (Chen et al., 2026), which uses a transformer to predict missing views from raw sinograms. However, ViewTrans is still tied to a fixed detector size and image resolution, limiting its practical utility.

We propose TomoTransformer, a transformer-based architecture that treats each local filtered projection as a token and predicts missing views via self-attention. Unlike ViewTrans (Chen et al., 2026), which operates on raw sinograms and is tied to a fixed detector size, TomoTransformer acts in a local disentangled back-projection space. By decoupling projections across spatial patches, our approach renders view interpolation geometrically well-posed and invariant to detector dimensions. As a result, a single trained model maps any number of input projections of arbitrary detector resolution to any higher number, without retraining or architectural changes. We train this model on a large-scale dataset spanning diverse medical CT anatomies and natural images, and demonstrate its generalization by transferring the pretrained model zero-shot to nanoscale brain tomography. Our experiments show that TomoTransformer significantly outperforms ViewTrans (Chen et al., 2026) and matches or exceeds strong single-purpose baselines that are specifically trained for each acquisition protocol, while remaining agnostic to the number of input and queried projections. Our contributions are as follows.

• We introduce TomoTransformer, a CT reconstruction model that is simultaneously agnostic to the number and angular configuration of projections, and detector size, removing the protocol dependence that limits existing supervised methods.

• We formulate sinogram completion in a disentangled space which makes view interpolation geometrically natural, yielding a flexible and scalable architecture.

• We train TomoTransformer on a large-scale dataset of medical CT anatomies and natural images, showing that a single set of weights generalizes across anatomies, materials, and resolutions, including zero-shot transfer to real experimental data of nanoscale brain ptychography X-ray tomography acquired at Swiss Light Source (SLS) (Bosch et al., 2025).

• We show that TomoTransformer matches or outperforms protocol-specific baselines that are trained individually at each sparsity level, and significantly outperforms the concurrent multi-purpose baseline ViewTrans (Chen et al., 2026), which is tied to a fixed detector size.

  • We evaluate the robustness of TomoTransformer against noise where our experiments show that a TomoTransformer pre-trained on clean images achieves remarkable zero-shot denoising performance on unseen noisy projections without any fine-tuning, demonstrating its practical utility for real-world imaging tasks.

References (53)

  • Learned primal-dual reconstruction
  • Operator discretization library (ODL) (opens the publisher in a new tab)
  • QN-Mixer: A quasi-Newton MLP-Mixer model for sparse-view CT reconstruction
  • On the Opportunities and Risks of Foundation Models
  • Nature Methods, pages 1–8, 2025
  • LEARN: Learned experts' assessment-based reconstruction network for sparse-data CT. IEEE Transactions on Medical Imaging, 37(6):1333–1347, 2018
  • Simple baselines for image restoration
  • Tri-domain sparse-view CT reconstruction based on sparse transformer
  • Viewtrans: A physics-informed transformer for sparse-view ct sinogram restoration
  • Diffusion posterior sampling for general noisy inverse problems
  • Solving 3d inverse problems using pre-trained 2d diffusion models
  • Industrial applications of computed tomography
  • ImageNet: A large-scale hierarchical image database
  • A large-scale dataset for spinal vertebrae segmentation in computed tomography (opens arXiv in a new tab)
  • Parallel cryo electron tomography on in situ lamellae
  • Framing U-Net via deep convolutional framelets: Application to sparse-view CT. IEEE Transactions on Medical Imaging, 37(6):1418–1429, 2018
  • Masked autoencoders are scalable vision learners
  • A unified segmentation foundation model for 3d medical imaging
  • Automatic segmentation of kidneys, renal tumors, and renal cysts in corticomedullary-phase CT. arXiv:2307.01984, 2023 (opens arXiv in a new tab)
  • High-resolution non-destructive three-dimensional imaging of integrated circuits
  • Deep convolutional neural network for inverse problems in imaging
  • Principles of Computerized Tomographic Imaging
  • A deep convolutional neural network using directional wavelets for low-dose X-ray CT reconstruction
  • A style-based generator architecture for generative adversarial networks
  • Glimpse: generalized locality for scalable and robust ct
  • Lofi: Neural local fields for scalable image reconstruction
  • Segment anything
  • LoDoPaB-CT, a benchmark dataset for low-dose computed tomography reconstruction
  • Seism: a foundation model for seismic waveforms
  • U-Net: Convolutional networks for biomedical image segmentation
  • Physica Medica, 2022
  • Image reconstruction in circular cone-beam computed tomography by constrained, total-variation minimization
  • Solving inverse problems in medical imaging with score-based generative models
  • DuDoTrans: Dual-domain transformer for sparse-view CT reconstruction
  • CTformer: convolution-free Token2Token dilated vision transformer for low-dose CT denoising
  • robust segmentation of 104 anatomic structures in ct images
  • Computers in Biology and Medicine, 2023
  • Restormer: Efficient transformer for high-resolution image restoration
  • Plug-and-play image restoration with deep denoiser prior
  • A sparse-view CT reconstruction method based on combination of DenseNet and deconvolution
  • Best per column in bold
  • The last row is the very-sparse regime, with only 64 measured views—the extreme sparse end of the training distribution
  • ><tr><td rowspan=
  • This positional embedding is added at two points: (1) to the encoder input and (2) to the complete decoder input
  • The encoder processes only the observed measured tokens
  • For each pair of tokens $(r, r')$ we form the angular difference $\Delta_{rr'} = \theta_r - \theta_{r'}$, wrapped to
  • The pre-trained TomoTransformer receives the same 128 measured views in both rows and is applied with no fine-tuning; only the number of queried views differs
  • We initialize the final layer of $g_\phi$ to zero so that training begins from standard dot-product attention
  • Each slice is normalized to a common intensity range and masked with a circular field-of-view mask
  • Models are trained using AdamW ($\beta_1=0.9$, $\beta_2=0.95$, weight decay 0.05) with a base learning rate of $3\times 10^{-4}$ decayed to zero via a cosine schedule, and gradients clipped at a norm of 1.0
  • Patches that extend past the image boundary are shifted inward to align with the edge, and any overlapping regions are simply averaged
  • These models are trained to map a sparse-view FBP patch to its dense-view counterpart
  • The only exception is CTformer, whose public implementation hard-codes a $64 \times 64$ unfold/fold tokenizer grid