Master’s Thesis Presentation • Artificial Intelligence | Machine Learning • CAPID: Context-Aware PII Detection for Question-Answering Systems

Monday, December 14, 2026 10:00 am - 11:00 am EST (GMT -05:00)

Please note: This master’s thesis presentation will take place online.

Mariia Ponomarenko, Master’s candidate
David R. Cheriton School of Computer Science

Supervisor: Professor Xi He

Detecting personally identifiable information (PII) in user queries is critical for privacy in question-answering (QA) systems. Current approaches typically redact all PII, even when some of it is contextually relevant to the question. This degrades response quality. Large language models (LLMs) could judge which PII is relevant, but closed-source LLMs offer no privacy guarantees and are unsuitable for sensitive data. An ideal detector should be (i) accurate in finding PII spans and types, (ii) context-aware, and (iii) utility-preserving.

We propose CAPID, a framework for context-aware PII detection. To address the lack of training data, CAPID uses LLMs to generate a synthetic dataset that spans multiple domains, PII types, and relevance labels, then fine-tunes a locally owned small language model (SLM) on it. The SLM detects PII spans, classifies their types, and estimates contextual relevance, so it can redact irrelevant PII before the query reaches an LLM for QA. CAPID substantially outperforms existing baselines in span, relevance, and type accuracy, and retains higher downstream utility after redaction.

To support reproducibility and future research, the CAPID dataset and framework are publicly available on GitHub at: https://github.com/MariaPonomarenko38/CAPID.


Attend this master’s thesis presentation virtually on Zoom.