---
title: "Hierarchical Recurrent Neural Network for Document Modeling"
description: "How a hierarchical recurrent network uses earlier sentences to predict words, recognize coherent document order, and rerank translations."
canonical: "https://research.elamur.ai/free/en/papers/lin-2015-hierarchical-recurrent-neural-network-document/"
---
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/lin-2015-hierarchical-recurrent-neural-network-document/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Hierarchical Recurrent Neural Network for Document Modeling

# Hierarchical Recurrent Neural Network for Document Modeling

Paper · 2015 · Rui Lin, Shujie Liu, Muyun Yang et al.

**Authors:** [Rui Lin](https://md.research.elamur.ai/free/en/authors/rui-lin/), [Shujie Liu](https://md.research.elamur.ai/free/en/authors/shujie-liu/), [Muyun Yang](https://md.research.elamur.ai/free/en/authors/muyun-yang/), [Mu Li](https://md.research.elamur.ai/free/en/authors/mu-li/), [Ming Zhou](https://md.research.elamur.ai/free/en/authors/ming-zhou/) and [Sheng Li](https://md.research.elamur.ai/free/en/authors/sheng-li/) · **Year:** 2015 · **Venue:** Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**153** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2251849926) · [Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing](https://aclanthology.org/volumes/D15-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/D15-1106/)
- [PDF](https://aclanthology.org/D15-1106.pdf)
- [DOI 10.18653/v1/d15-1106](https://doi.org/10.18653/v1/d15-1106)
- [OpenAlex](https://openalex.org/W2251849926)

Citations: OpenAlex, 2026-10-14.

## Summary

A sentence can be fluent on its own and still be a poor continuation of the passage before it. The previous sentences may establish a topic, introduce an expression that recurs, or set up a contrast the next sentence completes. Rui Lin and colleagues ask whether a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/), a system that assigns probabilities to sequences of words, can use that earlier material without treating a whole document as a single uninterrupted string. Their approach gives the network a separate way to keep track of sentences it has finished reading.

The architecture has a sentence-level recurrence and a word-level recurrence. The sentence-level network reads each completed sentence as a bag of words, a representation that retains its vocabulary while discarding its internal order. It updates a running history and learns to predict which words are likely to occur in the following sentence. The word-level network reads the current sentence in order. At each word, it combines its own history with the sentence-level state from the preceding boundary. The authors train the sentence predictor first, then use its state to train the word predictor while keeping the sentence predictor’s parameters fixed.

The paper tests what this arrangement captures at both levels. On a sentence-ordering task using 37 English documents from IWSLT 2014, the sentence-level scorer chose the original order over randomly shuffled versions with 95.68% accuracy. The recursive and maximum entropy baselines scored 91.39% and 91.89%, respectively. On held-out English documents from the same evaluation setting, word-level perplexity was 174 for the hierarchical system and 183 for the conventional recurrent baseline. Lower perplexity means the system assigned higher probability, on average, to the words that actually followed.

The authors also used the hierarchy to rerank Chinese-to-English translations. A decoder supplied candidate translations for each sentence, and the reranker chose among them using the English sentences it had already selected. The reranked output scored higher than the authors’ decoder alone on the [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/) in each reported test split. The experiments show that a history trained to anticipate the vocabulary of upcoming sentences can help both word prediction and translation selection. They leave open how much of the gain comes from distant sentences, immediate lexical continuity, or particular relationships such as parallelism.

## Deep dive: Hierarchical Recurrent Neural Network for Document Modeling

How a hierarchical recurrent network uses earlier sentences to predict words, recognize coherent document order, and rerank translations. · 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

#### Why a sentence boundary matters

A word predictor has to decide what information to carry forward. Inside a sentence, the words just read can narrow down what follows. Across sentences, the signals can be different. A writer may continue discussing the same subject using a new sentence structure. An expression in the next sentence may echo one near the beginning of the preceding sentence, with many intervening words. The boundary marks a change in the unit being written, while much of the subject matter continues through it.

That difference matters for two related questions. One is whether earlier sentences can improve predictions about the words in the current sentence. The other is whether the sequence of sentences itself looks coherent. For the latter, consider a document whose sentences have been shuffled. Each sentence can remain grammatical, and the document as a whole still contains the same words. What changes is the succession of contexts in which those sentences appear. A document scorer has to respond to that succession to prefer the original.

The paper treats getting words right and getting sentence order right as complementary tests. A system can plausibly anticipate the topic of a sentence and still be uncertain about how the sentence is worded. Conversely, a system can be good at predicting words from the beginning of the current sentence while having little basis for preferring one order of complete sentences over another. The authors’ design lets evidence from earlier sentences affect individual word predictions while retaining a separate output that can score the sentence sequence.

The practical motivation comes from [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). A decoder working sentence by sentence may have several reasonable renderings for a source sentence. The preceding choices can influence which rendering fits the document. A repeated construction, for example, can read more naturally when the translation presents it in a parallel form. The authors investigate whether the English target history provides enough information to change which candidate is selected.

#### How earlier systems represented history

The paper places its design in a line of work on what a word predictor can remember. A classical [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) predictor bases its estimate on a bounded sequence of preceding words. The feedforward design in [A Neural Probabilistic Language Model](https://md.research.elamur.ai/free/en/papers/bengio-2003-neural-probabilistic-language-model/) also uses a limited input history. Such a design has a clear range of directly visible context. In the sentence-based setup discussed by the paper, information from earlier sentences falls outside that context.

The recurrent word predictor discussed by the authors reads one word at a time and updates a vector of numbers called a hidden state. That state becomes an input to the next update, allowing earlier words to influence later predictions through a chain of updates. The paper recognizes that the same mechanism could, in principle, continue across a sentence boundary. Its concern is that information can decay as the chain gets longer. Carrying the state across a document exposes it to a longer history, while the influence of a particular early word still has to survive every intervening update.

A sentence-level recurrence changes the rate at which that chain advances. It makes one update per completed sentence, so a sentence affects the next sentence’s context directly through a state update. The price is that the information supplied at each update is already compressed. The paper’s design therefore poses a specific question about representation. Can a network get useful document context from the words present in earlier sentences, even when it receives those words without their ordering?

The related work on topic context provides one answer to a similar question. Mikolov and Zweig, as described by the paper, supplied a recurrent word predictor with a probability distribution over topics inferred from a block of preceding text. Their topic system was trained using Penn Treebank material arranged in blocks of about 10 sentences. The authors report that this approach improved perplexity over the recurrent baseline in that setting. The historical signal is a summary of topics. In Lin and colleagues’ proposal, the historical signal is a recurrent state learned from the changing vocabulary of sentences in their presented order.

The paper also relates its approach to [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), learned vectors that represent words, and to [Distributed Representations of Sentences and Documents](https://md.research.elamur.ai/free/en/papers/le-2014-distributed-representations-sentences-documents/). In its account, the paragraph-vector approach associates a learned vector with a paragraph identifier. The hierarchical system constructs its sentence state from the words supplied for the current sentence and the state carried forward from the preceding one. A sentence’s contribution thus depends on its contents, and the state produced after reading it can also depend on where it occurs. Two occurrences of the same sentence can lead to different states if their earlier histories differ.

#### How earlier systems scored coherence and translation

The paper discusses the work of Li and Hovy on scoring coherence in essays. Their approach builds distributed representations of sentences from pretrained word vectors and examines recurrent and recursive ways to compose them. A classifier then looks at a moving window of sentence representations to judge coherence. A sentence representation can in principle preserve internal structure that Lin and colleagues’ bag of words deliberately leaves out. The two approaches ask different things of that representation. The earlier classifier uses it to score a span of sentences, while the sentence-level recurrence uses it to bring the whole preceding sequence into an estimate of the next sentence’s vocabulary.

The ordering evaluation follows [Modeling Local Coherence](https://md.research.elamur.ai/free/en/papers/barzilay-2008-modeling-local-coherence-entity-based/). The evaluation principle is to compare a real document with a version that contains the same sentences in a different order. In this paper, the quantity used to make that choice comes from the next-sentence prediction objective. The prediction learned during training and the evidence used at evaluation are thus closely connected. A sentence is favored in a position when its words receive high probability from the history before that position.

The authors also describe an earlier recurrent approach to contextual domain classification in spoken language understanding. In that system, a preceding output distribution is fed into the next input as extra evidence for classification. The shared concern is how to supply context to a neural predictor. The document hierarchy uses a hidden sentence state to influence the distribution over upcoming words, and it evaluates the resulting preferences on sentence order as well as word prediction.

For statistical translation, the related work reviewed in the paper puts neural methods at several stages. One approach uses bilingual word representations for alignment, the task of identifying corresponding words across languages. Another uses a recursive recurrent architecture in decoding, where a translation is assembled. The paper also discusses [Learning Phrase Representations using RNN Encoder–Decoder](https://md.research.elamur.ai/free/en/papers/cho-2014-learning-phrase-representations-rnn-encoder/) as an example of a joint recurrent design operating at the level of sentences in translation. The opening the authors identify is the use of neural context across sentences in a document. Their translation experiment intervenes after a decoder has produced candidate sentences, at the point where a choice among those candidates can use the surrounding document.

### The method, step by step

#### Reading at two speeds

Imagine the system at the start of a new sentence. It has a state that summarizes what it has read up to the end of the preceding sentence. As it moves through the new sentence, it keeps that sentence-level state available and builds a separate history of the words it has encountered in the current sentence. The word predictor uses both histories. Once the current sentence is complete, the sentence-level network reads its bag of words and updates the state that will be available during the following sentence.

The timing determines what the system can legitimately know. The current sentence’s complete bag of words enters the sentence recurrence after the sentence has been read. While the word predictor is scoring a continuation within that sentence, the state it receives from above summarizes preceding sentences. Within the current sentence, the word predictor gets the words that have already been reached. A later word in the same sentence is therefore not supplied in advance through the sentence-level connection.

The sentence-level network also has an output of its own. After it has read a sentence, it assigns probabilities to vocabulary items that could occur in the next sentence. Those probabilities allow the system to score a completed candidate sentence as a bag. The hidden state that produces them has a separate use as input to the word predictor. The distinction is important because the word predictor receives the hidden state itself, with whatever distinctions it retains, rather than a list of mandatory words obtained from the sentence-level output.

How sentence history reaches word prediction The steps in order.

#### From document probability to word predictions

The authors begin by writing the probability of a document as a chain of conditional sentence probabilities. Each term asks how likely the sentence at that position is given the sentences that came before it.

```
p(D) = p(S₁, S₂, …, Sₙ) = ∏ₖ₌₁ᴺ p(Sₖ | S₁, …, Sₖ₋₁)
```

Here `D` is the document, `p` denotes probability, and `Sₖ` is the sentence at position `k`. `N` is the number of sentences, with `Sₙ` denoting the sentence at the final position in the joint expression. The product sign `∏` means to multiply the factors as `k` runs from `1` to `N`. The vertical bar means “given,” commas separate sentences, and the ellipsis stands for intervening positions. At the first position the preceding list is empty, so its factor is the probability of the first sentence by itself.

This is a probability identity. It specifies which conditionals would be needed to score a document and leaves open how a network estimates them. It also explains why ordering can matter even when every sentence is unchanged. Moving a sentence changes the history in its own factor. It can also change the history used to score sentences that follow.

The paper expands each sentence probability in the same way, now revealing the sequence of predictions inside the sentence.

```
p(Sₖ | S₁, …, Sₖ₋₁) = ∏ₜ₌₁ᵀ p(wₜ | w₁, …, wₜ₋₁, S₁, …, Sₖ₋₁)
```

`Sₖ` is the sentence being scored and the earlier `S` terms give its document context. `T` is the number of words in `Sₖ`, `t` is a word position, and `wₜ` is the word there. The product multiplies a factor for each position from `1` to `T`. In each factor, the words before `wₜ` and the sentences before `Sₖ` appear after the conditioning bar. The ellipses stand for intervening words or sentences. On the first word, only the sentence context is available on that side of the bar.

In this expression, the full history is written out. The network cannot simply store the list in that form and have it serve as a learned prediction. It needs a way to turn earlier sentences into a usable input and a way to carry information from the current word sequence. The hierarchy separates those responsibilities according to the units in the two probability chains.

The paper introduces the separation with an approximation. It describes an unordered choice of words for a sentence followed by a choice of how to put those words in sequence.

```
p(Sₖ | S₁, …, Sₖ₋₁) ≈ p(BoW(Sₖ) | BoW(S₁), …, BoW(Sₖ₋₁)) · p(Sₖ | BoW(Sₖ))
```

`BoW(Sₖ)` is the bag-of-words representation of sentence `Sₖ`, and the earlier `BoW` terms are the corresponding representations of the preceding sentences. `p` again denotes probability. The vertical bar indicates the information each term conditions on, `·` multiplies the terms, and `≈` marks the expression as the approximation the authors introduce. The first factor describes which words appear given the preceding bags. The second describes the ordered sentence given its own bag.

This decomposition motivates the roles of the two recurrences. The implemented hierarchy uses a particular connection between them. It learns the sentence-level state by predicting the next bag, then makes that state available to the word network. The word update itself contains no input for the complete bag of the current sentence. Accordingly, the decomposition describes the two prediction problems that motivate the architecture. It should be read alongside the actual state update when deciding exactly what information is available at a word position.

#### Updating the sentence history

The sentence-level recurrent network, called RNNSLM in the paper, begins with a state representing the history up to the current sentence. It makes a new state by separately transforming the old state and the current bag of words, adding those transformed vectors, and applying a nonlinear function. The matrix for the old state can learn how previous information should affect the update. The matrix for the input can learn which components of the sentence matter to that update.

```
hˢⱼ = f(Uˢ · hˢⱼ₋₁ + Wˢ · xˢⱼ)
```

The superscript `s` marks quantities belonging to the sentence-level network, and `j` is the current sentence position. `xˢⱼ` is the input representation of that sentence. `hˢⱼ₋₁` is the hidden state before consuming it and `hˢⱼ` is the resulting state. `Uˢ` is the learned matrix applied to the old hidden state, while `Wˢ` is the learned matrix applied to the sentence representation. Here `·` is matrix–vector multiplication, `+` adds the resulting vectors component by component, and `f` is the activation applied to their sum.

The authors use hard tanh for this activation. It preserves values in the middle of its range and caps values outside that range. This lets the same state coordinate respond proportionally to small inputs while keeping its output bounded when the combined input becomes large.

```
f(zⱼ) = { −1 if zⱼ < −1; zⱼ if −1 ≤ zⱼ ≤ 1; 1 if zⱼ > 1 }
```

In this formula, `zⱼ` is a coordinate of the vector fed into the activation. The subscript `j` here labels a coordinate, independently of its use as a sentence index in the state update. The braces collect the cases, and the inequalities select the case for the coordinate’s value. Values below `−1` produce `−1`, values above `1` produce `1`, and the middle branch returns `zⱼ` itself. The endpoint values agree with the adjacent capped branches.

The state can now be turned into a prediction for the next sentence. The network transforms it into vocabulary scores, one for each possible output word. A softmax then converts the scores into a distribution over the vocabulary.

```
yˢⱼ₊₁ = g(Vˢ · hˢⱼ)
```

`yˢⱼ₊₁` is the resulting prediction vector for the sentence after position `j`. `hˢⱼ` is the updated history after reading sentence `j`. `Vˢ` is the learned output matrix, and `·` denotes its multiplication by the state vector. `g` is the softmax function. The output vector has one entry for each vocabulary item. The superscript `s` continues to mark the sentence-level path.

```
g(z)ⱼ = e^(zⱼ) / ∑ₖ e^(zₖ)
```

`z` is the vector of vocabulary scores before normalization. `zⱼ` is the coordinate for the output entry of interest, while `zₖ` runs through the coordinates of the same vector. `e` is the base of the natural exponential, and the caret and parentheses indicate exponentiation by the coordinate value. The sum sign adds the exponentials over the vocabulary. Dividing the exponential for `j` by this sum makes its output a probability within the resulting distribution.

A sentence-level prediction of this kind gives a word a high or low score without assigning it a place in the next sentence. If the next sentence contains several words, the training objective can look up all of them against the same distribution. There is no sequence of word-by-word state changes on this output path. The word recurrence in the hierarchy is what supplies that finer sequence of updates.

#### Adding direct evidence from the adjacent sentence

The sentence recurrence has to compress the history into a fixed-size vector. The authors give the output an additional source of evidence for a more local pattern. A word in the sentence just read may be associated with a particular word in the next sentence. Their direct features allow such a pair to affect the next-sentence prediction without passing through the hidden state.

The features are bigram-like in the sense that they use a pair of words. The pairing here spans adjacent sentences. It does not require a word to be last in one sentence and the other to be first in the next. For a given next-sentence vocabulary item, the system can add contributions from several words in the completed sentence. The completed sentence is represented without sequence order, so the feature asks which words were present rather than where they occurred.

```
yˢⱼ₊₁(t) = g(Vˢ(t) · hˢⱼ + ∑_{w ∈ xˢⱼ} D[hash(w, t)])
```

`t` indexes a candidate vocabulary item, `yˢⱼ₊₁(t)` is its probability, and `Vˢ(t)` is the corresponding row of the output matrix. The dot product `Vˢ(t) · hˢⱼ` scores that item from the sentence state. In the sum, `w` ranges over input words in `xˢⱼ`, as indicated by `∈`. `hash(w, t)` maps a pair consisting of an input word and the candidate output item to an address in the fixed-length feature array `D`. The square brackets select the weight stored at that address. The plus sign combines the recurrent score with the direct contributions. `g` normalizes these combined scores across output items, yielding the entry for `t`.

Hashing fixes how much storage the direct connections need. A different address need not be allocated for every possible input and output pair. As a result, pairs can share an address. The paper’s purpose in using the array is to limit the memory needed for the features. Their role in the scoring function is to give the adjacent sentence its own route to the output, alongside the state that can carry information from earlier sentences.

That route and the state have different jobs in the full architecture. The extra sentence-level feature weights affect the training predictions, helping determine what the sentence network learns. The connection sent to the word-level network is still the hidden state. The paper separately adds a bigram hash feature to the hierarchical word predictor. It describes that feature by analogy to the sentence-level one, while giving the full feature equation for the sentence output.

#### Training the sentence predictor

In sentence-level training, a document supplies the ordered history, and the words of the next sentence supply the target. The network evaluates the log probability of each target word from the same history. It averages those log probabilities across the target sentence, giving the bag a lexical prediction score on a per-word scale.

```
log p(BoW(Sₖ) | BoW(S₁), …, BoW(Sₖ₋₁)) = (1/T) ∑ₜ₌₁ᵀ log p(wₜ | BoW(S₁), …, BoW(Sₖ₋₁))
```

`log` is the logarithm and `p` is the probability assigned by the sentence predictor. `Sₖ` is the target sentence, `BoW` denotes its bag of words or the bag of an earlier sentence, and the conditioning bar places the preceding bags on the history side. `wₜ` is the target word at position `t`, `T` is the number of words in that sentence, and the sum runs from the first word through position `T`. The factor `1/T` turns that sum into an average. The word index lets the authors enumerate the target words. The distribution used to score them comes from the same sentence history at every target position.

This scoring rule matters to the interpretation of the ordering experiment. The notation on its left calls the quantity a log probability of the bag. The right side specifies the quantity that is calculated, an average of vocabulary log probabilities. Each term rewards the system for anticipating a word found in the next sentence. The equation makes no separate prediction of the sentence length and gives no separate weight to a particular arrangement of its words.

The authors initialize the sentence input and recurrent matrices by drawing their entries uniformly from bounds set by the reciprocal of the input layer size. They use bounds set by the reciprocal of the hidden layer size for the output matrix.

```
Uˢ and Wˢ entries are drawn from Uniform[−1/K₁, 1/K₁]
```

`Uˢ` and `Wˢ` are the recurrent and sentence input matrices. `Uniform` means that the draw uses a uniform distribution on the interval in square brackets, and `K₁` denotes the input layer size. The reciprocals supply the interval endpoints, with a minus sign on the lower endpoint.

```
Vˢ entries are drawn from Uniform[−1/K₂, 1/K₂]
```

`Vˢ` is the sentence output matrix, and `K₂` is the size of the hidden layer. `Uniform` and the square brackets again specify a uniform draw on the indicated interval. Here the magnitude of both bounds is the reciprocal of the hidden layer size.

The hash weights in `D` begin at `0`, so they contribute nothing to the output before learning. For the initial sentence state `hˢ₀`, the paper gives a vector whose entries can all be set to `0.1`. The subscript `0` identifies the state before the network consumes the first sentence. From there, the history comes from recurrent updates driven by the sentences in the document.

The starting learning rate is `0.1`. The learning rate controls the size of parameter updates during training. After an epoch, a pass through the training data, the schedule keeps the rate when loss has fallen sufficiently and halves it if loss rises. The paper describes sentence-level training as ending after about 30 epochs. It applies the schedule again for the hierarchical stage, where a different set of parameters is being updated.

#### Giving the word network its document context

The ordinary word-level recurrence uses the current word and the previous word state to predict a continuation. To make that prediction depend on the document, the authors add a transformed sentence state to the word update. All positions inside the current sentence can access the state from the boundary before that sentence. The word state still changes at every step.

```
hʷᵢ = f(Uʷ · hʷᵢ₋₁ + Wʷ · xʷᵢ + Uˢʷ · hˢⱼ₋₁)
```

The superscript `w` marks the word-level quantities, and `i` is the current word position. `xʷᵢ` represents the word being read there. `hʷᵢ₋₁` is the previous word state and `hʷᵢ` is the updated state used to predict the following word. `Uʷ` transforms the previous word state, and `Wʷ` transforms the current word input. `Uˢʷ` is the learned matrix connecting the sentence state to the word network. `hˢⱼ₋₁` is the sentence history before the current sentence `j`. Each `·` denotes a matrix–vector product, the plus signs add the transformed vectors, and `f` applies hard tanh.

Putting the sentence contribution inside the word-state update has a concrete consequence. The earlier document can affect the state used for the current prediction, and that word state in turn becomes an input to the following word update. The sentence state also enters that next update directly. The network can therefore learn to use the same broad context differently as the local prefix grows. At the start of a sentence, the document history is available when relatively little local text has been seen. Later, the local word state can supply more specific evidence about how the sentence is unfolding.

The paper describes the resulting system as HRNNLM, short for hierarchical recurrent neural network language model. Both parts are recurrent, and they advance at different rates. The history shared with the word predictor reflects an ordered sequence of previous sentence bags. Their internal word orders were omitted by the sentence network, but the order in which those bags were consumed still affects its state. Within a sentence, the word recurrence can track word order directly.

#### Why training is staged

The authors consider a joint objective that would train both networks from scratch. Their concern is that the developing sentence state would then be a moving input for the word predictor. Early in training, a change in the sentence network could change the context vector for the same document prefix. The word network would be learning to use that vector while its representation was still changing. The paper presents this as a difficulty for convergence.

The procedure specified in the training section first fits RNNSLM to the next-sentence objective until convergence. The authors then attach its hidden state to the word network and train the newly initialized parameters, including the connection between the two. They keep all RNNSLM parameters fixed during this stage to speed training. A frozen sentence network continues to produce different states for different document histories. What remains fixed is the learned transformation that takes a history to its state.

The introduction describes the connected stage as joint training. The detailed procedure explicitly freezes the sentence network and reserves updating it through the sentence-history gradient as a possible extension. That distinction affects how to interpret the reported system. The word objective learns which directions in the sentence state are useful to it, through the connecting weights. The sentence representation itself was learned for anticipating the next sentence’s words.

### Experiments and results

#### Picking the original sentence order

English data drawn from the IWSLT 2014 task on spoken language translation serves as the basis for the sentence-ordering experiment. The authors identify 1,414 English documents in the parallel corpus used for training and validation. They assign 90% of those documents to training and reserve the remainder for validation. For the ordering test, they use tst2010, tst2011, and tst2012, which together contain 37 English documents. The sentence-level hidden layer is set to size 30, and the feature array has size 10⁷.

For each test document, the authors generate 20 random permutations of its sentences. They pair each permutation separately with the original. Thus the task is to rank the original above a given shuffled version. A system can get some pairs right and others wrong for the same document. Accuracy reports the proportion of pairs on which its score favors the original order.

The candidate documents contain the same sentences, so they contain the same sentence-level bags and the same overall vocabulary. They differ in which history precedes each sentence and in which words are available through features for neighboring sentences. The proposed system scores each document through its sentence-level prediction, taking document log probability as the coherence score. A higher score is interpreted as evidence that a document is the original member of the pair.

There are two comparison systems. The authors implement the recursive coherence approach of Li and Hovy and train and test it on their own data. The other baseline is a maximum entropy classifier using bag-of-words features from adjacent sentences. It assigns a coherence probability to each adjacent pair, and its document score adds the log probabilities of those pairs. That baseline can already exploit local lexical compatibility. Its presence makes the ordered-document result more informative than a comparison to a method with no access to neighboring sentence content.

Original-order identification accuracy on IWSLT 2014 English test documents The hierarchical system's sentence-level scorer identifies the original order more often than either baseline.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Recursive coherence system | 91.39 |
| Maximum entropy system | 91.89 |
| Proposed sentence-level scorer (this paper) | 95.68 |

The recursive baseline reaches 91.39% pairwise accuracy, and the maximum entropy baseline reaches 91.89%. The proposed sentence-level scorer reaches 95.68%. The result establishes that, on these English test documents and these sampled permutations, the proposed scoring function is more successful at recovering the original order in a pairwise choice. It also shows that local information is already a strong signal in this setup. The maximum entropy baseline can succeed on many pairs using its assessments of adjacent sentences.

A helpful way to understand the result is to follow a sentence as it moves to a new position. Its words may still be typical of the document’s overall subject. The preceding sentence, however, may now be a poor cue for them. The accumulated state may also reflect a different progression through that subject. Both changes can lower its score. The experiment is sensitive to these effects together, since the permutation modifies the neighbors as well as the longer prefix.

#### Predicting words on held-out documents

The word-level evaluation stays with the English side of the IWSLT 2014 data. The paper reports training on 90% of the 1,414 documents, with about 3M words in that training material. It evaluates perplexity on held-out documents containing about 370K words. The comparison is between the conventional RNNLM-30 and the hierarchical HRNNLM-30. The authors match the hidden layer size and hash array size for the comparison.

Perplexity summarizes how much probability a predictor assigns to the word tokens actually observed. It decreases as the average log probability assigned to those observations improves. A system can improve perplexity by raising the probability of the observed word even where some other word remains its highest-scoring option. The metric consequently measures the quality of the probability assignments across the text rather than the share of words that would be recovered by always guessing the single most probable one.

Word perplexity on held-out IWSLT 2014 English documents Adding the sentence-history pathway yields lower word perplexity in the matched-size comparison.

**The numbers**

| System or setting | perplexity |
| --- | --- |
| RNNLM-30 | 183 |
| HRNNLM-30 (this paper) | 174 |

The conventional recurrent system records perplexity of 183, and the hierarchical one records 174 on the held-out English documents. In this comparison, using a learned sentence history improves the probability assigned to the observed word sequence. This is evidence at a different level from the ordering accuracy. It concerns the predictor’s behavior at word positions within held-out documents, including cases where a conventional recurrent history already supplies useful local evidence.

The matched settings help identify what the comparison tests. Widening the ordinary recurrent word state or enlarging the feature array would provide other ways to change capacity. The reported contrast keeps those settings the same and changes the architecture available to predict words. The hierarchical system still has the extra sentence network and its learned connection. The experiment therefore estimates the benefit of using that package in the word predictor.

#### Reranking Chinese-to-English translations

The IWSLT 2014 task for translating spoken language serves as the basis for the translation experiment. The parallel training data comprises 1,414 TED talk documents and includes 179k pairs of sentences, roughly 3M words in Chinese, and 3.3M English words. The authors use dev2010 as the development set. The evaluation documents come from tst2010, tst2011, and tst2012. Keeping sentences grouped into documents makes it possible to carry a selected English history from one decision to the next.

The public IWSLT baseline uses the Moses translation toolkit at its default configuration. The authors also build an in-house decoder based on bracketing transduction grammar using a CKY-style decoding procedure. Its lexical reordering component uses maximum entropy. The decoder scores candidate translations using translation probabilities, lexical weights, a word penalty, distortion probabilities, and a [4-gram language model](https://md.research.elamur.ai/free/en/concepts/n-gram/) trained on the English documents. The public baseline provides a comparison with another translation system. The comparison between the authors’ decoder and its reranked output more directly addresses the effect of the document scoring stage.

The decoder generates a 10-best list for each sentence. A reranker assigns new scores to the sentences in those lists and selects among them. The paper describes a linear combination of the decoder’s final score, sentence-level language scores, and the hierarchical word predictor’s score. A linear combination multiplies each feature value by a weight and adds the results. The paper identifies the hierarchical score as the added feature and uses Minimum Error Rate Training to set feature weights.

The first translated sentence supplies the initial English context for the next choice. The reranker scores the candidates for the next sentence using the translation it has already chosen and keeps the highest-scoring one. It moves through the document in that order, so the preceding context available at any step consists of earlier decisions of the same system. The algorithm has access to the candidate list for the current sentence, with the earlier selections serving as a fixed history for the decision at hand.

Translation quality is reported with the IBM version of BLEU-4, using overlap between system output and reference translation. This answers whether the selected translations score better against the references. The score can respond to a change in wording selected with the help of document context, even though it does not directly ask whether the document conveys a particular discourse relation.

Chinese-to-English translation on IWSLT 2014 tst2011 by IBM BLEU-4 Reranking the in-house decoder gives the highest BLEU score on this split.

**The numbers**

| System or setting | BLEU-4 |
| --- | --- |
| Public IWSLT baseline | 13.34 |
| In-house SMT decoder | 15.09 |
| In-house SMT decoder with reranking (this paper) | 15.23 |

On tst2010, the public baseline has BLEU of 11.12, the authors’ decoder has 12.40, and the reranked output has 12.55. On tst2011, their respective scores are 13.34, 15.09, and 15.23. On tst2012, the authors’ decoder scores 13.52 and the reranked output scores 13.70. The paper gives a dash for the public baseline on tst2012. Across the available comparisons with the same in-house decoder, the reranked score is higher on every split.

The authors also count documents whose own BLEU improves over the baseline after reranking. Their formula can be written as follows.

```
(1/N) · #{D : BLEUᵣₑᵣₐₙₖ(D) > BLEUᵦₐₛₑₗᵢₙₑ(D)}
```

`N` is the number of documents in the test split, and `D` ranges over those documents. `BLEUᵣₑᵣₐₙₖ(D)` is the document score for the reranked version and `BLEUᵦₐₛₑₗᵢₙₑ(D)` is the score for the baseline version. The colon introduces the condition defining the set of documents, `>` requires a strict improvement, and `#` counts the members of that set. The factor `1/N` divides the count by the size of the split. Each document contributes equally to that count regardless of how large its score change is.

The proportion of documents with an increase is 72.73% on tst2010, 71.43% on tst2011, and 75% on tst2012. This measurement addresses the spread of the gains. The split-level score can rise even when the improvements are concentrated in a subset of documents. The document count shows that improvements occur in a majority of the documents in each split, while leaving the magnitudes and directions of the other changes open.

The authors illustrate the choice the reranker can make with a passage about the age of ice in icebergs. The preceding sentence refers to some of the ice as relatively young. In the subsequent sentence, the ordinary translation starts with the shorter expression *some ice*. The reranked version uses *some of the ice*, echoing the preceding construction. The authors read this as a case in which the earlier sentence favors parallel phrasing. The example makes the difference between candidate selection and translation generation concrete. The reranker can prefer an available expression on contextual grounds even when both expressions would make sense in isolation.

### What the ablations show

#### The comparisons the paper makes

The paper gives no systematic ablation that removes each component from an otherwise unchanged system, but it does report a matched-setting word-prediction comparison, a sentence-ordering comparison, and translation analyses at the split, document, and example levels.

The word-prediction comparison is the closest to a controlled contrast for the sentence-history pathway. The conventional and hierarchical predictors use the same training setting and match the word hidden layer size and hash array size. The hierarchical predictor gets the added sentence-level state and improves held-out perplexity. The comparison supports the claim that document context can be useful in this architecture. Since the hierarchy also introduces trainable structure beyond the word recurrence, the result does not identify what an equally parameterized word-only predictor would achieve.

The ordering experiment provides a different comparison. The maximum entropy system uses adjacent sentence pairs, while the proposed scorer can combine immediate lexical connections with a recurrent representation of earlier sentences. Its higher pairwise accuracy establishes a performance difference between the complete scoring systems. Several design choices differ at once, including how the scoring function is trained and how it represents the preceding text. The result therefore leaves the incremental contribution of longer history unmeasured.

The recursive baseline raises a related question about what the sentence representation needs to preserve. The proposed scorer does well with bags of words, even though the recursive coherence approach builds a distributed representation from words within sentences. In this evaluation, each permutation preserves the sentences internally. A scorer can therefore succeed using continuity of vocabulary and the order of the sentences themselves. The outcome shows that those cues are effective for distinguishing the supplied permutations. A test that alters the order of words inside otherwise comparable sentences would probe a separate ability.

#### What the analyses can localize

The architecture suggests a distinction between lexical evidence from the adjacent sentence and evidence accumulated over a longer prefix. The direct hashed features explicitly supply the former. The recurrent state can carry both immediate and older evidence. The paper reports the use of the direct connections and remarks on perplexity improvements associated with adding such features, but it gives no quantified comparison that removes the sentence-level hash features in these experiments. Consequently the effect of those connections on ordering accuracy, or on the eventual utility of the frozen sentence state, cannot be read from the reported numbers.

An ordering success can be explained by several patterns that the present test moves together. An original may preserve a strong connection between consecutive sentences. It may keep a wider topic progression intact. It may do both. The maximum entropy baseline’s strong performance indicates that adjacent lexical evidence can already solve much of this test. The extra successes of the hierarchical scorer are compatible with useful longer memory, but the experiment lacks a condition where adjacency is held fixed while earlier context changes. There is also no word-prediction result that supplies only the immediately preceding sentence and compares it with the complete recurrent prefix.

The translation experiment localizes the practical effect more directly. Comparing the authors’ decoder with its reranked output holds the candidate generator in place. The improvement therefore concerns how the system scores and selects candidates from the material the decoder makes available. It says less about which of the reranker’s contextual scores is responsible at an individual sentence. The paper gives no feature removal experiment that measures the contribution of each scoring term with the other terms and the tuning procedure held fixed.

The two translation analyses beyond split-level BLEU address different questions. Counting documents with improved BLEU shows how frequently the reranker makes a difference in the favorable direction. It cannot show how much each document benefits. The ice example shows a possible linguistic reason for a choice, because the selected phrase has a counterpart in the preceding translated sentence. It cannot show how often parallel phrasing caused a gain. Together they connect the aggregate result to the distribution of successes and to a concrete behavior the authors sought, while leaving the frequency of that behavior unmeasured.

### Limitations

#### Limits the authors identify

The sentence-level network sees a bag of words for each completed sentence. The authors acknowledge that this leaves out the sequence within the sentence, and they propose exploring distributed sentence representations as a better input. The distinction matters even with a word network attached. The word recurrence can use the order of words within the sentence that it currently scores. The document context arriving from the sentence network still comes from earlier bags, so it supplies no explicit record of the order those earlier words appeared in.

The authors also identify the instability they expect when training the sentence and word recurrences together from the start. Their staged procedure addresses this by stabilizing the sentence representation before the word predictor learns to use it. They suggest that a future version could use gradients from the different recurrent networks to update their parameters together. The reported experiments do not compare the staged procedure with joint optimization after pretraining. They establish what the frozen-state setup can achieve under the reported conditions.

The authors motivate the hierarchy with the possibility that older information decays in a word-by-word recurrence. Moving part of the history to a sentence-by-sentence state reduces the number of updates through which older sentence information travels. It still places the history in a bounded vector. The paper frames the available history as long, and the meaning of that claim is architectural. A previous sentence has a path to a later state even when it lies outside a fixed window. How much information actually survives on that path remains a question for measurement.

#### Limits of the experiments and their interpretation

The ordering benchmark tests discrimination between original documents and random permutations. A random permutation can break links between many consecutive sentences at once. A more difficult pair might preserve most of those links and change only the placement of a passage whose role is clear much earlier or later in the document. The reported accuracy does not measure performance on such alternatives. Nor does pairwise success show that the system can take an unordered set of sentences and reconstruct the full original order without being given that order as one of the options.

The probability notation is more general than the sentence-level scoring rule it introduces. The recurrent output supplies a normalized distribution over individual vocabulary items. The bag score averages the log probabilities of words from an observed sentence. Taken on its own, that rule does not specify a normalized distribution over all possible bags of different lengths. The ordering evaluation can use it as a comparative score without resolving that generative question. The distinction affects what one can claim about the framework as a document probability model, rather than about its ability to prefer one realized order over another.

The perplexity experiment measures the quality of contextual word probabilities across a held-out collection. It does not show which words improved, whether improvements occur at particular locations within sentences, or how much earlier context those improvements require. Since the baseline lacks the added sentence network, the comparison also leaves an alternative capacity question open. Matching the stated hidden layer and hash array sizes is meaningful, while equalizing the full set of trainable parameters would be a different control. The authors report the held-out scores without uncertainty estimates that would show their variation across training runs or document samples.

The translation decisions have their own dependency on earlier outputs. Once a sentence has been selected, its translation is used as context for the choices that follow. A poor early rendering can therefore change the evidence for later choices. The reported procedure moves forward without revising earlier selections in light of later sentences, so the experiment concerns sequential reranking rather than optimization over all possible combinations of candidates in a document. It also cannot help with a contextual wording that is missing from the decoder’s 10-best list.

BLEU measures agreement with reference wording. The authors’ parallelism example provides a reason to think the reranker can pick a wording sensitive to context, but the automatic metric alone cannot say that an increase was caused by stronger coherence. The paper reports no separate human judgment of document coherence. The fraction of documents with rising BLEU shows how widely the score rises, while neither that fraction nor the split-level score identifies which aspects of document quality changed.

Finally, the evidence comes from a particular collection of spoken-language documents. The ordering and perplexity evaluations use English text in the IWSLT 2014 setting, and the translation task uses Chinese-to-English candidates from the stated decoder. The experiments establish the gains for those conditions. Different document types, translation directions, or candidate generators could offer a different balance between adjacent lexical cues and more distant context. The paper gives no evaluation from which to estimate those transfers.

### What came after

[Discourse-Driven Language Models](https://md.research.elamur.ai/free/en/papers/ji-2016-latent-variable-recurrent-neural-network/) (2016) cites the paper in a line of work that brings discourse into recurrent word prediction. Its title identifies a latent-variable recurrent architecture. A latent variable represents information that the system must infer rather than observe directly in the words. The point of contact is the representation of context beyond the current sentence. Lin and colleagues obtain it by reading completed sentence bags in order and learning a state that predicts upcoming vocabulary. The later title puts latent variables at the center of discourse-driven prediction. The citation establishes the connection between the works, while the title leaves open whether it adopts Lin and colleagues’ recurrence, training schedule, or sentence representation.

This relationship highlights a question already visible in the original experiments. A state trained to anticipate vocabulary can reflect a continuing topic, repeated wording, or other context useful for prediction. The objective does not give those sources of evidence separate names. A discourse-driven predictor with latent variables addresses the broader question of how to represent information about a text’s progression inside a recurrent system. Title and citation support that comparison of aims. They give no basis for attributing a particular mechanism or empirical result to the later paper.

[PaRe](https://md.research.elamur.ai/free/en/papers/anjum-2019-pare-paper-reviewer-matching-approach/) (2019) cites the paper in the context of matching papers with reviewers using a common topic space. The task named in the title is to compare papers and reviewers in terms of topics. The point of contact is the use of a representation that summarizes textual content beyond individual words. The purpose of the representation changes with the decision being made. In the document hierarchy, the sentence state places what has already been read into a form useful for subsequent word prediction. In paper–reviewer matching, a common topic space provides a basis for comparing the items to be matched.

The citation from PaRe establishes a connection to work on representing documents. It does not establish that the matching approach uses a recurrent sentence history or tests the ordering of sentences. The links to the two later works consequently support different comparisons. The discourse-driven work shares the concern with prediction in the presence of wider textual context, while PaRe takes up representation for a matching decision. The results of Lin and colleagues pertain to ordering, word probabilities, and translation reranking, the decisions their sentence history was actually evaluated on.

## Cite

Cite as Rui Lin, Shujie Liu, Muyun Yang, Mu Li, Ming Zhou and Sheng Li. 2015. Hierarchical Recurrent Neural Network for Document Modeling. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing.

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

```bibtex
@inproceedings{lin2015hierarchical,
  title = {{Hierarchical Recurrent Neural Network for Document Modeling}},
  author = {Rui Lin, Shujie Liu, Muyun Yang, Mu Li, Ming Zhou and Sheng Li},
  booktitle = {Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1106},
  url = {https://doi.org/10.18653/v1/d15-1106}
}
```

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