---
title: "Generating a Table-of-Contents — paper by Branavan et al. (2007)"
description: "Generating a Table-of-Contents shows how choosing headings together can improve the titles that guide readers through a long document."
canonical: "https://research.elamur.ai/free/en/papers/branavan-2007-generating-table-contents/"
---
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/branavan-2007-generating-table-contents/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2007](https://md.research.elamur.ai/free/en/papers/2007/) / Generating a Table-of-Contents

# Generating a Table-of-Contents

Paper · 2007 · S. R. K. Branavan, Pawan Deshpande and Regina Barzilay

**Authors:** [S. R. K. Branavan](https://md.research.elamur.ai/free/en/authors/s-r-k-branavan/), [Pawan Deshpande](https://md.research.elamur.ai/free/en/authors/pawan-deshpande/) and [Regina Barzilay](https://md.research.elamur.ai/free/en/authors/regina-barzilay/) · **Year:** 2007 · **Venue:** Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**18** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2101075799) · [Cited by **9** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/branavan-2007-generating-table-contents/cited-by/) · [Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics](https://aclanthology.org/volumes/P07-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/P07-1069/)
- [PDF](https://aclanthology.org/P07-1069.pdf)
- [OpenAlex](https://openalex.org/W2101075799)

Citations: OpenAlex, 2026-10-14.

## Summary

A table of contents has to tell readers where to look. A heading that makes sense above its own section can be much less helpful when it appears beside another heading with almost the same wording. In *Generating a Table-of-Contents*, the authors ask how to produce short, informative headings that work together across a long document. They start with the document already divided into chapters, sections and subsections. The task is to give those divisions titles that represent their contents and make their relationships easier to see. This is a form of [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/) in which the output helps readers decide which parts of a source to consult.

The method first writes several possible titles for each section, building them word by word from the section’s vocabulary. It ranks those candidates using evidence about which words describe the section well and which word sequences read naturally as titles. A second stage goes through the document tree and chooses among these alternatives. At that stage, the choice can depend on what a neighboring heading says, how it is phrased, or whether it would repeat the heading of a parent section. Both stages keep only a limited set of promising partial outputs as they search.

The authors evaluate the method on a 1,180 page undergraduate algorithms textbook. On held-out subtrees, it leads the alternatives on all reported ROUGE measures of overlap with the book’s headings. Its average ROUGE-1 score is 0.256, compared with 0.241 for the version that writes each title independently. When judges compare how well the titles represent their sections, the method with access to the hierarchy is ranked better in 68 comparisons, worse in 32 and equal in 49. Exact matches with the textbook account for 13.5% of the full method’s output in the reference comparison. The judges generally favor the original headings, and the paper gives examples of generated titles that convey related meanings in different words.

In the test set, 30% of titles change when the second stage is added. The result shows that relationships among headings can affect which locally plausible wording is worth keeping. The evidence comes from the divisions of one textbook, with the desired title lengths supplied to the system. It establishes the value of choosing titles in context under those conditions and leaves the discovery of document boundaries and heading lengths to other work.

## Deep dive: Generating a Table-of-Contents

Generating a Table-of-Contents shows how choosing headings together can improve the titles that guide readers through a long document. · about 34 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

#### A summary a reader can navigate

A table of contents offers a set of decisions about where to read. Someone looking for a particular subject can inspect a broad chapter heading, then use its subordinate headings to find the treatment that matters. A reader unfamiliar with the subject can use the same hierarchy to see what the author groups together. Each line is short, and a useful interpretation of it may depend on several neighboring lines. The paper treats those relationships as part of what the summary must communicate.

This is an indicative summary. It points to the contents of the source and identifies their locations through the document structure. A heading about a particular algorithm need only identify the treatment a reader can expect to find there. Its parent heading can supply a broader category, and the nearby headings can indicate which other treatments belong to that category. A few words can do a substantial amount of work in this setting because their position in the hierarchy contributes meaning.

That position changes what counts as a good title. A broad term might describe the subject of a section accurately and still give a reader too little information to choose it from a list. If the parent uses the same term, repeating it can obscure what the section adds. Conversely, sibling titles can share useful vocabulary. Several sections that present comparable procedures might benefit from titles that follow a common phrasing pattern, as long as the words that identify the individual procedures stay visible. The generation task therefore has to accommodate both distinctions and family resemblances.

The authors situate this problem in a field that had concentrated on short articles, especially news. In a long source, a summary must compress a much larger body of material, and its parts have more reason to depend on one another. The challenge is especially visible in a table of contents, where even an important section gets only a short phrase. A book is the authors’ test case. They also suggest that a navigable outline might help a reader make sense of a long lecture or meeting transcript. Those suggestions explain why the problem matters beyond printed books.

#### What earlier approaches supplied

Earlier work on long documents had shown how a summary could benefit from assumptions about its domain and intended form. As the authors describe it, work on scientific articles selected rhetorical elements of the kind commonly found in abstracts. Work on medical articles used a template to guide what information the summary expressed and how it expressed it. Such restrictions made it possible to compress substantial material and still give the output a coherent organization.

The paper also discusses approaches intended to work across domains. In the examples it cites, a document is divided by topic, and each part gets its own summary. The extracted material can be a sentence or a phrase from the segment. That gives the reader coverage of several parts of the document. The operation on each part is independent, so the selection in one segment has no reason to change when the summary of another segment uses similar language. For a list of headings, that independence can leave the reader with several labels that make essentially the same promise.

Work on titles and headlines supplied a different starting point. It addressed how to choose a small amount of content from an article and put it into acceptable wording. The paper cites work on headline generation and on titles for broadcast news. A single article title can be evaluated against the article it names. A heading in an outline participates in a further decision about how to present the article’s subject alongside the subjects of other entries. Earlier work on headlines therefore helps explain the local problem in the first stage. [Hedge Trimmer: A Parse-and-Trim Approach to Headline Generation](https://md.research.elamur.ai/free/en/papers/dorr-2003-hedge-trimmer-parse-trim-approach/)

One commonly used approach to headline generation in the paper’s account is the noisy-channel approach. Its implementation in the experiments represents the choice of what to say and the fluency of the resulting phrase through separately estimated components. The authors want to use phrase-level and word-level evidence together, including features where several conditions hold at once. A discriminative approach suits that purpose because training can adjust the relative influence of all those signals according to which titles should score well for a given input. The same approach also accommodates evidence about relationships among entries.

#### The boundaries of the task

Making a table of contents involves deciding where the topics begin and end, how they nest, and how to name them. In the paper’s experiments, the hierarchy is available at the outset. The generator takes chapters, sections and subsections as given and fills their title positions. The authors point out that demarcations in a source can supply the divisions, and refer to earlier topic segmentation work as a possible way to obtain divisions automatically. Their work concentrates on the words that appear at the nodes of the tree.

This boundary clarifies what it means for the method to use a hierarchy. The hierarchy already says that several sections belong to a given chapter, for instance. The title generator can use that relationship to decide what the section headings should say. A title whose wording obscures a distinction among siblings is eligible to lose to a locally weaker alternative. The quality of the resulting outline depends in part on those choices, even with the tree itself settled.

There is a straightforward alternative. A title generator could name each segment as if it were a separate document, and the resulting headings could then be displayed in the supplied tree. That procedure gives the output the proper arrangement on the page. What the paper adds is an opportunity for the arrangement to change the wording. Whether that opportunity helps can be tested by comparing the same local candidate generator with and without the surrounding headings in the final decision.

### The method, step by step

#### Start with a tree and a set of possible headings

The input is a tree in which a node corresponds to a stretch of the document. An internal node can represent a larger division, while its children represent the divisions within it. Every node needs a title. In training, there are examples of the text at those nodes and the headings the author gave them. At test time, the system receives an unseen tree of segments and a requested title length for each segment. In the experiments, the requested lengths come from the reference headings.

Imagine a segment about a sorting procedure. Several words in it might name the procedure, while other words describe operations that also occur throughout the chapter. A short title can be assembled by choosing some of the available words and ordering them. If there are several plausible orders or several ways to describe the procedure, the first stage can pass on alternatives. The second stage can then choose a phrase in light of how similar procedures are named nearby. The words still have to come from alternatives supplied for this particular segment.

This division of labor lets the first stage compare words and phrases against the local material. The second deals with a smaller set of choices and can ask questions that make sense only once several headings are in view. Each stage has its own scoring weights and its own search. The local search proceeds through word positions in a heading, and the global search proceeds through node positions in the tree.

From document segments to a table of contents The steps in order.

#### Turn evidence about a heading into a score

The authors formulate the problem as supervised learning. A training example pairs an input with a known output. At the document level, the training data have the following form.

```
(Sⁱ, Tⁱ), i = 1, …, p
```

Here `Sⁱ` is the input tree of segments in example `i`, and `Tⁱ` is its corresponding reference table of contents. The superscript identifies the example. The index `i` starts at `1` and runs through `p`, the number of training trees, with `…` standing for the intervening indices. The parentheses enclose the input and output as a pair.

For an individual segment and a proposed title, the system constructs a feature vector. A feature records measurable evidence about the pairing. The vector is an ordered collection of these measurements, with a distinct position for each feature. The paper illustrates this idea with a binary feature that asks whether a particular pair of consecutive title words appears in the source segment.

```
(Φ_loc(s, z))ᵢ = { 1 if (z[j], z[j + 1]) occurs in s; 0 otherwise }
```

`Φ_loc` is the local feature function. Its arguments `s` and `z` are the segment and one proposed title. The subscript `i` identifies the component of the resulting vector. Brackets select words by position in `z`, so `z[j]` is the word at position `j` and `z[j + 1]` is the next word. The ordered pair is a bigram, a sequence of two consecutive items. The braces show the two possible feature values, `1` for an occurrence in `s` and `0` for its absence. [N-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/)

This particular feature gives the scoring procedure access to a small piece of evidence about phrase choice. If the two words occur together in the source, there is some support for using them together in a title. The feature itself records only the occurrence. A weight learned from the training examples determines how that observation affects the score. A feature can also store a numerical quantity that varies in degree, such as a score for the importance of a word in the segment.

The local score is a weighted sum.

```
Φ_loc(s, z) · α_loc
```

`Φ_loc(s, z)` is the vector for segment `s` and candidate title `z`. The vector `α_loc` contains the learned local weights, with one weight corresponding to each feature. The centered dot is the dot product. It multiplies each feature value by the weight in the same position and adds the products. The resulting real number lets the system compare candidates for the segment.

Some features ask whether a word is likely to be informative. These include its position in the text and its part of speech, the grammatical category assigned to the word in context. They also include TF-IDF, which combines evidence about a word’s frequency in the segment with evidence about how widely it occurs in the collection. A word that turns up often in one segment can be a better clue to the subject when it is less widespread elsewhere. The authors also record whether a word occurs in the text of neighboring segments. That gives the local stage evidence about how broadly the word applies before any neighboring titles have been chosen. [Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) · [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/)

Other features describe sequences. The stage uses bigram and trigram scores over both the title words and their part-of-speech tags. A trigram considers three consecutive items. Word sequences provide evidence about particular combinations of words. Tag sequences can reflect a recurring grammatical pattern even when the words differ. The authors train the sequence statistics with SRILM and compute the mean trigram score across the title. The resulting scores enter the same weighted sum as the evidence for choosing particular words.

The features also include combinations of conditions. The evidence carried by a word’s position can depend on its grammatical role or another property already measured. A conjunctive feature gives the learner a place to assign weight to the conditions occurring together. That is one reason for placing content selection and wording in the same scoring procedure. A locally high-scoring title reflects the combined evidence instead of a decision made exclusively by any single feature.

The authors give particular attention to noun phrases. A phrase can be frequent in a passage because it names a central object, or because it is routine language used to talk about the organization of the text. For each noun phrase in a proposed title, the method compares its frequency in the segment with its frequency in the corpus by using their ratio. This supplies evidence for favoring phrases characteristic of the section and discouraging generic references to a nearby part of the book. The distinction matters because a routine expression can otherwise be well supported by the words and word sequences in the source.

#### Build each heading from left to right

Even with a score that can rank titles, the system needs a way to find good ones. The local stage can append any word from the segment at the next position. The number of possible sequences grows exponentially with the desired title length. It would be impractical to score all complete sequences and sort them afterward. The authors instead keep a beam, a list of the partial headings judged most promising at the current length.

At iteration `j`, each current candidate is `j` words long. The system grows the list by appending words from the segment to the right of each partial candidate, then scores the extensions. The ordering condition in the paper is as follows.

```
Φ_loc(s, zᵢ) · α_loc ≥ Φ_loc(s, zᵢ₊₁) · α_loc, ∀i
```

Here `s` is the current segment, `zᵢ` is the candidate at position `i` in the sorted list, and `zᵢ₊₁` is the candidate immediately after it. `Φ_loc` produces the local feature vector for a segment and a candidate, and its dot product with `α_loc`, the local weight vector, produces the score. The symbol `≥` means that a candidate’s score is at least as large as its successor’s. The notation `∀i` says that the ordering holds for every position with a successor.

After sorting, the search retains the top `k` partial candidates, where `k` is the beam capacity. At the next iteration, those candidates supply the starting points for further extensions. Once the chosen length is reached, the beam contains the ranked complete candidates. Because the search constructs a phrase by appending available words, a candidate can combine words from different places in a section. Its wording can differ from every complete phrase in the source. Each word still has to be available in the segment during ordinary generation.

Beam search makes some decisions before all their consequences are known. A prefix that looks unpromising can lead to a strong title when the next word arrives, but only if the prefix survives. Keeping several prefixes gives the search room to consider competing possibilities. It also means that the score must do useful work on unfinished strings. The training algorithm addresses precisely this situation by assessing the behavior of the beam during learning.

#### Learn what keeps a good prefix in contention

At the local stage, the training examples are individual segments and their reference titles.

```
(sᵢ, yᵢ), i = 1, …, l
```

`sᵢ` is the segment in local training example `i`, and `yᵢ` is its reference title. The index `i` runs from `1` through `l`, which is the total number of local examples. The ellipsis denotes the intervening indices, and the parentheses show the associated segment and title as a pair.

The authors use an incremental perceptron. It learns by searching under its current weights and changing them when the expected output drops out of contention. This places the error check inside the search. The authors relate the approach to earlier work on parsing, chunking and machine translation, where outputs also have internal structure and must be assembled through many decisions. The parsing work provides the precedent for the incremental training procedure and the use of averaged weights at decoding time. [Incremental Parsing with the Perceptron Algorithm](https://md.research.elamur.ai/free/en/papers/collins-2004-incremental-parsing-perceptron-algorithm/)

For a segment `s` with reference title `y`, training checks the beam after every expansion and pruning step. The paper expresses the step as a composition of two operations.

```
Q ← PRUNE(GROW(s, Q))
```

`Q` is the beam of partial titles. `GROW` uses the segment `s` to append a word to each current partial title for every word it considers from the segment. `PRUNE` then keeps only the highest ranked extensions under the local score. The nested parentheses give the order of operations, with growth before pruning. The arrow `←` assigns the resulting beam to `Q` for the current title length.

The loop runs through the words of `y`. At position `j`, the expected partial title is `y[1 … j]`, meaning the prefix starting at the first word and ending at word `j`. The notation `|y|` is the number of words in the reference title and gives the last iteration of this loop. If the correct prefix survives, the algorithm proceeds to the next position. If it is missing, the authors update the weights by comparing it with the average feature vector of the surviving alternatives.

```
α_loc ← α_loc + Φ_loc(s, y[1 … j]) − (Σ_{z ∈ Q} Φ_loc(s, z)) / |Q|
```

The `α_loc` on the right is the current local weight vector. The arrow assigns the new vector to `α_loc` on the left. The plus and minus signs denote vector addition and subtraction. `Φ_loc(s, y[1 … j])` represents the reference prefix through position `j` together with segment `s`. The symbol `Σ` sums local feature vectors for all candidates `z` belonging to the beam `Q`, as indicated by `z ∈ Q`. The vertical bars in `|Q|` give the number of candidates in that beam. The slash divides the sum by that count, giving the average of the alternatives.

The direction of the update is what matters. Features more strongly represented in the reference prefix than in the surviving alternatives gain weight. Features more strongly represented in those alternatives lose weight. Comparing with the beam as a group makes the update respond to the candidates that collectively displaced the reference. The authors specify that the parameter update is skipped when the word at the current reference position does not occur in the segment. In that case, the ordinary growth operation cannot supply the expected word.

After the loss of the expected prefix, the pseudocode restarts the beam from that prefix.

```
Q ← {y[1 … j]}
```

`Q` is again the beam and `←` assigns its new contents. The braces denote a set containing just the reference prefix `y[1 … j]`. This is a training operation. It lets the algorithm examine the later positions starting from the expected wording even after an earlier decision would have caused the current search to lose it.

The local stage goes through the training examples over 50 training iterations. At decoding time the authors use local weights averaged over the training iterations. The general idea of searching while learning also appears in the earlier work the paper cites on structured predictions in translation. Here the prediction being assembled is a short heading, and a later search will work on the much larger structure formed by those headings. [A Discriminative Model for Tree-to-Tree Translation](https://md.research.elamur.ai/free/en/papers/cowan-2006-discriminative-model-tree-tree-translation/)

#### Pick titles with the surrounding outline in view

The global stage receives the local rankings. It considers only the top five candidate titles for a segment during decoding. This limit matters because the possible full outlines multiply as more nodes receive titles. The system can consider several assignments at once by building incomplete outlines. The traversal visits a parent before its descendants, following document order. At each step, it adds a title for the current node to the partial outlines under consideration, ranks the extended outlines, and keeps a beam of the strongest ones.

Global features describe a tree of segments together with the titles assigned to it. The paper illustrates one component by asking whether a title is repeated.

```
(Φ_glob(S, T))ᵢ = { 1 if a title is repeated in T; 0 otherwise }
```

`S` is the segment tree and `T` is the assignment of titles to that tree. `Φ_glob` is the function that produces the global feature vector for the pair, and `i` selects one component of that vector. This illustrative component takes the value `1` when a title repeats in `T` and `0` when no title repeats. The two cases are enclosed in braces.

The examples of features used in the paper make the location of a relationship more specific. One can detect that a title duplicates a sibling’s title. Another can detect duplication between a parent and its child. Either situation could make the headings less informative as a pair. The tree tells the system which comparison it is making. The feature records the event, and its learned weight determines how much that event matters to the ranking.

A different set of features captures parallel wording. Two adjacent siblings can begin with the same word or share a head, the word around which a phrase is organized. Consider two headings that identify different sorting procedures and end in *algorithm*. The shared head can give a reader a quick signal that the headings name comparable things. The procedure names do the work of differentiation. The paper uses comparisons of words in particular title positions to capture that kind of regularity. A signal for shared wording and a signal for exact duplication can therefore operate together.

The last kind of global feature carries the local stage’s preference forward. It records the candidate’s position in the local ranking. A candidate favored by the local features can remain attractive even after a structural signal favors a different wording. The global scoring weights decide how strongly rank should count alongside the relationships in the tree. Since the stage works from a ranked list, its choice is constrained in two ways by the local stage. The local stage supplies the alternatives and expresses a preference among them.

The global score is also a weighted sum.

```
Φ_glob(S, T) · α_glob
```

`Φ_glob(S, T)` is the vector of global measurements for segment tree `S` with title assignment `T`. `α_glob` is the vector of weights learned at the global stage. The dot `·` means that the feature values are multiplied by their corresponding weights and the products are added. The resulting score lets the decoding procedure rank competing title assignments, including those that are still being assembled during the traversal.

The traversal makes some relationships available earlier than others. Once a child is about to receive a title, the parent’s title has been assigned in each surviving partial outline. As siblings receive titles, comparisons among their entries become available. Keeping alternative partial outlines preserves different choices for those assignments for as long as they survive pruning. The output is selected from the completed outlines that remain after every segment has been visited.

#### Give the global learner attainable targets

The reference table of contents supplies the intended wording at every node. The global stage can choose only among the headings produced locally, and the exact reference title may be missing from that list. During training, the authors first assign an attainable target to each node. They choose the candidate closest to the reference under a distance based on the overlap of content words.

```
z* = arg minᵢ L₁(zᵢ, y)
```

`y` is the reference title for the segment. `zᵢ` is its local candidate at index `i`. `L₁` denotes the distance the paper uses to compare the candidates with `y` by content-word overlap. The expression `arg minᵢ` finds the candidate index giving the smallest distance, and `z*` denotes the candidate chosen by that rule. The equality assigns that choice to the training target. If several candidates attain the same distance, the authors choose one arbitrarily.

This step gives the global learner an outline made from decisions it can actually take. A candidate can serve as a target because it preserves the words that carry the main content of the reference even where a different auxiliary word is present. The authors describe this measure as close to ROUGE-1 and identify the treatment of auxiliary words as a distinction. The candidate selection establishes the individual training targets before the global search learns from their arrangement in the tree.

Training then uses the same kind of perceptron procedure as the local stage. The elements in the beam are partial tables of contents, and the loop advances through segment titles. The expected prefix is now a succession of target title choices along the traversal. If that partial outline falls out of the beam, the weights can be adjusted using its global features and those of the surviving alternatives. This teaches the global score to support attainable title assignments while the outline is being assembled. The authors train this stage over 200 iterations.

The two training procedures mirror the dependency each stage is responsible for. The local learner tries to keep the desired word sequence available for completion. The global learner tries to keep a suitable succession of title choices available as more of the hierarchy comes into view. The authors report making the code and feature vector data available for their method and the baselines.

### Experiments and results

#### One textbook, split by branches

The experiments use an undergraduate algorithms textbook of 1,180 pages. The corpus statistics list 269,650 words and 540 titles. The title length averages 3.64 words. The reported tree depth is 4, and the average branching is 3.29. The authors also give a corpus statistic labeled average title duplicates, with a value of 21. These figures describe a setting with very short outputs for a substantial source and enough nesting to make a heading’s relations to other headings observable.

The authors split the book’s table of contents into subtrees. Their description starts with a single tree of depth `n` whose root has `r` branches. Removing the common root as the starting point gives `r` subtrees, each with depth bounded by the quantity below.

```
n − 1
```

Here `n` is the original depth, `−` denotes subtraction, and `1` represents the root level removed from a path. The bound allows different branches to have different depths. The experiments use 39 trees after the division. Whole branches serve as input examples, so each evaluation tree can still contain relationships among parents, children and siblings.

For each random split, 80% of the trees are assigned to training and the remaining trees to testing. The authors repeat the split across ten randomizations because the number of trees is small. The automatic scores are averages over those randomizations. Holding out trees gives the system unseen branches at test time. All the branches come from the same book, and the results therefore describe performance within that source.

The reference supplies the desired title length for the full method and the baselines that take a length parameter. This is part of the input available during evaluation. It lets the comparison focus on choosing words and choosing among candidate titles for segments of known target length. The keyword baseline has a different title construction procedure and is described separately from the methods given this parameter.

#### The systems being compared

The authors compare their hierarchical discriminative method, abbreviated HD, with alternatives that give different answers to two questions. One question is how to generate and rank a heading for an individual segment. The other is whether the final decision should use its position in the tree. The flat discriminative baseline, FD, is the local stage of the proposed method used on its own. It supplies the direct comparison for asking what happens when the hierarchy participates in title selection.

The flat generative baseline, FG, uses the noisy-channel headline approach discussed in the paper. It accounts for the choice of content and the plausibility of the word sequence through separately estimated components, then combines those components. It assigns each segment its own title without consulting the other title choices. This baseline gives a different way to generate and rank local alternatives under the same task of producing a heading of the supplied length.

The hierarchical generative baseline, HG, uses the global stage with ranked candidate lists from the noisy-channel approach. The word *generative* in its label refers to the source of the local candidates. The structural reranking comes from the paper’s own method. Comparing HG with FG asks whether the global stage also helps when the options it receives are generated by a different procedure. Comparing HG with HD shows how the complete pipeline depends on the options available to that stage.

The keyword baseline chooses the source noun phrase with the highest TF-IDF. It supplies a way of testing how far a simple indicator of topicality can go in this task. A phrase directly selected from the source can be concise, and it has an observed wording. Its repeated use in several sections can make it a weak guide to the individual contents of those sections. The paper connects this baseline to earlier use of keyword selection for browsing and for technical material. [Information retrieval & search](https://md.research.elamur.ai/free/en/topics/information-retrieval/)

#### How the titles were evaluated

The automatic evaluation compares the generated entries with the textbook headings using ROUGE. These measures look for textual overlap. ROUGE-1 operates at the level of individual words, ROUGE-L looks at words that occur in the same relative order as a subsequence, and ROUGE-W gives weight to how that shared sequence is arranged. The authors run the available ROUGE software with its default parameters. They also report the share of full matches, where the generated heading is identical to the reference. Using several measures helps show whether the ranking holds under different ways of counting agreement with the book.

Agreement with a reference is a useful check on whether a system picks up terms that a human author thought worth putting in the heading. A single reference is also a narrow sample of possible wording. A phrase about the minimum spanning tree problem can share recognizable words with a differently worded heading for the same material. The relation between a title naming a Wallace tree and one calling it a multiplication circuit is harder for overlap to capture. The book’s subject matter makes the connection intelligible because a Wallace tree is a circuit for multiplying integers. The paper uses such examples to explain its separate assessment by readers.

In the human assessment, six computer science graduate students took part. They had previously taken the algorithms class and were reasonably familiar with the topics. From the pool of 359 test segments, 30 were selected at random and given to each judge. For a given segment, the judge saw its text and 3 candidate headings. The candidates were the textbook’s heading, the HD heading and the heading from FD, the strongest baseline. The judges could consult the other segments in the book. The alternatives appeared in random order and did not identify the system that produced them.

The judges ranked titles by how well they represented the segment. They could assign equal ranks when titles represented it equally well. In total, they ranked 498 titles for 166 unique segments. The paper summarizes the rankings with pairwise comparisons. In each comparison, a heading can rank above the other heading, below it, or equal to it. The resulting counts give a view of the direction of preference and its frequency. The paper does not turn these judgments into a score for the ease of navigating a whole outline.

#### Agreement with the textbook headings

HD is ahead of every baseline on all of the reported ROUGE comparisons. The chart shows the average ROUGE-1 scores across the randomizations of the textbook subtrees.

ROUGE-1 on the algorithms textbook’s held-out subtrees The hierarchical discriminative method leads the comparison, followed by its local stage used alone.

**The numbers**

| System or setting | ROUGE-1 |
| --- | --- |
| Hierarchical discriminative (HD) (this paper) | 0.256 |
| Flat discriminative (FD) | 0.241 |
| Keyword | 0.168 |
| Hierarchical generative (HG) | 0.139 |
| Flat generative (FG) | 0.094 |

On ROUGE-L, HD scores 0.249 and FD 0.234. The keyword baseline scores 0.168, HG 0.133 and FG 0.090. The ROUGE-W results place the methods in the same order. HD scores 0.216, FD 0.203, keyword 0.157, HG 0.117 and FG 0.079. All these scores refer to the textbook’s held-out subtrees and are averaged over the randomizations. The paper reports that the HD improvement over FD is significant at p ≤ 0.03 for all three ROUGE measures, using the Sign test.

The full-match percentages describe a stricter kind of agreement. HD gets 13.5% and FD 13.1% on the test comparison. The keyword method gets 6.3%, HG 5.8% and FG 4.1%. The relative rarity of a full match is visible even for the leading method. The desired length is available, so the remaining difficulty lies in getting the same words in the same order. A title may still give a plausible account of the section when its phrasing differs from the book’s wording.

Exact title matches on the algorithms textbook’s held-out subtrees The hierarchical discriminative method gives the most exact matches, and exact matches remain uncommon.

**The numbers**

| System or setting | Full match % |
| --- | --- |
| Hierarchical discriminative (HD) (this paper) | 13.5 |
| Flat discriminative (FD) | 13.1 |
| Keyword | 6.3 |
| Hierarchical generative (HG) | 5.8 |
| Flat generative (FG) | 4.1 |

#### What the judges preferred

In the direct comparison of the two discriminative methods, judges rank HD better in 68 cases and worse in 32. There are 49 equal rankings. The paper reports p ≤ 0.0002 for the advantage of HD over FD under the Sign test. The comparison is useful because the local source of candidates is shared. The judges’ preference indicates that changing the selection among those candidates can help an individual heading represent its section, as assessed by readers familiar with the subject.

The reference headings win more often. In the comparison of reference with HD, the reference is better in 115 cases, worse in 13 and equal in 22. For reference against FD, the corresponding counts are 123 better, 7 worse and 20 equal. These are the paper’s pairwise counts, which describe the direction of each comparison. They show that the gain from the hierarchy occurs within a setting where the judgments still generally favor the textbook’s headings.

The qualitative results also include repetition. The paper reports that 40% of the keyword method’s titles are repeated more than once in the table of contents. It gives 5.5% as the duplicate share for the proposed method and 9% for the reference table of contents. Some textbook labels recur because they serve common roles. The duplicate statistic describes a property of the output, while the overlap and judgment results give separate evidence about how well the entries serve as titles for particular sections.

### What the ablations show

#### Add the hierarchy to the same local generator

The paper’s main controlled comparison removes the global stage. FD chooses titles using evidence about each segment, and HD uses the candidates from that same local procedure to compose an outline. This holds the source of candidate wording in common. Additional words or newly generated phrases at the global stage cannot account for the gain. Its effect comes through selecting from locally generated possibilities using structural features and local rank.

The comparison shows that the globally chosen titles tend to be better in two different assessments. They are closer to the textbook headings under the reported ROUGE measures, and they tend to be preferred when judges evaluate representation of a segment. The agreement of those assessments matters because they have different sources of error. An overlap measure can favor a title that happens to use the book’s words. Judges can recognize when another expression conveys the subject, but they apply an individual judgment of what best represents it. The direction of the comparison is the same across both.

The authors report that reranking changes 30% of the test titles. The qualitative examples also show many shared titles between the two methods. The change rate gives a sense of how extensively the second stage acts on the result. An outline can preserve a strong local choice where the surrounding headings give little reason to change it. A different candidate can become more attractive when the local favorite would duplicate a neighboring heading or fit less well with other entries. The reported rate measures changes in choices. The separate evaluations provide the evidence about their quality.

That distinction is important when reading the human comparisons. A difference in wording can be meaningful to the search procedure and still receive an equal rank from a reader. A reader may also prefer the locally chosen title in some cases. The observed wins, losses and ties are consistent with a reranker that sometimes finds a better heading and sometimes gives up a useful local preference. The experiment identifies the direction of the overall effect under its evaluation criteria.

#### Change the source of candidate titles

The comparison of HG with FG repeats the idea of adding structural selection with a different local candidate generator. The noisy-channel procedure by itself trails the version that feeds its ranked headings into the global stage on the reported reference measures. This shows that the second stage can improve these candidates as well. Its operation does not require the local candidates to have been produced by the particular feature set and training procedure used by FD.

The comparison also shows why a two-stage system should be evaluated through both stages. HG still scores below FD on the reference measures. The global stage can only make a different selection where a suitable choice is available. The local stages also differ in how they rank their choices, and rank itself becomes evidence for the global scorer. The results are compatible with differences in candidate quality, differences in the useful information carried by local rank, or both. The paper does not measure those contributions separately.

The distinction between local generation and global selection clarifies what HD’s overall lead means. The experiment tests a combination in which candidate construction yields headings that can already do well on their own, then uses the tree to adjust the decision. The results for HG provide a check on the usefulness of the second part of that combination. They also illustrate that the strength of the pool of alternatives remains consequential when a hierarchy is available.

#### Inspect the redundancy without assigning it to one feature

The duplicate analysis gives a concrete example of a failure mode that a global stage can address. A highly ranked keyword can name a subject discussed across several segments. Applying the same keyword rule repeatedly can give those segments the same label even when they treat different parts of the subject. A tree-aware choice can consider some of those labels together and give priority to alternatives that reveal the distinctions.

Repetition can also have a legitimate purpose. A writer can reuse a conventional heading for sections with comparable functions, and the book does so. Parallelism is especially informative when entries communicate both their common function and the subject unique to each section. The system’s features distinguish exact repetition from some forms of shared wording. The lower duplicate share is therefore evidence of a changed tendency in the output. A direct comparison of tree-based decisions would be needed to tell which avoided repetitions make an outline easier to use.

The paper gives illustrative examples of local and global features and compares complete systems. It does not remove each feature family in turn. The experiments support the structural selection procedure as a whole. They do not establish how much of the gain comes from checking parents, checking siblings, detecting parallel phrasing, or carrying local rank forward. They likewise do not isolate the contribution of the collocation, word sequence or part-of-speech features on the local side. The most precise attribution available is to the addition of global selection over a shared set of locally generated candidates.

### Limitations

#### Limits identified by the authors

The authors explicitly narrow the task to heading generation for a supplied hierarchy. Their experiments take the text divisions from the book. They suggest segmentation as a possible source of divisions in other settings. This leaves unanswered how the title generator would respond if boundaries were misplaced, several topics were merged, or an automatically supplied tree grouped sections differently from a human author. Providing the reference title length also removes a choice that an application would otherwise have to make.

The authors acknowledge that splitting the main outline into subtrees removes relationships that span the book’s larger structure. The remaining trees still provide the kinds of dependencies used in the study. A duplicate heading or a useful contrast across branches can matter to someone navigating a book, though, and those links are outside a search over each branch in isolation. The evidence concerns tree-structured portions of the book. A search over an entire book could present different choices and different search demands.

The linguistic features are limited by the source material. The authors say that statistical [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) was too inaccurate on their corpus to support more sophisticated syntactic features. They instead rely on simpler grammatical information and positional comparisons in titles. That can give evidence for regular phrasing, especially where a familiar construction recurs near the leaves of a tree. The paper’s intended future work on slide generation would face more variable and complex phrasing, and the authors describe stronger syntactic treatment as something to investigate for that task.

The authors also identify the limits of their automatic evaluation. Different wording can express related subject matter, and overlap measures can miss a relationship between a specific name and a descriptive phrase. Human assessment addresses that concern for the judged segments. The reference counts in that assessment show that the human-authored headings still have an advantage even when a title is judged by its representativeness. This makes the useful distinction between recovering reference wording and conveying the topic visible in the results.

#### Limits that follow from the experimental setup

The textbook provides the only domain for the evaluation. Training and test trees are drawn from different branches of that book, so they can share terminology, conventions for section titles and ways of presenting technical material. Repeated random splits give a view of how the methods compare when the held-out branches change. They provide no evidence about accuracy on a different textbook, a long report or a transcript. Those other settings form part of the motivation for the task, and their evaluation remains open.

There is also a gap between judging how well headings identify their sections and observing whether readers navigate successfully. Judges see segment text and choose among proposed labels. They may use other parts of the book for context, and the candidates’ identities are hidden. An actual navigation task would ask a reader to start with the outline and find material, or to infer the organization of topics before reading the relevant sections. The paper’s evidence for a better outline is indirect with respect to those activities. It measures overlap, representativeness, and some properties of the resulting headings.

Candidate availability restricts what the method can learn and produce. Ordinary local generation can use the words in the segment, arranged into possible titles. A useful term absent from a segment cannot be introduced by that search. A good candidate can also disappear when an intermediate prefix is pruned or when its final local rank puts it outside the choices passed to the second stage. The global training targets are chosen by content-word overlap with the reference, which makes them attainable but can leave a semantically acceptable expression unchosen. The reported comparisons do not identify how frequently these restrictions determine a failure.

Both searches keep a limited set of partial structures. That is how the method can account for dependencies without exhaustively considering the possible outputs. It also limits how fully a later decision can recover from an early one. Once all surviving outlines give a node the same heading, evidence encountered later in the traversal can no longer bring back a discarded option for that node. The paper demonstrates the quality of the resulting procedure on its test splits. It offers no guarantee that beam search will find the highest-scoring possible table of contents.

Finally, the evaluation combines several desirable properties of the output without fully measuring their interactions. A frequent textbook heading can appropriately recur. An unusual heading can make two neighboring topics easier to distinguish but still score poorly against the reference. A phrase can be structurally parallel to its siblings yet need more precise local wording. The reported comparisons show that choosing titles together improves the measured outcome for this corpus. They leave open which relationships matter most for particular types of sections and what balance a reader would prefer in an unfamiliar document.

### What came after

The authors themselves proposed exploring slide generation. Slides present a related problem because their short phrases can form a hierarchy and their interpretation can depend on surrounding entries. The authors expected more linguistic variability than they had encountered in tables of contents, which is why they pointed towards stronger methods that use syntax. The paper presents this as a direction for future work. Its experiments concern textbook headings.

A later citation appears in *Exploring Content Models for Multi-Document Summarization*. That work’s title places its question at the level of organizing content for a summary of multiple documents. The table-of-contents paper offers a related example of structured summarization in a single document. In its setting, the divisions and their relationships are already given, and the system uses them to choose how each division is represented in a short heading. Both subjects invite a question about what can be gained by treating the parts of a summary as related decisions. The citation establishes that the later work refers to the table-of-contents study. The specific method or result it draws from that study is unspecified. [Exploring Content Models for Multi-Document Summarization](https://md.research.elamur.ai/free/en/papers/haghighi-2009-exploring-content-models-multi-document/)

## Cite

Cite as S. R. K. Branavan, Pawan Deshpande and Regina Barzilay. 2007. Generating a Table-of-Contents. Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics.

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

```bibtex
@inproceedings{branavan2007generating,
  title = {{Generating a Table-of-Contents}},
  author = {S. R. K. Branavan, Pawan Deshpande and Regina Barzilay},
  booktitle = {Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics},
  year = {2007},
  url = {https://aclanthology.org/P07-1069/}
}
```

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