Elamur Research

Consensus Attention-based Neural Networks for Chinese Reading Comprehension

Paper · 2016 · Yiming Cui, Ting Liu, Zhipeng Chen et al.

Summary

A passage can contain the right answer in several places, and different parts of a question can help a reader find it. Cui and colleagues study this problem in cloze-style question answering, where a query contains a blank and the answer is a single word from the accompanying document. They introduce the Consensus Attention Sum Reader, or CAS Reader, which makes a separate pass over the document with the contextual representation of each query position. It combines the resulting patterns of attention and pools the evidence for every occurrence of the same word. The paper also introduces Chinese reading comprehension data from People Daily news and Children’s Fairy Tale, giving researchers a way to test the method across genres and ways of selecting questions.

The method changes how the query guides the search. An earlier reader uses one attention distribution based on the final states of a recurrent query encoder. CAS Reader keeps the intermediate states as well. Each query position can then highlight different parts of the document, with the surrounding query words already taken into account. The authors compare averaging, summing, and taking the maximum of these attention values at each document position. A further normalization turns the merged values into a distribution over positions. Adding the values at positions occupied by the same word gives that word its answer score.

On the public English tests, the version that averages attention reaches 70.0% accuracy on the CNN news test and 65.7% on the Children’s Book Test common-noun test. The earlier Attention Sum Reader scores 69.5% and 63.4% on those tests, respectively. The CNN validation result favors the earlier reader, and the Stanford Attentive Reader reaches 72.4% on the CNN test. On the Chinese data, averaging is the strongest setting on the People Daily test and on the human-selected fairy-tale test, at 68.1% and 35.0% accuracy, respectively. Summing is strongest on the automatically generated fairy-tale test, at 43.0%. Taking the maximum falls below the Attention Sum Reader on every Chinese split reported.

The Chinese experiments reveal a difficulty beyond choosing an attention rule. The reader trains on news, and its accuracy falls when it moves to fairy tales. It falls further on the fairy-tale set where human selection removes easy cases with obvious repetitions around the blank. Those questions still come from sentences in the source documents. The comparison therefore shows how much the genre and the question-selection procedure matter even within the same narrow task of recovering a word from a passage.

Deep dive: Consensus Attention-based Neural Networks for Chinese Reading Comprehension

Consensus attention for Chinese reading comprehension combines evidence from each query word and tests how well readers handle news and fairy tales. · about 33 minutes to read

The problem and its context

Finding a word with the help of a passage

The reader receives a document and a query with a word missing. Its job is to recover that word. The task is called cloze reading comprehension because the answer closes a gap in the query. The paper treats the document as the source of the answer, so the reader can search among words that appear there. This arrangement gives researchers a clear training target and a straightforward way to check each prediction. It also turns a broad question about comprehension into a particular test of how well a system uses a passage to resolve a blank.

Some blanks can be filled from the immediate wording. If the surrounding phrase reappears in the passage with its missing word intact, finding that occurrence can settle the question. Other blanks are harder to resolve from the query alone. A name may be plausible wherever a person is mentioned, for instance, while the activity or relationship described elsewhere in the document points to the intended person. The input and expected answer have exactly the same form in these cases. What differs is the evidence the reader must use.

The distinction matters when an experiment uses evaluation benchmarks built automatically from a corpus. An automated procedure can produce enough examples to train a neural reader, and it can apply the same rules consistently to an entire collection. Those rules also influence the distribution of questions. If they produce many blanks with familiar local wording, test accuracy can reflect how well the reader learns that regularity. The paper cites a study of the CNN and Daily Mail task that questioned how much high-level inference those examples required. The authors take up that concern in their own dataset design by including a test set where human selection removes a particular easy pattern.

How earlier datasets obtained their questions

The paper describes two main sources of English cloze problems. In the news approach developed in Teaching Machines to Read and Comprehend, the article supplies the passage and its summary supplies the query. A named entity in the summary is replaced with a placeholder, and the removed entity becomes the answer. The article and summary already exist as a pair, so the method gets a question about an article without asking a person to write one. The summary can still resemble the article closely enough for wording overlap to be useful.

CNN and Daily Mail also use entity anonymization. Entity names are mapped to placeholder identifiers and those identifiers are reshuffled by example. The intended effect is to let the reader learn how mentions relate inside an example, with less opportunity to rely on facts tied to a familiar name. A system can still take advantage of repeated entity identifiers within the article and query. Cui and colleagues report that the earlier examination of this benchmark found less value in anonymization than its motivation might suggest.

The Children’s Book Test builds a query from the continuation of a story. The passage contains 20 consecutive sentences and the query is the 21st sentence, with a word removed. The construction can target names, common nouns, verbs, or prepositions. Cui and colleagues focus on the named-entity and common-noun variants in their evaluation. They describe verbs and prepositions as less dependent on the document, making names and common nouns more relevant to their interest in the use of passage evidence.

