{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,19]],"date-time":"2026-11-19T23:15:20Z","timestamp":1795130120439,"version":"4.10.3"},"reference-count":40,"publisher":"MDPI AG","issue":"12","license":[{"start":{"date-parts":[[2024,12,5]],"date-time":"2024-12-05T00:00:00Z","timestamp":1733356800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>This study investigates the capabilities of open-source Large Language Models (LLMs) in automating GDPR compliance documentation, specifically in generating data categories\u2014types of personal data (e.g., names, email addresses)\u2014for processing activity records, a document required by the General Data Protection Regulation (GDPR). By comparing four state-of-the-art open-source models with the closed-source GPT-4, we evaluate their performance using benchmarks tailored to GDPR tasks: a multiple-choice benchmark testing contextual knowledge (evaluated by accuracy and F1 score) and a generation benchmark evaluating structured data generation. In addition, we conduct four experiments using context-augmenting techniques such as few-shot prompting and Retrieval-Augmented Generation (RAG). We evaluate these on performance metrics such as latency, structure, grammar, validity, and contextual understanding. Our results show that open-source models, particularly Qwen2-7B, achieve performance comparable to GPT-4, demonstrating their potential as cost-effective and privacy-preserving alternatives. Context-augmenting techniques show mixed results, with RAG improving performance for known categories but struggling with categories not contained in the knowledge base. Open-source models excel at structured legal tasks, although challenges remain in handling ambiguous legal language and unstructured scenarios. These findings underscore the viability of open-source models for GDPR compliance, while highlighting the need for fine-tuning and improved context augmentation to address complex use cases.<\/jats:p>","DOI":"10.3390\/fi16120459","type":"journal-article","created":{"date-parts":[[2024,12,5]],"date-time":"2024-12-05T08:33:51Z","timestamp":1733387631000},"page":"459","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":9,"title":["A Systematic Comparison Between Open- and Closed-Source Large Language Models in the Context of Generating GDPR-Compliant Data Categories for Processing Activity Records"],"prefix":"10.3390","volume":"16","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-8092-1414","authenticated-orcid":false,"given":"Magdalena","family":"von Schwerin","sequence":"first","affiliation":[{"name":"Institute of Databases and Information Systems, Ulm University, 89081 Ulm, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2536-4153","authenticated-orcid":false,"given":"Manfred","family":"Reichert","sequence":"additional","affiliation":[{"name":"Institute of Databases and Information Systems, Ulm University, 89081 Ulm, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,12,5]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"95","DOI":"10.1007\/s12599-023-00795-x","article-title":"Welcome to the era of ChatGPT et al.: The prospects of large language models","volume":"65","author":"Teubner","year":"2023","journal-title":"Bus. Inf. Syst. Eng."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Padiu, B., Iacob, R., Rebedea, T., and Dascalu, M. (2024). To What Extent Have LLMs Reshaped the Legal Domain So Far? A Scoping Literature Review. Information, 15.","DOI":"10.37766\/inplasy2024.9.0055"},{"key":"ref_3","unstructured":"European Parliament and Council of the European Union (2024, November 18). Regulation (EU) 2016\/679 of the European Parliament and of the Council. Available online: https:\/\/data.europa.eu\/eli\/reg\/2016\/679\/oj."},{"key":"ref_4","first-page":"402","article-title":"The critical success factors of GDPR implementation: A systematic literature review","volume":"21","author":"Pereira","year":"2019","journal-title":"Digit. Policy Regul. Gov."},{"key":"ref_5","first-page":"1877","article-title":"Language Models are Few-Shot Learners","volume":"Volume 33","author":"Larochelle","year":"2020","journal-title":"Advances in Neural Information Processing Systems"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Salemi, A., and Zamani, H. (2024, January 14\u201318). Evaluating Retrieval Quality in Retrieval Augmented Generation. Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, Washington, DC, USA.","DOI":"10.1145\/3626772.3657957"},{"key":"ref_7","unstructured":"Li, H., Su, W., Wang, C., Wu, Y., Ai, Q., and Liu, Y. (2023). Thuir@coliee 2023: Incorporating structural knowledge into pre-trained language models for legal case retrieval. arXiv."},{"key":"ref_8","unstructured":"Huang, Q., Tao, M., Zhang, C., An, Z., Jiang, C., Chen, Z., Wu, Z., and Feng, Y. (2023). Lawyer llama technical report. arXiv."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Yao, S., Ke, Q., Wang, Q., Li, K., and Hu, J. (2024, January 5\u20137). Lawyer GPT: A legal large language model with enhanced domain knowledge and reasoning capabilities. Proceedings of the 2024 3rd International Symposium on Robotics, Artificial Intelligence and Information Engineering, Singapore.","DOI":"10.1145\/3689299.3689319"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Savelka, J., and Ashley, K.D. (2023). The unreasonable effectiveness of large language models in zero-shot semantic annotation of legal texts. Front. Artif. Intell., 6.","DOI":"10.3389\/frai.2023.1279794"},{"key":"ref_11","unstructured":"Weller, O., Chang, B., MacAvaney, S., Lo, K., Cohan, A., Van Durme, B., Lawrie, D., and Soldaini, L. (2024). FollowIR: Evaluating and teaching information retrieval models to follow instructions. arXiv."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"96","DOI":"10.1007\/s10664-024-10491-3","article-title":"A multi-solution study on GDPR AI-enabled completeness checking of DPAs","volume":"29","author":"Azeem","year":"2024","journal-title":"Empir. Softw. Eng."},{"key":"ref_13","unstructured":"Priyanshu, A., Vijay, S., Kumar, A., Naidu, R., and Mireshghallah, F. (2023). Are chatbots ready for privacy-sensitive applications? An investigation into input regurgitation and prompt-induced sanitization. arXiv."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Nayak, S.P., Pasumarthi, S., Rajagopal, B., and Verma, A.K. (2024, January 25\u201326). GDPR Compliant ChatGPT Playground. Proceedings of the 2024 International Conference on Emerging Technologies in Computer Science for Interdisciplinary Applications (ICETCS), Bengaluru, India.","DOI":"10.1109\/ICETCS61022.2024.10543557"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Montagna, S., Ferretti, S., Klopfenstein, L.C., Florio, A., and Pengo, M.F. (2023, January 6\u20138). Data decentralization of LLM-based chatbot systems in chronic disease self-management. Proceedings of the 2023 ACM Conference on Information Technology for Social Good, Lisbon, Portugal.","DOI":"10.1145\/3582515.3609536"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Fei, Z., Shen, X., Zhu, D., Zhou, F., Han, Z., Zhang, S., Chen, K., Shen, Z., and Ge, J. (2023). Lawbench: Benchmarking legal knowledge of large language models. arXiv.","DOI":"10.18653\/v1\/2024.emnlp-main.452"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Guha, N., Nyarko, J., Ho, D., R\u00e9, C., Chilton, A., Chohlas-Wood, A., Peters, A., Waldon, B., Rockmore, D., and Zambrano, D. (2023, January 10\u201316). Legalbench: A collaboratively built benchmark for measuring legal reasoning in large language models. Proceedings of the 2023 Conference on Neural Information Processing Systems (NeurIPS 2023), New Orleans, LA, USA.","DOI":"10.2139\/ssrn.4583531"},{"key":"ref_18","unstructured":"Dai, Y., Feng, D., Huang, J., Jia, H., Xie, Q., Zhang, Y., Han, W., Tian, W., and Wang, H. (2023). LAiW: A Chinese legal large language models benchmark (a technical report). arXiv."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"181","DOI":"10.1016\/j.aiopen.2024.09.002","article-title":"Large language models in law: A survey","volume":"5","author":"Lai","year":"2024","journal-title":"AI Open"},{"key":"ref_20","unstructured":"Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., Altman, S., and Anadkat, S. (2023). GPT-4 technical report. arXiv."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Petroni, F., Rockt\u00e4schel, T., Riedel, S., Lewis, P., Bakhtin, A., Wu, Y., and Miller, A. (2019, January 3\u20137). Language models as knowledge bases?. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.","DOI":"10.18653\/v1\/D19-1250"},{"key":"ref_22","unstructured":"Wei, J., Bosma, M., Zhao, V.Y., Guu, K., Yu, A.W., Lester, B., Du, N., Dai, A.M., and Le, Q.V. (2021). Finetuned language models are zero-shot learners. arXiv."},{"key":"ref_23","unstructured":"Apache Software Foundation (2024, November 18). Apache License, Version 2.0. Available online: https:\/\/www.apache.org\/licenses\/LICENSE-2.0."},{"key":"ref_24","unstructured":"Massachusetts Institute of Technology (2024, November 18). MIT License. Available online: https:\/\/opensource.org\/licenses\/MIT."},{"key":"ref_25","unstructured":"Fourrier, C., Habib, N., Lozovskaya, A., Szafer, K., and Wolf, T. (2024, November 18). Open LLM Leaderboard v2. Available online: https:\/\/huggingface.co\/spaces\/open-llm-leaderboard\/open_llm_leaderboard."},{"key":"ref_26","unstructured":"Zhou, J., Lu, T., Mishra, S., Brahma, S., Basu, S., Luan, Y., Zhou, D., and Hou, L. (2023). Instruction-following evaluation for large language models. arXiv."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Suzgun, M., Scales, N., Sch\u00e4rli, N., Gehrmann, S., Tay, Y., Chung, H.W., Chowdhery, A., Le, Q.V., Chi, E.H., and Zhou, D. (2022). Challenging big-bench tasks and whether chain-of-thought can solve them. arXiv.","DOI":"10.18653\/v1\/2023.findings-acl.824"},{"key":"ref_28","unstructured":"Rein, D., Hou, B.L., Stickland, A.C., Petty, J., Pang, R.Y., Dirani, J., Michael, J., and Bowman, S.R. (2023). GPQA: A graduate-level google-proof Q&A benchmark. arXiv."},{"key":"ref_29","unstructured":"Sprague, Z., Ye, X., Bostrom, K., Chaudhuri, S., and Durrett, G. (2023). MUSR: Testing the limits of chain-of-thought with multistep soft reasoning. arXiv."},{"key":"ref_30","unstructured":"Wang, Y., Ma, X., Zhang, G., Ni, Y., Chandra, A., Guo, S., Ren, W., Arulraj, A., He, X., and Jiang, Z. (2024). MMLU-Pro: A more robust and challenging multi-task language understanding benchmark. arXiv."},{"key":"ref_31","unstructured":"Yang, A., Yang, B., Hui, B., Zheng, B., Yu, B., Zhou, C., Li, C., Li, C., Liu, D., and Huang, F. (2024). Qwen2 technical report. arXiv."},{"key":"ref_32","unstructured":"AI@Meta (2024, November 18). Llama 3 Model Card. Available online: https:\/\/github.com\/meta-llama\/llama3\/blob\/main\/MODEL_CARD.md."},{"key":"ref_33","unstructured":"Tunstall, L., Beeching, E., Lambert, N., Rajani, N., Rasul, K., Belkada, Y., Huang, S., von Werra, L., Fourrier, C., and Habib, N. (2023). Zephyr: Direct distillation of lm alignment. arXiv."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Ding, N., Chen, Y., Xu, B., Qin, Y., Zheng, Z., Hu, S., Liu, Z., Sun, M., and Zhou, B. (2023). Enhancing Chat Language Models by Scaling High-quality Instructional Conversations. arXiv.","DOI":"10.18653\/v1\/2023.emnlp-main.183"},{"key":"ref_35","unstructured":"Mathur, P. (2024, November 18). orca_mini_v7_7b. Available online: https:\/\/huggingface.co\/pankajmathur\/orca_mini_v7_7b."},{"key":"ref_36","unstructured":"Mitra, A., Del Corro, L., Mahajan, S., Codas, A., Simoes, C., Agarwal, S., Chen, X., Razdaibiedina, A., Jones, E., and Aggarwal, K. (2023). Orca 2: Teaching small language models how to reason. arXiv."},{"key":"ref_37","first-page":"1","article-title":"Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing","volume":"55","author":"Liu","year":"2023","journal-title":"Acm Comput. Surv."},{"key":"ref_38","unstructured":"von Schwerin, M. (2024, November 18). GitHub Repository: Llms-In-Gdpr-Documentation. Available online: https:\/\/github.com\/magdalenavonschwerin\/llms-in-gdpr-documentation."},{"key":"ref_39","unstructured":"Sattar, A., and Kang, B. (2006). Beyond accuracy, F-score, and ROC: A family of discriminant measures for performance evaluation. Advances in Artificial Intelligence, Proceedings of the AI 2006, Hobart, Australia, 4\u20138 December 2006, Springer."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Bukaty, P. (2019). The California Consumer Privacy Act (CCPA): An Implementation Guide, IT Governance Publishing. Available online: http:\/\/www.jstor.org\/stable\/j.ctvjghvnn.","DOI":"10.2307\/j.ctvjghvnn"}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/16\/12\/459\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T16:47:50Z","timestamp":1760114870000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/16\/12\/459"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,12,5]]},"references-count":40,"journal-issue":{"issue":"12","published-online":{"date-parts":[[2024,12]]}},"alternative-id":["fi16120459"],"URL":"https:\/\/doi.org\/10.3390\/fi16120459","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,12,5]]}}}