---
title: "Global Models of Document Structure using Latent Permutations"
description: "Learn how latent topic permutations capture shared document structure and improve paragraph alignment and segmentation in Wikipedia articles."
canonical: "https://research.elamur.ai/free/en/papers/chen-2009-global-models-document-structure-latent/"
---
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/chen-2009-global-models-document-structure-latent/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2009](https://md.research.elamur.ai/free/en/papers/2009/) / Global Models of Document Structure using Latent Permutations

# Global Models of Document Structure using Latent Permutations

Paper · 2009 · Harr Chen, S.R.K. Branavan, Regina Barzilay et al.

**Authors:** [Harr Chen](https://md.research.elamur.ai/free/en/authors/harr-chen/), [S.R.K. Branavan](https://md.research.elamur.ai/free/en/authors/s-r-k-branavan/), [Regina Barzilay](https://md.research.elamur.ai/free/en/authors/regina-barzilay/) and David R. Karger · **Year:** 2009 · **Venue:** Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**76** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2017776283) · [Cited by **28** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/chen-2009-global-models-document-structure-latent/cited-by/) · [Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics](https://aclanthology.org/volumes/N09-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/N09-1042/)
- [PDF](https://aclanthology.org/N09-1042.pdf)
- [DOI 10.3115/1620754.1620808](https://doi.org/10.3115/1620754.1620808)
- [OpenAlex](https://openalex.org/W2017776283)

Citations: OpenAlex, 2026-10-14.

## Summary

Articles about the same kind of subject often cover similar ground in a recognizable order. A city article might move from history to culture, while another city’s article might omit culture or give it an earlier place. Those patterns can help identify what a paragraph is about and where a new subject begins. The difficulty is that words give imperfect evidence about a paragraph’s topic, and the expected order has exceptions. The authors ask whether an unsupervised method can learn the topics and their usual order together from a collection of related documents.

Their approach gives every paragraph a topic and requires all paragraphs on that topic to form a single stretch within an article. It then gives each article its own ordering of the shared topics. The order is a permutation of the entire topic inventory, although an article can leave some topics out. A probability distribution called the generalized Mallows model favors orders close to a common reference. Its parameters allow departures involving some topics to be more likely than departures involving others. In this way, vocabulary helps identify topics, and the arrangement of topics across the collection helps resolve uncertain paragraph assignments.

The authors test the approach on English Wikipedia articles about large cities and chemical elements. They evaluate whether paragraphs assigned the same topic correspond to matching section headings across articles and whether changes in the inferred topic recover section boundaries within articles. The method learns from the article text, with headings reserved for scoring. The full method achieves the highest alignment F-score in every reported comparison at the same topic limit. It also produces lower segmentation penalties than BayesSeg on both collections at both topic limits, even though BayesSeg receives the reference number of segments. For Cities against manually standardized headings, the full method reaches an alignment F-score of 0.606 with a topic limit of 20. Against that same reference and at that limit, its segmentation penalties are 0.221 on Pₖ and 0.278 on WindowDiff.

The comparisons with simpler versions explain where the ordering distribution matters. A fixed order and a uniform distribution over orders both keep topics contiguous, so their scores help isolate the value of learning which orders are plausible. The learned distribution consistently helps alignment in these experiments. For segmentation, the gains are less uniform. For instance, the fixed-order version gives a slightly lower WindowDiff penalty on the manually standardized Cities reference at a topic limit of 10. The evidence comes from collections with recurring subjects and recognizable organizational conventions, where whole-document order can serve as another clue to paragraph meaning.

## Deep dive: Global Models of Document Structure using Latent Permutations

Learn how latent topic permutations capture shared document structure and improve paragraph alignment and segmentation in Wikipedia articles. · about 36 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

#### What a collection reveals about a paragraph

A paragraph has a place in an article as well as a vocabulary. In a collection about cities, a short passage could contain words consistent with both history and culture. A longer passage elsewhere in the same article may make one reading more plausible. Evidence also comes from other articles. If their history passages typically precede their culture passages, a paragraph’s surroundings and position can help resolve a choice that its vocabulary leaves open. The paper investigates how to make that evidence available to a system that has to discover the topics in the first place. It treats the organization of the article as part of [discourse analysis](https://md.research.elamur.ai/free/en/concepts/discourse-analysis/).

The authors give the learner a collection of related documents and a common inventory of unnamed topics. An individual document may express only part of that inventory. Each paragraph must receive a single label from it, and that label must mean the same thing whenever it is used across the collection. In this setup, identifying a History passage involves finding paragraphs that use related language and recognizing where those paragraphs fit in the progression of their respective articles. The method can discover a recurring class of paragraphs without ever having to assign it the name History.

The paper takes two ideas about discourse as starting points. The first is that a text progresses through topically coherent stretches. The authors give this idea a strict interpretation: once a document moves away from a topic, that topic is finished for the rest of the document. The second is that documents from a common domain often express related material in related orders. The authors give this idea a probabilistic interpretation, allowing articles to depart from their collection’s usual progression. These assumptions play different roles. The first determines which paragraph assignments are legal. The second distinguishes the more plausible legal assignments from the less plausible ones.

The distinction matters even when all the paragraphs clearly belong to one domain. Shared vocabulary helps identify a recurring subject, but using that subject can have consequences elsewhere in the text. If separated paragraphs both receive the same topic, the contiguity rule gives the paragraphs between them that topic too. The learner can instead give one of the separated passages a different label. Either way, the decision concerns a stretch of the document. The same logic applies to ordering. Choosing a label for one stretch places it before or after every other topic that appears in the article, so evidence about its place can come from subjects well beyond its immediate neighbors.

#### From word assignments to whole-document order

In the paper’s account of earlier [topic modeling](https://md.research.elamur.ai/free/en/concepts/topic-modeling/), a topic is a hidden category associated with a distribution over words. Documents provide the observed words, and the learner infers which hidden categories might have produced them. Latent Dirichlet allocation shares an inventory of topics across documents and gives each word its own hidden topic assignment. Its bag-of-words treatment abstracts away from the order of those words. This is a way to discover recurring lexical patterns, but the position of an entire topic block is absent from the representation. The paper preserves the shared inventory and topical word distributions while assigning topics at paragraph granularity. [Latent Dirichlet Allocation](https://md.research.elamur.ai/free/en/papers/blei-2003-latent-dirichlet-allocation/)

Other work, as the authors describe it, brings sequence information into the assignment process. A hidden Markov approach makes the current hidden state depend directly on its predecessor. Applied to document content, states can represent recognizable subjects in a domain, with transitions expressing which subjects tend to follow each other. These transitions can favor an extended run of one topic or favor a change from one subject to another. They can also make some whole sequences more likely indirectly, because the sequence’s probability depends on the succession of transitions. [Catching the Drift](https://md.research.elamur.ai/free/en/papers/barzilay-2004-catching-drift-probabilistic-content-models/) · [A Unified Local and Global Model for Discourse Coherence](https://md.research.elamur.ai/free/en/papers/elsner-2007-unified-local-global-model-discourse/)

A transition based only on the current state carries no explicit record of the entire set of topics already visited. After a sequence leaves a topic, a later transition can lead back to it. A representation that kept track of the relevant earlier states could impose a stronger condition, but the authors point out the cost of representing long-range dependencies this way. Their alternative is to choose the order of the topic inventory at the document level. The history of appearances then follows from the representation itself. A chosen topic occupies one place in the order and can contribute only one run of paragraphs.

The paper also distinguishes its objective from earlier research on sentence ordering. In the work it describes, a system learns regularities from existing texts so it can order new material for applications such as [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/) and [summarization](https://md.research.elamur.ai/free/en/topics/summarization/). Here, the paragraphs are already in the order in which readers encounter them. What remains hidden is the sequence of topics that explains that order. Earlier sentence-ordering work often used preferences between nearby units. The present task gives the learner reason to consider the placement of a topic relative to the full inventory, including topics that the particular article leaves out. [Probabilistic Text Structuring](https://md.research.elamur.ai/free/en/papers/lapata-2003-probabilistic-text-structuring-experiments-sentence/)

#### Why segmentation and alignment belong together

The paper measures the discovered structure in two ways. Segmentation concerns the location of changes of subject in an individual document. Alignment concerns whether passages from different documents receive a common topic when they cover the same ground. A person interested only in segmentation might be satisfied to find where an article’s history section ends. A person interested in alignment also wants that history section and a corresponding passage in another article to receive a common label. A boundary identifies a change within an article, while a shared label identifies a relationship across articles.

The paper describes earlier segmentation systems that can partition a document on the basis of its own textual evidence. The closest segmentation baseline in the experiments already takes contiguous stretches seriously. The additional question here is whether the vocabulary and habitual order of related documents can improve the interpretation of an individual article. The learner gains a common set of topics and a way to relate their positions, with no matching sections supplied during inference. [A Statistical Model for Domain-Independent Text Segmentation](https://md.research.elamur.ai/free/en/papers/utiyama-2001-statistical-model-domain-independent-text/) · [Bayesian Unsupervised Topic Segmentation](https://md.research.elamur.ai/free/en/papers/eisenstein-2008-bayesian-unsupervised-topic-segmentation/)

An article can be segmented correctly even if its discovered topics have little meaning outside that article. The reverse discrepancy is also possible. A learner might recognize the vocabulary of a shared topic yet assign it across a reference boundary that separates adjacent subjects. Evaluating both tasks tests different consequences of the same paragraph labels. The method therefore needs a way to share topics between articles, place them flexibly within articles, and recover the point at which one label gives way to the next.

### The method, step by step

#### A count for each topic and an order for the whole article

The authors represent each document as an ordered sequence of paragraphs. Within a paragraph, they retain the words and their multiplicities and disregard their order. This is the bag-of-words representation. It makes a deliberate distinction between the levels at which order matters. Paragraph position is available when the learner considers document structure. Word position inside a paragraph plays no part in the topical word probabilities. Each paragraph gets one topic, and each topic has a shared distribution over the vocabulary.

To generate a document of a given length, the method first makes as many draws from a shared topic distribution as there are paragraphs. The result is an unordered bag of topic labels. A topic’s multiplicity in that bag determines how many paragraphs it will occupy. A label absent from the bag has no paragraphs in the document. The distribution used for these draws is shared across the corpus, so it expresses which topics generally receive more space without assigning any of them a position.

A separate draw gives the document a permutation of the full topic inventory. The permutation says which topic comes before which. To get the topic sequence for the paragraphs, the method sorts the bag in this order. Each topic present in the bag then occupies one continuous run. Topics missing from the bag are skipped. The chosen permutation can therefore describe an order among all topics even when the reader sees only a partial sequence in that article.

The paper illustrates the operation with a topic inventory of 4 and a document containing seven paragraphs. The bag contains the label 1 four times, the label 2 once, and the label 4 twice. Its ordering is shown below.

```
π_d = (2 4 3 1)
```

Here π is the ordering variable and d identifies the document. The numerals are topic labels. Topic 3 has a place in the permutation but has no entry in the bag for this document. Sorting gives the following assignment sequence.

```
z_d = (2 4 4 1 1 1 1)
```

Here z is the sequence of paragraph labels and d again identifies the document. Each numeral labels the paragraph at that position, so the repeated labels specify both the extent of the stretches and the points where the topic changes. The order of the stretches follows π, and their lengths come from the bag. Changing the bag can change both the topics present and their lengths. Changing only the permutation can move a whole stretch without changing how many paragraphs it covers.

From shared topic distributions to article paragraphs The steps in order.

The flow describes the assumed process that could give rise to an article. During inference, the authors work in the other direction. They observe the paragraphs and their words and look for hidden bags and permutations that could plausibly have produced them. The same operations connect both directions. A candidate bag and order imply a definite label for each observed paragraph, and the learner can score how well those labels account for the words.

#### Representing a topic order by its inversions

The canonical order is the identity permutation, which simply places the latent topic labels in increasing numerical order. A deviation from this order is described through inversions. For a label j, the inversion count records how many labels larger than j precede it. A value of zero says that no numerically later topic has overtaken j. The largest label has no larger label to count, so it has no separate inversion coordinate.

The paper uses the permutation below to illustrate the representation.

```
π = (3 1 5 2 4)
```

Here π denotes the whole permutation, and the numerals denote its ordered labels. For label 2, the qualifying labels before it are 3 and 5. For label 1, only 3 contributes. Label 3 comes first, and label 4 has been passed by 5. The corresponding representation is

```
v = (1 2 0 1)
```

Here v is the vector of inversion counts, in increasing order of the labels whose counts are recorded. The numerals in this block are counts, unlike the numerals in π. Each coordinate has its own range, determined by the number of labels larger than the label it describes. Within those ranges, a vector of counts specifies a unique permutation. The sum of the counts gives Kendall’s τ distance from the identity order. Kendall’s τ here names a distance on permutations. The paper separately uses the letter τ for its shared distribution over topics.

These counts are more informative for the authors’ purpose than a single measure of distance. Two permutations can be equally far from the reference and differ in which topic has been overtaken. The method can distinguish them by learning a separate penalty for each coordinate. This lets the learner express that one part of the usual progression is stable and that another is easier to rearrange. The representation needs a parameter for each inversion coordinate, so its size grows linearly with the number of topics.

#### Giving each inversion a probability

The generalized Mallows distribution assigns a probability to a document’s full inversion vector. Its probability mass function factors over the inversion coordinates.

```
GMM(v | ρ) = ∏[j = 1 to K − 1] exp(−ρ_j v_j) / ψ_j(ρ_j)
```

Here GMM is the generalized Mallows probability mass function. The vertical bar means that the probability of v is evaluated given ρ. The vector v contains the inversion counts, and ρ contains their penalties. The index j identifies a topic label and its inversion coordinate, while K is the size of the shared topic inventory. The product sign ∏ says to multiply the normalized probability for every coordinate from 1 through K − 1. In each factor, v_j is the chosen count and ρ_j is its penalty. The exponential function exp converts the negative weighted count to a positive weight. The term ψ_j is the sum of the weights over the allowed counts for coordinate j.

The paper gives that sum in closed form.

```
ψ_j(ρ_j) = [1 − exp(−(K − j + 1)ρ_j)] / [1 − exp(−ρ_j)]
```

Here ψ_j is the normalizer for topic index j, ρ_j is its penalty, and K is the inventory size. The constants 1 in the expression are part of the geometric-sum formula. In particular, K − j + 1 is the number of possible inversion counts for the coordinate, including zero. The brackets group the numerator and denominator, and exp again denotes the exponential function. Normalizing this way makes the weights for a coordinate sum to one.

The authors constrain the penalties to be positive in the full method. Each coordinate then gives its highest probability to zero inversions, and the reference order is the most probable complete permutation. Increasing a penalty makes probability fall more steeply as the corresponding count increases. A positive penalty can still leave substantial probability on non-zero counts. The method thus expresses a preference about how often topics are overtaken without demanding that every document follows the canonical order.

Fixing the reference to the identity permutation is possible because the topics begin without externally specified identities. The topic with a particular number gets its meaning from the paragraphs it helps explain. A different reference ordering over unnamed topics can be expressed by relabeling those topics. The substantive claim is that the documents tend to organize their topics around a common progression. The numerical form of that progression is a convention for representing it.

#### The priors and what is shared

The authors place a Dirichlet prior on each topic’s word probabilities and another on the corpus-wide topic probabilities. A Dirichlet prior is a distribution over vectors of probabilities. It gives the inference procedure a way to account for uncertainty about those vectors and to update them with counts. The topic-specific draw is

```
θ_k ∼ Dirichlet(θ_0)
```

Here θ_k is the word-probability vector for topic k, and k indexes the shared inventory. The symbol ∼ means “is drawn from.” Dirichlet names the family of prior distributions, and θ_0 specifies fixed prior parameters over vocabulary items. Every topic receives its own word-probability vector. Evidence from paragraphs assigned to a topic in different articles informs that same vector.

The draw for the corpus-wide topic distribution is

```
τ ∼ Dirichlet(τ_0)
```

Here τ is the vector of probabilities used for all documents’ topic draws. The symbol ∼ again denotes sampling, and τ_0 specifies the fixed Dirichlet prior. In the sampler’s topic-count expression the prior is symmetric, with the same parameter for each topic. A document’s bag is sampled from τ as many times as the document has paragraphs. The probability for a topic therefore applies to each draw contributing to the bag. It governs the multiplicities that the permutation will later turn into stretches of different lengths.

The ordering penalties have their own prior. The authors use a conjugate family, meaning that updating this prior with observed inversion counts yields a posterior of the same mathematical form.

```
GMM_0(ρ_j | v_j,0, ν_0) ∝ exp[(−ρ_j v_j,0 − log ψ_j(ρ_j))ν_0]
```

Here GMM_0 is the prior density for the continuous penalty ρ_j at coordinate j. The value v_j,0 is a prior inversion count per trial, and ν_0 gives the weight of the prior in units of trials. The subscript 0 identifies prior quantities. The symbol ∝ indicates proportionality, with a normalizing constant omitted. The function log is the natural logarithm, exp is the exponential function, and ψ_j is the coordinate normalizer from the inversion probability. The exponent has the form of an inversion log probability weighted by the prior trial count. The prior contributes an effective total inversion count equal to ν_0 times v_j,0.

Because different inversion coordinates have different ranges, the authors specify a common prior mode for the penalties and derive the prior inversion count for each coordinate from it.

```
v_j,0 = 1 / [exp(ρ_0) − 1] − (K − j + 1) / [exp((K − j + 1)ρ_0) − 1]
```

Here v_j,0 is the derived prior count for coordinate j. The value ρ_0 is the chosen mode, the value of the penalty at which the prior density peaks. The inventory size is K, and K − j + 1 is the size of the coordinate’s range. The function exp is the exponential function, and each 1 is a constant in the closed form. The two fractions account for the decay specified by ρ_0 and the finite range of the inversion count. This parameterization lets the authors state a preference about typical decay without using the same numerical prior count for coordinates with different ranges.

After drawing the shared quantities, the process generates the bag for each document and an inversion vector from the permutation distribution. Converting the vector to an order and sorting the bag establishes the paragraph labels. The final random draw in the process is repeated for every word in each paragraph.

```
w_d,p,j ∼ Multinomial(θ_z_d,p)
```

Here w_d,p,j is the word at index j of paragraph p in document d. In this expression j identifies a word position, instead of an inversion coordinate. The label z_d,p is the topic assigned to that paragraph, and θ_z_d,p is the word distribution for that label. The symbol ∼ means “is drawn from,” and Multinomial denotes the draw over vocabulary items specified by those probabilities. The same distribution applies to every word in the paragraph. Word positions index the observations without affecting their probabilities.

#### Scoring a proposed labeling

The inference procedure uses Gibbs sampling. The sampler repeatedly changes one hidden quantity while conditioning on the current values of the others. In this case, it need not explicitly retain each topic’s word probabilities or the shared topic probabilities in the state of the chain. The authors integrate them out, averaging over their possible values under the corresponding posterior distributions. This is called collapsed sampling. The quantities still sampled are the topic draws that form the bags, the orderings stored as inversion counts, and the penalties that govern those counts.

Consider what happens when the sampler proposes a change to one article. The proposed bag and permutation determine which of its words are assigned to each topic. The sampler assesses those words in light of the evidence for that topic in the other articles. For precision, let x_d,k denote all word observations from document d assigned to topic k under the proposal, and let y_−d,k denote the observations assigned to k elsewhere in the corpus. With these groupings, the paper’s collapsed document probability is

```
P(w_d | z, w_−d, θ_0) = ∏[k = 1 to K] DCM(x_d,k | y_−d,k, θ_0)
```

Here P denotes probability, w_d denotes the words in the current document, and w_−d denotes the words in the remaining documents. The variable z includes the paragraph assignments throughout the corpus, with the proposal used in document d. The fixed word prior is θ_0. The product sign ∏ combines factors over all K topics, indexed by k. DCM is the Dirichlet compound multinomial probability. Each factor is the probability of the current document’s words assigned to topic k, given the other documents’ words assigned to k and the prior. Integrating each topic’s word-probability vector against its posterior gives this factor. Word observations assigned to the same topic are grouped for that integration.

The paper expresses the compound probability for a series of observations as follows.

```
DCM(x | α) = [Γ(∑[i = 1 to W] α_i) / Γ(|x| + ∑[i = 1 to W] α_i)] × ∏[i = 1 to W] [Γ(N(x,i) + α_i) / Γ(α_i)]
```

Here x is the series of observed word tokens, and α is the vector of Dirichlet parameters. The index i ranges over the W entries in the vocabulary. The parameter α_i is the component for vocabulary entry i, and N(x,i) counts that item’s occurrences in x. The notation |x| gives the total number of word tokens in x. The symbol ∑ sums the prior parameters, and ∏ multiplies one factor per vocabulary entry. The multiplication sign × joins the leading ratio to that product. The function Γ is the gamma function, which extends the factorial relationship to real-valued arguments. The expression gives the probability of the observations after averaging over the possible multinomial parameters.

When other words have already been observed for a topic, the authors use their counts to update the prior vector.

```
DCM(x | y, α) = DCM(x | α_1 + N(y,1), …, α_W + N(y,W))
```

Here x is the series being scored, y is the series already observed, and α is the starting Dirichlet vector. Its entries run from α_1 through α_W, where W is the vocabulary size. The function N counts how frequently the indicated vocabulary entry appears in y. The ellipsis stands for all intervening entries. The right-hand side is a compound probability with the parameters increased by the counts from y. This makes the connection across documents concrete. An article’s proposed assignment for a paragraph changes which pool of word counts is used to assess the paragraph.

#### Resampling a topic draw

A position in the unordered bag is different from a position in the article. The first item in the bag may supply a paragraph late in the document once the topic labels have been sorted. Consequently, when the sampler changes a single draw in the bag, it updates the counts and rebuilds the entire paragraph-label sequence. With the order held fixed, one topic can lose a paragraph while another gains one. The resulting boundaries can shift across the intervening stretches.

The paper gives the weight for resampling a bag entry as

```
P(t_d,i = t | …) ∝ [N(t_−(d,i), t) + τ_0] / [|t_−(d,i)| + Kτ_0] × P(w_d | z, w_−d, θ_0)
```

Here P is probability, t_d,i is draw i in document d’s bag, and t is the candidate topic for that draw. The ellipsis represents the other quantities held fixed. The symbol ∝ indicates that the weights must be normalized over candidate topics. The notation t_−(d,i) denotes all topic draws except the entry being changed, N counts occurrences of the candidate in those draws, and the vertical bars in |t_−(d,i)| indicate their total number. The scalar τ_0 is their common prior parameter, and K is the number of candidate labels. The first factor is the predictive probability supplied by the corpus-wide topic counts. The second factor is the collapsed word probability, with w_d for the current document’s words, w_−d for the other words, θ_0 for the word prior, and z recomputed for the candidate. The multiplication sign × combines these sources of evidence.

The sampler computes a weight for every topic that could replace the selected draw and samples a replacement from the normalized weights. The first factor can favor a topic that appears often in the collection. The word probability can favor a topic with more suitable lexical evidence for the paragraphs affected by the change. Since the bag is sorted before it is scored, the update respects the contiguity rule automatically. A single update can also bring a topic into a document or remove its last occurrence there.

#### Resampling the order and its penalties

The sampler holds the bag fixed during an ordering update. It considers possible values of one inversion coordinate, converts each candidate vector back to a permutation, and sorts the same bag again. In this move the lengths of the topic stretches remain fixed, although their locations can change. A different order exposes a different combination of paragraph words to each topic’s shared distribution.

```
P(v_j = v | …) ∝ GMM_j(v | ρ_j) × P(w_d | z, w_−d, θ_0)
```

Here v_j is inversion coordinate j for the current document, and v is the candidate count for it. The ellipsis denotes the other variables held fixed, and ∝ again denotes a weight to be normalized. The term GMM_j is the single-coordinate probability from the generalized Mallows distribution, with penalty ρ_j. The multiplication sign × combines that probability with the word probability P for the current document. The quantities w_d, w_−d and θ_0 denote its words, the other documents’ words, and the word prior. The complete labeling z includes the paragraph labels implied by the candidate order for document d. The inversion prior factors into independent coordinates, while the posterior weight for changing a coordinate depends on the paragraph assignment produced by the full proposed order.

For each ordering penalty, the sampler combines the inversion counts currently assigned across documents with the prior. The conjugate posterior has the form

```
P(ρ_j | …) = GMM_0(ρ_j | (∑[i] v_j,i + v_j,0 ν_0) / (N + ν_0), N + ν_0)
```

Here ρ_j is the penalty for coordinate j, and P is its conditional posterior density. The ellipsis indicates conditioning on the other variables. The quantity v_j,i is the inversion count at that coordinate in document i, and ∑[i] sums those counts over N documents. Here N is the number of document observations in the update, distinct from the counting function N used in the bag equation. The values v_j,0 and ν_0 are the prior count per trial and the prior trial weight. The product v_j,0 ν_0 is the prior contribution to the total count. GMM_0 is the same density family as in the prior, now with an updated mean count and weight. The divisor N + ν_0 converts the combined total count into a count per trial.

The authors have no closed-form normalizing constant for this continuous conditional density. They use slice sampling to draw penalties from it, taking advantage of the fact that the update concerns a single variable with a single mode. The implementation uses a MATLAB slice sampler. Repeating the bag, ordering, and penalty updates lets information pass among the different parts of the analysis. A new paragraph assignment changes the word counts available to other documents, and changed permutations contribute different inversion counts to the next penalty updates.

In the experiments, the authors initialize the Gibbs procedure from five random seed states and retain the 10,000th iteration from each chain. They report averages over the five resulting samples. All Dirichlet prior hyper-parameters are 0.1. The ordering prior uses a decay mode of 1 and a sample-size weight equal to 0.1 times the number of documents in the corpus. The authors make the implementation code, data, and annotations available with the paper.

### Experiments and results

#### The articles and their reference structures

The evaluation uses two collections from [English](https://md.research.elamur.ai/free/en/topics/english/) Wikipedia. Cities contains 100 articles about large cities, with 6,670 paragraphs and 492,402 words. Its vocabulary contains 41,978 entries. Elements contains 118 articles about chemical elements, with 2,810 paragraphs and 191,762 words. Its vocabulary contains 18,008 entries. The subjects within each collection recur across articles. For cities, they include history, culture, and demographics. For elements, they include biological role, occurrence, and isotopes. Both collections include articles whose topic order departs from common patterns.

The published headings give the authors a reference for both evaluation tasks. In the alignment evaluation, matching headings imply that the paragraphs belong to the same reference topic. In the segmentation evaluation, a heading boundary supplies a reference boundary. The authors call these headings noisy because titles can differ for similar material and because editors make different choices about how finely to divide a subject. The article headings are reserved for scoring and are unavailable to the methods generating the paragraph labels or boundaries.

For Cities, the authors also perform a manual [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) of the paragraphs using a consistent set of headings. This gives them a second reference for the same collection. They find roughly 18 topics in these annotations that occur in more than one document. The experiments use topic inventory limits of 10 and 20. Both values cap how many topics can be used across the collection and in any single article. A document can omit topics, so the limit is distinct from the number of stretches actually produced.

#### Alignment

The alignment evaluation compares two ways of matching discovered topics to headings. For recall, the authors start with a reference heading and find the inferred topic most often assigned to paragraphs with that heading. A paragraph contributes to recall if it receives that heading’s most frequent topic. This score favors keeping paragraphs from a common reference class together. For precision, the authors start with each inferred topic and find its most frequent reference heading. A paragraph contributes to precision if its reference heading is the one associated with its inferred topic. This score favors inferred topics whose paragraphs predominantly come from the same reference class.

The two matches are made independently. This allows the evaluation to diagnose a system that combines different reference classes and a system that splits one reference class into several induced topics. Combining classes can leave many paragraphs with the modal topic for their heading and still lower precision. Splitting a heading across several internally consistent topics can preserve precision and lower recall. The harmonic mean of the two scores gives the reported F-score. Higher values indicate stronger agreement with the corresponding reference headings.

The alignment baselines address different sources of evidence. The CLUTO clustering baseline groups paragraphs using a cosine similarity objective with repeated bisection. It has access to lexical similarity across paragraphs and no document-order constraint. The hidden topic Markov model, HTMM, uses transitions between adjacent paragraphs. It can prefer stretches of the same topic, and it can also return to a topic after other labels intervene. The authors test both baselines alongside the full method and its fixed-order and uniform-order variants.

Cities with clean headings at K = 20, alignment F-score The learned ordering distribution gives the strongest alignment against the standardized headings.

**The numbers**

| System or setting | F-score |
| --- | --- |
| Clustering | 0.512 |
| HTMM | 0.237 |
| Constrained order | 0.486 |
| Uniform order | 0.524 |
| Learned Mallows order (this paper) | 0.606 |

Against the clean Cities headings, the full method records an F-score of 0.566 at the topic limit of 10. Its recall is 0.639 and its precision is 0.509 in that setting. At the limit of 20, the F-score is 0.606, with recall of 0.578 and precision of 0.636. The smaller inventory gives higher recall and the larger one gives higher precision for this comparison. The change in F-score reflects the balance of those two quantities. Clustering reaches an F-score of 0.499 at the smaller limit and 0.512 at the larger one. HTMM scores 0.305 and 0.237, respectively.

Against the noisy Cities headings, the full method achieves an F-score of 0.510 at the limit of 10, with recall of 0.705 and precision of 0.399. At the limit of 20 it achieves an F-score of 0.557, with recall of 0.648 and precision of 0.489. Clustering achieves 0.429 and 0.464 in F-score at those respective limits, while HTMM achieves 0.265 and 0.232. The full method leads with either Cities reference, although individual alternatives can change places. At the smaller limit, for instance, the constrained version is the closest competitor in F-score with both sets of headings. At the larger limit the uniform version is the closest competitor with either set.

Elements with noisy headings at K = 10, alignment F-score The learned order leads the comparison with both simpler ordering settings and the alignment baselines.

**The numbers**

| System or setting | F-score |
| --- | --- |
| Clustering | 0.428 |
| HTMM | 0.264 |
| Constrained order | 0.487 |
| Uniform order | 0.479 |
| Learned Mallows order (this paper) | 0.551 |

For Elements, the full method’s F-score at the topic limit of 10 is 0.551, with recall of 0.685 and precision of 0.460. At the limit of 20, the F-score is 0.531, with recall of 0.569 and precision of 0.498. Clustering achieves F-scores of 0.428 and 0.436 at the respective limits, and HTMM gives 0.264 and 0.246. The uniform-order variant comes closest to the full result with the larger Elements inventory, reaching an F-score of 0.512. The change from the smaller to the larger inventory again raises precision and lowers recall for the full method. On Elements, the balance yields a lower F-score with the larger inventory. The upper limit on topics has different consequences in the two domains.

The paper uses approximate randomization for significance testing. This is a non-parametric procedure the authors choose because it can be applied to a nonlinear score such as F-score. They report significance for comparisons against the full method at the same topic limit. The reported alignment comparisons reach p \< 0.001 except for the uniform-order variant on Elements at the limit of 20, which reaches p \< 0.01. These tests concern the comparisons within an inventory setting. The authors cite earlier use of the testing approach in [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/) and [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). [On Some Pitfalls in Automatic Evaluation and Significance Testing for MT](https://md.research.elamur.ai/free/en/papers/riezler-2005-some-pitfalls-automatic-evaluation-significance/)

#### Segmentation

For segmentation, any change in the inferred paragraph topic marks a boundary. The evaluation uses the penalties Pₖ and WindowDiff, abbreviated WD in the paper. Both pass a window along the text and assess the predicted boundaries against the reference. Pₖ checks whether the two endpoints are correctly judged to belong to the same segment or to different segments. WindowDiff checks whether the number of boundaries between those endpoints matches the reference. Thus a window spanning boundaries in both the prediction and the reference can receive different judgments under the two penalties if their boundary counts differ. Lower scores are better on both measures. [A Critique and Improvement of an Evaluation Metric for Text Segmentation](https://md.research.elamur.ai/free/en/papers/pevzner-2002-critique-improvement-evaluation-metric-text/)

The segmentation baseline is BayesSeg. It uses contiguous segments and analyzes each article individually. The authors give BayesSeg the reference number of segments for each article. It must locate the boundaries using the text, with the segment count already set. The permutation-based approach infers its own count from the nonempty topics in each document. The baseline uses its built-in hyper-parameter re-estimation, and HTMM uses the settings recommended for it in the earlier work. The authors use the released implementations of the baselines.

Elements with noisy headings at K = 10, Pₖ segmentation penalty The learned order gives the lowest boundary penalty even with the reference segment count available to BayesSeg.

**The numbers**

| System or setting | Pₖ |
| --- | --- |
| BayesSeg | 0.279 |
| Constrained order | 0.227 |
| Uniform order | 0.226 |
| Learned Mallows order (this paper) | 0.201 |

For the clean Cities reference, BayesSeg records 0.321 on Pₖ and 0.376 on WindowDiff. The full method records 0.253 and 0.283 at the topic limit of 10, and 0.221 and 0.278 at the topic limit of 20. Its average segment counts are 9.0 and 14.2, respectively, against the reference average of 12.3 associated with the BayesSeg evaluation. The larger inventory gives the full method lower penalties on this reference, with a higher average number of inferred segments.

For the noisy Cities reference, BayesSeg records a Pₖ of 0.317 and a WindowDiff of 0.376. The full method obtains 0.257 and 0.286 at the limit of 10, and 0.222 and 0.278 at the limit of 20. The average numbers of segments produced by the full method are the same as under the clean evaluation, since the boundaries being scored are the same. The reference average is 13.2 under the noisy headings. The comparisons therefore allow the reference boundaries to change without allowing the method to use that change as evidence.

For Elements, BayesSeg has a Pₖ of 0.279 and a WindowDiff of 0.316, with a reference average of 7.7 segments. At the limit of 10, the full approach has a Pₖ of 0.201 and a WindowDiff of 0.226, with an average of 6.7 segments. At the limit of 20, it has a Pₖ of 0.203 and a WindowDiff of 0.243, with an average of 8.6 segments. The smaller topic inventory yields the lower segmentation penalties on Elements, as well as the higher alignment F-score for the full method on that collection.

The full method beats BayesSeg on both penalties in every reported corpus and topic-limit comparison. The segment counts also show why the result is about more than estimating how many stretches an article should have. The full method can earn lower penalties with an average count either above or below the reference average. Boundary placement matters independently of that aggregate. The paper reports numerical segmentation penalties without significance tests for them, explaining that significance testing for this task lacked a standardized practice in the work it discusses.

### What the ablations show

#### Keeping contiguity while changing the ordering distribution

The authors compare the full method with two variants of the same construction. The constrained variant puts every document in the canonical order by keeping all inversion counts at zero. A document can still omit topics. Thus different articles can have different displayed sequences, provided each sequence can be obtained by skipping labels in the same common order. The uniform variant fixes the inversion penalties at zero and gives every full permutation equal probability. It retains a permutation for each document, and each active topic occupies one stretch, but the permutation prior offers no preference among possible progressions.

These comparisons preserve important properties of the full method. All versions share word distributions across documents, use a common topic inventory, and give each present topic a contiguous stretch in a document. Varying the ordering distribution changes the relative support for different arrangements while preserving the mechanism that turns a bag and a permutation into paragraph labels. This isolates the value of a learned preference among orders more closely than the comparison with HTMM or BayesSeg, which use different ways of assigning topics or placing boundaries.

The alignment results show the largest regularity. For Cities against the clean headings at the limit of 10, the constrained and uniform variants score 0.520 and 0.477 in F-score. The full method scores 0.566. At the limit of 20, the constrained variant falls behind the uniform one, with F-scores of 0.486 and 0.524, respectively, while the full method reaches 0.606. The contrast between the constrained and uniform settings changes with the inventory size. The preference for a learned distribution remains visible in both comparisons.

The noisy Cities reference gives the same pattern among these variants. At the limit of 10, the constrained variant records an F-score of 0.485 and the uniform variant records 0.436, compared with 0.510 for the full method. At the limit of 20, the corresponding F-scores are 0.474, 0.486, and 0.557. The results support a preference for similar orders that still gives some probability to rearrangements. The relative ranking of the two simpler assumptions depends on the setting.

Elements yields the same ordering of the variants at each limit as Cities. The constrained and uniform F-scores are 0.487 and 0.479 at the limit of 10, with 0.551 for the full method. At the limit of 20, they are 0.461 and 0.512, with 0.531 for the full method. The experiments associate a learned ordering distribution with consistently better alignment under these shared assumptions. They offer less evidence for a general rule about whether the better simplification is a fixed order or a uniform distribution.

#### Where the boundary scores differ

For segmentation, it matters which penalty is examined. For the clean Cities reference with the topic limit of 10, the full method achieves a Pₖ of 0.253 and a WindowDiff of 0.283. The constrained version has a Pₖ of 0.260 and a WindowDiff of 0.281. The constrained version therefore gives the lowest WindowDiff for that setting, while the full method gives the lowest Pₖ. A system can make fewer errors in judging whether pairs of endpoints share a segment and still make more errors in the exact count of intervening boundaries. Both penalties are needed to see that distinction.

The comparison on the same Cities articles changes slightly with the noisy reference. At the limit of 10, the full method’s WindowDiff is 0.286 and the constrained variant’s is 0.288. The full method also has the lower Pₖ in that setting, at 0.257 against 0.267. This is an example where the fine-grained ordering of two methods depends on which boundaries count as correct. The broader alignment result, which favors the full approach against both sets of reference headings, is more consistent across these changes.

The Elements segmentation results show why closeness in inferred segment count cannot stand in for a boundary evaluation. With the topic limit of 10, the constrained version infers an average of 5.4 segments, and the uniform and full versions infer 6.6 and 6.7. The uniform and full versions have similar counts, but their Pₖ scores are 0.226 and 0.201, and their WindowDiff scores are 0.250 and 0.226. The inferred labels determine which gaps between paragraphs become boundaries, and the penalties expose differences that average segment counts cannot locate.

#### What the baseline inspection adds

The authors inspect assignments from HTMM and observe that it frequently uses a topic in separated parts of the same article. The observation explains why local transition preferences and a document-wide contiguity rule are different assumptions in practice. A local transition system can leave a subject and later return to it even when it prefers to keep nearby paragraphs on one topic. The permutation construction rules out that assignment before any probabilities are considered.

This inspection and the ablations answer different questions. The inspection identifies an assignment pattern that the full method prevents. The ablations compare systems that all prevent that pattern and vary the probabilities of permissible orders. Since there is no version of the same permutation method with contiguity removed, the HTMM comparison cannot give an isolated estimate of the contribution of contiguity. CLUTO’s competitive alignment scores provide separate evidence that words carry much of the signal even when paragraph order is unavailable. Together, the comparisons show that lexical evidence is informative, that local transitions allow recurring labels, and that a learned global ordering can add value when contiguity is already enforced.

### Limitations

#### Limits identified by the authors

The authors emphasize the dependence on documents with related content. They explain that because their method depends on how similar the content is within a collection, they omit the corpora from the previous BayesSeg study when evaluating it. The experiments consequently establish performance on the selected Wikipedia collections. The premise behind the method is that articles share enough subjects for word counts and ordering preferences learned across documents to be informative about any one of them.

The authors also discuss how sections provide an imperfect reference. The same subject can appear under different titles, and articles can split material at different levels of detail. Using exact heading identity will then count some plausible groupings as errors. The standardized Cities annotations address inconsistencies in wording and granularity for one collection. Elements has only the noisy heading evaluation. The agreement in broad method rankings across the Cities references supports the use of the original headings for comparison there while leaving the quality of individual topic assignments dependent on the reference.

A further limitation arises from the use of full permutations for articles that express only some topics. When the bag omits a topic, its position in the full permutation can change without affecting the paragraph sequence. More than one hidden permutation can therefore contribute probability to the same observable assignment. The authors say that this induces a bias toward assignments with fewer topics per document. They report that they did not find an adverse effect on performance in practice. That observation is tied to their evaluation and leaves open how the bias would affect a collection of documents with a different mix of topics and segment lengths.

The authors reserve statistical significance testing for alignment. Their segmentation evidence consists of the reported penalties and segment counts, with no corresponding significance tests. In particular, the narrow WindowDiff differences between variants should be read as numerical outcomes of those runs. The segmentation results establish the reported ranking under a reference and setting, and the paper gives no estimate of how stable a close comparison would be across other samples.

#### Limits visible in the setup

The contiguity rule is also a restriction on what the method can discover. If an article introduces a subject, turns to another one, and later resumes the first, the same inferred label cannot describe the separated passages unless the intervening material receives it as well. The learner can assign different labels to the two passages or choose a larger stretch that joins them, but the permitted assignments cannot capture an interruption followed by a return to the identical topic. The strength of the restriction depends on whether the texts being studied resemble the progression assumed by the paper.

The paragraph representation further fixes the resolution of the decision. Each observed paragraph receives a single topic, and every predicted segmentation boundary lies between paragraphs. An internal subject change cannot be recovered at that granularity. The authors say that the analysis could be applied to sentences as units, but the experiments report paragraph assignments. They do not establish the scores or the behavior of the same assumptions at finer granularity. Similarly, treating each paragraph as a bag of words leaves sentence structure and the arrangement of words outside the evidence used to determine topics.

The ordering distribution has one center for the collection. Different penalties allow some topics to move more readily than others, and the document-level draws allow many orders. A collection with distinct conventions would nevertheless be explained through departures from a common center. The experiments do not compare that representation with an approach that learns several centers or chooses separate conventions for subsets of documents. They likewise do not establish what would happen when the topics are weakly shared or when the typical order in one collection is carried over to another.

The evaluation infers structure from the documents being scored. The headings are withheld as evidence, so this is unsupervised structure discovery, but the paper does not report a train-and-test transfer of learned topics and order to a separate collection. Nor does it show how a single topic inventory limit can be chosen for new domains. The different outcomes at the limits of 10 and 20 show why that question is distinct from letting the method infer the number of topics used in a particular document.

Finally, the comparison with BayesSeg varies more than access to cross-document order. The two approaches also differ in how they represent topics across articles and how they obtain segment counts. Giving BayesSeg the reference count helps its boundary-placement task, but that design does not equalize the internal workings of the methods. The fixed and uniform ordering comparisons address the narrower effect of changing order preferences while keeping the rest of the construction in place. The baseline comparison addresses the effectiveness of the complete approaches on these collections.

### What came after

Later papers cite this work from several directions. One direction puts the learning setup for segmentation at the center of the question. Another pairs segmentation with identifying the subject of each stretch. A third applies latent topic machinery to a semantic task with a different unit of analysis. The titles identify these connections at the level of research problems. The citation relationships leave open whether any particular part of the permutation distribution was reused.

*A Latent Dirichlet Allocation Method for Selectional Preferences* (2010) takes a topic-modeling method to selectional preferences, the tendencies of predicates to occur with certain kinds of arguments. The connection is to the use of hidden categories and word distributions to infer structure from recurring lexical evidence. In the document-structure paper, the inferred categories also have to occupy positions in an article’s progression. Selectional preferences concern which semantic classes of arguments fit a predicate. The known connection is the broader use of latent topical categories in an analysis of language. [A Latent Dirichlet Allocation Method for Selectional Preferences](https://md.research.elamur.ai/free/en/papers/ritter-2010-latent-dirichlet-allocation-method-selectional/)

*Text Segmentation as a Supervised Learning Task* (2018) takes up the shared problem of locating divisions in text and frames it as supervised learning. In the earlier paper, headings serve as an external reference and the topics and boundaries are inferred from the articles themselves. A supervised formulation makes examples with target divisions part of the learning problem. This shifts the question from how to recover recurring structure under a prior over topic order to how to learn the placement of boundaries from labeled examples. The connection concerns the segmentation task and the role of reference boundaries in learning and evaluation. [Text Segmentation as a Supervised Learning Task](https://md.research.elamur.ai/free/en/papers/koshorek-2018-text-segmentation-as-supervised-learning/)

*SECTOR* (2019) brings coherent topic segmentation and classification into a single neural formulation. That pairing closely relates to the earlier paper’s decision to obtain boundaries and cross-document correspondences from the same paragraph labels. A change of label marks a boundary, and a repeated label across articles provides an alignment. Classification similarly asks what topic belongs to a stretch once its boundaries are identified. The cited work therefore continues the question of how to identify both the extent and the subject of a topical passage. Its stated formulation establishes that connection without specifying a role for latent permutations. [SECTOR](https://md.research.elamur.ai/free/en/papers/arnold-2019-sector-neural-model-coherent-topic/)

## Cite

Cite as Harr Chen, S.R.K. Branavan, Regina Barzilay and David R. Karger. 2009. Global Models of Document Structure using Latent Permutations. Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{chen2009global,
  title = {{Global Models of Document Structure using Latent Permutations}},
  author = {Harr Chen, S.R.K. Branavan, Regina Barzilay and David R. Karger},
  booktitle = {Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2009},
  doi = {10.3115/1620754.1620808},
  url = {https://doi.org/10.3115/1620754.1620808}
}
```

> 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)