The two constructions give the query a different relationship to the passage. A news summary may restate facts scattered through an article. The continuation of a story comes after the passage in the original order and can refer back to people or things already introduced. The Chinese news procedure uses a sentence from inside the document. It can therefore produce examples from articles without summaries and from passages without reserving a particular continuation sentence. The location of the query in the source material becomes part of the dataset design.

From selecting a position to selecting a word

Attention gives the reader a way to assign different weights to different document positions as it processes a query. The paper places this idea in the line of work on learned alignment in machine translation. In reading comprehension, a position with a large attention value receives more weight as possible evidence for the answer. Earlier readers could use those values to build a weighted document representation, which would then be used in prediction. The paper’s closest predecessor uses the values more directly.

The Attention Sum Reader assigns attention to document positions and adds up the attention belonging to the same word. Cui and colleagues connect this use of the input to Pointer Networks. The connection is that an output can be obtained by selecting from the input sequence. The attention sum adds a step suited to cloze questions. The answer is a word, and several input positions can all be occurrences of that word. A prediction about the word can therefore draw on several positions even when the example supplies only one correct answer identity.

CAS Reader keeps this answer mechanism and changes the evidence that reaches it. The Attention Sum Reader uses the final query representation to produce a pass of attention over the document. Each of the two directional encoders has read the query, so the final representation can contain information about words across the sequence. Cui and colleagues ask what happens when the reader also has direct access to the contextual state at each query position. This makes the question more specific than whether a reader should use attention. It asks which query representations should contribute to the distribution used to choose the answer.

The dataset contribution addresses a parallel problem. The authors describe the existing public materials in their discussion as English and present People Daily and Children’s Fairy Tale as, to their knowledge, the first released Chinese cloze reading comprehension datasets. They use the news questions to supply both training and in-domain evaluation. Questions from fairy tales give them a test of what carries over when the source and its characters change. Human selection provides a further way to change the evidence available for a correct guess while keeping the word-recovery task recognizable.

The method, step by step

Building a reading example

The authors represent each example as a document, a query, and an answer.

⟨D, Q, A⟩

Here D is the document presented as context, Q is the query containing a placeholder, and A is the missing word to recover. The angle brackets group those items into one example. A document can supply more than one example because the procedure can select different words or query sentences from it.

For the Chinese news data, the authors collect approximately 60K People Daily articles. They identify sentence boundaries and word categories using the LTP Toolkit. Sentence boundaries determine which stretch of text can serve as a query. The part-of-speech tagging determines which words satisfy the noun restriction. The procedure treats names and common nouns together in this collection. It can therefore select both kinds of answers from the same document instead of dividing the dataset into separate tasks as the Children’s Book Test does.

An eligible answer must be a noun that occurs at least twice in the document. The procedure randomly chooses an eligible answer and takes a sentence containing it as the query. The selected occurrence is replaced with a dedicated placeholder. The surrounding sentence gives the reader a clue about how the missing word is used. Requiring a repeated noun provides an occurrence elsewhere from which the word can be recovered. The authors give a People Daily example about the stock market, with a passage of 10 sentences and a query drawn from the 9th sentence. The query blanks a word in a sentence explaining a way of buying and holding stocks. The sequence illustrates what an example looks like after selection. The missing word sits inside an otherwise recognizable sentence rather than an independently written question.

Repetition serves a practical purpose during construction. It supplies a way to find eligible targets automatically in ordinary documents, and the noun restriction narrows the search to a category the authors want the reader to predict from context. Those criteria also shape what the reader sees during training. A noun that appears only once is excluded even if a person reading the passage could resolve a question about it. A often mentioned noun can qualify for several questions. The paper emphasizes that a document can be reused, which helps explain how the number of queries can exceed the number of articles collected.

The fairy-tale tests use that same basic form. CFT Test-auto is generated with the automatic procedure. For CFT Test-human, human selection removes cases where a pattern around the blank also occurs directly in the document and gives away the answer through a fixed expression or local co-occurrence. The query still originates as a sentence in the source. The intervention changes which instances survive into the test, while the input to the reader remains a passage accompanied by a sentence with a missing word. Providing both sets lets the authors examine automatic and human-selected items in the same broad genre.

Encoding the document and query

The neural reader begins with two word sequences. It first turns the word identities into dense vectors, then encodes the document and query separately so that each position carries information about its surrounding words. The encoder reads in both directions. A query position before the blank can therefore have information from the part that comes after it, and a document position can represent the word together with its context. The reader compares each query position against the document, merges the comparisons, and finally adds together positions belonging to the same answer word.

How the Consensus Attention Sum Reader scores answers

The steps in order.

How the Consensus Attention Sum Reader scores answersStep 1: Embed document and query words with shared weights1. Embed document and query words with shared weightsStep 2: Encode both sequences in both directions2. Encode both sequences in both directionsStep 3: Compare each query position with all document positions3. Compare each query position with all document positionsStep 4: Normalize document scores separately for each query position4. Normalize document scores separately for each query positionStep 5: Merge and normalize attention across query positions5. Merge and normalize attention across query positionsStep 6: Add attention across occurrences of each word6. Add attention across occurrences of each wordStep 7: Predict the word with the highest total7. Predict the word with the highest total

