---
title: "Unsupervised Alignment of Privacy Policies using Hidden Markov"
description: "This study uses hidden Markov models to group privacy policy sections by subject and tests the groupings against two kinds of human judgment."
canonical: "https://research.elamur.ai/free/en/papers/ramanath-2014-unsupervised-alignment-privacy-policies-hidden/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ramanath-2014-unsupervised-alignment-privacy-policies-hidden/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2014](https://md.research.elamur.ai/free/en/papers/2014/) / Unsupervised Alignment of Privacy Policies using Hidden Markov Models

# Unsupervised Alignment of Privacy Policies using Hidden Markov Models

Paper · 2014 · Rohan Ramanath, Fei Liu, Norman Sadeh et al.

**Authors:** Rohan Ramanath, [Fei Liu](https://md.research.elamur.ai/free/en/authors/fei-liu/), [Norman Sadeh](https://md.research.elamur.ai/free/en/authors/norman-sadeh/) and [Noah A. Smith](https://md.research.elamur.ai/free/en/authors/noah-a-smith/) · **Year:** 2014 · **Venue:** Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers) · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**48** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2141105512) · [Cited by **22** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/ramanath-2014-unsupervised-alignment-privacy-policies-hidden/cited-by/) · [Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)](https://aclanthology.org/volumes/P14-2/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/P14-2099/)
- [PDF](https://aclanthology.org/P14-2099.pdf)
- [DOI 10.3115/v1/p14-2099](https://doi.org/10.3115/v1/p14-2099)
- [OpenAlex](https://openalex.org/W2141105512)

Citations: OpenAlex, 2026-10-14.

## Summary

A reader who wants to know whether a website shares location information may have to search several sections of its privacy policy. To compare that website with another, the reader has to do the search again, even if both policies address the same question. Ramanath and colleagues ask whether a computer can bring passages about the same privacy issue together across websites. Their unit of comparison is a section, identified from the policy’s own subtitles. The aim is to find corresponding material despite differences in wording, position, and the range of issues each policy covers.

The authors collected 1,010 distinct privacy policies from highly ranked websites. They treat each policy as an ordered sequence of sections and use a hidden Markov model to infer the issue each section addresses. The issue is hidden in the sense that the learning procedure receives the section text and its position in the sequence, with no human-supplied topic label. It learns both the terms associated with an issue and the tendencies for issues to follow one another. The paper compares a version that permits any topic-to-topic transition with versions that require forward movement through an ordering of topics, while still allowing neighboring sections to share a topic.

The authors test the resulting groups against two sorts of human evidence. In one evaluation, privacy experts point to passages they use to answer questions about data collection, third-party sharing, and deletion. Sections that support the same question provide evidence of a match. In the other, crowdworkers read pairs of sections and judge whether they address broadly the same subject. On both evaluations, every hidden Markov variant has a higher mean F₁, a measure that combines precision and recall, than the reported scores for either baseline. All Forward has the highest reported mean F₁, at 0.53 on the expert question-based evaluation and 0.41 on direct judgments. The clustering baseline scores 0.40 and 0.34, respectively.

The clearest gain on the expert evaluation is in recall. The sequence-based approach recovers more of the section pairs that experts connect through a question, with precision close to the clustering baseline’s. The differences among the sequence variants are smaller, and the most restrictive version varies substantially across runs. The experiments establish that section order can be used in a competitive approach to finding related passages. The resulting groups are candidates for comparison. A reader still has to inspect what each policy says about the issue, since two passages can concern the same practice while describing different commitments.

## Deep dive: Unsupervised Alignment of Privacy Policies using Hidden Markov Models

This study uses hidden Markov models to group privacy policy sections by subject and tests the groupings against two kinds of human judgment. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Finding the passage that matters

A privacy policy is written as a document, but a reader’s reason for opening it is frequently much narrower. Someone may want to know whether a company collects financial information, whether it passes that information on, or whether a user can ask to have data deleted. A legal researcher may want to locate the corresponding language in many policies. In either case, the effort begins with finding the relevant text. Headings provide clues within a document, but the paper’s task arises because comparable material can be distributed differently across documents. An issue can appear under a dedicated heading in one policy and as part of a broader discussion in another.

The authors ground this problem in earlier work on the effort required to read privacy policies. As they describe it, McDonald and Cranor estimated a substantial time commitment for a person who tried to read all the policies encountered in a year of browsing. Even after reading, people could still struggle to answer basic questions about policy content. The paper also cites the Federal Trade Commission in connection with the observation that many people skip the documents. This gives the alignment task a practical motivation. A shorter route to the relevant passage could help a reader inspect the terms that bear on a decision. A way to locate comparable passages across websites could help analysts study how those terms are presented.

The authors expect meaningful overlap across policies because the documents recur in a common setting. Websites can handle different kinds of information, but questions about collecting, sharing, and deleting data apply across services. The paper points to recommendations from privacy experts and policymakers as reasons to expect recurring issues. It also cites the financial services sector as an example where institutions covered by the Gramm-Leach-Bliley Act must address a particular set of issues. That example explains why a family of policies might share content without requiring the authors to assume that all websites follow a common template.

Collection and disclosure illustrate the distinction between a shared subject and an answer. Several policies may address contact information. Within that broad subject, one passage may explain how the company obtains it and another may explain when the company shares it. Even passages on the narrower subject of sharing could describe different conditions or recipients. The alignment task seeks a recurring basis for putting passages together. Whether those passages express equivalent rules is a further question. This distinction matters for reading the paper’s results because its evaluations reward evidence of topical correspondence at the section level.

#### From extracting rules to organizing a collection

The paper describes earlier applications of [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) to privacy policies as tackling several related problems. Some research sought to turn policy wording into machine-readable representations. Other work extracted particular rules or sub-policies from broader documents. The authors also cite applications of [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) that assessed selected attributes of a policy, including work on completeness. These efforts motivate the larger goal of making policies easier to analyze by giving software a representation or a judgment that can be used beyond the original prose.

Ramanath and colleagues place their own task at a different stage of the process. They start with a collection of documents and look for correspondences across their sections. A grouping may gather passages on the same issue even when the authors of the policies describe the issue in different terms. This gives a later [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/) procedure a more focused set of passages to examine. A [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/) procedure could likewise begin from material identified as relevant to a shared issue. The paper presents these as motivations for making the alignment, with its experiments devoted to the quality of the grouping itself.

The starting unit matters. The paper works with the sections of a document as identified through top-level subtitles. It therefore investigates the organization of material at the scale chosen by the policy’s writer. A section may be a compact discussion of a particular subject, or it may gather several practices under a general heading. The authors’ task is to group those existing sections across documents. Even before choosing an algorithm, that decision sets the resolution of the result. A group can identify sections that bear on deletion, for example, while leaving the reader to find the relevant sentence inside each one.

The scope is also broader than placing corresponding sections at matching positions. If an issue is missing from a policy or appears earlier than usual, position alone can give the wrong correspondence. The paper makes the order of topics a clue to be learned alongside the terms in the sections. For the idea of aligning sequences whose elements need not occupy identical positions, the authors draw on multiple sequence alignment in computational biology. For the idea that a document can move among hidden topics, they cite earlier work in which topic states generate sentences. That earlier work is [Catching the Drift](https://md.research.elamur.ai/free/en/papers/barzilay-2004-catching-drift-probabilistic-content-models/).

#### How an alignment can be checked

A shared topic inventory would make an evaluation straightforward in principle. Annotators could assign every section to the inventory, and the resulting labels could be compared with the automatic grouping. The authors explain why they did not take that route. Defining categories that work across the collection would take effort and likely require revision. An alternative in which annotators align a policy against the accumulated collection would require an interface for consulting previously aligned documents while reading a new one. The paper regards both approaches as too costly for this study.

The authors instead ground the evaluation in decisions people can make with a smaller amount of text. A domain expert can answer a concrete privacy question and mark the passage used to support the answer. A crowdworker can read a pair of sections and decide whether the subjects overlap. These decisions imply local correspondences from which the authors can build benchmarks. The choice also narrows what is judged. A pairwise benchmark can tell whether jointly assigned passages frequently share a subject, while a complete alignment would make it possible to evaluate the organization of the corpus more directly.

The two forms of judgment make different uses of expertise. A specialist reading a whole policy can identify the material needed to resolve a substantive question, including material scattered across sections. A reader looking at a pair can recognize a shared subject without having to interpret the full policy. The common output of both evaluations is evidence about which sections belong together. Their different routes to that evidence matter throughout the paper, because a broad topical match is a different reading task from locating support for a particular question.

### The method, step by step

#### From policies to sequences

The input to the procedure is a collection of segmented policies. The authors used human help to collect the documents and their top-level subtitles. They then used the subtitles to divide each policy, preserving the order of its parts. The ordered units are the observations for the hidden Markov procedure. Human effort establishes where the source documents’ sections begin and end. The assignments of those sections to recurring issues are inferred during training.

A section enters the calculation as a bag of terms. A unigram is a single word in this representation, and a bigram is a pair of adjacent words treated as a term. The bag retains which terms are present and how often they occur. It loses the sequence of terms across the whole section, although bigrams preserve some local adjacency. That leaves the procedure with two levels of organization. It uses local word pairs as part of the evidence for a section’s subject, and it uses the full order of sections as evidence about the sequence of subjects in a policy.

The vocabulary is filtered by document frequency. Terms appearing in fewer than 5% of documents or more than 98% of documents are excluded. The denominator for those thresholds is documents, so a term used many times by one policy can still fail the lower cutoff. The authors designed this rule to suppress highly general terms and terms peculiar to particular companies, such as names. The retained vocabulary supplies the same kind of evidence across websites. Within a section, repetitions of a retained term still contribute to the bag.

For an intuitive reading of the procedure, imagine a section whose wording suggests either a broader discussion of user information or a narrower discussion of removing that information. The words within the section provide evidence, and the sections around it provide further evidence through their possible topic assignments. A transition pattern learned across policies can favor one interpretation if it fits the surrounding sequence better. Conversely, strong evidence in the section’s own terms can make an unusual transition worthwhile when that transition is permitted. The hidden Markov formulation gives these sources of evidence a joint score.

How privacy policy sections are aligned The steps in order.

#### What the hidden states represent

A state is a possible recurring issue. Each state has an emission distribution, which assigns probabilities to the terms that can be observed while the procedure is in that state. If a term is strongly associated with a state, every occurrence of that term raises the contribution of that state relative to a competing state that gives the term less probability, other factors being equal. Many terms contribute to each section’s score. The procedure can therefore group sections that share a pattern of wording even when they have different subtitles or use different expressions for the same action.

The transition distribution does a different job. For a given state, it gives probabilities for the state that follows, including the possibility of finishing the document as represented by a silent stop. A start distribution gives probabilities for the topic of the opening section. Taken together, the start and transition distributions express regularities in the order of topics. A regularity can be a common opening topic, a tendency for one subject to follow another, or continuity across consecutive sections on the same broad issue. Unless excluded by the transition rules, a sequence can depart from a common ordering if its overall score supports doing so.

The authors describe how a policy is scored by imagining how its observations would be generated. The procedure begins by selecting a state for the opening section. At that state it repeatedly draws terms to fill the observed bag, then draws a following state. It repeats the process for each section. A transition to the stopping state ends the sequence, and that state emits no terms. This generative description gives each proposed assignment a probability under the learned distributions. The actual task works in the other direction, starting with the bags and inferring the states that could best account for them.

A conventional presentation of an HMM often has a single observation symbol at each step. Here the observed unit is an entire section represented by many term occurrences. The paper distinguishes the two through the emission distribution. A categorical draw selects a term, and a multinomial describes the counts obtained by repeatedly drawing terms for a section. The number of terms to account for is set by the observed bag. Thus a state is evaluated on how well its vocabulary accounts for the terms in a long or short section, with no separate probability assigned to the section’s length as a property of that state.

Conditioning on the observed length still allows the amount of text to matter. A longer bag supplies more terms, so its emission score has more factors. What the formulation leaves out is a separate preference for, say, long passages in one state and short passages in another. The authors compare the construction to a hidden semi-Markov approach because each step covers a stretch of text. The stretches in this study are already delineated by the input, and their lengths are observed. State inference therefore proceeds over those given units.

The authors also qualify what it means to generate terms. If a bigram and its component unigrams all survive filtering, the same stretch of writing can contribute the bigram and both component words. The emission calculation can account for those entries as separate draws. That makes it a score for the representation used by the alignment procedure. It does not give a normalized account of the possible original word sequences that could have produced a section. In particular, the procedure has no need to reconstruct grammatical policy prose from the bags.

#### How a policy receives a probability

The likelihood in the paper combines three kinds of factors. For a fixed proposed state sequence, the probability of beginning in its opening state appears first. Every observed section then contributes a term for its bag and a term for the following state. Using an explicit symbol for the size of each bag, the factorization for a state sequence is as follows.

```
P(o, y ∣ ℓ) = π(y₁) × ∏ₜ₌₁ⁿ [η(oₜ ∣ yₜ, ℓₜ) × γ(yₜ₊₁ ∣ yₜ)]
```

Here `P` denotes probability or the likelihood contribution from the specified assignment. The vertical bar means that the expression conditions on the quantity to its right. The symbol `o` stands for the observed sequence of bags, `y` for the proposed sequence of states, and `ℓ` for the given bag sizes. The index `t` marks a section, and `n` is the number of sections in the policy. The subscripts `₁` and `ₜ₊₁` refer to the opening state and the state immediately following section `t`, respectively. In the final factor the following state is `yₙ₊₁`, the silent stop.

The symbol `π` denotes the start distribution, so `π(y₁)` scores beginning at the proposed opening state. The symbol `η` denotes the emission distributions, with `η(oₜ ∣ yₜ, ℓₜ)` giving the probability of the observed bag at position `t` for its assigned state and observed size. The symbol `γ` denotes the transition distributions. The factor `γ(yₜ₊₁ ∣ yₜ)` scores moving from the current state to the following state. The product sign `∏` combines the bracketed factors for all observed sections, including the final move to the stop, and `×` denotes multiplication. The equals sign states the factorization.

The bag term can be read as a multinomial over counts. Written out, its state-dependent part uses the probability of each retained term raised to the power of its count. The multinomial coefficient accounts for the different orders of draws that yield the same counts.

```
η(oₜ ∣ yₜ, ℓₜ) = [ℓₜ! / ∏ᵥ∈ᵥₒ꜀ cₜ(v)!] × ∏ᵥ∈ᵥₒ꜀ pᵧₜ(v)ᶜₜ⁽ᵛ⁾
```

In this expression, `η`, `oₜ`, `yₜ`, and `ℓₜ` have the same meanings as above. The letter `v` denotes a retained term, and `ᵥₒ꜀` denotes the retained vocabulary, the set over which each product runs. The symbol `∈` indicates membership in that vocabulary. The expression `cₜ(v)` is the number of occurrences of term `v` in the bag for section `t`. The expression `pᵧₜ(v)` is the probability of drawing that term from the emission distribution of state `yₜ`. The superscript on that probability denotes exponentiation by the observed count. The factorial sign `!` and the division sign `/` form the multinomial coefficient in brackets. The product and multiplication signs have the same roles as in the preceding expression. For a given observed bag, the coefficient is the same for every candidate state. The comparison among states for that bag comes from their different term probabilities.

With the assignments hidden, the observed sequence can have several explanations. Its likelihood is obtained by adding the contributions of the possible assignments. The probabilities associated with different paths therefore matter during training, even though the final grouping will be made from a single decoded path per policy.

```
P(o ∣ ℓ) = ∑ᵧ P(o, y ∣ ℓ)
```

Here `P(o ∣ ℓ)` is the likelihood of the observed bags given their sizes. The summation sign `∑` ranges over candidate hidden state sequences `y`, and `P(o, y ∣ ℓ)` is the joint contribution defined above. Sequences ruled out by the transition constraints have no probability contribution. This is the distinction between asking how well the learned distributions explain a document overall and asking which particular sequence they favor.

#### What each version allows the sequence to do

The unrestricted version, called Vanilla, permits all topic-to-topic transitions. It can learn that some moves are improbable and others common. Because every move starts out permissible as a matter of structure, the fit can represent documents that revisit an issue after intervening material. The unrestricted transition structure also leaves the procedure more freedom to assign states in ways that have little resemblance to a common forward outline.

All Forward and Strict Forward give the hidden states an order. The notation `S` in the paper denotes the set of topic states, `K` denotes the number of such states, and `sₖ` denotes the state at position `k` in the ordering. The different versions restrict the possible successor states, while the actual probabilities of allowed transitions are learned. Both forward versions allow a state to repeat in adjacent sections. That is important for a task in which one broad issue may occupy more than one section.

```
All Forward: sₖ → sⱼ for k ≤ j ≤ K
```

The arrow `→` identifies an allowed move between topic states. The current position is `k` and the destination position is `j`. The inequalities `≤` express that `j` can be the current position or a later position through `K`, which is the final index in the ordering. A policy can pass over intermediate states. It can therefore be assigned a subsequence of the ordering, with repetitions where consecutive sections have the same topic. Once the path has moved forward, a later section cannot bring it back to an earlier index.

```
Strict Forward: sₖ → sₖ or sₖ₊₁
```

Here the arrow again indicates an allowed move between topic states, `sₖ` is the current state, and `sₖ₊₁` is the immediately following topic state where one exists. The condition permits staying at the current state or moving a single step forward. A policy whose path advances through the ordering consequently uses neighboring topic states along that part of its path. The rule describes moves among topic states. The opening distribution and silent stopping transition account for the sequence endpoints.

These restrictions are assumptions about how much policies resemble each other in the order of their issues. Strict Forward is closest to assigning successive portions of a document to successive slots, with the possibility of staying in a slot for more than one section. All Forward gives a policy more room to omit intervening slots. Vanilla allows the order of topics to differ more freely between policies. The experiment can therefore ask how the flexibility of the sequence affects the groupings while retaining the same general treatment of section text.

The states are shared across the corpus. The point of fitting separate paths for separate policies is that corresponding sections need not occur at the same position. A section assigned to a state early in one document may share that state with a section appearing later in another. Assigning the same state makes them members of the same output group. A state index itself is a learned identifier or a position in the assumed ordering. It acquires a privacy interpretation through the sections it gathers and the terms its emission distribution favors.

#### Learning the distributions and decoding assignments

The learning problem involves mutually dependent quantities. The procedure needs topic vocabularies and transition probabilities to judge a path, yet it needs information about likely paths to estimate those probabilities. The authors use expectation-maximization to alternate between the two problems. The inputs are the section sequences, the term bags, and the permitted transitions for the chosen variant. Expert question evidence and crowdworkers’ judgments of topical overlap are reserved for evaluation.

In the expectation step, the forward-backward algorithm calculates probabilities for events along the hidden sequence under the current parameters. It combines evidence from earlier sections and later sections. For instance, it can estimate how likely a state is at a given position by considering the paths that can reach it and the paths that can continue from it through the remaining document. It can also estimate how likely adjacent sections are to use a given transition. These probabilities allow the estimation procedure to use evidence from multiple possible assignments to a document.

The maximization step updates the parameters using smoothed maximum likelihood estimation. The expected state assignments supply evidence about which terms tend to occur with each state. The expected transitions supply evidence about which states tend to follow which, and the expected assignments at the first position supply evidence for the start distribution. Smoothing adjusts the estimates so that sparse evidence from a finite corpus is handled in the probability distributions. Structural constraints still determine which transitions are possible. Smoothing a probability over allowed moves does not add moves that the variant excludes.

This turns a tentative grouping into evidence for the next fit, and the updated distributions in turn change the relative plausibility of the paths. Since the hidden states have no fixed answers during training, a fit may settle on different recurring patterns from a different initialization. The procedure can arrive at a grouping that explains the term bags and their order well by its own likelihood criterion, while the evaluation asks whether people recognize the grouping as useful for their reading tasks.

After training, the authors recover a most probable sequence of states for a policy using a variant of the Viterbi algorithm. It finds a best complete path under the learned distributions. Selecting the state with the highest isolated bag score for every section could yield an inferior complete path, or one that includes a forbidden transition in a forward variant. Viterbi takes account of the cumulative score through the sequence and of the legal continuations. The final assignments then yield groups across policies by bringing together sections bearing the same state. This is the representation carried forward to both evaluations.

### Experiments and results

#### The corpus and the comparison

The authors spent six weeks gathering the policies across December 2013 and January 2014. They targeted the top 100 websites within each selected Alexa category. The sample covers fifteen of Alexa’s seventeen categories, including areas such as health, shopping, science, and sports. The authors excluded Adult and World. They explain the World exclusion in terms of their decision to focus on policies in [English](https://md.research.elamur.ai/free/en/topics/english/) at this stage, since that ranking covers popular sites in several languages.

The target list of websites and the corpus of policies are distinct. A website could be hard to associate with a policy URL, and a single website could yield more than one distinct policy. The paper gives versions of a policy as an example of the latter. When workers found the right document, its layout could still complicate collection. Policies appeared in formats such as HTML and PDF, and some were distributed across pages or mixed with terms of service. The authors wanted to keep the structure as well as the prose, so collecting a text that looked broadly relevant would have been insufficient.

For each website, the Mechanical Turk task requested the policy URL, its effective or most recent revision date if found, the policy text, and the top-level subtitles. Workers could navigate from the site or search for the policy using the website name. Three workers completed each task, and the reported payment was $0.05 per worker task. The collection cost was $380, including the platform surcharge. The authors used the subtitles to partition the documents and converted the resulting structure to XML. These collection tasks provided the input units for alignment and were separate from the human judgments used to score section pairs.

The collection contains 1,010 distinct policies. In its category statistics, the paper reports an average of 10.7 sections per policy, with a parenthetical spread of ± 4.3, and 2471 tokens per policy, with a spread of ± 1635. These figures describe the source documents. For the comparison, the authors set every system to ten groups, topics, or hidden states, using the typical section count as their rationale. The state count is an experimental setting instead of an estimate inferred by the training procedure.

The first baseline is greedy divisive clustering. It uses unigram features and cosine similarity, a measure of the alignment between feature vectors. The procedure obtains the specified number of groups by repeatedly splitting clusters. It treats sections as individual items in a collection, using the content features to decide how to divide them. Its implementation is CLUTO. This gives the study a comparison with a method that can find groups through overlapping vocabulary while leaving aside the order of sections within each policy.

The other baseline is [Latent Dirichlet Allocation](https://md.research.elamur.ai/free/en/papers/blei-2003-latent-dirichlet-allocation/), abbreviated LDA, an approach to [topic modeling](https://md.research.elamur.ai/free/en/concepts/topic-modeling/) that uses recurring patterns of terms to infer topics. The authors use online variational Bayes for inference and the gensim implementation. They give LDA the same unigrams and bigrams used by the HMM variants so that this baseline can draw on the same term vocabulary. It provides a comparison with latent topics learned from text but without the HMM’s sequence of transitions between policy sections.

For LDA and the HMM variants, the authors report the mean and standard deviation over ten independent runs with random initialization. The standard deviation describes how much the reported scores vary across starts. The clustering baseline has a reported score with no accompanying run-to-run standard deviation. This matters when comparing the figure for a baseline with a mean for a randomly initialized procedure. It also matters when comparing two HMM variants that have similar means but respond differently to initialization.

#### Evaluation through expert questions

The first evaluation grows out of a collaboration with legal scholars. The authors outline nine multiple-choice questions about a policy that ask whether contact, location, health, and financial information is collected, whether each category is shared with third parties, and whether data can be deleted. The questions reflect the collaborators’ substantive interests. They define topics through things an expert wants to establish about a policy. The question about a certain type of information being collected, for instance, supplies a narrower basis for linking sections than the general observation that both discuss information.

For thirty policies, six domain experts who had not designed the questions answered each question about each policy. They also selected text that supported their answers. This supporting material is what the evaluation of alignment uses. An expert could choose evidence from several sections where the answer depended on combining passages. To obtain the reference grouping, the authors took the union, for each question, of every section containing text selected by any expert for that question. These nine answer sets bring together sections on the basis of their use as evidence.

This use of a union gives each expert’s selected evidence a route into the answer set. A section can appear in several sets if someone uses it to support several answers. The paper reports that 63% of sections in the answer sets occurred in more than one set. Many sections do not appear in these groups at all because no expert used them for any of the questions. It is therefore a reference grouping with overlap and incomplete coverage. The grouping is task-specific: two sections can be connected by their relevance to a question even when the actual answers for their policies differ.

To compare groupings, the paper reduces them to pairs. A reference pair qualifies if some answer set contains both sections. A predicted pair qualifies if the method places both sections together. Once the pair sets have been constructed, a pair linked by multiple questions counts as a member of the reference set.

```
G = {⟨a, b⟩ ∣ ∃ Aᵢ such that a ∈ Aᵢ and b ∈ Aᵢ}
```

In this notation, `G` is the reference set of pairs, and `⟨a, b⟩` denotes a pair consisting of sections `a` and `b`. The braces collect the pairs that satisfy the condition following the vertical bar. The symbol `∃` means that there exists an answer set `Aᵢ`, with `i` indexing a question. The membership symbol `∈` indicates that each section belongs to that answer set. The system’s counterpart, `H`, is the set of pairs placed together by its grouping. The construction uses pair membership rather than trying to match the names or indexes of predicted groups to those of the answer sets.

```
Precision = |G ∩ H| / |H|
```

Here `G` and `H` are the reference and predicted sets of section pairs for the grouping comparison. The intersection sign `∩` selects pairs found in both. The vertical bars around a set indicate its size, and `/` denotes division. Precision gives the share of predicted pairs that the reference also groups. In this evaluation, the reference comes from supporting passages for the chosen questions, so pair membership captures agreement with those questions’ answer sets.

```
Recall = |G ∩ H| / |G|
```

The symbols have the same meanings, with the denominator now counting all reference pairs. Recall gives the share of reference pairs recovered by a method. F₁ combines precision and recall through their harmonic mean, so a method that links only a narrow share of the reference pairs can receive a low F₁ in spite of relatively high precision. The paper reports the means of the measures separately across runs where applicable.

The pairwise formulation is useful when two methods organize their groups differently. A state may collect sections relating to several questions, while the reference marks each question separately. If the assignment brings together sections that share any particular answer set, it recovers that correspondence. Assignments that split the sections connected by a question leave those ties unrecovered. The metrics thus compare the correspondences induced by the groupings without requiring a naming scheme for the states.

Section-grouping methods on the human question-answering benchmark by mean F₁ All Forward leads the comparison, and each sequence variant scores above both baselines.

**The numbers**

| System or setting | F₁ |
| --- | --- |
| Divisive clustering | 0.40 |
| LDA | 0.29 |
| Vanilla HMM | 0.49 |
| Strict Forward HMM | 0.51 |
| All Forward HMM (this paper) | 0.53 |

On this benchmark, clustering has precision of 0.63 and recall of 0.30. LDA has mean precision of 0.56 and mean recall of 0.20. Vanilla has mean precision of 0.62 and mean recall of 0.41. All Forward has mean precision of 0.63 and mean recall of 0.47, and Strict Forward has mean precision of 0.62 and mean recall of 0.46. The recall figures account for the main difference from clustering. In the reported means, the sequence variants connect more of the sections that experts use to address a common privacy question, while earning about the same precision as clustering.

For human question-answering F₁, the reported standard deviation is 0.06 for LDA, 0.03 for Vanilla, 0.06 for All Forward, and 0.07 for Strict Forward. The variation in recall is especially relevant to the interpretation of the forward variants. Strict Forward’s recall standard deviation is 0.18, and All Forward’s is 0.12, compared with 0.04 for Vanilla. A run can therefore change how much of the expert-defined correspondence a restricted procedure recovers. The means compare typical performance across the reported runs, and the deviations show why the result of an individual fit can look different.

#### Evaluation through direct judgments of section pairs

The second evaluation asks people to compare sections without beginning from the experts’ questions. The authors draw on 50 randomly sampled policies per category. They represent the sections with unigram [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) vectors, which give weight to terms based on their occurrence in the text and their rarity in the broader collection. Cosine similarity then provides a way to sort candidate pairs by the resemblance of those vectors. This preliminary resemblance measure determines which pairs get sampled. The human judgments supply the evidence of topical overlap.

The paper uses four similarity bins with boundaries at 0.25, 0.5, and 0.75. It samples 994 pairs uniformly across the bins and the 15 categories. The stratification deliberately creates opportunities to judge pairs across the range of lexical resemblance. It would otherwise be possible to spend the annotation effort on many pairs that use very different wording and are easy to judge as unrelated. With the bins, the benchmark can include both easy lexical matches and cases where vocabulary gives a weaker clue to the relationship. The reported scores describe this sample design.

Workers read the pair and chose among answers separating sections that express essentially the same message, sections that share a broad subject while differing in message, and sections on different subjects. The authors merged the first two options into the positive category for voting and scoring. A match therefore means that readers found enough common subject matter to group the passages even if they would give readers different information about a company’s conduct. This decision fits the broad section-alignment task.

At least three people judged each pair, and the number could rise as high as 15 until an absolute majority was reached. Eligible workers had an acceptance rate greater than 95% and experience of at least 100 tasks. The payment was $0.03 for each annotation, and the cost, including initial trials, was $130. Of the 994 pairs, 535 were judged similar in topic. The paper again reports pairwise precision and recall. It expressly notes that the chosen scoring does not penalize joining a pair marked as dissimilar. That qualification matters when interpreting these figures as evidence about erroneous groupings.

Section-grouping methods on the direct pair-judgment benchmark by mean F₁ All Forward has the highest reported mean, with the other sequence variants close to it.

**The numbers**

| System or setting | F₁ |
| --- | --- |
| Divisive clustering | 0.34 |
| LDA | 0.28 |
| Vanilla HMM | 0.39 |
| Strict Forward HMM | 0.40 |
| All Forward HMM (this paper) | 0.41 |

On direct judgments, clustering has precision of 0.62 and recall of 0.23. LDA has mean precision of 0.57 and mean recall of 0.18. Vanilla has mean precision of 0.57 and mean recall of 0.30. All Forward and Strict Forward both have mean precision of 0.58 and mean recall of 0.32. This time, clustering has the highest reported precision. The sequence variants’ higher F₁ accompanies their recovery of more of the matches, with lower precision under the paper’s scoring. The comparison makes the tradeoff visible.

The F₁ standard deviations for direct judgments are 0.02 for LDA, 0.02 for Vanilla, 0.04 for All Forward, and 0.08 for Strict Forward. All Forward and Strict Forward share the reported mean recall of 0.32, but their recall standard deviations are 0.06 and 0.14, respectively. Their means therefore describe similar coverage under this measure, while their variability differs. As with the expert evaluation, the paper makes the corpus and benchmark data available for further use.

#### A match that connects different wording

The paper illustrates the direct judgments with sections from classmates.com and 192.com. The first discusses access to account pages, including pages where some personal details can be altered or deleted. The second describes the possibility of having personal information removed from the service and also discusses its secure handling. The full sections contain material beyond the wording on deletion. Crowdworkers nevertheless put the pair together because of the issue the passages share.

Divisive clustering and LDA split this pair, while Strict Forward groups it correctly by the direct judgment. For a reader interested in deletion, the correspondence is helpful even though the passages describe different circumstances and sit amid other material. The example shows the sort of match rewarded by the experiment. It does not isolate whether the assignment came from the terms associated with deletion, the evidence of nearby sections, or a combination of both. Nor does the broad match establish that the two services offer equivalent deletion rights. The gain is in putting the relevant material within reach of a comparison.

### What the ablations show

#### The effect of restricting transitions

The comparison among Vanilla, All Forward, and Strict Forward is the paper’s controlled comparison of how much ordering to impose. The variants use the same general representation of sections and the same number of states. They differ in the set of allowed topic transitions. This comparison gets closer to the effect of a modeling choice than comparisons with the baselines, where the approach to learning groups changes as well.

Vanilla performs above the baselines in F₁ on both benchmarks. The unrestricted transition structure therefore suffices to obtain the reported advantage over the text-based alternatives. Vanilla can still learn that some orders are more plausible than others. Its result shows that a hard forward constraint is unnecessary to obtain that advantage under the study’s setup. All Forward has the highest reported mean F₁ on each benchmark. Its permitted skips are consistent with the authors’ expectation that policies can omit issues while sharing an approximate order. In the experiment, that degree of restriction yields a stronger mean than either fully flexible transitions or single-step advance.

The precision and recall figures clarify the nature of the comparison. On the expert evaluation, Vanilla and Strict Forward have the same reported mean precision of 0.62, while Strict Forward has the higher mean recall. All Forward has the highest mean recall, with mean precision of 0.63. On direct judgments, the forward variants have the same reported means for both component metrics. Their reported mean F₁ values are different, since F₁ is calculated for each run and the measures are then aggregated. Rounded summaries of precision and recall do not determine the run-by-run F₁ averages.

The ranking should be read at the scale of the observed variability. All Forward has the best means, but the paper describes the variants as performing similarly on average. It does not report a test establishing that the differences between the sequence variants are reliable across new samples. The controlled comparison supports a narrower observation. Restricting transitions did not eliminate the gains seen with Vanilla, and the more permissive of the forward variants obtained the strongest mean results in the runs reported.

#### Best runs and run-to-run variation

Strict Forward’s best results across the ten runs reach 67% F₁ on the expert question-based benchmark and 53% F₁ on direct judgments. Those figures are maxima, while the values in the charts are means. A maximum shows what one of the fitted groupings achieved on the corresponding evaluation. It does not describe what a new run would routinely produce, and the best run on each evaluation need not be the same fit.

The paper highlights these maxima because the constraint can permit good groupings while still being hard to fit reliably. Strict Forward has the largest reported recall standard deviation among the HMM variants for both evaluations. In a strict path, assigning a section to one state can sharply restrict the subsequent assignments available to a policy. That structural feature explains why the possible sequence is sensitive to an early choice of state. The experiments establish variability in outcomes, while the authors point to initialization or the selection of a trained fit as possible ways to benefit from the stronger runs. They do not evaluate a selection rule that recovers those maxima.

This distinction matters to anyone interpreting the practical strength of the comparison. An average over starts estimates performance under the reported fitting procedure. An observed maximum shows that the parameterization and training can sometimes yield better scores. A method for choosing among fits would be another element of the experiment, with its own information requirements. Selecting the best-looking result after viewing benchmark F₁ would answer a different question from obtaining a strong result when those judgments are unavailable.

#### What the benchmark agreement can establish

The two evaluations agree on the main comparative finding that all three HMM variants have higher mean F₁ than the baselines. They give different detail about the contribution of precision. On the question-based grouping, clustering and the HMM variants have similar reported precision, with the sequence variants recovering more reference links. On direct judgments, the sequence variants recover more matches while clustering retains a precision advantage. The shared conclusion is about the balance between precision and coverage. It would be too broad to describe the procedure as improving every aspect of pairwise agreement.

There is no comparison with an otherwise identical HMM in which the order of sections is removed. Vanilla retains a learned transition distribution, and even the LDA comparison with shared term features uses a different statistical procedure. The study therefore shows which of the tested approaches and transition structures scored better on section grouping. It leaves the separate contribution of order unmeasured against a matched version that makes its assignments independently. The deletion example likewise illustrates a successful grouping, with no experimental breakdown of which part of the scoring produced it.

### Limitations

#### Limits the authors identify

The authors explain that the expert benchmark covers a small and likely biased subset of sections. The questions concentrate on selected kinds of data, disclosure, and deletion. There can be useful groupings involving other issues without any supporting pair in these answer sets. Conversely, a section that serves as evidence for several questions can create connections across those kinds of personal information or practices. The overlap is a direct consequence of collecting evidence for questions people want answered. It makes sense for the original reading task and means that the benchmark is a partial view of the possible topic structure.

The direct judgments are meant to compensate for that narrow scope by asking readers about broader overlap. The authors acknowledge the scoring limitation that grouping a pair labeled dissimilar does not incur a penalty under their chosen measure. A reader considering whether the procedure is suitable for screening out unrelated sections would need evidence specific to that decision. The direct benchmark shows how the systems compare under the paper’s pairing protocol and scoring. Its figures are correspondingly narrower than a complete account of correct and incorrect decisions over the annotated pairs.

The authors also describe why the study is limited to English in this collection and identify multilingual analysis as a subject for further work. Their assumptions about terms, subtitle-based sections, and recurring order are estimated from the sampled policies. The paper offers no cross-language experiment. Its future direction is the extraction of useful information from aligned sections, which is presented as a subsequent application. The experiment itself ends at alignment scored through grouping.

Run-to-run variability is another explicit qualification. Strict Forward can produce a stronger result in a favorable run, but it also shows high variation across starts. The authors suggest benefits from finding good initializations or choosing among fitted solutions. The paper reports the observed variation, while the value of particular remedies remains open. Accordingly, performance with a single fit is best understood in light of the distribution of results that the paper reports.

#### Limits that follow from the setup

The output gives each section a single state along the decoded path. The expert reference frequently associates a section with several questions. A passage may include both how information is collected and when it is shared, or place account deletion in the middle of a broader account-management discussion. An exclusive assignment can keep that passage with sections on one of its topics while separating it from sections on another. The expert benchmark’s overlapping sets make this tension visible. The system can still produce useful links, but its unit of assignment constrains the kinds of correspondence it can represent at once.

Using top-level subtitles ties the method to the authors’ chosen document structure. The sections are convenient units because they already occur in the policies and can be compared across a collection. A long section with several distinct clauses still enters as one bag. Fine distinctions within it may have little influence on its overall assignment. Preparing the corpus also required human effort to locate and recover the documents and subtitles. The experiments begin with the segmented material and leave the accuracy of automated discovery and sectioning outside the evaluation.

The alignment’s lexical evidence has a similar resolution limit. Counts of words and adjacent pairs can help locate related descriptions, but they do not preserve the full syntax of conditions, exceptions, or negation. Two sections can use similar terms while placing different restrictions on data sharing. The direct annotation specifically allows a topical match despite a difference in the message. The expert evaluation uses the locations of supporting text and sets aside the answers themselves. The scores therefore cannot show how often automatic processing would correctly recover commitments, exceptions, recipients, or rights from the grouped passages.

The sample defines another boundary. The corpus is a snapshot of highly ranked websites under selected Alexa categories during the collection window. There is no reported temporal comparison that establishes whether the learned vocabulary or common section sequences remain stable as policies change. The reported runs also do not provide a held-out website experiment in which a fitted system is evaluated exclusively on newly collected policies. The results show how the methods organize sections in the study’s corpus against its human benchmarks. They leave performance on a fresh collection unmeasured.

The direct judgments broaden the range of issues considered, but their similarity bins deliberately shape the population of evaluated pairs. Pairs are selected across categories and ranges of lexical resemblance under that design. Their score does not estimate the proportion of related passages a reader would encounter by choosing arbitrary sections from the full corpus. The expert subset is selected through a different mechanism, namely the questions and the policies judged by the specialists. The fact that both benchmarks favor the HMM variants is evidence across two evaluation designs, each with its own sampling limits.

The enforced number of states also affects the scope of the result. The authors use the typical number of sections as a rationale for ten groups or states. A policy’s section count and the range of issues expressed across policies are different quantities. Distinct issues can occupy the same section, and several sections may discuss a common issue. The paper does not vary the number of groups to establish how sensitive the comparison is to topic granularity. The ten-state setup makes the methods comparable on the specified setting, without determining how many privacy issues the corpus contains.

Finally, the evaluations score the resulting section pairs instead of inspecting the learned ordering as an account of drafting practice. A method could receive credit for placing the right passages together even if the relative positions of its state labels have little direct interpretation for a legal analyst. Conversely, a recognizable progression of topics would not earn credit if it left many relevant passages in separate groups. The paper’s evidence supports the practical task of grouping related sections. Establishing a typical outline for privacy policies, or showing that readers can make better decisions with the grouping, would require different observations.

### What came after

#### From alignment to corpora, questions, and benchmarks

[The Creation and Analysis of a Website Privacy Policy Corpus](https://md.research.elamur.ai/free/en/papers/wilson-2016-creation-analysis-website-privacy-policy/) (2016) cites the alignment paper and centers its own work on a corpus of website privacy policies. Corpus construction was already a substantial part of the alignment study. The authors needed complete documents, their top-level subtitles, and a representation that retained document order before they could learn which sections corresponded. A corpus study puts the assembled collection itself at the center of the research. The connection is clearest at that level. The citation alone does not establish that the later corpus was produced with the HMM or that it used the earlier group assignments.

[PolicyQA: A Reading Comprehension Dataset for Privacy Policies](https://md.research.elamur.ai/free/en/papers/ahmad-2020-policyqa-reading-comprehension-dataset-privacy/) (2020) cites the paper and makes [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) about privacy policies the organizing task of a reading comprehension dataset. Ramanath and colleagues had already used questions to give concrete meaning to a section match. A passage mattered because a domain expert could use it to answer something about a policy. In the alignment experiment, that evidence was combined across questions and policies into groups of sections, and the experts’ actual answers were set aside. A reading comprehension dataset puts the question and its answer at the center of the task. The relationship is the use of substantive questions to connect written policy terms to something a reader wants to know. The citation leaves open any direct reuse of the earlier questions, passages, or assignments.

[PLUE: Language Understanding Evaluation Benchmark for Privacy Policies in English](https://md.research.elamur.ai/free/en/papers/chi-2023-plue-language-understanding-evaluation-benchmark/) (2023) cites the paper and frames its contribution as an evaluation benchmark for understanding English privacy policies. The alignment study confronted a specific evaluation problem within that domain. It needed reusable human judgments for testing whether sections addressed common issues without undertaking a complete manual alignment. Its question-based and pairwise judgments were designed around that particular output. PLUE’s stated scope is language understanding in the same document domain. The citation establishes a connection to earlier work on evaluating computational treatment of privacy policies, while leaving the exact relationship to the earlier benchmarks unspecified.

Taken together, these citing works show how the research domain extends across collecting policy text, asking concrete questions about it, and evaluating systems on it. The alignment paper occupies a particular place in that progression. It treats the document’s organization as evidence and asks whether that evidence helps users of a corpus find corresponding material. Corpus construction, reading comprehension, and benchmark design each address a different part of the broader problem that motivated the authors. The contribution established here remains the comparison of ways to link sections, anchored in both expert use of policy text and readers’ direct judgments of common subject matter.

## Cite

Cite as Rohan Ramanath, Fei Liu, Norman Sadeh and Noah A. Smith. 2014. Unsupervised Alignment of Privacy Policies using Hidden Markov Models. Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.3115/v1/p14-2099](https://doi.org/10.3115/v1/p14-2099)

```bibtex
@inproceedings{ramanath2014unsupervised,
  title = {{Unsupervised Alignment of Privacy Policies using Hidden Markov Models}},
  author = {Rohan Ramanath, Fei Liu, Norman Sadeh and Noah A. Smith},
  booktitle = {Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
  year = {2014},
  doi = {10.3115/v1/p14-2099},
  url = {https://doi.org/10.3115/v1/p14-2099}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
