arXiv:2610.20494cs.CVOct 2026

Manuscript Offprint

arXiv:2610.20494

Quantifying privacy risks in foundation model representations of brain MRI

Imen Bajar, Héber Hwang Arcolezi, Antoine Boutet, Carole Frindel, Mohamed Maouche

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

ABSTRACT

Pretrained representations are increasingly used to share and reuse information from medical images without exposing the original scans, but it is unclear how much patient-specific information these representations retain. We investigate this question for brain magnetic resonance imaging (MRI) by evaluating five frozen pretrained encoders spanning different architectures, pretraining objectives, and training domains on two longitudinal T1-weighted datasets, OASIS-2 and MIRIAD. Under an attacker model with access to released embeddings, the corresponding public encoder, and auxiliary MRI scans, we evaluate patient linkage and sensitive-attribute inference. Across the evaluated representations, we observe substantial subject-specific information: rank-1 patient linkage reaches up to 99% on MIRIAD and exceeds 90% on OASIS-2 for the highest-risk representation, despite the absence of an identification objective during encoder training. We further show that the released embeddings retain information about a demographic attribute, with recorded-sex prediction reaching balanced accuracy of 90.9% on OASIS-2 and 95.5% on MIRIAD. Overall, our results demonstrate that replacing raw brain MRI with learned embeddings does not, by itself, eliminate patient-linkage or attribute-inference risk, and is therefore insufficient on its own to establish anonymity.

1 INTRODUCTION

Magnetic resonance imaging (MRI) is an imaging modality that generates detailed images of the internal structures of the body, including the brain's anatomy. Given this level of anatomical detail, brain MRI is a routine tool in the diagnosis and monitoring of neurological and psychiatric conditions such as Alzheimer's disease, stroke, and brain tumors (Frisoni et al., 2010; Ahmed et al., 2021; Martucci et al., 2023). Many AI models have been trained to detect and classify these conditions from brain MRI scans (Korolev et al., 2017; Mohsen et al., 2018).

At the same time, studies have shown that brain morphology can serve as a biometric signature, a “brain fingerprint”, which enables subject re-identification through comparison with reference data (Wachinger et al., 2014; Takao et al., 2015; Valizadeh et al., 2018). Therefore, brain MRI has a dual nature, at once a diagnostic tool and a carrier of identifying biometric information.

In recent years, foundation models, large neural networks trained on broad and diverse datasets, have emerged. Many of these models use self-supervised learning to learn transferable representations that can be adapted to a range of downstream tasks (Bommasani et al., 2022). This approach is especially useful for medical imaging, where labeled data can be scarce and costly to obtain. Instead of training a model from scratch, a pretrained model can be adapted to the specific task at hand with limited task-specific labeled data (Liu et al., 2025; Tak et al., 2026). For brain MRI specifically, a growing body of work has explored foundation models for representation learning and downstream analysis (Barbano et al., 2026; Ghamizi et al., 2025; Mazher et al., 2025). Throughout this paper, we refer to the vector representation produced by a pretrained encoder as an embedding.

This question is also relevant to how anonymization is assessed in practice. Recent guidelines from the European Data Protection Board (EDPB) identify three criteria for evaluating whether data can be considered anonymous: No Record Isolation, No Linkage, and No Inference (European Data Protection Board, 2026). Our study examines two corresponding technical risks for released brain MRI representations: linkage across records belonging to the same individual and inference of withheld patient attributes.

As pretrained encoders are increasingly used to produce reusable representations of brain anatomy for downstream tasks, a central privacy question arises: when a learned representation is released instead of the raw brain MRI, can it still enable patient linkage or reveal additional patient-specific information? Across the evaluated models and datasets, we observe substantial variation in privacy risk, with rank-1 patient matching exceeding 90% for some representations and remaining well above chance across several model–dataset combinations. We address this question through four contributions:

• Define explicit threat models for patient linkage, re-identification, and sensitive-attribute inference from released brain MRI representations, and systematically evaluate five frozen pretrained encoders across two longitudinal MRI datasets.

• Quantify identity-related information through a score-based linkability audit and an explicit rank-1 matching attack (exploiting the proximity of embeddings derived from the same patient), showing that several representations preserve substantial subject-specific information despite the absence of an identification objective during encoder training.

• Evaluate sensitive-attribute inference from released brain MRI representations, showing that the embeddings can reveal the subject’s recorded sex in addition to supporting patient linkage.

• Demonstrate that releasing embeddings instead of raw brain MRI does not, by itself, eliminate linkage or attribute-inference risk and therefore is insufficient, on its own, to establish anonymity.

References (44)