The starting representation of a word is one-hot. It identifies the word by a single active coordinate in a vector whose coordinates correspond to vocabulary entries. Multiplying by a shared matrix converts that identity into a set of learned numerical features. These are the reader’s word embeddings.

e(x) = Wₑ × x

Here x is the one-hot vector for a word occurrence drawn from D or Q, and e(x) is its embedding. Wₑ is the learned embedding matrix shared by the sequences, with the subscript e identifying its embedding role. The multiplication sign indicates matrix–vector multiplication. Selecting a word in either input retrieves its vector from the same matrix. The authors motivate this sharing by noting that the query is usually shorter than the document. Query embeddings can benefit from learning that also takes place on the document side.

The embedding gives a word the same initial representation on either side. Position-specific meaning enters at the next stage. The document and query use separate bidirectional recurrent encoders, implemented with gated recurrent units, or GRUs. A recurrent encoder revises its state as it moves through a sequence. The gates regulate how much earlier information is retained as new input arrives. In the paper this construction follows the GRU work in Learning Phrase Representations using an RNN Encoder–Decoder.

h⃗ₛ = GRU⃗(e(x))

In this expression h⃗ₛ is the forward hidden state at sequence position s. GRU⃗ is the gated recurrent encoder traveling in the forward direction, as indicated by the right-pointing arrow. The input e(x) is the embedding of the word at the current position. The mathematical shorthand suppresses the previous hidden state, which the recurrent update also uses. As a result, the vector at s reflects the sequence processed through that position in the forward pass.

h⃖ₛ = GRU⃖(e(x))

Here h⃖ₛ is the backward hidden state at position s. GRU⃖ processes the sequence in reverse, as shown by the left-pointing arrow, and e(x) is again the embedding at that position. The backward state has access to material encountered earlier in the reverse pass, which is the material to the right in the original sequence. The same directional procedure applies separately to the document and to the query.

hₛ = [h⃗ₛ ∥ h⃖ₛ]

Here hₛ is the contextual representation at position s. The vectors h⃗ₛ and h⃖ₛ are its forward and backward states. The brackets and the double bar indicate concatenation, so the coordinates of both states appear in the resulting vector. Applying this construction at every position yields a sequence of contextual representations for the document and another for the query. The paper describes their batched representations as three-dimensional tensors. For a single example, the attention calculation uses the ordered collection of vectors in each sequence.

The difference between a word embedding and a contextual state matters for interpreting the reader. Two occurrences of the same word share an embedding, while their contextual states can differ because they sit in different surroundings. The attention layer can assign those occurrences different scores. The final answer layer can still collect their contributions under one word identity. The system thus keeps track of where a clue appeared until the point where it needs to decide which word to return.

Making a separate attention distribution for each query position

Consider a query position whose contextual state captures a clue about who or what belongs in the blank. The reader compares that state with every contextual state in the document. The comparison uses a dot product, which multiplies corresponding coordinates and adds the products. A high score gives the position more weight relative to positions with lower scores after normalization. The same comparison is carried out with the contextual state at every other query position.

α(t) = softmax(hdoc · hquery(t))

Here t indexes a position in the query. The collection hdoc contains the document’s contextual position vectors. The vector hquery(t) is the contextual state at query position t. The dot indicates a dot product between that query vector and each document vector, yielding one score per document position. The function softmax exponentiates the scores and divides each resulting value by their total. Its output α(t) is an attention distribution over document positions for query position t. An entry α(t)ᵢ gives the weight of document position i, and n denotes the number of document positions.

Each application of softmax compares positions within the same document. It answers how a particular query state distributes its weight over the passage. The operations at different query positions therefore produce separate distributions over a common set of targets. One query state can assign relatively high weight to a position near an action described in the sentence, while another can favor a mention that fits the sentence’s referential context. This is a description of what the architecture permits. The comparisons themselves use learned vectors, and no operation labels a position as representing a particular linguistic function.

A query position is also richer than its isolated word. The encoding step has already allowed information to travel from both directions. Hence, using each query position does not reduce the query to a collection of independent keyword searches. The point of retaining all the states is that they can carry different contextual cues even though they come from the same sequence. The original Attention Sum Reader also uses bidirectional query encoding. CAS Reader differs in preserving those intermediate contextual states for direct comparison with the document.

Merging the distributions into consensus attention

Once the reader has performed all of those comparisons, it needs one final distribution over the passage. The paper describes the operation abstractly as a merge. It then tests three fixed rules for performing it. Under each rule, document positions are aligned across the input distributions. The merge pools values that refer to the same position, even when the query states that assigned those values are far apart in the query.

s = f(α(1), …, α(m))

Here s is the final attention distribution, and f is the merging function. The list starts with the distribution α(1) for the first query position and ends with α(m) for the last. The ellipsis includes the distributions at intervening positions. The symbol m denotes the query length. The letter s represents the merged attention vector here. In the encoder equations, its use as a subscript denoted a position in a sequence.

