Uppsats
Handling Confidential Data in LLM Prompts
Magister-uppsats
Mälardalens universitet/Akademin för innovation, design och teknik
Publicerad: 2025
Språk: Engelska
Nyckelord
klicka för att sökaSammanfattning
Increase in popularity of Large Language Models (LLMs) throughout different applications led to important privacy challenges, especially when it comes to handling Personally Identifiable Information (PII) that is embedded in prompts of users. PII being exposed to LLMs, or to third party providers that are managing them can lead to privacy breaches and regulatory non-compliance. This work investigates several methods for protecting confidential data inside LLM prompts by anonymizing PII before model input and de-anonymyzing the output. To address this, the custom Named Entity Recognition (NER) model trained on ai4privacy/pii-masking-200k dataset was developed in order to identify PII spans. These spans are replaced by placeholder tokens and a mapping to original value is stored. Two approaches are compared for de-anonymization: (1) fine-tuned seq2seq “Seek” models (T5, mBART, BART) that predict original text from anonymized text and evaluated using BLEU and ROUGE metrics; and (2) a mapping-based approach that simply replaces placeholders with the stored originals. While fine tuned “seek models” can generate understandable de-anonymized text, they mostly hallucinate incorrect details. Mapping approach achieves 100% accuracy and semantic consistency. Besides its accuracy, the mapping strategy is preferred for reliability and performance (does not have to generate new words). This work demonstrates an effective end-to-end pipeline for PII protection which contributes clear guidelines for safer LLM utilization.
Information
- Författare
- Karavdić, Nedim
- Lärosäte / institution
- Mälardalens universitet/Akademin för innovation, design och teknik
- Publiceringsdatum
- 2025
- Uppsatstyp
- Magister-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Yrkesexamen på avancerad nivå, Uppsala universitet/Avdelningen för systemteknik
Vigholm, Albin
Publicerad: 2026
Kandidat-uppsats, Jönköping University/Tekniska Högskolan
Rönnqvist, Emilia, Skoogh, Lovisa
Publicerad: 2026
Magister-uppsats, Göteborgs universitet/Juridiska institutionen
Svensson, Hanna
Publicerad: 2026-03-10
Magister-uppsats, Umeå universitet/Institutionen för informatik
Abrahamsson, Albin, Strandgren, Erik
Publicerad: 2026
Magister-uppsats, Högskolan i Halmstad/Akademin för företagande, innovation och hållbarhet
DORGBEFU, REDEEMER SITSOFE
Publicerad: 2026
Magister-uppsats, Linnéuniversitetet/Institutionen för kulturvetenskaper (KV)
Engblom Viker, Sebastian
Publicerad: 2026