Automating Governing Knowledge Commons and Contextual Integrity (GKC-CI) Privacy Policy Annotations with Large Language Models

Jake Chanenson, Madison Pickering, Noah Apthorpe
11/3/2023
cs.CYcs.CLcs.LG

Official code: JakeC007/Automated_GKC-CI_Privacy_Policy_Annotations (6 stars, GPL-3.0, last commit 2025-07-01).

Abstract

Identifying contextual integrity (CI) and governing knowledge commons (GKC) parameters in privacy policy texts can facilitate normative privacy analysis. However, GKC-CI annotation has heretofore required manual or crowdsourced effort. This paper demonstrates that high-accuracy GKC-CI parameter annotation of privacy policies can be performed automatically using large language models. We fine-tune 50 open-source and proprietary models on 21,588 ground truth GKC-CI annotations from 16 privacy policies. Our best performing model has an accuracy of 90.65%, which is comparable to the accuracy of experts on the same task. We apply our best performing model to 456 privacy policies from a variety of online services, demonstrating the effectiveness of scaling GKC-CI annotation for privacy policy exploration and analysis. We publicly release our model training code, training and testing data, an annotation visualizer, and all annotated policies for future GKC-CI research.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

This repository contains the code to finetune large language models so that they are able to annotate privacy policy annotations using the GKC-CI framework.

60Python, Jupyter NotebookNov 3, 20231 years agoGPL-3.0

Similar Papers

Cite this paper

@article{chanenson2023automating,
  title  = {Automating Governing Knowledge Commons and Contextual Integrity (GKC-CI) Privacy Policy Annotations with Large Language Models},
  author = {Jake Chanenson and Madison Pickering and Noah Apthorpe},
  year   = {2023},
  eprint = {2311.02192},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.02192v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.02192.svg)](https://codeofpaper.com/paper/2311.02192)

Discussion