In the sum mode, each document position receives the total of the weight assigned to it across query positions. The reader then applies softmax to the vector of totals. This final normalization matters because the input distributions were each separately normalized and their sum accumulates weight as more query positions contribute.

s = softmax(∑ₜ₌₁ᵐ α(t))

Here s is the resulting document attention vector in sum mode. The summation adds the vectors α(t) coordinate by coordinate for query position t running from the first position through m, the query length. The softmax acts across the document positions in the resulting vector. A position can rise in the final ordering through support spread across several query states, because every state contributes to its total.

Average mode uses the same contributions but divides by the number of query positions before the final softmax. It is the variant the authors carry into the public English comparison. Each query position has the same weight in the averaging rule. The learned attention distributions can still vary from place to place in how strongly they favor particular document positions.

s = softmax(∑ₜ₌₁ᵐ α(t) ÷ m)

Here s is the final attention vector in average mode. The numerator adds the document vectors α(t) for t running from the first query position through m. Division by m, the number of query positions, applies to every coordinate of that sum. Softmax then normalizes the averaged vector across document positions. For a fixed query, averaging preserves the ordering of the position scores produced by summation before the final softmax, since every position is divided by the same positive value. It changes their spacing. That spacing matters because the next stages convert scores into attention values and add values across occurrences of a word.

In maximum mode, each document position takes its highest attention value from any query state. A position that looks very strong under one comparison can carry that value forward regardless of its scores under the remaining comparisons. The strongest contribution to one document position can come from a different query state than the strongest contribution to another.

s = softmax(maxₜ₌₁…ₘ α(t))

Here s is the final attention vector in maximum mode. The maximum runs over query index t from the first position through m, the query length. It acts coordinate by coordinate on the document attention vectors α(t), so the winning t can vary between document positions. The softmax normalizes the resulting vector across those document positions, just as it does in the sum and average variants.

These operations let the authors ask a focused architectural question. All three make use of the same kind of individual attention distribution. Sum and average preserve contributions from every query state, whereas the maximum retains the strongest value at each document position. The merger itself introduces no learned rule that explicitly assigns particular query positions greater importance. Most of the learned discrimination happens upstream, in the contextual states and their dot products.

Converting attention on positions into a word prediction

The final distribution is still indexed by position. If the same noun appears in several places, it appears several times in that distribution. The output of the cloze task is the identity of the missing word. CAS Reader uses the same position-to-word conversion as the Attention Sum Reader, gathering the attention values across all positions occupied by each vocabulary item.

P(w ∣ D, Q) = ∑ᵢ∈I(w,D) sᵢ,  w ∈ V

Here P(w ∣ D, Q) is the probability assigned to word w given document D and query Q. The vertical bar marks that conditioning, and the argument w is a member of vocabulary V, as indicated by ∈. The set I(w,D) contains the positions where w appears in D. The index i ranges over that set, and sᵢ is the final attention at document position i. The summation pools the corresponding values. A vocabulary item absent from the document has an empty set of positions and receives no support by this calculation.

A possible answer can therefore win through a strong occurrence or through support accumulated over several occurrences. The highest-scoring position and the highest-scoring word can differ when a word’s total comes from several places. This distinction also explains why the merge rules can yield different word predictions even when their position rankings coincide for a particular set of encoder states. The normalization governs how much relative weight those positions carry when added together.

The same construction governs training. The example gives the correct word, and the objective uses the probability assigned to that word. It leaves the allocation across the correct word’s different mentions to the reader. The benchmark checks the recovered identity. It does not specify a single sentence or position as the source of a correct prediction.

Fitting the reader and choosing a checkpoint

The authors initialize the embedding matrix randomly from a uniform distribution on [−0.1, 0.1]. The experiments start without pretrained embeddings. The GRU weights use random orthogonal initialization, drawing on the work cited under Exact Solutions to the Nonlinear Dynamics of Learning. A clipping threshold of 10 limits gradients during training, addressing the problem of very large updates in recurrent networks.

For People Daily and Children’s Fairy Tale, the paper describes a full vocabulary of about 200K and a shortlist of 100K. Words outside the shortlist are mapped to 10 special symbols using a procedure from work on pseudo training data for zero pronoun resolution. The public English benchmarks do not use that vocabulary truncation. The paper also reports evaluating the public datasets without additional preprocessing.

The embedding layer has 384 units in each public English task. The hidden layer has 256 units for CNN news and 384 for each of the Children’s Book Test categories. The Chinese setup uses 256 embedding units and 256 hidden units. It applies dropout of 0.1 to the GRU outputs. Dropout is a training procedure that randomly suppresses some activations. The paper reports no dropout for the English configurations in its setup table.

The loss is negative log-likelihood. It penalizes the reader when it assigns little probability to the correct answer word. The optimizer is Adam, with initial learning rate 0.0005 and batches of 32 examples. The authors train for several passes through the training data and choose the best checkpoint by validation performance. They report implementing the reader in Theano and Keras and training on a Tesla K40 GPU.

