Classifying Semantic Clause Types: Modeling Context and Genre Characteristics with Recurrent Neural Networks and Attention
Paper · 2017 · Maria Becker, Michael Staniek, Vivi Nastase et al.
Summary
A clause can describe something that happened, characterize a kind of thing, or tell us what someone does regularly. Those differences matter when we read a text as a story, an explanation, or an argument. Yet they are hard to recover from a verb alone. The same verb can introduce an isolated occurrence or a repeated practice, depending on what surrounds it and who or what the clause is about. Becker and colleagues study how to identify these distinctions automatically in English and German. They call the categories situation entity types and treat their identification as a clause-level problem in discourse analysis.
The authors build a classifier that reads a clause in word order using a gated recurrent unit, or GRU. Its input consists of word embeddings, numerical representations that can be adjusted during training. An attention mechanism lets it combine information from different positions in the clause according to their relevance to the decision. The experiments then extend its view in several ways. The classifier can read the wording of preceding clauses, use their predicted situation types, or receive an indication of the document’s genre. A separate diagnostic supplies the correct labels of preceding clauses to see how performance changes when that part of the input is reliable.
On the English held-out test set, the plain GRU reaches 66.55 accuracy. Local attention raises that score to 68.99 and produces the highest macro-average F1 among the authors’ English configurations, 68.87. The highest English accuracy without access to correct previous labels is 71.61, achieved with attention, genre and the previous two predicted labels. That configuration exceeds the accuracy of an earlier feature-based system using either of its feature sets separately. The earlier system reaches 74.7 accuracy when both sets are available. Giving the new classifier correct previous labels and genre takes its English accuracy to 73.45 in the strongest such setting.
The authors reuse the architecture and tuning choices on German data, with German embeddings of a different size. The combination of attention, genre and the previous two predicted labels again gives the highest ordinary test accuracy, at 73.98. Local attention alone gives the highest German macro-average F1, at 72.23. The distinction between the two metrics matters throughout the paper. Wider access to the document can improve the fraction of clauses classified correctly while producing weaker results when each category receives equal weight. The German study shows that the classification architecture can be adapted without recreating the English feature inventory, and it shows how much the choice of context and evaluation metric still matters.
Deep dive: Classifying Semantic Clause Types: Modeling Context and Genre Characteristics with Recurrent Neural Networks and Attention
How a clause classifier uses wording, nearby clauses and genre to distinguish events, states and other situation types in English and German. · about 36 minutes to read
The problem and its context
What a clause presents to the reader
Consider the difference between a text telling us about a meal, describing someone’s eye color, and explaining what a type of animal can do. The first can introduce an occurrence. The second can characterize an individual. The third can make a claim about a kind. A description of what an individual does every year has something in common with an occurrence because it names an activity, but its contribution to the text is a recurring pattern. The classification problem starts from these differences in how content is presented.
The authors use an inventory developed in linguistic work on discourse and extended in subsequent work on situation entity annotation. An annotation attaches an interpretation to a particular span of text. Here, the span is a clause, and the interpretation describes the sort of situation the clause introduces. An aspectual distinction in this setting can involve whether the text presents an occurrence, a condition, a recurrence, or a general characterization. The inventory also includes categories for attribution, questions and directives.
A state describes a condition or property, such as someone having brown eyes. An event presents a particular occurrence, such as someone eating a meal. A report introduces an attribution, as when an agency’s statement is used to present information about a rise in costs. The report category applies to the clause that attributes the information. In an example of that form, the speech verb and the situation described inside its complement have different jobs in the sentence.
A generic sentence makes a statement about a kind or class. The paper illustrates this with statements about what birds are capable of and what scientists do. A generalizing sentence presents something as recurring, illustrated by a person’s annual travel to India. What the clause refers to can help separate these categories. A claim about scientists as a class and a description of one person’s recurring travel each extend beyond a particular occurrence, but they generalize in different ways. A system that recognized only that both clauses express something repeatable would still have to decide which sort of generalization each contains.
A question presents something to be asked, and an imperative issues a directive, as in a request for the listener’s attention. The classifier also has an other category for material outside the situation type inventory, such as a byline or an email header. This final category makes sense in a collection drawn from several text types. The segments sent to the classifier can include fragments and document conventions as well as clauses that present the kinds of situations the annotation scheme distinguishes.
The main referent provides evidence alongside the predicate. It is the entity or situation the clause is about and is frequently expressed by the grammatical subject. Identifying it can help a reader distinguish a general claim about a class from an assertion about an individual. The main verb and its grammatical surroundings can also give evidence about whether the clause presents a state, an event or a repeated occurrence. A speech verb may suggest attribution. A temporal expression may suggest recurrence. The category depends on how the available clues work together.
The category names describe the clause’s role at this level of annotation. A text’s genre is a different property, assigned to the text as a whole. A news text can describe states and events, attribute claims and contain other material besides. The advantage of knowing it is a news text comes from expectations about how its clauses are distributed and arranged. The label for a particular clause still has to be selected from the clause and whatever context the classifier receives.
Why nearby clauses can help
Earlier work discussed by the authors connects situation entity types to discourse modes, such as narration, information and argument. A stretch of argument can develop through statements about classes and recurring patterns. A passage reporting what took place can move through events and descriptions of conditions. The paper connects clause typing to projects that characterize genres, distinguish generic expressions and study the structure of arguments. The earlier study of argumentative texts and clause types is one example of that connection.
A reader following a passage can use its preceding clauses to form an expectation about what comes next. A related idea can be tested computationally by counting an n-gram of situation labels, which is a run of adjacent labels in the text. The authors discuss such counts for pairs and triples. In their examples, the leading pair in journal articles consists of successive states. The leading pair in Wikipedia consists of successive generic sentences. Among joke triples, a run of events comes first, followed by a run of states. In government documents, successive states and an event followed by states appear among the most frequent triples.
These observations motivate two distinct inputs. The earlier labels can say something about the progression of the current passage. The genre can say something about patterns that are common across passages in that kind of document. A generic clause in an encyclopedia article and a generic clause in an argument have the same category, although the reasons to expect another generic clause nearby may differ. Conversely, genre can provide a clue at a point where the earlier label offers little guidance.
The sequence patterns are regularities in a corpus. Their value for prediction depends on how reliably the previous clauses can be classified and on whether the observed regularities hold in the texts being labeled. Knowing that a pair appears frequently in a genre helps explain why previous labels and genre are reasonable inputs. Whether a classifier makes good use of those inputs is a separate empirical question, and it motivates the paper’s comparison between predicted and correct previous labels.
What earlier classifiers made explicit
The strongest earlier comparison in the paper is Friedrich and colleagues’ feature-based system. It turns clauses into records of selected properties, including syntactic and semantic cues judged relevant to situation type. It also uses Brown clusters, which group words by distributional behavior. The classifier then predicts labels using a linear-chain conditional random field, or CRF. The chain represents the order of clauses, and features for adjacent labels let the system give different scores to different sequences of decisions.
This design can weigh a property of the current clause together with a preference about what labels tend to follow each other. The sequence prediction is a property of the CRF’s decision procedure. It differs from the later paper’s approach of taking earlier clause decisions as extra inputs when classifying the current clause. Both approaches have access to ordering information, so a comparison between their results is also a comparison between different ways of making sequential evidence available.
Friedrich and colleagues compared their sequential system to a Maximum Entropy classifier that handled clauses individually. Becker and colleagues describe the comparison as evidence that sequence information helps, especially for generic and generalizing sentences, which are relatively infrequent. The paper also discusses an earlier system by Palmer and colleagues that used predicted labels from preceding clauses to supply context. The idea that nearby decisions could help was therefore established. The new question was how to represent the clause and its context while making fewer task-specific choices about linguistic input.
One cost of the feature-based design is that some of its cues rely on resources or rules for a particular language. Its English experiments use information from WordNet, along with rules that recover tense and voice from sequences of part-of-speech tags. A part-of-speech tag identifies a grammatical category such as verb or noun. Recovering tense or voice involves using combinations of such tags and the constructions in which they occur. The paper cites work on English–French verb phrase alignment and tense as the source of rules used by the earlier system. Moving to German would require addressing how the same cues are expressed and what resources are available there.
Why use recurrence and attention
The paper situates its architecture in research that learns representations from text for classification. The authors cite work on convolutional neural networks for sentence classification and related approaches to representing sentences. Convolution can detect useful patterns over spans of words. Recurrent networks instead read a sequence while carrying forward a representation of what they have processed. This offers a way to accumulate evidence distributed across a clause.
The authors discuss the difficulty simple recurrent networks have in learning across long distances. In training, a signal passed through many steps can become too small or too large for effective learning. Gated recurrence gives the network operations that regulate what it retains and updates at each step. The paper draws its GRU from earlier work on encoder–decoder approaches to machine translation. It also discusses recurrent work with long short-term memory units and notes that approaches based on a syntactic tree depend on parsed input. Its own classifier reads words in sequence.
Attention adds access to representations from individual word positions. The paper discusses attention in translation, entailment and aspect-level sentiment classification. The general motivation is that some input positions contain especially useful evidence for a particular decision. In clause typing, that evidence could be a speech verb, the expression of the main referent, or a phrase giving the frequency of an activity. Attention can assign those positions more influence when building a clause representation. The authors also ask whether the resulting weights tell us anything about what the classifier tends to use and whether they can be reused as features by a different classifier.
The method, step by step
From a document to a clause decision
The classification task begins with a document divided into clauses. A training instance includes the words of the clause being classified and its annotated situation type. Depending on the configuration, the system also receives the genre, the words of preceding clauses, or representations of their labels. The target remains the situation type of the current clause across these configurations. This makes it possible to vary what the classifier sees while keeping the decision comparable.
The English texts are segmented with SPADE, a system described in work on sentence-level discourse parsing. The German corpus uses the rule-based segmentation component of DiscourseSegmenter, called edseg. Its rules are specific to German. The authors make a small post-processing adjustment because that segmenter sometimes divides the text too finely. Together these steps define the units on which the category annotations and predictions are compared.
Once a clause is delimited, the system retrieves a vector for each word. The GRU reads the vectors in order and updates a hidden state at each position. The simplest classifier makes its decision from the final state. The attention version keeps access to all of the states and uses them to build an additional representation. Context and genre, when enabled, are joined to the current clause representation before the output layer scores the categories.
How the classifier assigns a situation type
The steps in order.
Giving each word a trainable representation
The inputs start as pretrained word2vec embeddings. The authors draw on work showing that continuous word representations contain regularities useful for linguistic processing. Words that occur in related environments can have useful relationships among their vectors. Pretraining supplies those relationships before the classifier has seen any situation labels. The classifier then adjusts the word vectors during supervised training, letting them change in ways that help distinguish the target categories.
For English, the authors use 300-dimensional embeddings trained on a portion of Google News, described as about 100 billion words. This is the word2vec resource associated with work on distributed representations of words and phrases. For German they use 100-dimensional embeddings pretrained on a collection of 116 million sentences. These figures describe the source corpora for the input vectors. The clause datasets, which supply the target labels, are separate and much smaller.
Pretraining and task-specific adjustment play different roles. An initial vector can already place a word in relation to others with similar uses. The training examples can then make a distinction especially useful for the task more salient. For example, a recurring pattern of speech verbs in reports can give the classifier a reason to distinguish these words when it builds a clause representation. The authors expect that some of the earlier system’s lexical, syntactic and semantic clues will be available in the initial vectors or become usable through training. The earlier system’s explicit sense and hypernym features remain an open comparison because the new approach does not supply those categories individually.
The authors report that initializing with the pretrained embeddings works better than starting with random word vectors. Their development procedure therefore begins from the pretrained vectors in both languages and updates them during training. The genre vectors start differently. They are learned for this task from a random initialization because their input is a genre identity rather than a word from the pretrained vocabulary.
Reading the clause with a gated recurrent unit
A GRU updates its representation as each input arrives. At a particular word position, it has the current word vector and the hidden state left by earlier positions. A reset gate controls how much of that earlier state participates in computing the proposed new state. An update gate then controls the mixture of the previous state and the proposal. Both gates return a separate value for each component they control, allowing different parts of the representation to change by different amounts.
The reset gate is computed as follows.
rₜ = σ(Wᵣxₜ + Uᵣhₜ₋₁)
Here, t indexes the word position. xₜ is the input vector at that position, hₜ₋₁ is the hidden state from the preceding position, and rₜ is the reset gate at the current position. Wᵣ and Uᵣ are learned matrices for the current input and previous state respectively. The products by these matrices transform the vectors into a shared space, + adds those transformed vectors, and σ is the sigmoid function applied component by component.
The reset gate enters the candidate calculation.
h̃ₜ = tanh(Wxₜ + U(rₜ ⊙ hₜ₋₁))
Here, h̃ₜ is the candidate hidden state at word position t. The word input is xₜ, the reset gate is rₜ, and the preceding hidden state is hₜ₋₁. The operator ⊙ multiplies corresponding components of the reset gate and the earlier state. W and U are learned matrices acting on the word vector and the reset-filtered state respectively. The two transformed vectors are added with +, and tanh applies the hyperbolic tangent to each component. A small gate value reduces the participation of the corresponding earlier state component in the candidate.
The update gate has its own parameters.
zₜ = σ(W_zxₜ + U_zhₜ₋₁)
Here, zₜ is the update gate at word position t. The current word input is xₜ, and hₜ₋₁ is the state from the preceding position. W_z and U_z are the learned matrices for those two inputs. The underscore in each matrix name marks the update gate to which the matrix belongs. + adds the projected vectors, and σ applies the sigmoid component by component. The resulting gate values govern how the next equation balances retention and replacement.
The actual hidden state is the gated combination.
hₜ = (1 − zₜ) ⊙ hₜ₋₁ + zₜ ⊙ h̃ₜ
Here, hₜ is the state at word position t, hₜ₋₁ is the previous state, h̃ₜ is the candidate and zₜ is the update gate. The 1 in 1 − zₜ supplies the unit value for every component, and − takes each component’s complement. ⊙ multiplies corresponding components, and + combines the retained part and the candidate’s contribution. With the paper’s convention, a larger update value gives the candidate more weight.
The process repeats until the final word. For the basic classifier, the final hidden vector represents the whole clause. A fully connected layer with a sigmoid maps that representation to a vector whose length matches the number of output categories, 8. Softmax then converts the resulting scores into a probability distribution over the categories. In this configuration, the last state has to carry whatever earlier evidence the classifier ultimately uses. Introducing attention gives the decision another route to that evidence.
The authors motivate their choice of the GRU in part through the amount of training data. They describe GRUs as having fewer parameters than long short-term memory units and report trying ordinary and bidirectional versions of both types on this task. A bidirectional version can make use of processing in both word orders. The ordinary GRU performed best in their comparison, and it became the basis of the experiments reported in detail.
Building an attentive representation
With attention enabled, the classifier has both the final state and the series of states generated along the way. Each intermediate state represents a position after its word has been processed, including information carried forward from earlier positions. The attention calculation learns to assign a weight to each state in light of the final vector. A useful way to read the calculation is that it scores positions using both what is available at that position and what the recurrent network has collected by the end of the clause.
The first operation creates a transformed representation of each position.
M = tanh(WₕH + Wᵥhₜ ⊗ e_L)
Here, M is the matrix of transformed position representations. H stores the GRU hidden vectors in word order, with a column for each position, and hₜ denotes the final hidden vector in this equation. Wₕ and Wᵥ are learned transformations of the position states and the final state respectively. L is the number of words in the clause, and e_L is a vector of 1s with one entry per word. The outer product ⊗ with that vector repeats the transformed final state across the word positions. + adds it to the transformed position states, and tanh acts on each resulting entry.
The next operation assigns attention weights.
α = softmax(wᵀM)
Here, α is the vector of weights, and M holds the transformed representations of the positions. w is a learned scoring vector, and ᵀ indicates its transpose so that wᵀM yields a score for each position. The softmax function normalizes these scores across the clause. A higher weight gives the corresponding hidden state more influence in the following combination.
The position weights aggregate the GRU states.
r = Hαᵀ
Here, r is the attention-weighted representation of the clause. H is the matrix of GRU states, α contains their attention weights, and ᵀ transposes the weight vector into the orientation needed for multiplication by H. The resulting vector is a weighted sum of the hidden states. This r denotes a clause representation. The subscripted rₜ in the GRU equations denotes the reset gate at a particular input step.
The paper combines this weighted representation with the final recurrent state.
h* = tanh(Wₚr + Wₓhₜ)
Here, h* is the final attentive clause representation, with * marking the combined vector. r is the weighted representation, and hₜ is the final GRU state. Wₚ and Wₓ are learned projection matrices, + adds the projected vectors, and tanh transforms each component. As in the basic classifier, an output transformation supplies one score per category, and softmax turns the scores into probabilities.
The attention score for a position concerns its hidden state, which can carry information from preceding words. A high score on a reporting verb is consistent with the verb being a useful cue for attribution. It can also spotlight a position where the network has accumulated support from a larger part of the clause. The distinction becomes important in the paper’s analysis, which displays weights over individual words even though the vectors being weighted are contextual.
Representing what came before
The first context design reads the words of preceding clauses. Each clause included in the context window has a GRU with attention. A window is the span of preceding clauses that the classifier can consult for the current decision. The system computes representations for these clauses and concatenates them with the attentive representation of the current clause. Concatenation places vectors in succession, so evidence from different parts of the window can occupy different positions in the input to the final classifier.
The paper writes the earlier clause encodings in a concatenated form.
h*₍con1₎ = ⟨tanh(Wₚr₁ + Wₓv₁) ; … ; tanh(Wₚr_N + Wₓv_N)⟩
Here, h*₍con1₎ is the vector representing the preceding clause sequence in the first context design. N is the number of preceding clauses. The endpoint subscripts 1 and N, separated by …, indicate the first and last entries of the context sequence. For each entry, r with that subscript is its attention-weighted vector and v with that subscript is its final recurrent output. Wₚ and Wₓ project the respective vectors, + adds them and tanh transforms their components. The angle brackets and semicolons denote concatenation. The architecture joins this history to the current clause representation and transforms the result into class scores.
This version has access to rich information about preceding clauses. It can carry forward something about their wording, entities and constructions. It also has to learn which elements of that larger input matter for the current category. Adding another preceding clause changes the amount of text to encode and adds another representation to the combined vector. The experiments can test whether that greater access pays off on held-out clauses.
The other context design uses representations of earlier category decisions. During training, the authors turn correct labels into embeddings and describe applying their attention procedure to those representations. For ordinary testing, the vector supplied for an earlier clause is its predicted probability distribution. This preserves information about uncertainty. A clause judged to be largely consistent with an event but also somewhat consistent with a state can bring both possibilities into the next prediction through its probability vector.
The concatenated representation for the label context is written as follows.
h*₍con2₎ = ⟨tanh(Wₚr + Wₓv) ; yₜ₋₁ ; … ; yₜ₋ₙ⟩
Here, h*₍con2₎ denotes the combined representation in the label-based context design. r is the current clause’s attention-weighted representation and v is its final recurrent output. Wₚ and Wₓ are learned projection matrices, + combines their projected vectors, and tanh acts on each component. Here t indexes the current clause. yₜ₋₁ is the representation of the immediately preceding label, and yₜ₋ₙ denotes the label at the far end of the window, whose size the paper calls N. The ellipsis stands for any intervening label vectors. The angle brackets and semicolons again indicate concatenation.
The labels in this history can come from predictions or from annotation. The gold label is the reference category assigned in the annotated data. An oracle setting gives the classifier those correct earlier labels at test time. Its decision about the current clause is still evaluated against that clause’s reference label. The comparison reveals how the system behaves under different levels of access to information about the past. The ordinary setting includes the possibility that an earlier decision is wrong or uncertain. The oracle setting removes that source of error from the history supplied to the classifier.
Adding the document’s genre
The authors give each genre a dense vector of size 10. A dense vector stores a set of learned numerical values for the category. The genre representations are initialized randomly and learned during training, and the paper describes using attention with them. They let the classifier adjust how it interprets clause evidence in the context of a known genre. A given document supplies a genre identity, while the words and preceding labels vary from clause to clause.
The paper combines genre with the basic GRU as follows.
⟨g ; hₜ⟩
Here, g is the genre embedding and hₜ is the final GRU state at the last word position t of the current clause. The angle brackets and semicolon mark concatenation, with both vectors available to the classification layer.
In the local attention version, the current clause contributes its attentive representation.
⟨g ; h*⟩
Here, g is the genre embedding and h* is the current clause vector that combines the weighted sum of position states with the final state. The brackets and semicolon concatenate the genre and clause vectors. The paper also evaluates genre with the label context design, giving the classifier the current clause, the genre and the previous label representations together.
These combinations allow the contribution of genre to be studied in different settings. With the plain GRU, genre is the only extra input. With local attention, the classifier also has a representation that can emphasize specific positions. With label context, the genre can be used alongside evidence about how the passage has unfolded so far. Because the genre and the preceding labels describe different scopes, even a often occurring genre association need not affect every clause in the same way.
Choosing settings and training with labeled clauses
The authors use a development set for a random search over training and architecture settings with optunity. The search covers batch size, the number of recurrent layers, the GRU cell size and the strength of L2 regularization. Batch size controls how many examples are processed together for an update. Cell size governs the size of the state carried through the recurrence. L2 regularization penalizes large parameter values, and its strength controls how much that penalty influences training.
The optimizer is AdaGrad, and the search also tunes its initial learning rate. The best development setting for the plain GRU uses a batch size of 100, 2 layers, a cell size of 350, an initial learning rate of 0.05 and an L2 setting of 0.01. For the attention version, the reported settings are the same except for an L2 value of 0.0001. The authors use the development choices for held-out testing. In the German study they retain the settings chosen on English while changing the embedding input size.
The English data follow the existing train and test division from the earlier feature-based study. The German division is constructed to keep genres balanced between training and testing. In both languages the paper reports an 80-20 train and test split, with 20% of the training portion reserved for development. This gives the authors a part of the corpus for selecting settings and a separate part for assessing the resulting classifier. It also gives the English comparison a shared held-out partition for the systems that report scores on that test set.
Experiments and results
The collections and what the scores measure
The English corpus draws on MASC, the Manually Annotated Sub-Corpus, and Wikipedia. MASC supplies 30,333 labeled clauses and 357,078 tokens. The Wikipedia part supplies 10,607 labeled clauses and 148,040 tokens. A token is an item counted in the segmented text, while a labeled clause is a unit sent to the classifier as an example. The English data span 13 genres, with material such as news, government documents, essays, fiction, jokes and emails. The paper points to the sitent repository for the English data and for the earlier feature-based system’s code.
The German collection combines previously annotated material with additional annotations made by the authors. It contains 18,194 labeled clauses and 236,522 tokens across 7 genres. These comprise argumentative essays, Wikipedia, fiction, commentary, news, TED talks and economic reports. The authors describe the German collection as 44% of the size of the English one and say its genres are more similar to one another. They also identify a German data download containing the portion annotated within the Leibniz ScienceCampus.
Label frequencies vary substantially across these sources. In the selected English Wikipedia texts, generic sentences account for 50% of situation labels. States are next at 24.3%. The Wikipedia documents were specifically selected for a study targeting generic sentences. Across the 12 MASC genres, states account for 49.8%, events for 24.3%, and generic sentences for 7.3%. In the German argumentative texts, generic sentences account for 48% and states for 32%. States are the most frequent category in most of the other German genres. These distributions make genre a plausible predictor and give the authors a reason to report a metric that attends to rare categories.
Accuracy is the percentage of test clauses with the correct predicted label. Macro-average F1 first evaluates each category in terms of precision and recall and then gives each category equal weight in the average. Precision asks how many predictions of a category were correct. Recall asks how many reference instances of a category were recovered. F1 combines the two. A configuration can therefore improve accuracy if it makes better decisions on common labels, while losing macro-average F1 if its treatment of some categories deteriorates. The reported scores tell us when the metrics favor different settings. The aggregate numbers by themselves leave open exactly which categories account for each change.
English baselines and the held-out comparison
The paper lists results from an earlier classifier by Palmer and colleagues and from the stronger CRF of Friedrich and colleagues. Palmer’s result on the Brown dataset is 53.1 accuracy, with no macro-average F1 listed. It supplies historical context on a different dataset. The Friedrich comparisons on the shared English held-out set provide a closer match. Their feature set A includes standard language processing features such as part-of-speech tags and Brown clusters. Feature set B adds more detailed information, including the base form of a word, tense, negation, modality and distinctions taken from WordNet.
On that test set, the CRF with set A reports 69.8 accuracy and 63.9 macro-average F1. With set B, it reports 71.4 accuracy and 65.5 macro-average F1. With A and B together, it reaches 74.7 accuracy and 69.3 macro-average F1. The paper also records earlier scores for 10-fold cross-validation, where performance is assessed over successive partitions. On that protocol the CRF with both sets reaches 76.4 accuracy and 71.2 macro-average F1. A sequence oracle combining Maximum Entropy and the CRF reaches 77.9 accuracy and 73.9 macro-average F1 in cross-validation. Those figures concern a different evaluation protocol. The shared test-set scores are the appropriate comparison for the authors’ new English experiments.
The basic GRU obtains 66.55 accuracy and 46.04 macro-average F1 on the English held-out test set. With local attention it records 68.99 accuracy and 68.87 macro-average F1. Joining genre to local attention yields 71.12 accuracy and 67.95 macro-average F1. The highest ordinary accuracy among the new configurations, 71.61, comes from adding the previous two predicted labels and genre to the attentive classifier. Its macro-average F1 is 64.28.
System accuracy on the English held-out test set
The strongest GRU setting exceeds either separate feature set, while the combined feature sets lead overall.
The numbers
| System or setting | accuracy % |
|---|---|
| Plain GRU | 66.55 |
| GRU with local attention | 68.99 |
| CRF with feature set A | 69.8 |
| CRF with feature set B | 71.4 |
| Attention with genre and two predicted labels (this paper) | 71.61 |
| CRF with feature sets A and B | 74.7 |
The English comparison depends on what counts as best. By test accuracy, the contextual configuration surpasses the CRF with either single feature set. Its macro-average F1 is above the score of set A and below that of set B. By the macro-average measure, the authors’ strongest configuration is local attention. Its 68.87 approaches the 69.3 reported by the CRF combining both feature sets. These comparisons give a concrete meaning to the paper’s claim of competitive performance. The full feature-based system retains the highest accuracy on the shared English split, while different variants of the GRU come close under different metrics.
Correct previous labels produce higher English accuracy than the corresponding predicted history in the strongest settings. With the previous 5 correct labels and genre absent, the oracle obtains 73.40 accuracy and 66.39 macro-average F1. With the previous 2 correct labels and genre included, it reaches 73.45 accuracy and 66.51 macro-average F1. The latter is the maximum English oracle accuracy in the paper. The ordinary test comparison uses configurations that generate the preceding decisions themselves. The oracle figures isolate the possibility of supplying a more reliable label history within this architecture.
German results with the English settings
The German experiment asks whether the same classification design can work on a smaller annotated collection in another language. It uses German embeddings and trains on German clauses. Its results are comparisons among the authors’ own configurations on the German held-out test set. The paper does not give a German counterpart of the English CRF comparison.
The plain German GRU reports 72.67 accuracy and 61.55 macro-average F1. Adding attention alone yields 72.31 accuracy and 72.23 macro-average F1, the highest macro-average F1 in the German experiments. Adding genre to local attention gives 73.75 accuracy and 65.69 macro-average F1. As in English, the ordinary configuration with the highest accuracy uses attention, genre and the previous two predicted labels. It reaches 73.98 accuracy, with 54.78 macro-average F1.
Configuration accuracy on the German held-out test set
Genre and attention together improve accuracy, and the setting with a short predicted history leads the ordinary configurations.
The numbers
| System or setting | accuracy % |
|---|---|
| Plain GRU | 72.67 |
| Plain GRU with genre | 72.08 |
| GRU with local attention | 72.31 |
| Local attention with genre | 73.75 |
| Attention with one preceding clause | 73.49 |
| Attention with genre and two predicted labels (this paper) | 73.98 |
Without genre, the German run using previous predicted labels reaches its highest accuracy at the largest tested window, with 72.85 accuracy and 45.52 macro-average F1 for the previous 5 labels. In the oracle comparison without genre, the highest reported accuracy also uses the previous 5 labels, giving 76.32 accuracy and 61.01 macro-average F1. With genre the previous 2 correct labels produce 77.97 accuracy and 61.47 macro-average F1. This is the highest German accuracy reported in the paper, under the oracle condition.
Macro-average F1 across settings on the German held-out test set
Local attention gives the strongest category-balanced score among these settings.
The numbers
| System or setting | macro-average F1 |
|---|---|
| Plain GRU | 61.55 |
| Plain GRU with genre | 66.33 |
| GRU with local attention (this paper) | 72.23 |
| Local attention with genre | 65.69 |
| Attention with genre and two predicted labels | 54.78 |
| Attention with genre and two correct labels | 61.47 |
The German accuracy and macro-average F1 scores favor very different uses of context. The accuracy-leading predicted-history configuration has a macro-average F1 below that of the plain GRU. The test set and labels are the same across these German runs, so the disagreement comes from what the scoring rules reward for the predictions produced. When comparing German against English, the interpretation needs another qualification. The held-out texts have different genre inventories and label distributions. Higher German accuracy under several corresponding configurations shows how they performed on these partitions, with no common difficulty scale across the two languages.
What the ablations show
Local attention changes performance across categories
The simplest comparison is between the basic GRU and the GRU with attention. On English, both accuracy and macro-average F1 rise. On German, attention by itself yields slightly lower accuracy and a higher macro-average F1. The shared outcome is that giving the classifier access to weighted word positions benefits the metric that values each label category equally. The German figures are especially informative because that conclusion would be invisible in a report of accuracy alone.
The underlying change is larger than displaying attention weights after classification. The attention version uses those weights to build a vector and combines it with the last recurrent state. The comparison therefore evaluates an additional representation that can save information from earlier positions for the final decision. The development search also selects different regularization strengths for the basic and attentive variants. The results reflect the performance of the two configured classifiers under their selected settings.
Adding genre to the plain GRU lowers test accuracy in both languages. On English it changes macro-average F1 only modestly, from 46.04 to 46.32. On German the plain GRU with genre reaches 66.33 macro-average F1, above the basic classifier’s 61.55. When genre is joined to local attention, accuracy improves in both languages relative to local attention alone, and macro-average F1 falls. The value of genre thus depends both on the clause representation it accompanies and on which evaluation measure is used.
The text of earlier clauses and their labels offer different evidence
In English, the attentive variant using the wording of the preceding two clauses reaches 70.20 accuracy and 60.01 macro-average F1. It gives the strongest accuracy among the English variants that add preceding clause text without a genre input. The preceding 3 clauses produce 69.64 accuracy and 37.29 macro-average F1. The authors also report English accuracy of 36.24 with a window of 4 preceding clauses and 36.17 with 5. The initial accuracy improvement with a short window coexists with deterioration in macro-average F1 and with a loss of accuracy once the window grows.
The German result with one preceding clause is 73.49 accuracy and 63.99 macro-average F1. With a window of 2 the figures are 70.21 accuracy and 58.66 macro-average F1, and with 3 they fall to 49.31 accuracy and 47.01 macro-average F1. The two languages both show that adding earlier text can help in a short window and that more earlier text can make performance worse. The accuracy-leading window for this input differs across the two test sets.
Label history compresses each previous clause into a representation of the same distinction the system is trying to predict. On English, the best predicted-label result without genre uses the preceding 2 labels and reaches 69.37 accuracy and 62.13 macro-average F1. Its accuracy is only slightly above local attention alone. Adding genre to the label history provides a larger accuracy gain. With genre and one predicted label the English test score is 71.59 accuracy and 64.94 macro-average F1. With genre and two labels, accuracy is slightly higher and macro-average F1 is lower. Which window wins therefore depends even within this narrow family of configurations on which metric the comparison uses.
On German, accuracy for the predicted-label variants without genre improves across the tested window sizes and is highest at the window of 5. The shorter window of 2 wins when genre is included. The authors suggest that transferring development choices from English may be part of the explanation for the differing window behavior. The results show an interaction among the representation of context, the number of clauses and the genre input. They do not establish a single window size that transfers independently of those choices.
Correcting the history changes the comparison
The oracle experiments expose the effect of supplying correct labels for preceding clauses. On English, correct histories raise accuracy across the reported context lengths relative to the matching predicted-label settings. With genre and the preceding 2 labels, the oracle also yields a higher macro-average F1 than the ordinary contextual variant. The local attention classifier still has the stronger category-balanced score. This combination of outcomes indicates that errors in earlier labeling are relevant and that reliably labeled context does not resolve the broader tradeoff between the metrics.
The German oracle comparisons show that the benefit of correct history also depends on the way it is supplied. For the settings using earlier labels without genre, the oracle accuracy is higher than its predicted-label counterpart and reaches its maximum at the longest tested history. With genre, the maximum is at a shorter history. The best German oracle score gives a sense of the accuracy available in a favorable version of the contextual setup. Because the classifier and its inputs are held to the designs explored in the paper, the oracle describes the opportunity within that family of experiments.
There is a further distinction between using a predicted distribution and receiving a gold label. A distribution can express disagreement among several plausible categories. A gold label supplies the annotated decision for that previous clause. The comparison changes the reliability of the history and the kind of evidence that the history vector carries. It shows what happens when the system has the annotated sequence available behind the current clause. It does not measure a rate of error propagation for individual predictions.
Which categories are hardest
The paper compares performance by situation type with the earlier feature-based work and reports broadly similar patterns. Generalizing sentence has the lowest score and is infrequent in the data. State, event and report have the highest scores. This is a useful reminder that frequency and recognizability can differ. A category such as report can be comparatively rare and still have a conspicuous linguistic cue in its use of speech verbs. Generalizing clauses can be hard to separate from other classes even when their broader interpretation is familiar to a reader.
The authors also turn the multiclass task into separate binary classification problems. Each binary run asks whether a clause has a particular category, grouping everything else together. A generic detector trained this way needs a boundary between generic and nongeneric instances. It can treat distinctions among the various nongeneric labels as irrelevant to that decision. The authors report higher performance for binary classification in their comparison and point to applications that require only a particular distinction. This changes the decision problem, so those scores have a different meaning from performance when every clause must receive its category from the full inventory.
What the attention displays reveal
The attention examples cover states, generalizing sentences, generic sentences and reports. In the state example, two country names, China and Japan, receive the most attention. The generalizing example places its highest weight on the noun system. The generic example highlights the pronoun their. In the report example the highest-weighted word is answered. The selection gives concrete evidence that the strongest-weighted position need not have the same grammatical role for every situation type. In the report, the weight falls on a word that signals attribution. In other cases it can fall on an expression connected to the referents in the clause.
For a broader view, the authors assign English part-of-speech tags using spaCy and the Penn Treebank tag inventory. They then aggregate mean attention by tag and by gold situation category. Reports show particular attention to verbs. For generalizing sentences, they observe substantial attention to symbols, especially punctuation and genitive marking. For the other category, interjections receive the strongest attention. The authors relate this last pattern to the presence of fragmentary material in genres such as email and blogs. Because the aggregation uses gold categories, it describes the weights on instances of each reference type, whether or not the classifier got the instance right.
The paper also counts where the most heavily weighted positions occur. It uses relative positions so clauses of different lengths can contribute to the same distribution. The single top-weighted position typically falls late in the clause and seldom falls in its first half. Looking past the single largest weight changes the picture. Other high-weight positions can occur toward the beginning. This analysis supports a distinction between where the biggest weight tends to appear and the broader range of positions from which the attentive representation can draw.
Finally, the authors test the attention outputs as inputs to CRF++. They encode each clause through highly weighted words and their associated weights and try using those features in a sequence labeler. The best reported setup for this experiment uses the current clause’s attention vector alone. It reaches 61.68% accuracy and 47.18% F1. CRF++ handles the input as binary features in this experiment. The authors point out that this loses access to the continuous values of the weights and the embeddings of the words. The modest result therefore evaluates a particular translation of attention into CRF features. The neural classifier’s weighted vector preserves information in a different form.
Limitations
Limits the authors identify
The authors present their English results as competitive with a feature-based system that combines detailed syntactic and semantic cues, while recognizing that the strongest version of that system still leads in accuracy. They suggest that the explicit word sense and hypernym information in its feature inventory may be difficult to recover from the embeddings they use. A word embedding is trained from occurrences in text. A sense or hypernym feature supplies a particular distinction explicitly. The comparison leaves room for both forms of representation to carry information the other handles less directly.
The paper also notes that its access to the earlier English evaluation is limited. The earlier cross-validation splits were unavailable, so the same held-out split is the basis for the direct English comparison. The cross-validation scores and the sequence-oracle result reported for that protocol are useful context for the earlier work. They cannot serve as paired results for the new system on identical folds.
In the German study the authors retain the architecture settings chosen in English. They identify this choice as a possible explanation for differences in preferred window size. They also note that the dimensions of the input embeddings differ between the languages and may affect performance. The German collection is smaller and less diverse by genre in their account. They suggest that learning attention effectively may depend on having more data or more diversity. These explanations are hypotheses raised by the cross-language comparison. The experiment changes those conditions together.
For the CRF++ study, the authors explicitly identify a restriction in how the attention information is represented. Converting it into binary features prevents that classifier from making direct use of numerical weight magnitudes and embedding values. The comparison consequently says more about the tested feature representation than about every possible interface between an attentive encoder and a sequence labeler.
Limits that follow from the setup
The portability experiment demonstrates reuse of a classification architecture and its training choices. It still depends on German situation labels, German pretrained word representations and a segmenter with German rules. The design is portable in the sense that the authors can train the same kind of classifier without reconstructing the English cue inventory. Performance of a classifier trained entirely on English and applied directly to German is outside the experiment. So is the cost of obtaining usable labeled material and segmentation for a language beyond the two examined.
Clause segmentation is also a prerequisite for the reported decisions. A segmenter that divides an attribution incorrectly or splits a temporal phrase away from its clause can change the evidence received by the classifier. The authors describe correcting some German oversegmentation. They do not give a separate comparison that varies segmentation quality. The scores measure the task on the clause units produced by the stated preparation procedures and leave the effect of alternative document segmentation undetermined.
Genre is supplied as an input. Its benefit is measured on corpora with designated genres represented across the train and test divisions. The experiment therefore says how known genre identity can help on the held-out texts in this design. It leaves open what happens when genre must itself be inferred, when a text mixes styles, or when the classifier encounters an unfamiliar genre. The Wikipedia data illustrate why this matters. The selection was designed to target generic sentences, so the genre cue can reflect the way a particular corpus was assembled as well as a property of the text type.
The previous-label setup presents another dependency. Training uses correct preceding labels, whereas ordinary testing supplies predicted distributions. This introduces a difference between the histories used to fit the system and the histories used to make ordinary test decisions. The oracle comparison helps quantify results when the input history is reliable, yet several mechanisms could explain the remaining differences. For instance, ambiguity in an earlier clause and an outright incorrect prediction can generate different kinds of distributions. The aggregate oracle comparison leaves their individual effects unresolved.
The result charts and tables report point estimates from the held-out tests. Especially close accuracy scores should be read as observed rankings under the reported settings. The paper does not provide uncertainty estimates for those gaps. The same caution applies to the context window comparisons, where the preferred settings change across metrics, languages and combinations of inputs. A local attention result can be especially strong on macro-average F1 while a contextual one is stronger on accuracy. Neither aggregate score identifies the errors behind the change by itself.
The inspection of attention makes the classifier’s internal weighting visible. Its plots show where weight accumulates and which grammatical tags often receive it. In the architecture, the vectors at those positions carry contextual information, and the final recurrent state also contributes directly to the decision. The figures therefore support claims about attention patterns. Establishing that a highlighted word caused a particular prediction would require a different comparison, such as measuring how the prediction changes when that evidence is altered. The paper’s examples are best read as observations about the trained classifier’s weights in the cases shown.
What came after
Explaining Arguments with Background Knowledge cites the clause classification paper. Its subject connects with one motivation Becker and colleagues give for studying situation entities, the analysis of argumentative text. The citation establishes that the work was relevant to that later discussion. How the argument study used the clause labels or the classifier is unspecified.
GePaDeSE: A New Resource for Clause-Level Aspect in German Parliamentary Debates also cites the study. It returns to German clause-level aspect through a resource focused on parliamentary debates. Becker and colleagues had studied how genre and preceding clauses affect classification in a German collection assembled from several kinds of writing and speech. The later resource places clause-level aspect in a particular institutional setting. The citation does not establish whether it adopted the earlier annotation inventory or reused the classifier.
Cite
Cite as Maria Becker, Michael Staniek, Vivi Nastase, Alexis Palmer and Anette Frank. 2017. Classifying Semantic Clause Types: Modeling Context and Genre Characteristics with Recurrent Neural Networks and Attention. Proceedings of the 6th Joint Conference on Lexical and Computational Semantics (*SEM 2017).
@inproceedings{becker2017classifying,
title = {{Classifying Semantic Clause Types: Modeling Context and Genre Characteristics with Recurrent Neural Networks and Attention}},
author = {Maria Becker, Michael Staniek, Vivi Nastase, Alexis Palmer and Anette Frank},
booktitle = {Proceedings of the 6th Joint Conference on Lexical and Computational Semantics (*SEM 2017)},
year = {2017},
doi = {10.18653/v1/s17-1027},
url = {https://doi.org/10.18653/v1/s17-1027}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/becker-2017-classifying-semantic-clause-types-modeling/