AI-enabled Automation for Completeness Checking of Privacy Policies
Paper · 2021 · Orlando Amaral, Sallam Abualhaija, Damiano Torre et al.
Summary
A privacy policy may explain why an organization collects personal data and still leave out information that people need to exercise their rights. A reviewer has to find what the policy says, establish which disclosures apply to the organization, and check whether any of those disclosures are missing. The work can involve passages that are far apart. If an organization relies on consent to process data, for instance, the reviewer must also look for information about withdrawing that consent. Amaral and colleagues study how to automate this part of reviewing a privacy policy under the General Data Protection Regulation (GDPR).
Working with legal experts, the authors described the information that can appear in a policy using 56 categories, which they call metadata types. They also formulated 23 criteria that specify what a policy should contain and under what conditions. Their system, CompAI, uses supervised classifiers, comparisons with examples of each category, and keyword matches to identify passages. It then checks the information it found against the criteria, using a questionnaire to establish facts such as whether the organization plans to transfer personal data outside Europe. Its report distinguishes missing mandatory disclosures from cases that call for further legal review.
The authors collected 234 privacy policies from the fund industry and held out 48 for evaluation. On those 48 policies, CompAI identified GDPR-related disclosures with 92.1% precision and 95.3% recall. At the next stage, it detected 300 of the 334 incompleteness issues in the evaluation, including both violations and warnings, and raised 23 false alarms. That gave it 92.9% precision and 89.8% recall for issue detection. The keyword-only baseline, which had access to the same keyword list, achieved 68.0% precision and 52.3% recall on that task.
The evaluation measures how well CompAI finds disclosures and flags omissions under the authors’ criteria. A passage can satisfy a presence check while still requiring judgment about what it promises, whether its terms are legally adequate, and whether the organization acts accordingly. The results also come from a single industry, under a test setup that assumed the questionnaire-dependent checks needed to be run. The report is designed to guide a reviewer toward relevant passages and likely gaps.
Deep dive: AI-enabled Automation for Completeness Checking of Privacy Policies
Amaral and colleagues test a system that finds missing GDPR disclosures in privacy policies by combining sentence classification with legal rules. · about 38 minutes to read
The problem and its context
What makes a privacy policy complete
In the paper’s account of GDPR, a controller determines why and how personal data are processed. A processor acts on the controller’s instructions. The distinction matters because the organization that makes decisions about processing has duties that include informing people about the use of their data and respecting their rights over it. A privacy policy is one place where that information is made available. The authors focus on the disclosures that a reader ought to be able to find in the policy. This puts the work within Legal AI.
Completeness can depend on circumstances. The paper starts from Articles 13 and 14, which concern information to disclose when personal data are obtained directly from a person and when they are obtained indirectly. Imagine a policy for an organization that collects some information on a form and obtains other information from outside sources. The reviewer must account for both collection routes. Information about an obligation to supply data is relevant to the direct route in the circumstances the authors specify. Information about the source of data matters to the indirect route. A policy can have detailed language about its form and still omit what readers need to know about the outside sources.
In other cases, the policy itself supplies the fact that makes another disclosure necessary. When a passage invokes consent as a legal basis for processing, that passage gives the reviewer a reason to look for rights associated with consent. The passage explaining those rights may occur in a different section and use different wording. The necessary connection runs between the meanings of two passages and through a regulatory provision. Physical proximity in the document is incidental.
There are also circumstances that a reviewer needs to know independently of what the document says. A policy might be silent about transfers outside Europe because the organization makes no such transfers, or because its policy omits a disclosure it should make. From silence alone, the reviewer cannot tell which situation applies. The authors give those facts a separate input route. A person who knows the organization can say whether it plans to make such transfers, after which the reviewer can assess whether the policy addresses them. This distinction between applicability and evidence is central to the task.
Why finding the passages is difficult
Policy text is flexible. It can identify an actor by name, describe a practice in an extended sentence, or give related details in a list. Several legal categories can be expressed in the same sentence. A sentence that lists rights may cover access, rectification, and restriction without repeating the introductory phrase for each item. A system that assigns a single category to the sentence would lose some of the information needed downstream. A sentence can also support a broad category with little evidence for a particular subtype. Someone reviewing a complaint provision, for example, may need to know both that the policy recognizes a right to complain and whether it identifies the supervisory authority.
Keyword search has a different problem. Words associated with data protection may occur in material about security measures, the data protection officer, or safeguards for international transfers. In each case, the words have to be read with their surrounding language to understand what the passage is doing. Even a relatively specific phrase such as third parties is ambiguous for this task. It may introduce the entities from which an organization gets data, or the entities to which it sends data. Treating every occurrence as evidence of outside recipients can misclassify a description of where the data came from.
Policies can also express the same kind of information in different ways. A recipient disclosure may list types of organizations or particular recipients. Recognizing that function depends in part on how the list is introduced and what the sentence says happens to the data. The names in the list can change across policies. The extraction problem is thus to connect many possible phrasings to a defined set of legal concepts and retain evidence a reviewer can inspect. The paper treats that as a problem in natural language processing and information extraction.
Why the result matters outside legal review
The authors also treat a privacy policy as a source of software requirements. A policy may describe a retention period, promise that a person can request erasure, or make consent a condition of processing. Those statements can affect what an engineer has to implement. A retention period may call for a mechanism that deletes data when it expires. A commitment to let users withdraw consent has implications for the interface and for what the software does after the request. If the policy leaves information out, someone deriving requirements from it may never encounter the corresponding obligation.
This makes the direction of the analysis important. The checker starts with the written policy and asks what disclosure evidence is available. An engineer comparing that policy with software would start a separate investigation. The policy can point to a feature that should exist, while establishing that the feature exists requires evidence from the implementation or from the behavior of the service. The authors use this connection to explain the practical value of a more complete policy for both legal specialists and engineers.
Where the paper fits among earlier approaches
The authors describe earlier efforts to help engineers build privacy-aware applications, derive requirements from GDPR, and represent compliance obligations in a form that software tools can process. Some of the work on privacy policies focused on giving people a more rigorous way to specify them. Vanezi and colleagues used a graphical language and a way to convert graphical specifications into formal definitions, focusing on processing purposes. Caramujo and colleagues developed a domain-specific language for policies associated with web and mobile applications. Work by Pullonen and colleagues extended business process notation to describe privacy properties of processes. These approaches help express privacy requirements in a structured way. CompAI begins with policies that organizations have already written in ordinary language.
Other earlier projects classified or extracted material from existing policies. The paper describes work by Sánchez and colleagues that organized assessments around six GDPR data protection goals and trained binary classifiers from four policies. Nejad and colleagues classified paragraphs using 115 policies from US companies and a scheme with 12 broad categories. Tesfay and colleagues used pre-defined keywords in a system covering 10 categories. Bhatia and colleagues used semantic frames to represent what privacy statements say about collection, retention, use, and transfer. The authors also discuss studies that used crowdsourcing to link passages to privacy issues. These efforts establish several ways to structure and label policy text, with different choices about the unit of analysis, the breadth of the categories, and the kind of review those categories support.
The work attributed to Lippi and colleagues is especially close in subject matter. In the authors’ account, it distinguished 33 types of metadata and provided automated support for detecting vagueness, using rules and classifiers with features drawn from the phrasing of policies. Vagueness and completeness raise different questions about a clause. A vague clause can indicate that a subject is covered and still leave its practical meaning unclear. A completeness check must also handle the case where an applicable subject has no identifiable treatment anywhere in the document. The related work appears under CLAUDETTE.
The paper also discusses studies that looked beyond the wording of policies. Fan and colleagues combined an analysis of what mobile health apps disclosed with checks for inconsistencies in data collection and insecure transmission. Hatamian and colleagues manually reviewed the policies of contact-tracing apps and compared them with evidence about the apps. Kununka and colleagues examined data sent to third parties and assessed whether the practices aligned with their policies. Such studies treat the written document as one piece of evidence about a service. For CompAI, the written document is the object of the automated review, and its disclosures provide information that a subsequent investigation could use.
Amaral and colleagues extend an earlier conference paper by their research group. That version handled 20 metadata types and evaluated the approach on 24 policies. The extension covers the full 56-type scheme, explains how the criteria were derived, and formalizes the comparison with a keyword-only approach. Its two linked tasks can therefore be examined separately. One is to find and classify the evidence in an existing policy. The other is to decide what that evidence implies for each of the document’s applicable disclosure checks.
The method, step by step
Define the disclosures before training the system
CompAI begins with a vocabulary for describing what a policy says. In this paper, a metadata type is a category assigned to the text, such as processing purposes, contact details for the controller, or the right to access personal data. The category names let annotators and the software refer to the same kinds of disclosure across documents. They also let the completeness checker ask for a particular kind of evidence without specifying how the policy has to word it.
The authors and their legal collaborators began with Articles 13 and 14, following references in those articles to provisions including Articles 6, 9, 21, 37, 46, 47, 49, 55, and 56. These references helped explain terms and obligations that the main disclosure articles invoke. The authors recorded the regulatory origins of the categories in a glossary. In review sessions, the collaborators discussed where a category needed to be more specific and how different disclosures related to each other. The vocabulary and glossary went through four iterations and roughly 30 hours of validation sessions. The final glossary contained 60 entries alongside the 56-category hierarchy.
Their qualitative procedure had several parts. First, in-vivo coding used language from GDPR to identify and name candidate concepts. The references to controller identity and contact information, for instance, yielded categories for identifying the controller and for explaining how to reach it. The controller’s representative could likewise be described by its identity and contact details, with a separate place in the hierarchy to preserve the distinction between the organizations. That distinction is important in a policy with several addresses. A reviewer needs to know whose contact information a passage supplies.
In hypothesis coding, the researchers applied the initial categories to 30 policies that were later included in the development set. This tested whether the legal concepts could be applied to the kinds of sentences people write in actual policies. It also gave the researchers a way to collect recurring words and phrases that supported their judgments. A phrase associated with requesting access, for instance, could be recorded as a clue for the access-right category. Finally, subcoding added more specific distinctions beneath existing categories. These steps turned a reading of legislation into a guide for linguistic annotation.
The finished hierarchy has three levels. A broad category such as the origin of personal data can have more specific categories for direct and indirect collection. Indirect collection can in turn have subtypes for third parties, public sources, and cookies. The specificity matters when a completeness criterion asks for more than a broad acknowledgment that data come from elsewhere. It also matters for annotation. A passage can support the broad category while giving the reader too little information to choose a narrower one.
The legal experts sometimes recommended external material to refine categories invoked by GDPR. The authors distinguish country, sector, and territory under adequacy decisions for transfers, for example. They also added a category for EU standard contractual clauses under safeguards. The resulting hierarchy is the authors’ and their collaborators’ structured interpretation of policy content. Its scope is wider than the particular disclosure tests. Cookies illustrate the difference. The taxonomy can record a cookie-related source when it is mentioned, while the authors’ criterion for further detail about indirect collection specifically looks for third-party or public sources.
Turn the disclosure requirements into decision rules
Once the authors had defined the categories, they used them to write rules for reviewing an entire policy. Each rule states what evidence should be present and, where needed, what condition makes the disclosure applicable. An unconditional rule can ask for the controller’s identity. A conditional rule can ask for the representative’s contact details when the controller is located outside Europe, as specified in the authors’ interpretation. A condition can also be another disclosure discovered in the policy, such as reliance on consent.
The paper expresses these rules with the following template.
[precondition], <postcondition>
The square brackets enclose a precondition, which may be empty. An empty precondition means the checker evaluates the requirement unconditionally. The angle brackets enclose the postcondition, which states which disclosures must be found if the rule applies. The comma separates the applicability check from the required evidence. The postcondition can ask for every item in a group or accept any of several alternatives. The rules use the same categories that annotators assign to the policy.
The difference between requiring a group and accepting alternatives is consequential. For contact information, a relevant email address, telephone number, or legal address can satisfy the form of the check the paper describes. For the general rights check, the authors look for access, complaint, rectification, and restriction. Reading that list as a set of alternatives would allow a single right to stand in for the others. The paper makes such choices explicit in its criteria and validates the logic with legal collaborators using activity diagrams. The criteria went through six iterations, reported at 15 days per iteration on average.
The questionnaire supplies context for rules whose applicability cannot reliably be inferred from an omission. Its six questions cover the controller’s identity, intended transfers outside Europe, the existence of other recipients, the organization’s core activities, where those activities take place, and whether collection is direct, indirect, or both. The activities question includes situations involving public bodies, regular and systematic monitoring on a large scale, and large-scale processing of sensitive data or data on criminal convictions and offenses. Answers to this question can make the officer’s contact details relevant. The location question can also provide the representative’s name. The controller name assists extraction without activating a criterion by itself.
The authors distinguish violations from warnings in the rules. A violation is the checker’s outcome when evidence of a mandatory disclosure is missing under the applicable criterion. A warning asks a legal expert to look more closely at a disclosure for which related detail was missing. Consider indirect collection. If the questionnaire indicates that the organization gets data indirectly, criterion C15 checks whether the policy discloses that fact. Failure to find it gives a violation. When indirect collection is found, C16 looks for evidence of collection from a third party or a public source. Failure to find either gives a warning. This keeps the report from treating missing general disclosure and missing supporting detail as the same finding.
Some rules depend on both kinds of input. Criterion C22 concerns disclosure of an obligation to provide personal data. It checks how data are collected and asks whether legal obligation or entering into a contract is an identified basis for processing. With the relevant collection route and legal basis in place, it looks for the disclosure about having to supply the data. Its logic illustrates why the criteria work over an inventory for the document as a whole. The passage about the basis and the passage about the obligation can be in different sections.
Prepare a policy for classification
At runtime, CompAI first finds candidate disclosures in a policy and then evaluates the rules. The diagram follows the text from its preparation through to the review report.
How CompAI checks a privacy policy
The steps in order.
The initial processing splits running text into words and punctuation, then into sentence units. In this method, a sentence is whatever the splitting component produces. It can be a conventional sentence or another unit, such as a fragment in a list. The authors choose this unit because it usually retains more context than an isolated phrase and still gives a reviewer a location to inspect. The first operations are tokenization and sentence splitting.
The pipeline identifies locations and organizations using named entity recognition. It also finds contact information such as email addresses, postal addresses, telephone numbers, and websites using regular expressions. These are patterns for finding strings with a recognizable form. When the pipeline passes a sentence to classification, it can replace a specific name with a general marker such as organization or location. It can likewise replace an email address with a marker for email.
This generalization lets policies about different organizations share useful features. If a location appears alongside a phrase indicating an overseas transfer, the classifier can use the pattern without having learned the particular country name from training. Likewise, an email address can become recognizable as email even if every company uses a different address. Separately, the algorithm retains a way to look for specific controller and representative names supplied in the questionnaire. The two operations serve different classification needs. A generic organization marker can support learning recurring patterns, while a known legal name is direct evidence for a particular identity.
The pipeline also normalizes word forms and removes very frequent words such as common articles and prepositions. The first operation gives related forms a common representation, as when a form of accepting becomes accept. This lets similar phrases share vocabulary in the representation used for classification. The operation is lemmatization.
Represent a sentence with word vectors
The next operations require a numerical description of each sentence. The authors use 100-dimensional vectors from GloVe, trained on Wikipedia and web text. A vector is an ordered collection of numbers. In this approach, each word has a fixed vector that can be retrieved without training a new vocabulary from the policy corpus. These representations are word embeddings. The representations used in the experiment come from GloVe.
The paper motivates embeddings with the observation that words with related meanings tend to have similar usage contexts. It also gives an illustration of a relationship between pairs of word vectors.
v(cat) − v(cats) ≈ v(apple) − v(apples)
Here v maps a word to its vector, and cat, cats, apple, and apples are the example words. Each − subtracts the plural word’s vector from the corresponding singular word’s vector. The ≈ sign indicates an approximate correspondence between the resulting differences. The example illustrates a regularity that vector representations can exhibit. The policy checker itself uses averages and similarities, without trying to identify singular–plural relationships this way.
For each preprocessed sentence, CompAI looks up its word vectors and takes their coordinate-wise mean.
v̄(S) = (Σᵢ v(wᵢ)) / n
Here S is the sentence, and v̄(S) is its averaged vector. The index i, shown as ᵢ in the expression, runs over the word vectors used for the sentence. The word at that position is wᵢ, and v(wᵢ) is its vector. Σᵢ adds the vectors coordinate by coordinate, n is the number of vectors in the average, and / divides each coordinate of the sum by that number.
The paper illustrates this operation with data privacy policy. The first coordinates of the vectors for the three words are -0.47099, 0.099115, and -0.060532, respectively. The paper gives -0.14414 as the first coordinate of the averaged representation in that example. The other coordinates are formed in the same way. CompAI therefore gets a vector of the same size for a short sentence and for a long one. That common representation can feed a classifier or be compared directly with other vectors.
Averaging is fast and gives words with related embeddings a way to contribute similar evidence. It also discards their order. That tradeoff is especially relevant here. A description of data being received from a third party and a description of data being sent to a third party can share many words, even though the direction of the action changes the category. The later stages have other sources of evidence, but the average itself neither encodes grammatical roles nor associates a word with a distinct meaning for each sentence.
Produce candidate labels with complementary methods
The first source of labels is supervised classification. CompAI treats each eligible category as a binary decision about a sentence. A support-vector machine learns from sentence vectors labeled as positive or negative for that category. Because several classifiers can accept the same sentence, a statement about erasure, restriction, portability, and objection can produce several rights labels. The task is a form of multilabel text classification using supervised machine learning.
Each positive training example is a sentence annotated with the target category. The authors select negatives from sentences annotated with other categories at the same level of the hierarchy. Typically, there are fewer positive examples for a particular category than potential negatives. CompAI addresses this imbalance by undersampling the negatives, meaning that it trains with a subset of the available negative examples. The support-vector machines use default hyper-parameters. The authors’ preliminary comparisons favored this combination over alternatives they considered, such as naïve Bayes or oversampling the minority class. They reserve the supervised classifiers for the upper and middle levels because the annotations for the most specific categories are too sparse for the same treatment.
The second source of labels compares a sentence directly with a group of examples. For each category at the upper or middle level, CompAI groups the training sentences annotated with that category and averages their sentence vectors. Because the original annotations allow multiple labels, a single training sentence can contribute to several category groups. The averaged vector gives each group a common point of comparison.
av(t) = (Σⱼ v̄(Sⱼ)) / m
Here t is the category, av(t) is the average vector for that category, and Sⱼ is a training sentence in its group. The index j, shown as ⱼ, ranges over the m training sentences in the group. v̄(Sⱼ) is the averaged word vector for the sentence, and Σⱼ adds these sentence vectors. Division by m gives the group average. The group vector is built from examples labeled with t, whereas the incoming sentence is still awaiting a classification.
CompAI compares the vector for that incoming sentence with each eligible category vector using cosine similarity, a measure of how closely two vectors point in the same direction.
sim(S, t) = (v̄(S) · av(t)) / (‖v̄(S)‖ × ‖av(t)‖)
Here sim(S, t) is the similarity of sentence S to category t. The vectors v̄(S) and av(t) represent the sentence and the training group for the category. The dot · means the dot product, the sum of products of paired coordinates. The double bars ‖ ‖ denote vector length, and × multiplies the two lengths in the denominator. The division makes the comparison depend on direction. In CompAI, it serves as a measure of semantic similarity.
The authors tried thresholds from 0.5 to 0.9, in steps of 0.01, on a subset of training policies. They chose 0.9. In the prediction algorithm, a similarity at or above 0.9 supports a label. Their example for indirect origin shows why a comparison of the whole sentence can help. The sentence about obtaining information from other parties has similarity 0.91 to the indirect-origin group. The sentence about disclosing information to authorities and others also mentions third parties, but its similarity to the same group is 0.43. The difference in the surrounding sentence gives the similarity test evidence that a search for the shared phrase would miss.
The third source of labels matches pre-defined words or phrases against a preprocessed sentence. A match supplies a candidate label for the associated category. The prepared list covers the hierarchy, including categories without enough examples for the other methods. Generalization helps this route too. A marker for email, for instance, can serve as a stable keyword after the software has recognized a specific address. An adequacy decision and wording that identifies an applicable country can likewise support a specific transfer category.
Combine the candidates according to the hierarchy
CompAI begins with an empty set of final labels for the sentence. For each upper-level category, either its supervised classifier or the similarity comparison can supply enough evidence to add that category. Once the broad topic is supported, either of the same kinds of evidence can support a middle-level child. CompAI preserves the broad label if it finds the general topic but cannot confidently recognize a subtype. The resulting evidence is still relevant to a reviewer, who can inspect nearby text for more detail.
When neither method supports the broad category, the algorithm looks for stronger evidence at the middle level. It accepts a child if the supervised classifier and similarity comparison both support it, or if a keyword match supports one of those two signals. The resulting label includes its path through the hierarchy. For example, evidence for vital interest can indirectly establish that a sentence is about a legal basis for processing. The stronger requirement for agreement applies because the broad category lacked direct support.
The algorithm supplements these decisions by checking the controller and representative names entered in the questionnaire. If a sentence contains the controller name, it adds the controller identity label. Otherwise, a match for the representative name can add the representative identity label. For the most specific categories, the algorithm looks below the middle-level labels it has already accepted. It adds a child when that child has a keyword match. A specific keyword can therefore complete a label path, while a middle-level prediction provides the context for interpreting it.
The hierarchy gives the same keyword different force in different circumstances. It can help rescue a middle-level label when another signal agrees, and it can identify a fine-grained specialization once the parent is established. A keyword by itself has no general authority to introduce a broad topic. This is a different use of the keyword list from the baseline, where any match can establish that a category occurs in the policy.
Use document context and generate a report
The next pass considers neighboring sentences for selected predictions about data subject rights, transfers outside Europe, and legal bases. The authors observed that policies frequently group related details on these subjects. The size of the neighborhood depends on how many categories there are at the same level within the parent category. For portability, CompAI can consider eight preceding and eight following sentences. It looks for a prediction in the same family within this window. It removes the candidate label when there is no such supporting prediction.
The transfer example in the paper explains what the filter is meant to catch. A sentence about transferring personal data outside Europe may resemble one about a person’s right to have data transferred. Assigning a portability label from this resemblance could cause the checker to treat the right as disclosed. If the surrounding sentences concern other matters and none has a related rights label, CompAI can discard that portability prediction. The filter relies on the arrangement of the document, so its evidence comes from where predicted topics are grouped as well as from the target sentence.
The first phase finishes by determining which categories occur in the policy. A category can have several supporting sentences, while the rule logic needs a decision about whether any evidence for it was found. The second phase joins that inventory with the questionnaire and runs the relevant criteria. In the running example for criterion C22, the authors point to sentences 20 and 25 for the legal bases that cause the check to apply, and sentence 26 for the disclosure about supplying personal data. Those sentence numbers identify different roles in one decision about the document.
The report records the overall finding and breaks it down by criterion. It can show the policy passage supporting a required disclosure, indicate that evidence was missing, or show that the criterion was inapplicable. It can also indicate that a particular kind of evidence was unnecessary because an acceptable alternative had been found. Presenting the passages gives the analyst a way to inspect the chain from text to outcome. A flagged omission can mean that the policy lacks the disclosure, or that the software failed to recognize it. The evidence in the report helps the analyst investigate which occurred.
The Java implementation is called CompAI. It uses DKPro for basic language processing, Java regular expressions for recognizing text patterns, Deeplearning4j for operations on vectors, and WEKA for classification and handling imbalanced training data. The paper also identifies an annex containing the glossary and the mapping between the criteria and GDPR provisions. Together, those materials distinguish the regulatory interpretation from the mechanics used to find textual evidence.
Experiments and results
Where the policies and annotations came from
The corpus contains 234 fund-industry privacy policies and 19,847 sentences. Linklaters supplied about 60% of the policies. The authors downloaded the remaining 40% from organizations in Luxembourg’s fund registry. The choice of industry followed the collaboration with Linklaters, for which funds were a major area of activity. It gave the researchers a collection of real policies and access to domain expertise for interpreting them.
A paper author annotated the initial 30 policies and used that work to prepare instructions with examples. The authors froze the category scheme before four independent annotators worked on a further 204 policies. Three of those annotators were social science graduate students with prior exposure to legal documents. The other was a computer science graduate student with experience in legal text processing. They attended two four-hour training sessions dealing with GDPR concepts and the meanings of the labels. The paper reports that independent annotators made 87% of the assignments.
The annotation instructions allowed several labels for a sentence and allowed a sentence to carry none. The paper’s example of a list of rights shows the reason. A grammatical sentence can contain several distinct disclosures, each of which may influence a different completeness criterion. The annotators also recorded phrases that often expressed categories. The comparison later uses the same keyword list for CompAI and the baseline.
To assess agreement, the authors selected 24 policies by random stratification so that the subset included work from all four independent annotators. A paper author independently checked their annotations. For the broadest metadata categories, average Cohen’s κ was 0.71 at sentence level and 0.87 at policy level. Cohen’s κ measures agreement while accounting for the amount expected by chance. The stronger policy-level result matters because the rules need to know whether a disclosure occurs somewhere in the document. Some disagreements over sentence assignments involved processing purposes and legal basis, which can be discussed together across several sentences.
The authors used 186 policies for training and development, calling that set T. They used 48 held-out policies for evaluation, calling that set E. The initial 30 policies used to refine the annotation scheme were part of T. Their final tests evaluated performance on E. This split keeps evaluation documents distinct from the examples used to train the sentence classifiers and select a similarity threshold.
What the scores count
The metadata experiment uses a manifestation as its unit. A manifestation is an occurrence of a particular category in a policy, counted once for that category in that document. Repeating a disclosure in several sentences does not produce several manifestations. The authors still require the software to find at least one sentence that the annotators marked for the category. When the software guesses the correct category for a policy from unrelated text, its finding can count as a false positive while the genuine manifestation also counts as missed. This makes the evidence shown to the reviewer part of what the experiment measures.
The paper represents the set of reference sentences for a manifestation as follows.
S = {s₁, s₂, …, sₙ}
Here S is the set of sentences in a policy manually annotated with the category under evaluation. The braces mark a set. Each s with a subscript is one of the annotated sentences, and the ellipsis … stands for intervening members. The subscript ₙ marks the last member in the notation, with n equal to the number of annotated sentences for that manifestation. This use of S represents a sentence set, whereas the method’s vector equations use S for an individual sentence.
In the completeness experiment, the unit changes to an issue: a violation or warning associated with an unsatisfied criterion in a policy. A true positive is a correctly detected issue, a false positive is a false alarm, a false negative is an issue the checker missed, and a true negative is a correct decision that there is no issue for the check. For metadata identification, the same terms refer to disclosure evidence and its absence. This change in the meaning of a positive result explains why the two experiments can produce different patterns of precision and recall.
The paper defines precision and recall separately.
P = TP / (TP + FP)
Here P is precision, TP is the true-positive count, and FP is the false-positive count. The + signs add counts and / divides them. Precision describes how many of the positive findings were correct among all findings counted as positive.
R = TP / (TP + FN)
Here R is recall, TP again denotes true positives, and FN denotes false negatives. The denominator counts the actual positives, including those the system missed. Recall describes how many of them the system recovered.
The paper also prints the following expression for accuracy.
A = (TP + FN) / (TP + FP + FN + TN)
Here A denotes accuracy as labeled in the printed equation, TP denotes true positives, FP false positives, FN false negatives, and TN true negatives. The numerator in that expression uses FN. The paper’s verbal definition of accuracy concerns correct presence and absence decisions, which would instead put true negatives alongside true positives in the numerator. The accuracy figures below are the authors’ reported values. The printed expression and the verbal definition give different accounts of how to reproduce them.
The paper gives a weighted harmonic measure of precision and recall.
Fᵦ = (1 + β²) × (P × R) / (β² × P + R)
Here Fᵦ denotes the F-measure with weighting parameter β. P is precision and R is recall. The superscript ² squares β, the symbol × multiplies quantities, and the grouping in parentheses specifies which operations belong in the numerator and denominator. The authors use β = 2 and report F2, which gives recall more weight than precision. They favor recall because a missed disclosure can require a reviewer to search the whole document, while a retrieved passage can be checked directly. Precision still matters because each irrelevant passage adds work.
How well CompAI found disclosures
For metadata extraction, the paper pools the relevant decisions across categories on the 48 evaluation policies. This micro-average gives each counted decision weight instead of averaging the scores of individual categories equally. The reported precision is 92.1% and recall is 95.3%. The authors give accuracy as 93.4%. The metadata table gives an F2 of 94.6%, while the accompanying results discussion states 94.9%. Both are printed as aggregate values for CompAI’s metadata task.
The paper excludes controller identity and representative identity from the described evaluation because their names are supplied by the user and looked up. It also identifies territory and sector under adequacy decisions as having no examples available to train or test on. The corpus statistics show how uneven the remaining evidence can be. Data subject rights occur in 224 of the 234 corpus policies and are annotated in 3352 sentences. Representative contact, in contrast, has only three manifestations in E. Missing one yields the reported recall of 66.7% for that category. The aggregate score and the category score describe performance with very different amounts of evidence.
The keyword-only system uses the same list of keywords and predicts that a category occurs in a policy whenever it finds a corresponding keyword in a sentence. It reaches 65.2% precision and 90.1% recall for metadata identification. The authors report 697 false positives and 144 missed manifestations for the baseline, compared with 119 false positives and 68 missed manifestations for CompAI. The largest visible separation in the aggregate metadata results is in the reliability of the passages retrieved as positive evidence.
Disclosure identification precision on the held-out fund policies
CompAI retrieves more reliable disclosure evidence than keyword search.
The numbers
| System or setting | Precision % |
|---|---|
| Keyword-only baseline | 65.2 |
| CompAI (this paper) | 92.1 |
The evidence requirements make these errors concrete. The reference annotations contain 42 manifestations of recipients and 46 of processing purposes in E. The authors report that the baseline found only unrelated sentences for 21 recipient manifestations and 17 processing-purpose manifestations. Those guesses did not provide the supporting text an analyst would need. For processing purposes, they report three such manifestations with irrelevant evidence for CompAI. The result is about locating the right part of a document as well as determining which categories are present.
How well CompAI found missing disclosures
For the end-to-end check, the authors apply the criteria to the metadata decisions. In this experiment they assume that the criteria dependent on questionnaire answers need to be checked. Conditions based on the presence of other disclosures still matter. Under the evaluation setup, the reference contains 334 incompleteness issues. CompAI finds 300 and raises 23 false alarms. The paper gives aggregate accuracy of 95.9%, precision of 92.9%, recall of 89.8%, and F2 of 90.4%. The keyword baseline is reported at 82.7% accuracy, 68.0% precision, 52.3% recall, and 54.8% F2 for the same task.
Incompleteness issue recall on the held-out fund policies
CompAI finds more of the issues identified by the reference assessment.
The numbers
| System or setting | Recall % |
|---|---|
| Keyword-only baseline | 52.3 |
| CompAI (this paper) | 89.8 |
The paper reports the violation and warning results separately. CompAI found 261 of the 285 genuine violations and raised 16 false alarms in that group. Its reported violation precision and recall are 94.2% and 91.6%. For warnings, it found 39 of the 49 genuine cases and raised seven false alarms. The authors report 84.4% precision and 79.6% recall for warnings. For the keyword baseline, the reported precision and recall are 71.6% and 48.9% on violations, and 55.7% and 69.4% on warnings. Both systems’ warning scores concern criteria whose outcomes call for further assessment. A warning can depend on correctly recognizing a broad disclosure and judging whether supporting detail is absent.
Under the study’s applicability assumptions, every one of the 48 test policies had at least one issue. CompAI flagged an issue in every policy. The issue-level scores give the more informative picture of how far that review went. A system can flag a policy correctly at the document level and still miss a substantial issue elsewhere in it. Conversely, detecting an issue for a particular criterion gives the reviewer a specific part of the policy or a specific missing disclosure to examine.
What the ablations show
The paper does not report a systematic component ablation. It offers an end-to-end comparison with keyword search, a preliminary comparison of training choices, a threshold search within the development material, and an analysis of where errors arose. The baseline is the strongest controlled comparison in the evaluation because both approaches have the same keyword vocabulary and are judged on the same test policies. The result measures the contribution of the full approach over keyword matching. The experiment does not assign a separate gain to the embeddings, the support-vector machines, the similarity comparisons, the hierarchy, or the context filter.
What changes when keywords are used on their own
The baseline illustrates how widely a useful term can spread across the wrong passages. For adequacy decisions concerning transfers outside Europe, the paper reports 100% recall and 20% precision for the keyword baseline. Recognizing all the annotated manifestations can coexist with many spurious findings. This is consequential for completeness checking because the checker uses positive extraction results to decide that a requirement has been satisfied, or to activate a further requirement. A high-recall search can give the reviewer a broad candidate list while being unsuitable as the sole source of automatic decisions.
Recipients and processing purposes present a different difficulty. Their phrasings vary enough that keywords can miss appropriate passages even while retrieving other text in the same policy. The reported errors involving unrelated sentences show the importance of using the right evidence. A passage referring to outside organizations may occur in a document that really has a recipient disclosure elsewhere. The keyword system can appear to have obtained the right document-level label while pointing the reviewer to a description of another practice. CompAI’s more selective predictions improve the quality of evidence in that comparison.
Keywords still have a role inside CompAI, and the scores vary by category. For safeguards for international transfers and several related labels, the metadata table contains cases where the systems have the same scores. For direct origin, the table gives 100% recall to the keyword baseline and 92.5% to CompAI. The broader comparison thus allows for local cases where a cue is direct and useful or where CompAI’s stricter decision loses a genuine occurrence. The result favors the combined system on the overall tasks while preserving variation across disclosure types.
How extraction errors change the rule outcomes
An extra metadata label and a missing metadata label have different effects depending on where the category appears in a rule. If a required disclosure is present but the extractor misses it, the checker may issue a false alarm. If the extractor falsely claims to have found a required disclosure, it may suppress an issue the reviewer needs to see. The direction can change when the same category is part of a precondition. A spurious label can activate a requirement that should never have been checked, while missing a real trigger can prevent the checker from examining a genuine obligation.
This logic accounts for the marked separation between systems on the final task even though the keyword baseline has comparatively high metadata recall. The authors trace 26 of CompAI’s 40 violation errors to false positives in metadata identification. They attribute the remaining 14 to missed metadata. Of the 17 warning errors, all except one are attributed to false positives from the extraction stage. In an issue check, wrongly establishing the presence of a category can be particularly damaging. It changes the inputs to a decision rule even when recall over all the categories remains high.
The paper reports 57 issue errors for CompAI and 241 for the baseline. Its baseline analysis points to false-positive metadata predictions as a major source of those errors. It also identifies difficulties with the categories of personal data and with missed disclosure manifestations. These observations show how the same rule logic can produce very different report quality when its input evidence changes. They also explain why the authors provide the relevant passages in the report. A reviewer can challenge a premise when the sentence shown does not support the category.
What the category-level errors reveal
The obligation to provide personal data stands out. CompAI’s metadata accuracy for this category is reported as roughly 75.5%, with 12 errors. The authors observe that the disclosure often takes a conditional form about what happens if someone fails to provide the data. Policies can express that condition and its consequence in different constructions. The paper connects extraction difficulty for this category with errors in C22, where the evidence is needed to decide whether to flag an omission. The authors argue that understanding more of the meaning of conditional statements would help.
The most specific categories expose another tradeoff. The paper points to low precision for the subtype concerning the need to enter into a contract, a label for which CompAI ultimately relies on keyword evidence. The hierarchy limits where the keyword can be used, but the parent category can be correct even when the keyword does not establish the particular subtype. In contrast, sparse categories such as representative contact give a different explanation for some low scores. There, a single missed disclosure has visible consequences for recall because the evaluation contains so few examples.
The threshold and training comparisons support particular design choices without measuring their isolated impact on test outcomes. The authors chose the cosine threshold on development policies. Their preliminary trials supported the use of a support-vector machine with undersampling, and they explain why labels at the most detailed level receive different treatment. Neither comparison supplies a held-out score for an otherwise identical version of CompAI with one element removed. The results establish how the assembled design compares with the intuitive baseline and give plausible explanations for specific errors. They leave the contribution of each element open.
Limitations
Limits identified by the authors
The authors distinguish checking whether a disclosure is present from checking what its wording means in full. CompAI can identify a passage concerned with how long data are stored without determining whether the stated practice is lawful or implemented by the organization. It can recognize text about withdrawing consent without evaluating every qualification attached to that right. The paper proposes extending the criteria to consider the meaning of the sentences supplying the metadata. The current result concerns the presence of categories under the authors’ rules.
The design also depends on legal interpretation. The authors and collaborators worked through disagreements about how to specialize concepts and how to relate categories. The resulting glossary and criteria document those decisions, making them open to examination. Expert agreement in the sessions gives the work a reviewed interpretation of the law. The authors acknowledge that judgments remain involved in translating provisions into categories and checks. The scope of the warning report, for instance, reflects a deliberate choice about which missing details should lead to further assessment.
The static keyword list is another stated dependency. It was compiled from the qualitative work and informed by legal collaborators. A different vocabulary could change how the baseline performs and how sensitive CompAI is to its detailed categories. Even though the full system limits the uses of keywords, several distinctions depend on them. The authors also explain that the available training data were too small for their intended use of deep learning and too sparse for accurate supervised classification of the deepest categories. Their decision to use a simpler representation and reserve keyword rules for the finest labels responds to the material they had.
The authors regard the category scheme as applicable beyond the fund industry because it derives from GDPR and from legal knowledge spanning more than one domain. They make a narrower claim about measured performance. All the training and test policies come from the fund industry, where some categories are rare and others never appear in the annotated material. The paper calls for evaluation across domains before making claims about how well the extraction and checking scores generalize.
Limits visible in the evaluation
The questionnaire is an operational part of the method. In normal use, an informed respondent supplies context about the organization. The evaluation assumes that questionnaire-dependent criteria need checking, so its figures do not measure whether users can reliably supply those facts or whether CompAI handles mistaken answers. An answer that a transfer is planned changes what evidence the rules look for. An erroneous answer can change the outcome even when the extractor reads the policy correctly. Thus the evaluation measures rule execution under a stipulated context rather than performance across the full range of possible respondent input.
The absence of complete policies in the test set under that assumption also limits the document-level result. Finding at least one issue in every test policy demonstrates sensitivity to a collection in which every policy was classified as incomplete. It leaves the rate of erroneous flags against fully complete policies undetermined. The criterion-level false alarms and true negatives are relevant evidence about specific decisions, but a test with a mixture of complete and incomplete documents would be needed to evaluate the overall designation in both directions.
The annotation agreement scores cover the top layer of the hierarchy. They show that the people checking the sample generally agreed about the broad topics at policy level. Agreement on fine distinctions, such as whether a passage describes a particular subtype of contractual basis or transfer mechanism, is a separate question. The reported κ figures do not quantify it. Those fine distinctions can be consequential for the rules even though there are relatively few training examples and a keyword may decide the label.
Several representation choices also define what the benchmark can establish. The system starts from sentence units and averages fixed word vectors, which sheds word order. The context filter checks for neighboring predictions from related categories and can remove a label that appears isolated. This can help for a policy that lists its rights together. A legitimate disclosure that occurs on its own may receive less support from the same heuristic. The paper gives examples of errors the filter is designed to prevent, while the experiments offer no separate estimate of how often isolated genuine disclosures are lost.
The headline scores do not measure how much time analysts actually save. They show how many disclosures and issues CompAI found, along with the false alarms an analyst would have to consider. The structured report gives a concrete reason to expect a different review workflow. The reader can inspect proposed evidence directly, while an omission may still prompt a search of the policy. The time saved would depend on how people use the report, how long the source documents are, and what they do when they disagree with the software. The paper uses the error counts to discuss that workload and does not give a timed comparison.
Some numerical reporting also requires care. The aggregate metadata F2 differs between the table and discussion, and the printed accuracy formula conflicts with the explanation of what counts as a correct decision. In the discussion of issue detection, the paper gives 52.3% as the baseline recall in its aggregate table and separately reports a recall improvement of 38%. The table and the stated improvement should be read as published figures, instead of assuming that one can be reconstructed from the other. The raw comparison tables still show the direction of performance for the tested systems on both disclosure identification and issue detection.
What came after
Later studies building on CompAI are unconfirmed. The authors themselves describe how the method could be repeated for another regulation and document type. The process would begin by identifying the provisions relevant to the new documents, defining the information that should be recognized, and formulating criteria for when it must be present. The automated part would then require labeled examples of the new documents, with classification and post-processing adapted to their wording and structure. The regulatory interpretation and the text evidence would both have to be rebuilt where the new setting calls for different distinctions.
For privacy policies specifically, the authors point to two extensions of their study. One is to evaluate policies from industries beyond funds, where the distribution of disclosures and the language used to express them may differ. The other is to examine what each retrieved passage actually says, so that the checker can assess more than the presence of a topic. The experiments in this paper establish performance for the earlier stage of that work: finding evidence of disclosures and using it to flag gaps under a stated set of rules.
Cite
Cite as Orlando Amaral, Sallam Abualhaija, Damiano Torre, Mehrdad Sabetzadeh and Lionel C. Briand. 2021. AI-enabled Automation for Completeness Checking of Privacy Policies. arXiv:2106.05688.
@misc{amaral2021ai,
title = {{AI-enabled Automation for Completeness Checking of Privacy Policies}},
author = {Orlando Amaral, Sallam Abualhaija, Damiano Torre, Mehrdad Sabetzadeh and Lionel C. Briand},
year = {2021},
doi = {10.48550/arxiv.2106.05688},
eprint = {2106.05688},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2106.05688}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/amaral-2021-ai-enabled-automation-completeness-checking/