Experiments and results

What accuracy measures here

The paper evaluates accuracy, the share of queries for which the predicted word is the recorded answer. Validation and test accuracy have different roles. The authors use validation performance to pick the trained checkpoint. Test accuracy shows what that choice achieves on the designated test examples. Reporting both is useful here because the differences between readers can change direction from one split to the other.

The public experiments put the average version of CAS Reader on CNN news and the named-entity and common-noun portions of the Children’s Book Test. The Chinese experiments compare all three merging rules against the Attention Sum Reader. The CNN results apply to CNN news even though the paper discusses the broader CNN and Daily Mail collection as background. The fairy-tale results come from testing outside the news genre after training on People Daily.

CNN news

The CNN dataset has 380,298 training queries, 3,924 validation queries, and 3,198 test queries. The corresponding average candidate counts are 26, 26, and 25. Average length, reported in tokens, is 762 for training, 763 for validation, and 716 for test. These figures describe a setting where the reader can face a long passage and a varying set of possible answer words. The task is to identify the entity blanked in the summary query.

The paper compares CAS Reader with several reported results from earlier work. These include recurrent and attentive baselines from the news-reading study, a memory-network approach, the Stanford Attentive Reader, and the Attention Sum Reader. The most direct comparison for the architectural proposal is with the Attention Sum Reader because the word-level accumulation is common to both designs. The Stanford reader supplies a separate reference point for the best reported accuracy in the table.

Reader accuracy on the CNN news test split

Averaging query attention improves on the Attention Sum Reader while the Stanford Attentive Reader leads the comparison.

Reader accuracy on the CNN news test splitDeep LSTM Reader: 57.0Deep LSTM Reader57.0Attentive Reader: 63.0Attentive Reader63.0Impatient Reader: 63.8Impatient Reader63.8Memory network with window and self-supervision: 66.8Memory network with window andself-supervision66.8Attention Sum Reader: 69.5Attention Sum Reader69.5CAS Reader, average (this paper): 70.0CAS Reader, average (this paper)70.0Stanford Attentive Reader: 72.4Stanford Attentive Reader72.4
The numbers
System or settingaccuracy %
Deep LSTM Reader57.0
Attentive Reader63.0
Impatient Reader63.8
Memory network with window and self-supervision66.8
Attention Sum Reader69.5
CAS Reader, average (this paper)70.0
Stanford Attentive Reader72.4

On the CNN validation split, CAS Reader reaches 68.2% and the Attention Sum Reader reaches 68.6%. The two split results support the authors’ description of broad parity on CNN. The change in how the query is represented gives a modest test advantage and a validation decline. The Stanford reader reaches 72.4% on both splits. It uses pretrained GloVe embeddings and normalizes probabilities over named entities in the document. CAS Reader learns its embeddings in the task and normalizes over document positions before pooling by word. The comparison therefore includes differences in initialization and in the scope of normalization as well as differences in attention design.

Children’s Book Test

The named-entity subset has 108,719 training queries, 2,000 validation queries, and 2,500 test queries. The common-noun subset has 120,769 training queries, 2,000 validation queries, and 2,500 test queries. The paper lists 10 as both the average and maximum number of candidates for each split of both subsets. Average token counts on the test splits are 424 for named entities and 461 for common nouns. The two subsets hold the basic form of the story-continuation task steady while asking the reader to recover different types of words.

On named entities, average CAS Reader scores 74.2% on validation and 69.2% on test. The Attention Sum Reader scores 73.8% and 68.6% on the same splits, respectively. This is the public benchmark on which the new reader’s comparison with its closest predecessor moves in the same direction across validation and test. The window-based memory network with self-supervision reaches 66.6% on the named-entity test. The human result with context and query is 81.6% on that split.

On common nouns, average CAS Reader reaches 68.2% on validation, compared with 68.8% for the Attention Sum Reader. On test, the ordering reverses. The paper reports the test improvement over that baseline as an absolute 2.3%. This is the larger of its test gains over the Attention Sum Reader on the public datasets. The comparison still leaves a gap to the reported human result, which is 81.6% on the common-noun test as well.

Reader and human accuracy on the Children’s Book Test common-noun test split

Average CAS Reader leads the automated readers shown, and the human result remains higher.

Reader and human accuracy on the Children’s Book Test common-noun test splitLSTM with context and query: 56.0LSTM with context and query56.0Memory network with window and self-supervision: 63.0Memory network with window andself-supervision63.0Attention Sum Reader: 63.4Attention Sum Reader63.4CAS Reader, average (this paper): 65.7CAS Reader, average (this paper)65.7Human with context and query: 81.6Human with context and query81.6
The numbers
System or settingaccuracy %
LSTM with context and query56.0
Memory network with window and self-supervision63.0
Attention Sum Reader63.4
CAS Reader, average (this paper)65.7
Human with context and query81.6

