Research Article

A Probabilistic Risk Scoring and Dynamic Mitigation Framework for Privacy Protection in LLM QA Applications

Sirui Zhang*
Dalian University of Technology

* Corresponding author: [email protected]

Abstract

LLM based question answering systems have been used in healthcare, education,and customer support, and in these settings user prompts often contain names, health conditions, contact details, or other sensitive clues, which makes privacy protection at inferencetime hard to avoid, especially when the service is deployed as a black box. Many existingdefenses still rely on retraining or relatively rigid filtering rules, so they do not adapt wellwhen contextual sensitivity changes from one interaction to another. This paper proposes aprivacy protection framework for LLM QA at the question answer pair level. The frameworkestimates exposure risk with a probabilistic graphical model, then adjusts mitigation strengththrough threshold based control. In the protection stage, sanitization, abstraction, and calibrated noise are used together, so stronger intervention can be applied to more sensitive inputswhile ordinary interactions are affected less. Experiments on a SafetyBench derived datasetshow that the framework can reduce privacy risk and still keep answer utility at a useful level,with relatively low computational overhead.

Keywords: Large Language Models; Privacy Protection; Question Answering; Risk Assessment; Privacy Utility Balance
Published: May 18, 2026
DOI: 10.54254/2755-2721/2026.33648
Volume: ACE Vol.234
pp. 1-12
Download PDF

References

  1. N. Carlini, F. Tramer, E. Wallace, M. Jagielski, A. Herbert-Voss, K. Lee, A. Raghunathan, D. Song, N. Tomashenko, P. Henderson  et al., "Extracting training data from large language models, " Proceedings of the USENIX Security Symposium, pp. 2633–2650, 2021.
  2. M. Jagielski, N. Carlini, D. Berthelot, J. Geiping, A. Raghunathan, and F. Tramer, "Membership inference attacks can extract training data from large language models, " Proceedings of the International Conference on Learning Representations, 2023.
  3. R. Shokri, M. Stronati, C. Song, and V. Shmatikov, "Membership inference attacks against machine learning models, " Proceedings of the IEEE Symposium on Security and Privacy, pp. 3–18, 2017.
  4. T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, G. Shyam, G. Sastry, A. Askell et al., "Language models are few shot learners, " Advances in Neural Information Processing Systems, vol. 33, pp. 1877–1901, 2020.
  5. J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. Le, and D. Zhou, "Chain of thought prompting elicits reasoning in large language models, " Advances in Neural Information Processing Systems, vol. 35, pp. 24 824–24 837, 2022.
  6. C. Dwork, "Differential privacy: A survey of results, " Theory and Applications of Models of Computation, pp. 1–19, 2008.
  7. M. Abadi, A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, and L. Zhang, "Deep learning with differential privacy, " Proceedings of the ACM SIGSAC Conference on Computer and Communications Security, pp. 308–318, 2016.
  8. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, "Communication efficient learning of deep networks from decentralized data, " Proceedings of the International Conference on Artificial Intelligence and Statistics, pp. 1273–1282, 2017.
  9. K. Bonawitz, V. Ivanov, B. Kreuter, A. Marcedone, H. B. McMahan, S. Patel, D. Ramage, A. Segal, and K. Seth, "Practical secure aggregation for privacy-preserving machine learning, " Proceedings of the ACM SIGSAC Conference on Computer and Communications Security, pp. 1175–1191, 2017.
  10. P. Kairouz, H. B. McMahan, B. Avent, A. Bellet, M. Bennis, A. N. Bhagoji, K. Bonawitz, Z. Charles, G. Cormode, R. Cummings et al., "Advances and open problems in federated learning, " Foundations and Trends in Machine Learning, vol. 14, no. 1–2, pp.1–210, 2021.
  11. M. Nasr, R. Shokri, and A. Houmansadr, "Machine learning with membership privacy using adversarial regularization, " Proceedings of the ACM SIGSAC Conference on Computer and Communications Security, pp. 634–646, 2019.
  12. S. Yeom, M. Fredrikson, and S. Jha, "Privacy risk in machine learning: Analyzing the connection to overfitting, " Proceedings of the IEEE International Conference on Computer Communications, pp. 1948–1956, 2018.
  13. H. B. McMahan, D. Ramage, K. Talwar, and L. Zhang, "Learning differentially private recurrent language models, " International Conference on Learning Representations, 2018.
  14. S. Hoory, A. Feder, A. Tendler, S. Erell, A. Cohen, I. Laish, H. Nakhost, U. Stemmer, A. Benjamini, A. Hassidim, and Y. Matias, "Learning and evaluating a differentially private pre-trained language model, " Findings of the Association for Computational Linguistics: EMNLP, pp. 1178–1189, 2021.
  15. Z. Xu, Y. Zhang, G. Andrew, C. A. Choquette-Choo, P. Kairouz, B. McMahan, J. Rosenstock, and Y. Zhang, "Federated learning of gboard language models with differential privacy, " Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics: Industry Track, pp. 628–640, 2023.
  16. Z. Wang, Y. Li, X. Li, S. Liu, Y. Yang, X. Liu, Q. Wang, J. Miao, S. Huang et al., "Safetybench: A multi dimensional safety evaluation benchmark for large language models, " https: //huggingface.co/datasets/thu-coai/SafetyBench, 2024.