Disputation: Thomas Vakili

DISPUTATION
Datum: tisdag 13 januari 2026
Tid: 13:30 - 17:30
Plats: Lilla hörsalen, DSV, Borgarfjordsgatan 12, Kista

Välkommen till en disputation på DSV! Thomas Vakili har studerat hur man kan träna stora språkmodeller, utan att riskera att känslig information från datamaterialet läcker ut.

13 januari 2026 presenterar Thomas Vakili sin doktorsavhandling på Institutionen för data- och systemvetenskap (DSV) vid Stockholms universitet. Disputationen genomförs i DSVs lokaler i Kista (Lilla hörsalen i Nodhuset, Borgarfjordsgatan 12) med start klockan 13.30.

Titeln på avhandlingen är ”Preserving the Privacy of Language Models: Experiments in Clinical NLP”.

Doktorand: Thomas Vakili, DSV
Opponent: Martin Krallinger, Barcelona Supercomputing Center (BSC), Spanien
Huvudhandledare: Hercules Dalianis, DSV
Handledare: Aron Henriksson, DSV

Avhandlingen kan laddas ner från Diva

Kontaktuppgifter till Thomas Vakili

Hitta till DSV

Vi har intervjuat Thomas Vakili tidigare:
Svensk teknik för säkra språkmodeller testas i Chile
Språkmodeller som minns – hur kan vi skydda patienters integritet?

Sammanfattning på engelska

State-of-the-art methods in natural language processing (NLP) increasingly rely on large pre-trained language models. The strength of these models stems from their large number of parameters and the enormous amounts of data used to train them. The datasets are of a scale that makes it difficult, if not impossible, to audit them manually. When unwieldy amounts of potentially sensitive data are used to train large models, an important problem arises: unwelcome memorization of the training data.

All datasets—including those based on publicly available data—can contain personally identifiable information (PII). When models memorize sensitive data, they become vulnerable to privacy attacks. Very few datasets for NLP can be guaranteed to be free of sensitive data. Consequently, most NLP models are susceptible to privacy leakage. This susceptibility is especially concerning in clinical NLP, where the data typically consist of electronic health records (EHRs). Leaking data from EHRs is never acceptable from a privacy perspective. This doctoral thesis investigates the privacy risks of using sensitive data and how they can be mitigated—while maintaining their utility as training data.

A BERT model pre-trained using clinical data is subjected to a training data extraction attack. The same model is used to evaluate a membership inference attack that has been proposed to quantify the privacy risks of masked language models. Multiple experiments assess the performance gains from adapting pre-trained models to the clinical domain. Then, the impact of automatic de-identification on the performance of BERT models is evaluated for both pre-training and finetuning data. The final experiments of the thesis explore how synthetic training corpora can be generated while limiting the use of sensitive data, and working under computational constraints. The quality of these corpora, and the factors affecting their utility, are explored by training and evaluating BERT models.

The results show that domain adaptation leads to significantly better performance on clinical NLP tasks. They also show that extracting training data from BERT models is difficult and suggest that the risks can be further decreased by automatically de-identifying the training data. Automatic de-identification is found to preserve the utility of the data used for pre-training and fine-tuning BERT models. However, we also find that contemporary membership inference attacks are unable to quantify the privacy benefits of this technique. Similarly, high-quality synthetic corpora can be generated using limited resources, but further research is needed to determine the privacy gains from using them. The results show that automatic de-identification and training data synthesis reduce the privacy risks of using sensitive data for NLP while preserving the utility of the data. However, these benefits are difficult to quantify, and there are no rigorous methods for comparing different privacy-preserving techniques.

Keywords: natural language processing, privacy, membership inference, training data extraction, automatic deidentification, synthetic data, named entity recognition, domain adaptation, large language models

Senast uppdaterad: 2026-01-13

Sidansvarig: Institutionen för data- och systemvetenskap