The common-noun result makes the architectural change worth examining, because the same answer aggregation succeeds more often when it receives the merged attention distribution. It does not pin down the linguistic reason for those extra successes. The paper reports accuracy by subset rather than separating items by the kind of context needed to recover the noun. The named-entity and common-noun results are consequently evidence about benchmark performance and about the value of retaining more query states under those conditions.

People Daily news and fairy tales

People Daily provides 870,710 training queries. Its validation and test splits contain 3,000 queries each. The news training documents average 379 tokens and the training queries average 38 tokens. The news test documents average 410 tokens and the test queries average 41 tokens. The news data provide enough examples for the fitting procedure and separate sets for measuring performance within that genre.

The automatic fairy-tale test has 1,646 queries. Its documents average 122 tokens and its queries average 20 tokens. The human-selected fairy-tale test has 1,953 queries, with averages of 153 tokens for documents and 20 tokens for queries. In this comparison, fairy tales bring shorter inputs than People Daily on average, yet they yield lower accuracy. The shorter sequences are part of a change in the source material, alongside the shift in subject matter and the way some questions are selected.

On People Daily validation, the Attention Sum Reader scores 64.1% and average CAS Reader reaches 65.2%. The sum and maximum variants score 64.7% and 63.3%, respectively. On the People Daily test, the Attention Sum Reader scores 67.2%, and the average, sum, and maximum variants reach 68.1%, 66.8%, and 65.4%, respectively. The average version is the strongest on both news splits. The sum version goes from ahead of the baseline on validation to behind it on test.

On the automatic fairy-tale test, the Attention Sum Reader reaches 40.9% accuracy. Average CAS Reader reaches 41.3%, the sum variant 43.0%, and the maximum variant 38.3%. The sum rule leads on this split, and the paper reports its largest Chinese improvement over the Attention Sum Reader as 2.1% on this test. On the human-selected set, the average rule moves back into the lead.

Reader accuracy on the Children’s Fairy Tale human-selected test split

Average and sum attention improve on the Attention Sum Reader, while maximum attention falls behind.

Reader accuracy on the Children’s Fairy Tale human-selected test splitAttention Sum Reader: 33.1Attention Sum Reader33.1CAS Reader, maximum: 32.0CAS Reader, maximum32.0CAS Reader, sum: 34.7CAS Reader, sum34.7CAS Reader, average (this paper): 35.0CAS Reader, average (this paper)35.0
The numbers
System or settingaccuracy %
Attention Sum Reader33.1
CAS Reader, maximum32.0
CAS Reader, sum34.7
CAS Reader, average (this paper)35.0

The contrast between the automatic and human-selected fairy-tale tests is visible for every reader in the comparison. The strongest configuration for the automatic set is different from the strongest configuration for the human-selected set. A ranking of the merge rules therefore depends on which set is used, even within fairy tales. The more consistent pattern is that average and sum are stronger than maximum, and that the fairy-tale tests expose a large drop from testing on news.

What the ablations show

Using the full sequence of query states

The clearest comparison for the central architectural idea is CAS Reader against the Attention Sum Reader. Both accumulate document attention by word identity. The difference under study is whether the document receives one attention distribution based on the final query representation or a merged distribution built from the contextual states throughout the query. The public English test results favor average CAS Reader against that baseline, as do the Chinese splits when the average variant is used.

The validation results qualify that pattern. The Attention Sum Reader is ahead on CNN validation and on the common-noun validation set. A reader looking at either of those validation columns in isolation would favor the earlier approach. On the named-entity task, the advantage is in the same direction on both splits. Together these observations make the effect more specific. More query states can produce a useful change in how attention is distributed, and the size and consistency of that change depend on the examples being scored.

This comparison tests the combined effect of adding per-position comparisons, normalizing them, and merging them. Those changes are part of the design that produces the final attention. The paper does not independently vary each of those operations. In particular, the results do not separate the effect of exposing intermediate states from the effect of the additional normalization after their distributions are combined. The shared word-level prediction mechanism helps focus the comparison, while the individual contributions of the upstream operations remain open.

Pooling repeated support or keeping the strongest signal

The comparisons among average, sum, and maximum are the paper’s most direct test of how consensus should be formed. Each method starts with the same type of information, an attention distribution over the document for each query state. The main design variable is how those values are combined at a document position. The Chinese results consistently put maximum behind both other merging rules. Maximum also falls behind the Attention Sum Reader on every Chinese split in the table.

The authors attribute this weakness to sensitivity to noise. If an irrelevant position receives a high score from a single query state, a maximum keeps that score. All the query states that gave the position low scores have no direct effect on its maximum. Under sum or average, a competing position can gain an advantage from stronger support across several states. The word-level layer can then collect the attention for that competing answer from multiple occurrences.

This account describes a plausible mechanism rather than a measured property of the errors. The paper gives aggregate accuracy and an explanation of how a misleading peak could influence prediction. It does not count misleading peaks or follow particular failed examples through all three rules. The results support the narrower observation that keeping the peak alone performed worse across these Chinese evaluations. They leave room for the maximum to help particular questions where one contextual clue is especially relevant.

Average and sum offer a further comparison. At fixed upstream attention, they preserve the same ordering of document positions before the final softmax. The sum retains the full size of the accumulated scores, while the average scales those scores by the query length. The distinction affects how sharply the final distribution favors its strongest positions and how much weight remains at other positions that contribute to a word’s total. Because the merge also participates in training, the upstream representations can adapt to it. The paper does not divide the observed difference into a contribution from the scaling at prediction time and a contribution from training with that scaling.

The split rankings leave no single rule dominant across the Chinese experiments. Average leads for People Daily and human-selected fairy tales, while sum leads for automatic fairy tales. The test results show why reporting those settings separately matters. A single score for “consensus attention” would conceal the weakness of maximum, and a single score for the best variant would conceal that the preferred merger changes with the evaluation set.

Genre and selection change the evaluation

The authors also compare conditions in the data. People Daily provides the training material and the in-domain evaluation. The fairy-tale tests change the genre, and the two fairy-tale sets change the way questions enter the evaluation. The drop from news to automatically generated fairy tales appears even when automatic construction is used in both domains. The further drop on human-selected fairy tales is consistent with the intention to remove easy local matches.

These comparisons serve a different purpose from switching the merge rule. They test the trained reader on different collections of examples. The collections differ in their lengths, content, and question counts as well as in their source or selection procedure. The comparison therefore shows that the reported reader is sensitive to those test conditions. It leaves the independent contribution of each dataset property unresolved.

The paper suggests that a match around the blank can sometimes be enough for success on automatic questions. Human selection reduces the availability of that shortcut. The lower scores on that set give researchers a practical baseline for a less redundant version of the cloze task. Yet the word still comes from the passage, and the query still preserves its source-sentence form. The analysis therefore connects differences in test construction to differences in difficulty inside the task the paper actually evaluates.

Limitations

Limits identified by the authors

The authors treat the move from People Daily to Children’s Fairy Tale as a domain shift. The two genres contain different kinds of texts and characters. They point to animals and fictional characters in the stories as cases where knowledge about people and gender patterns learned from the news may transfer poorly. This possibility is especially relevant to coreference resolution, where a reader has to determine whether different expressions refer to the same character or entity. The authors propose that training on material from a similar genre could improve performance. The reported experiments give the news-trained results and leave that proposed remedy for further work.

Human selection only changes which cloze sentences are retained. The authors observe that a person could instead ask a direct question in their own words. A sentence about a morning visit, for instance, could be turned into a question asking for the destination. Such a change would remove the cue that the answer simply fits a blank in the original sentence and introduce a difference between the query form used in training and the query form used at test time. The authors expect that form to be harder. The paper evaluates source-derived cloze queries and proposes a future collection with questions closer to real use.

The authors also identify comprehension that draws on several sentences as a direction for future work. CAS Reader can assign weight to many positions across a passage. Its reported experiments measure whether those positions, once pooled, lead to the right word. The proposed future work concerns procedures that more directly combine the content of multiple sentences. The paper presents the cloze reader and its datasets as a step toward that broader objective.

The public comparison covers individual trained readers. The authors state that time constraints prevented an ensemble evaluation. Their description of consensus as akin to voting concerns the combination of query-position attentions inside one reader. Its gains are measured under that design, with no result for averaging predictions across independently trained readers.

Limits apparent from the setup

Accuracy gives the same credit for a correct word whether the system located a repeated phrase, connected two mentions, or used a more distributed pattern of clues. The paper’s human selection procedure makes one kind of matching less readily available, but accuracy on its own cannot determine what strategy took its place. An attention value also has a specific role here as part of the probability calculation. The experiments do not separately verify whether the locations receiving the most weight supply a human-readable justification for the answer.

The answer constraint further narrows the scope. The prediction rule assigns support through occurrences in the document, and Chinese training targets a noun with repeated appearances. A question whose answer needs to be expressed as a phrase, inferred without an explicit mention, or explained in prose calls for a different output mechanism. Even successful generalization across the reported settings concerns a particular problem of word selection from a passage. The dataset design makes that problem scalable to study and sets the boundary of what accuracy establishes.

The fairy-tale comparison also has limits as a controlled measurement of human selection. CFT Test-auto and CFT Test-human have different numbers of examples and different average document lengths. The results show that the human-selected collection is harder for the readers tested. Estimating the effect of removing local repetitions alone would require a comparison that holds more of the input material constant. The same caution applies to the news versus fairy-tale difference. Genre, vocabulary, and passage composition change together under the news-trained evaluation.

Finally, the paper reports point accuracies for the systems and configurations in its tables. It does not give variability across repeated training runs or formal significance tests for the comparisons it calls improvements. The smaller changes in particular are best understood as differences in those reported runs. Comparisons with independently reported baselines are also influenced by their training and scoring choices. On CNN the paper itself identifies pretrained embeddings and entity-only normalization as relevant differences in the Stanford comparison. For the public English tasks, only average CAS Reader is evaluated in the results table, so the Chinese rankings of the merging rules cannot be assumed for those benchmarks.

What came after

Other ways to locate an answer

Machine Comprehension Using Match-LSTM and Answer Pointer is a citing work from 2016 that places matching and answer selection in the architecture itself. Its named components give a point of comparison with the earlier reader. CAS Reader compares contextual query and document vectors and then adds position scores by word identity. The Match-LSTM and Answer Pointer approach puts a matching component before a pointer for selecting the answer. The connection is the problem of turning evidence tied to passage positions into an answer. The citation alone leaves open how directly the later authors drew on consensus attention.

The answer format changes in A Span-Extraction Dataset for Chinese Machine Reading Comprehension. It directs Chinese reading evaluation towards spans of text. The difference is consequential for answer scoring. In the cloze task, separate occurrences can support the same word and be pooled into one answer. In a span-extraction task the location and extent of an answer become part of what the reader must select. Both formulations keep the answer grounded in the passage, with different requirements for what counts as a complete selection.

Chinese reading evaluation across sources and question types

DuReader takes up Chinese machine reading comprehension through a dataset from real-world applications. This connects to a question the cloze paper ends with, how to move evaluation closer to the questions people bring to a reading system. The earlier authors change the selection of blanks while retaining source sentences as queries. An application-based dataset changes where the reading problems originate. That is a continuation of the benchmark-design problem, with a different basis for collecting questions.

DRCD contributes another Chinese machine reading comprehension dataset. Its connection to People Daily and Children’s Fairy Tale is the provision of material for testing the ability to read Chinese. The cloze paper’s comparisons illustrate why the existence of another dataset matters. News and stories gave visibly different performance for the same readers, and the method by which examples entered the test changed the measured difficulty within one genre. A separate collection gives the field another place to examine reading performance under its own conditions.

Investigating Prior Knowledge for Challenging Chinese Machine Reading Comprehension takes up prior knowledge as an explicit object of study. Cui and colleagues raised a related issue when they argued that information useful for reading news might carry over poorly to stories with animals or fictional characters. Their experiment varied the evaluation domain rather than directly measuring how prior knowledge was used. The citing work’s subject makes that knowledge requirement central to the investigation of difficult Chinese reading problems.

ChID keeps the cloze idea and changes the kind of expression to recover. It is a large-scale Chinese idiom dataset for cloze testing. That makes it the closest connection in the list to the earlier paper’s blank-completion format. The earlier Chinese collection selects repeated nouns and puts them back into source sentences. An idiom-focused test uses the gap to ask about the suitability of a conventional expression in its context. The format survives while the linguistic target changes.

A Vietnamese Dataset for Evaluating Machine Reading Comprehension extends the dataset-building effort to Vietnamese. The connection is the need for reading materials in the language being evaluated. People Daily and Children’s Fairy Tale addressed that need for Chinese against a background of public English corpora. The Vietnamese work takes up the analogous evaluation problem for another language. Its citation places the Chinese cloze datasets in a wider record of developing language-specific reading benchmarks.

Reading comprehension in a broader research setting

PanGu-Alpha places Chinese language research in the setting of large-scale autoregressive pretraining with automatic parallel computation. Its focus is broader than the passage-and-blank architecture of CAS Reader. The link through citation shows that the earlier Chinese reading work remained part of the research context as work shifted towards systems trained for wider use. The cited relationship gives no basis for attributing the later architecture to consensus attention.

ERNIE 3.0 Titan explores larger-scale, knowledge-enhanced pretraining for language understanding and generation. That connects broadly to the question of what knowledge supports successful reading, which had appeared in the earlier paper’s discussion of domain transfer. The two works address it at different levels. The cloze experiments measure how a particular reader trained on news behaves on stories. The later work makes knowledge enhancement part of a broader pretraining effort.

PanGu-Sigma concerns large-scale language processing with sparse heterogeneous computing. Its place in the citation record shows how far the surrounding research questions widened from a dedicated word-recovery reader. The clearest continuities with Cui and colleagues remain in the reading-specific works. Span extraction changes what the system must locate, application-based data changes where questions come from, prior-knowledge studies change which demands receive scrutiny, and idiom cloze testing changes what fills the blank. Each makes a different part of the original experimental setup available for further investigation.

Cite

Cite as Yiming Cui, Ting Liu, Zhipeng Chen, Shijin Wang and Guoping Hu. 2016. Consensus Attention-based Neural Networks for Chinese Reading Comprehension. Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers.

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

@inproceedings{cui2016consensus,
  title = {{Consensus Attention-based Neural Networks for Chinese Reading Comprehension}},
  author = {Yiming Cui, Ting Liu, Zhipeng Chen, Shijin Wang and Guoping Hu},
  booktitle = {Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers},
  year = {2016},
  url = {https://aclanthology.org/C16-1167/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cui-2016-consensus-attention-based-neural-networks/