Elamur Research

Representation and parsing of syntactic discontinuities in French constituent treebanks

Original (French): Représentation et analyse automatique des discontinuités syntaxiques dans les corpus arborés en constituants du français

Paper · 2017 · Maximin Coavoux and Benoît Crabbé

Summary

A French question can put a word near the beginning of the sentence even though its grammatical role belongs to a phrase much farther along. In Que dois-je faire ?, the interrogative que is the object of faire, the infinitive meaning “to do.” A tree that groups the two under the infinitival phrase gives that phrase a discontinuous span. The words between its pieces belong elsewhere in the tree. Coavoux and Crabbé ask how to represent such structures in French treebanks and recover them by automatic parsing. Many parsers built around context-free grammar discard the annotations that record these grammatical connections during preprocessing.

The authors convert the French Treebank, Sequoia and the French Question Bank using functional paths annotated by Candito and Seddah. A path tells the conversion where to reattach an extracted phrase so that the tree itself records its grammatical relation. The resulting trees can be described by linear context-free rewriting systems, or LCFRS, which allow a constituent to cover separate stretches of words. The source annotations cover relative clauses, questions, clefts, dislocations and certain uses of the clitic en. Relative clauses account for 72% of the cases in the French Treebank training split’s construction breakdown, while en accounts for 22%. Questions account for 95% of the cases in the French Question Bank’s breakdown.

To recover these trees from text, the authors extend a shift–reduce parser with a GAP action. It lets the parser reach past an intervening partial tree and join phrases whose words are separated in the sentence. A deep neural network scores the available actions and also predicts morphology, including part-of-speech tags, and grammatical functions. The resulting lexicalized trees also support the recovery of labeled, potentially nonprojective dependencies. The authors describe their system as the first deep neural parser for discontinuous constituents, to their knowledge. Its greedy search makes parsing practical by choosing an action at each step without exhaustively comparing complete trees.

Sparse data are the principal empirical difficulty. In the French Treebank training split, 253 of 14,759 sentences contain a discontinuity (1.71%), and just 374 constituents are discontinuous (0.13%). Sequoia has 46 such sentences out of 3099 (1.48%). The French Question Bank has 88 out of 2289 (3.84%) and is the only corpus in which a constituent can have a gap-degree of 2. The neural parser reaches 82.04 overall constituent F1 on the French Treebank test split, but 14.46 discontinuous constituent F1. With training and testing on separate French Question Bank splits, it reaches 60.00 discontinuous F1, while the structured-perceptron comparison reaches 83.33. The paper supplies converted resources and makes its parser code available. Its experiments show why the ability to build a discontinuous tree and the ability to recover one reliably from sparse examples are separate problems.

Deep dive: Representation and parsing of syntactic discontinuities in French constituent treebanks

How Coavoux and Crabbé represent discontinuous phrases in French treebanks, parse them with a GAP action, and measure the effects of sparse data. · about 35 minutes to read

The problem and its context

A phrase can be separated in the sentence

A constituent tree describes how words form phrases and how those phrases fit into larger units. In an ordinary continuous tree, each phrase dominates a stretch of adjacent words. To identify what the phrase covers, its left and right endpoints suffice. A discontinuous constituent has words on both sides of material that it does not dominate. The intervening material remains part of the sentence and has its own place in the tree. The discontinuity concerns which word positions belong to a particular phrase.

The question about what to do shows why this distinction matters. The surface position of que places it before the finite verb and the subject clitic. Its object relation concerns the infinitive faire. If the object is placed directly under the phrase headed by the infinitive, the infinitival phrase covers the interrogative word and the infinitive while leaving out the finite material between them. The sentence at the root can still cover the entire question continuously. A gap in a lower phrase therefore tells the reader something about that phrase’s yield, the set of terminal words it dominates, while saying little by itself about the yield of its ancestors.

The paper treats this as one way of representing a long-distance relation. The distance in question is structural as well as linear. Words can be far apart in a string without providing evidence for a particular extraction analysis. Conversely, a phrase with an extraction annotation can remain continuous after conversion if the relevant material is already adjacent in the tree’s word order. What matters for the annotation is where the extracted phrase belongs grammatically. What matters for the discontinuity count is whether moving it there gives a constituent separated stretches of terminals.

This distinction becomes important in French because the paper describes it as having relatively fixed word order. A generally stable order still admits constructions in which a phrase appears away from the place associated with its grammatical function. Questions and relative clauses make the issue easy to see. A cleft can place a focused phrase before a clause whose verb supplies its role. A dislocated phrase can occur towards the edge of a sentence while being related to a predicate inside it. The authors also consider some occurrences of en, where the clitic corresponds to prepositional material associated with a phrase elsewhere in the analysis. The relevant unit can be as small as a single word or extend over a much longer phrase.

Where earlier treebanks recorded the relation

The paper describes several ways to maintain a continuous phrase structure while preserving information about extraction. Gazdar’s SLASH feature carries information about an extracted element through the grammar. The feature encoding lets a context-free description express the relation indirectly. The Penn Treebank uses indexed traces. It puts an empty category at the position associated with the extracted phrase and assigns the two the same index. The visible phrase keeps its surface attachment, and the index makes its connection to the empty position recoverable.

The original French Treebank did not explicitly encode extraction relations. Candito and Seddah added a layer of linguistic annotation based on functional paths. A path describes how to get from the local governor of an extracted phrase to the grammatical position relevant to its long-distance relation. It does so by naming functions along the way. The local governor is the head associated with the phrase in the projective analysis. The path enables the reader to find the governor that licenses the grammatical role recorded by the extraction annotation.

These schemes make different choices about where to store the same kind of information. An empty category and its index preserve the relation in a link between tree positions. A functional path records instructions for finding the destination within the existing analysis. In either case, someone with the full annotation can recover more than the continuous constituent structure alone expresses. The parsing problem changes when preprocessing strips out the traces or functional annotations. The resulting training trees and evaluation references no longer ask the parser to recover the extraction information carried by that layer.

The paper explains the rationale for this practice in terms of computation. Context-free constituent parsers can exploit the fact that a continuous phrase corresponds to one interval. Exact algorithms for richer grammars must deal with multiple intervals per constituent, and the complexity can grow quickly with the number of intervals allowed. A parser evaluated on preprocessed continuous trees has an easier structural task. Its score answers whether it can reproduce the simplified annotation. Recovering the original long-distance relations requires a target representation and an evaluation that preserve those relations.

The German treebanks Negra and Tiger provide the paper’s examples of a different annotation choice. They permit phrases whose terminals are interrupted by words outside the phrase. The paper connects that decision to the representation of variation in word order, including extraposition. It cites the earlier annotation scheme for free word order languages in describing Negra. The French study adopts the possibility of a discontinuous yield for the cases covered by the functional annotations, even though the mix of constructions motivating the French conversion differs from the German examples.

LCFRS give a formal account of trees with this property. A rule can combine pieces that occupy separate ranges of the sentence. The pieces of a constituent can then be combined with other material higher in the tree. The paper places these systems among mildly context-sensitive grammar formalisms. This classification describes what the representation can express. The authors also point out that extraction can be encoded with context-free machinery such as SLASH. The decision to represent it directly with separated spans is a decision about the structure the parser will learn to predict.

Prior work discussed in the paper includes exact chart parsing for discontinuous structures and methods that apply heuristics to speed up inference. The paper cites data-driven parsing with probabilistic LCFRS in this connection. It also treats the discontinuous Penn Treebank experiments as a precedent for representing extraction-related phenomena in a language with relatively fixed word order. The conversion of French data and the choice of parser are separate decisions. A discontinuous treebank supplies a structural target, while a particular parsing strategy determines how to search for a tree for a new sentence.

Transition-based parsers offer one such strategy. They construct a tree by changing a parsing configuration through a sequence of small actions. Previous work described in the paper had explored both easy-first parsing and extensions to shift–reduce parsing for discontinuous constituents. These methods permit approximate inference and can use a classifier with a rich description of the current configuration. They also return a parse for an input sequence even if its grammaticality is doubtful. Coavoux and Crabbé reuse the discontinuous transition system they had developed for German and investigate how to train it for French with shared representations for syntax, morphology and grammatical function.

The method, step by step

Follow the functional path to a new attachment

The conversion begins with three existing treebanks. The French Treebank supplies the annotation scheme on which Sequoia and the French Question Bank are based. The paper describes the schemes as close enough to support experiments across domains. Each treebank has annotations from which the conversion can recover the attachment of certain extracted phrases. The procedure takes a node marked with a functional path, interprets the path and moves the node to the specified attachment. Word positions stay fixed. The resulting constituent spans follow from the new parent–child relations.

In the question Que dois-je faire ?, the noun phrase projected by que carries the path OBJ/OBJ. In the projective tree, its local governor is dois. The path leads through the object of dois to the grammatical position of the interrogative phrase as an object of faire. Once this attachment is made, the phrase for the infinitive contains que and faire. The intervening finite verb and subject clitic remain under their own part of the tree. The path has been turned into a direct structural relation, and the infinitival phrase now has a discontinuous yield.

The paper illustrates a more deeply embedded attachment with the question that asks the reader to name the university of which Woodrow Wilson was president. The relative expression dont appears at the beginning of the relative clause. The conversion attaches it to the phrase headed by président, the predicative nominal associated with the subject. The relative clause’s subject and verbal material intervene between dont and the phrase to which it is attached. The converted representation can show the grammatical role directly while retaining the observed order of the words.

The paper pairs that example with a question asking for a tiger whose breed is extinct. Here dont is adjacent to the phrase from which the annotation treats it as extracted. The same decision to make the grammatical attachment explicit need not produce separated stretches of words. This is why the authors distinguish the construction responsible for an extraction from the presence of a gap after conversion. A count of relatives, questions or clefts in a treebank would answer a different question from a count of their discontinuous constituents.

The same principle applies across the annotated construction types. The paper illustrates a direct question about the kind of housing for which someone might receive assistance and an indirect question about how the Commission expects to raise money. In each, the grammatical role of the interrogative expression is recovered from the analysis. It also illustrates a cleft whose focus names the industrial life of an area, a dislocation involving a phrase about technological determinism, and a sentence where en is associated with the expression for taking the measure of a crisis. These cases motivate allowing discontinuous yields. The actual conversion is governed by the functional path available for each node.

Measure the shape of the converted trees

Fan-out is the number of contiguous pieces a constituent’s yield occupies. A single continuous stretch has no intervening gap. A yield occupying separate stretches has a gap at each break between successive stretches. The paper expresses that correspondence as follows.

G(c) = fan-out(c) − 1

c is a constituent, fan-out(c) counts the contiguous stretches occupied by its terminals, and G(c) is its gap-degree. Subtracting 1 converts the number of stretches into the number of gaps between them. In the converted que question, the sentence root SENT has gap-degree 0. The infinitival phrase VPinf has gap-degree 1 because que and faire occupy 2 stretches of the sentence.

The corpus-level measure records the highest gap-degree observed in the collection.

G(C) = max_{c ∈ C} G(c)

C is the set of constituents observed in the treebank, c ∈ C means that c belongs to that set, and max takes the largest of their individual gap-degrees. G(C) is therefore sensitive to a single highly discontinuous constituent. It does not tell a reader how frequent that constituent shape is or how long any individual gap extends.

The paper also measures the number of immediate children of a constituent. It denotes that number by R(c), the constituent’s rank, and defines the treebank’s rank as follows.

R(C) = max_{c ∈ C} R(c)

C and c ∈ C again identify the whole observed set and a member of it. R(c) counts the children directly under c, and R(C) is the largest such count. A constituent can have many immediate children whose yields together form a continuous stretch. Rank describes how many children a production combines, whereas gap-degree describes the word positions covered by the constituent that results.

These properties also explain why the authors report a complexity bound for exact parsing separately from the descriptive corpus statistics. For binary LCFRS, the bound they give is the following.

O(n^(3f))

O denotes an asymptotic bound on the growth of the computation. n is the sentence length in words, and f is the fan-out of the grammar. The exponent 3f means 3 times f. This is the bound the paper gives for exact inference with the binary formalism. It motivates approximate search even in a corpus where most sentences have continuous trees. The availability of one gap construction affects what a grammar has to permit, while its empirical rarity affects how much evidence a learner receives about when to use it.

Prepare trees that the parser can build

The transition system assumes binary, lexicalized trees. A lexicalized constituent has a head word associated with its category. The head is retained through reductions, so a completed constituent supplies both a phrase label and a word that can represent it for later decisions. The authors annotate heads with rules adapted from earlier work on French lexicalization. Those heads also make it possible to obtain a dependency analysis from the constituent tree. When two phrases combine, their heads identify the words involved in the corresponding dependency relation.

The authors binarize each tree around its heads, using markovization of order 0. Binarization expresses a phrase with several children through successive combinations of pairs. The temporary nodes introduced while binarizing a phrase each contain its head. In the example with que and faire, the conversion has already created the discontinuous infinitival phrase before binarization begins. Binarization introduces a temporary sentence-level category, SENT:, as part of arranging the combinations that build the full root. The converted attachment and the temporary branching structure serve different purposes. The former expresses the analysis of extraction, and the latter lets the transition system derive the target tree.

Unary productions, in which a parent has one child, are merged during preprocessing except where the paper retains them to support the interface with morphological analysis. The authors also omit functional suffixes from the categories used to build the constituent tree. A label such as that of the infinitival phrase can therefore be used for constituency without appending its object function. The word-level functional task supplies a distinct prediction of grammatical roles. The functional paths have already served their role in the conversion, and the reattachments they caused remain in the tree.

From functional paths to a discontinuous parse

The steps in order.

From functional paths to a discontinuous parseStep 1: Reattach nodes using annotated functional paths1. Reattach nodes using annotated functional pathsStep 2: Assign heads and binarize the reference trees2. Assign heads and binarize the reference treesStep 3: Encode words and characters in sentence context3. Encode words and characters in sentence contextStep 4: Learn word tags and reference parsing actions4. Learn word tags and reference parsing actionsStep 5: Score actions for the current configuration5. Score actions for the current configurationStep 6: Shift, gap or reduce to build the tree6. Shift, gap or reduce to build the treeStep 7: Return the completed lexicalized root7. Return the completed lexicalized root

Make a deeper item available for reduction

Ordinary shift–reduce parsing reads the next word with SHIFT and builds larger phrases with reductions. A binary reduction in the ordinary system applies to the two items at the top of a stack. This creates a problem when the next useful combination involves an older phrase beneath an unrelated partial tree. The SR-GAP system divides the working store between a stack and a double-ended queue so that a reduction can reach past those intervening items.

A configuration is written ⟨S, D, B⟩. S is a stack of partial trees, D is a double-ended queue of partial trees, and B is the buffer of words still to be read. At the beginning, S and D are empty and B contains the whole token sequence. At completion, S and B are empty and D holds the root of the predicted tree. Every action changes the configuration, and the current configuration determines which actions are legal. The paper refers to the earlier SR-GAP work for the preconditions that ensure well-formed outputs.

The transition equations use | to concatenate sequences. The right ends shown for S and D hold the items available for reduction, written s₀ and d₀. The next token in B is written b₀. An expression such as S | s₀ denotes a stack whose remainder is S and whose exposed item is s₀. A category written X[h] is a nonterminal X with head word h. A lone item in a store position in an output configuration denotes a store containing just that item.

SHIFT(⟨S, D, b₀ | B⟩) = ⟨S | D, b₀, B⟩

SHIFT reads b₀, the first token of the old buffer, and removes it from that buffer. The old contents of D are appended to S, and the new D contains b₀. The B at the end of both sides is the unread remainder. Shifting therefore gives the latest word a position from which the next action can use it and makes the preceding partial trees available in the stack.

REDUCE-LEFT-X(⟨S | s₀[h], D | d₀[h′], B⟩) = ⟨S | D, X[h], B⟩

REDUCE-LEFT-X combines s₀[h] and d₀[h′] as children of a new constituent of category X. The selected stack item has head h, and the selected queue item has head h′. The new constituent keeps h. The remaining items of the queue are appended to the stack remainder, X[h] becomes the sole item in the queue, and the unread buffer B keeps its contents.

REDUCE-RIGHT-X(⟨S | s₀[h], D | d₀[h′], B⟩) = ⟨S | D, X[h′], B⟩

REDUCE-RIGHT-X also combines the exposed stack and queue items, giving them a parent of category X. The queue item supplies head h′ in this case. S and D on the right denote the remainders after removing the two children. Their concatenation becomes the new stack. The new queue contains X[h′], and B retains the unread tokens.

REDUCE-UNARY-X(⟨S, d₀[h], B⟩) = ⟨S, X[h], B⟩

REDUCE-UNARY-X gives d₀[h] a parent with category X and preserves its head h. This action uses the permitted configuration shown in the equation, with the queue item d₀[h] replaced by X[h]. The stack S and buffer B are unaffected. Unary reductions let the parser express the retained single-child structure, including phrase nodes over preterminals in the worked derivation.

GAP(⟨S | s₀, D, B⟩) = ⟨S, s₀ | D, B⟩

GAP removes s₀ from the exposed end of the stack and places it at the other end of the queue from the item used for reduction. The remaining stack is S, the new queue is s₀ | D, and B still holds the unread input. With the active queue item still available, the parser can now combine it with the newly exposed stack item. Further GAP actions can expose items deeper in the stack. An item moved aside remains available for a later combination.

The worked derivation builds the question’s infinitival phrase after the initial interrogative word has been made into a noun phrase. The parser shifts the finite verb and subject clitic and combines them under a verbal node. It shifts the infinitive and wraps it in a verbal node as well. At this stage the finite verbal material is between the interrogative phrase and the active infinitival material in the working store. One GAP action moves the finite verbal node aside. A right-headed reduction then builds VPinf from the interrogative noun phrase and the infinitival node, carrying forward the head faire. Later reductions put the finite material, infinitival phrase and punctuation under the sentence root headed by dois. The completed root covers the entire question, even though the phase that built VPinf skipped intervening words.

Give each word a representation of its context

The legal actions for a configuration are supplied by the transition system. Their scores come from a neural network with a sentence encoder and an action classifier. The sentence encoder associates a vector with each token. A vector here is an ordered collection of real-valued features. Using such a representation lets the action classifier look up a token’s description wherever the token occurs as the head or boundary of a partial tree.

For each token xᵢ, the encoder’s input is the concatenation [vᵢ, cᵢ]. i is the token’s position. vᵢ is its learned word embedding, and cᵢ is a vector built by running a bidirectional long short-term memory network, or bi-LSTM, over the characters of the token. The character representation can give two words related features through shared spelling patterns. The authors cite work on multilingual tagging with bidirectional recurrent networks for this approach. Both sources of input are available to the same sentence encoder.

A bidirectional encoder runs a recurrence in each direction over the token sequence. The forward recurrence summarizes prefixes, so the state for a word can depend on material to its left. The backward recurrence summarizes suffixes, so the state at that word can also depend on material to its right. In the paper’s notation, with ranges made explicit, the token representation has the following form.

hᵢ = [LSTM_f(x₁, …, xᵢ); LSTM_b(xᵢ, …, xₙ)]

hᵢ is the representation of token position i. x₁ through xₙ are the input tokens in sentence order, with n the number of tokens. In this equation each token stands for the input supplied at its position. LSTM_f is the forward recurrence, evaluated through xᵢ. LSTM_b is the backward recurrence, which reads the indicated suffix from the right up to xᵢ. The ellipses stand for intervening positions, and the bracket and semicolon notation indicates vector concatenation. Each direction returns a vector of real numbers with a fixed dimension, independent of the length of the prefix or suffix.

The sentence encoder has two layers. The first supplies the representations used to predict attributes of the individual words. The second supplies the contextual vectors used to score parsing actions. The order matters because the lower layer contributes to both purposes through the stack of encoders. For parsing, a fixed set of positions in the current configuration can now give the classifier information about sentence material well beyond those positions. The next buffer word, for example, has a contextual representation informed by words that the transition system has yet to shift. The transitions are incremental, while the encoder can inspect the complete input sequence from both directions.

The paper relates this design to earlier constituent parsing by Cross and Huang and to bidirectional feature representations for dependency parsing. It also situates the joint training of the action and tagging tasks in earlier multitask work, including Natural Language Processing (almost) from Scratch. The change of interest is the application of these ingredients to discontinuous transition decisions alongside the prediction of word attributes.

The auxiliary predictions include part of speech and morphological attributes such as mood, tense, person, gender and subcategory. The paper also includes information about whether a token belongs to a multiword expression and whether it heads one. Functional labeling assigns the kind of grammatical function that a dependency treebank would associate with the token. A separate classifier predicts each attribute from the contextual representation at that position.

Softmax(W⁽ʲ⁾ · hᵢ + b⁽ʲ⁾)

j indexes the attribute being predicted, and i indexes a token. Here hᵢ is the token representation from the first sentence-encoder layer. W⁽ʲ⁾ is the learned weight matrix for attribute j, and b⁽ʲ⁾ is its learned bias vector. The dot denotes the application of the weight matrix to the token vector, and the addition gives one score for each possible value of the attribute. Softmax turns those scores into a probability distribution. The tagger predicts the value with the highest probability. Assigning a classifier per attribute allows the same word to receive predictions for several grammatical properties.

The action classifier has a compact description of the current parsing configuration. It takes category vectors for the top two items in the stack and the corresponding two positions in the double-ended queue. It takes contextual word vectors for the head, left corner and right corner of the first item in each of those stores. From the second stack item it takes the head and right corner, and from the second queue item it takes the right corner. It also takes the contextual vector for the first unread token. A corner is the leftmost or rightmost token of the constituent in sentence order. For a discontinuous constituent, the bounds supply convenient positions for features while the tree still records exactly which words it dominates.

The category vectors are learned during training for the available nonterminals. The head and corner vectors, along with the vector for the unread word, come from the sentence encoder’s upper layer. This gives the action classifier a familiar feed-forward structure, similar to the one the paper describes in Chen and Manning’s neural dependency parser. Here a word feature can carry information from surrounding words. The authors say this use of contextual vectors substantially reduces the number of feature templates they have to specify compared with their perceptron system.

The classifier uses two hidden layers with a rectified linear activation.

ReLU(x) = max{0, x}

ReLU denotes the rectified linear unit, x is a scalar input to the activation, and max returns the larger of 0 and x. The output layer applies Softmax to produce a probability distribution over the actions that can be taken. For instance, the action of reducing to an infinitival phrase with a right head is distinct from the action of postponing the combination by applying GAP. The choice depends on the available actions and on how the classifier scores the configuration.

The paper defines a complete derivation’s score as the product of its conditional action probabilities. Using different letters for the input length and the number of actions makes the role of each length explicit.

score(a₁, …, aₘ) = ∏ᵢ₌₁ᵐ P(aᵢ | a₁, …, aᵢ₋₁, x₁, …, xₙ)

a₁ through aₘ are the actions in a derivation of length m. x₁ through xₙ are the n input tokens. i indexes an action, a₁ through aᵢ₋₁ are the actions already taken, and P is the classifier’s conditional probability for aᵢ given the input and that history. The history determines the configuration on which the classifier operates. The vertical bar separates the event from what it is conditioned on. ∏ multiplies the probabilities across the action sequence.

There are exponentially many possible action sequences. The parser takes the highest-probability action at each configuration and proceeds from there. It has no guarantee of finding the derivation with the highest product. A locally attractive choice can lead to a poor later configuration, and greedy inference has already committed to that choice by the time the later difficulty arises. The experiment compares this strategy with a structured perceptron that searches a beam of alternatives.

Fit the parsing and tagging tasks together

For training, a preprocessed reference tree supplies a corresponding sequence of reference actions. Word-level annotations supply the reference attributes. The objective penalizes low probability on either kind of target. It is convenient to distinguish the number of tokens from the number of actions when writing out the two parts of the sum.

L(w, a, m; θ) = −∑ᵢ₌₁ᴬ log P(aᵢ | w, a₁, …, aᵢ₋₁; θ) − ∑ᵢ₌₁ᴺ ∑ⱼ₌₁ᵏ log P(mᵢⱼ | w; θ)

L is the loss for the training sentence w. a is its sequence of A reference parsing actions, and aᵢ is the action at step i. The first sum ranges over action steps and gives each reference action the probability P assigned using the sentence and preceding reference actions. m is the matrix of target tags, and mᵢⱼ is the reference value of attribute j for token i. The other sums range over the N tokens and k attributes per token. θ denotes the trainable parameters, including the word and character vectors. log denotes the logarithm, the minus signs make the terms negative log probabilities, and each ∑ adds the indicated contributions.

The paper also writes the two objectives separately.

L(w, a, m; θ) = Lₚ(w, a; θ) + Lₜ(w, m; θ)

Lₚ is the negative log-likelihood of the reference parsing actions, and Lₜ is the negative log-likelihood of the reference tags. L, w, a, m and θ have the meanings given above. The plus sign combines the costs. In optimization the authors calculate the tagging gradient for a sentence and update the parameters first. They then calculate the parsing gradient and make another update. They use averaged stochastic gradient descent and group all word-attribute predictors in the tagging stage to speed training.

To learn a representation for unseen words, the authors occasionally replace a training token with a special unknown-word symbol. The probability depends on how often its word form occurs in the training data.

p(w) = α / (#{w} + α)

Here w is a word form, p(w) is the probability of replacing an occurrence of that form during training, and #{w} counts its occurrences in the training corpus. α controls the rate of replacement, the plus sign adds it to the count, and the slash denotes division. The paper takes the frequency-dependent replacement approach from Kiperwasser and Goldberg and sets α to 0.8375, following Cross and Huang’s span-based parsing work. More frequent forms have a larger denominator and are replaced less often.

For each experiment, the authors select settings by overall constituent F1 on the development split. Their optimization search uses a learning rate of 0.02, decay constants of 10⁻⁶ or 10⁻⁵, absolute gradient clipping bounds of 5 or 10, and 16, 20, 24 or 25 passes through the training corpus. Word and nonterminal vectors have dimension 16. The sentence LSTM state dimension per direction is 128 or 256, the character embedding dimension is 8 or 16, the character LSTM state dimension is 16, and the action classifier’s hidden layers have dimension 128. The paper makes the parser code freely downloadable in the mcoavoux/mtg repository.

Experiments and results

Where the gaps occur

The corpus statistics give two views of sparsity. A sentence is counted as having a discontinuity when its converted tree includes a discontinuous constituent. The constituent-level figures use all constituent nodes as the denominator, including nodes in sentences that have no gaps. A sentence with a discontinuous phrase still contains many ordinary phrases. Sentence-level and constituent-level percentages consequently convey different information about the evidence available for training and evaluation.

In the French Treebank training split, 253 of 14,759 sentences have a gap (1.71%), and 374 of 298,025 constituents are discontinuous (0.13%). The development split has 27 sentences with a gap (2.19%) and 35 discontinuous constituents (0.13%). The test split has 32 sentences with a gap (1.26%) and 44 discontinuous constituents (0.09%). All three splits have maximum gap-degree 1. The largest observed rank is 34 in the training split, 23 in development and 30 in test. These ranks describe the treebank trees underlying the corpus statistics, before adapting their branching to the binary transition system.

For all of Sequoia, 46 of 3099 sentences have a gap (1.48%), and 70 of 47,586 constituents are discontinuous (0.15%). The corpus has a maximum gap-degree of 1 and a maximum rank of 32. The full French Question Bank has 88 of 2289 sentences with gaps (3.84%) and 94 discontinuous constituents among 15,966 constituents (0.59%). In its training split, 69 of 1289 sentences have gaps (5.35%), and 73 of 9416 constituents are discontinuous (0.77%). The development split has 6 gap-bearing sentences (1.2%) and 7 discontinuous constituents (0.22%). The test split has 13 gap-bearing sentences (2.6%) and 14 discontinuous constituents (0.42%). Gap-degree 2 occurs in the question bank’s training split. Its development and test splits both have maximum gap-degree 1.

The separate construction counts show how the three corpora get their discontinuities. For the French Treebank training split the largest entries are relative clauses, with 183 recorded cases and 72%, and en, with 57 and 22%. Questions and clefts make smaller contributions. In Sequoia, the relative-clause entry has 36 cases and 77%. Clefts and en each have 4 cases, reported as 9% apiece. In the full French Question Bank’s construction breakdown, 83 cases are questions, accounting for 95%, and 4 are relative clauses, accounting for 5%. The paper reports the construction counts separately from the number of sentences that contain a gap.

For perspective, the paper cites estimates of about 29% of sentences with a discontinuity in German Tiger and about 20% in a discontinuous version of the Penn Treebank. This comparison puts the French evaluation sets in context. It uses each corpus as annotated, so both the phenomena selected for annotation and the types of phrase structure present in the trees affect the rates.

Setups, comparison parser and metrics

The first experiment trains on the French Treebank training split and uses the standard training, development and test partition associated with the SPMRL shared task. The paper reports results on the French Treebank test split, all of Sequoia and all of the French Question Bank. These evaluations show performance on held-out data from the training treebank and on complete corpora outside it. The separate French Question Bank experiment uses its last 500 sentences for testing, the preceding 500 for development and the remaining 1289 for training. The question-bank test results from that run thus have a different training source and a different evaluation set from the French Treebank-trained results on the full question bank.

The comparison system is the authors’ earlier structured perceptron with a beam of 16. It uses the same discontinuous transition system and has no internal morphosyntactic tagger. For the French Treebank it receives predicted tags from the shared-task organizers, and for the other corpora it receives tags predicted by the bi-LSTM parser. The proposed parser uses a beam of 1, the greedy configuration. The evaluation therefore compares two operational setups, including their scoring machinery, their approach to tagging and how many candidate action histories they retain.

For constituency, the authors use DISCODOP with the shared-task parameters, which include punctuation in evaluation. Of the constituents predicted, the fraction that also appear in the reference is called precision. Recall is the share of reference constituents the parser recovers. F1 combines precision and recall so that a parser needs both to score well. The paper reports each measure for all constituents and again for discontinuous constituents only. A discontinuous match requires recovering the reference constituent with its separated yield. A parser can therefore place many short, continuous phrases correctly and still score poorly on discontinuous F1.

The lexicalized structures also support a separate dependency evaluation. The paper includes unlabeled attachment score, UAS, for identifying the governor, and labeled attachment score, LAS, which requires the grammatical label as well. These metrics measure individual word-to-word attachments. They can register partial success in recovering relations even where a full constituent requires several decisions to be correct. The paper reports tagging scores alongside the syntactic scores, giving another view of the word-level side of the system.

Training on the French Treebank

On the French Treebank test split, the greedy bi-LSTM parser reaches 82.04 overall constituent F1. Its precision is 81.93 and its recall is 82.14. The structured perceptron reaches 79.42 overall F1, with precision 79.27 and recall 79.57. Restrict the evaluation to discontinuous constituents and the ordering changes. The neural parser reaches 14.46 F1 and the perceptron reaches 19.05. Both have discontinuous recall of 13.64. The perceptron’s stronger score in that category comes with higher precision, 31.58 against 15.38.

Overall constituent F1 after French Treebank training

The greedy bi-LSTM leads on the French Treebank and Sequoia, while the perceptron leads on the full question bank.

Overall constituent F1 after French Treebank trainingFrench Treebank test, structured perceptron: 79.42French Treebank test, structuredperceptron79.42French Treebank test, greedy bi-LSTM (this paper): 82.04French Treebank test, greedy bi-LSTM(this paper)82.04Sequoia, structured perceptron: 76.74Sequoia, structured perceptron76.74Sequoia, greedy bi-LSTM: 77.46Sequoia, greedy bi-LSTM77.46French Question Bank full corpus, structured perceptron: 85.93French Question Bank full corpus,structured perceptron85.93French Question Bank full corpus, greedy bi-LSTM: 85.14French Question Bank full corpus, greedybi-LSTM85.14
The numbers
System or settingF1
French Treebank test, structured perceptron79.42
French Treebank test, greedy bi-LSTM (this paper)82.04
Sequoia, structured perceptron76.74
Sequoia, greedy bi-LSTM77.46
French Question Bank full corpus, structured perceptron85.93
French Question Bank full corpus, greedy bi-LSTM85.14

With French Treebank training, the neural parser reaches 77.46 overall F1 on Sequoia, with precision 77.75 and recall 77.16. The perceptron reaches 76.74 overall F1. Their discontinuous F1 scores on Sequoia are 26.53 and 26.83, respectively. For the neural parser, discontinuous precision is 46.43 and recall is 18.57. For the perceptron, precision is 91.67 and recall is 15.71. The close F1 scores thus accompany quite different balances between how many predictions agree with the reference and how much of the reference each system recovers.

The transfer to the full French Question Bank shows a different overall ordering. The neural parser reaches 85.14 constituent F1 and the perceptron reaches 85.93. On discontinuous constituents, the neural parser reaches 11.43 F1 with 54.55 precision and 6.38 recall. The perceptron reaches 15.53 F1 with 88.89 precision and 8.51 recall. The low recalls are important to interpreting the relatively high precisions. A system can be accurate on the discontinuous phrases it proposes while still missing most of the discontinuous phrases in the reference.

Discontinuous constituent F1 after French Treebank training

The structured perceptron scores higher on discontinuous constituents in each evaluation corpus.

Discontinuous constituent F1 after French Treebank trainingFrench Treebank test, structured perceptron: 19.05French Treebank test, structuredperceptron19.05French Treebank test, greedy bi-LSTM (this paper): 14.46French Treebank test, greedy bi-LSTM(this paper)14.46Sequoia, structured perceptron: 26.83Sequoia, structured perceptron26.83Sequoia, greedy bi-LSTM: 26.53Sequoia, greedy bi-LSTM26.53French Question Bank full corpus, structured perceptron: 15.53French Question Bank full corpus,structured perceptron15.53French Question Bank full corpus, greedy bi-LSTM: 11.43French Question Bank full corpus, greedybi-LSTM11.43
The numbers
System or settingF1
French Treebank test, structured perceptron19.05
French Treebank test, greedy bi-LSTM (this paper)14.46
Sequoia, structured perceptron26.83
Sequoia, greedy bi-LSTM26.53
French Question Bank full corpus, structured perceptron15.53
French Question Bank full corpus, greedy bi-LSTM11.43

The French Treebank-trained neural parser obtains 88.24 UAS and 83.40 LAS on the French Treebank test split, with a tagging score of 97.66. On the full French Question Bank the dependency scores are 89.08 UAS and 79.39 LAS, with a tagging score of 93.89. On Sequoia they are 85.18 UAS and 77.94 LAS, with tagging at 94.79. The paper includes previous published dependency results that the authors consider relatively close to their conditions. Michalon and colleagues report 86.6 UAS and 83.3 LAS on the French Treebank test split. Seddah and Candito report 87.70 UAS and 76.48 LAS on the full French Question Bank. These are dependency evaluations from earlier work. The structured-perceptron rows serve as the comparison for constituent recovery.

The paper reports throughput for the French Treebank test condition on 1 CPU. The greedy bi-LSTM parser processes about 480 tokens per second, compared with 920 for the structured perceptron. This establishes that the neural system can use the discontinuous transition inventory at practical throughput in the reported setting. It also shows that the comparison parser runs faster in that measurement in spite of keeping a wider beam. Beam width alone does not determine the amount of work per input token because the systems score actions differently.

Training and testing on question-bank splits

When trained on the question bank and evaluated on its test split, the neural parser reaches 92.96 overall constituent F1, with 92.67 precision and 93.25 recall. The structured perceptron reaches 93.28 overall F1, with precision 93.43 and recall 93.13. The neural parser has 94.23 UAS and 90.48 LAS in this condition, with tagging at 96.05.

For discontinuous constituents on the same test split, the neural parser reaches 60.00 F1 with precision 56.25 and recall 64.29. The perceptron reaches 83.33 F1, with reported precision of 71.43. Both discontinuous F1 scores are substantially higher than their corresponding French Treebank-trained scores on the full question bank. The authors interpret that pattern as reason to investigate training with more frequent discontinuities. The test sentences differ across these experiments, and the comparison also changes whether training is in-domain. The result establishes performance for each complete setup.

Discontinuous constituent F1 on the French Question Bank test split

With both parsers trained on the question bank, the structured perceptron recovers discontinuous phrases more accurately by F1.

Discontinuous constituent F1 on the French Question Bank test splitGreedy bi-LSTM (this paper): 60.00Greedy bi-LSTM (this paper)60.00Structured perceptron: 83.33Structured perceptron83.33
The numbers
System or settingF1
Greedy bi-LSTM (this paper)60.00
Structured perceptron83.33

The results make it possible to distinguish formal coverage, practical inference and recovery accuracy. The derivation shows that the parser can build a discontinuous phrase. The throughput measurement shows that the system can run at the reported speed. The discontinuous F1 column shows how frequently a particular training and test protocol rewards the decisions that use that capability. The overall F1 and the dependency scores describe broader aspects of the predicted analysis and can remain high even when exact discontinuous constituents are difficult to recover.

What the ablations show

The paper reports no component-removal ablations. It offers a comparison with a structured perceptron, a change of training and evaluation domain, and a study of development scores across hyper-parameter settings. Those comparisons establish how the full systems behave under the reported conditions. A contribution attributable to an individual auxiliary task, the character encoder or the choice of greedy search would require a comparison that varies that element by itself.

Aggregate scores are steadier than discontinuous scores

The authors examine constituent metrics across the 64 neural configurations used during calibration. On the French Treebank development split, overall constituent F1 ranges from 80.2 to 82.33, with a standard deviation of 0.428. Discontinuous F1 ranges from 3.85 to 32.0, with a standard deviation of 6.931. Discontinuous precision reaches a low of 5.88 and a high of 60.0, while discontinuous recall ranges from 2.86 to 22.86. These are separate extremes for each metric. The table does not imply that the same configuration attained all of them together.

The French Treebank configuration selected by overall development F1 has 82.33 on that criterion but 17.39 discontinuous F1. Its discontinuous precision is 36.36 and its recall is 11.43. The maximum discontinuous F1 in the sweep is higher than the selected configuration’s score on that category. The selection criterion gives each constituent match its ordinary role in the overall evaluation, where discontinuous constituents are rare. The development figures show concretely how the configuration that wins under that criterion can sit well below the best observed score on the rare structures.

The same contrast appears on the French Question Bank development split. Overall F1 ranges from 93.75 to 95.18, with a standard deviation of 0.317. Discontinuous F1 ranges from 40.0 to 75.0, with a standard deviation of 8.838. Discontinuous precision ranges from 30.77 to 71.43, and discontinuous recall from 57.14 to 85.71. The selected configuration gives 95.18 overall F1 and 62.50 discontinuous F1, with discontinuous precision 55.56 and recall 71.43. Only 7 reference constituents are discontinuous in this development split. This makes the discontinuous score sensitive to decisions about individual phrases.

The statistics are variation across configurations, so they describe how changing the tested hyper-parameters affects the reported scores on fixed development sets. They also illustrate why small test inventories are hard to interpret. Even when the overall score scarcely moves, a change in when the parser predicts a gap can materially affect discontinuous precision or recall. The paper treats the scarcity of reference instances as the explanation for this sensitivity. It does not use the sweep to estimate sampling uncertainty on new sentences or report the effect of individual hyper-parameters on each construction.

What the comparisons can isolate

Both test parsers can build discontinuous phrases through the same transition inventory. The French Treebank test results show that the greedy neural parser improves overall constituent F1 in that setting, while the perceptron gives better discontinuous F1 with the same reported recall. The Sequoia results show a case where discontinuous F1 is close despite a substantial precision difference. Together these findings suggest looking at precision and recall when interpreting a change to the predictor. The headline constituent score can obscure whether a system misses reference discontinuities, predicts disconnected phrases where they do not belong, or does both.

The structured perceptron and the neural parser differ in scoring, tagging inputs and search. Consequently their comparison cannot assign the rare-constituent advantage to beam search or assign the overall advantage on the French Treebank to joint training. The paper motivates its contextual encoder by the information that full-sentence context can supply to local decisions, and it explains how the word-level tasks are connected to the shared representations. The empirical comparison evaluates those choices as a package.

The question-bank training run is a second kind of comparison. Both systems reach higher discontinuous scores in their in-domain question-bank setup than they do when trained on the French Treebank and tested on the full question bank. The authors connect this to the greater concentration of discontinuities in question-bank training and suggest oversampling gap-bearing sentences as a possible direction. The construction breakdown gives another reason to take domain seriously. The French Treebank breakdown is dominated by relatives, while the question-bank breakdown is dominated by interrogatives. The experiments give no independent estimate of how much the change in construction mix contributes alongside the frequency of gaps and the change in evaluation sentences.

Limitations

Limits the authors state

The conversion covers extraction phenomena for which functional paths are available. The authors identify extraposed relative clauses and parenthetical insertions as other potential sources of discontinuity and leave their treatment for future work. The statistics therefore describe a particular extension of the source annotations. They provide no census of every French construction that could receive a discontinuous analysis.

The authors also point to the effect of constituent conventions. The French Treebank generally lacks annotated verbal phrases other than infinitival and participial ones. They illustrate the consequence with a relative construction containing que, the subject le FMI and the verbal material avait anticipé. An analysis that posited a verbal phrase spanning que and that verbal material would have a discontinuity across the intervening subject. If the relevant phrase is absent from the annotation, there is no such constituent to count. Corpus rates thus depend on the shape of the underlying phrase structure as well as the presence of annotated extraction relations.

Exact inference is outside the claims of the greedy parser. Its classifier chooses a locally preferred action, and the search provides no optimality guarantee for the full derivation. The authors distinguish the theoretical cost of exact LCFRS parsing from the practical appeal of approximate transition-based inference. Their performance figures concern the latter. The paper also describes quadratic theoretical complexity for the transition-based approach and reports that linear parsing times are observed in practice. The throughput experiment is an observation under a specific setup, rather than a worst-case bound for all lengths or tree shapes.

Sparse data limit learning and evaluation. The authors argue that rare structures offer limited evidence for parameter estimation and lead to highly variable discontinuous scores. They report that results on French discontinuities are generally weaker than the results they describe as typical for German treebanks and suggest that rarity helps explain the difference. The corpora differ in annotation and construction mix, which the paper itself identifies as relevant to the frequency counts. Oversampling is a proposal arising from the experiments. Its effect is outside the paper’s measured findings.

Limits visible in the evaluation design

The most discontinuous constituent shape observed in the French Question Bank, gap-degree 2, appears in the training split. Its development and test splits have maximum gap-degree 1. The results therefore test recovery on references with simpler gap structure than the most difficult shape counted in training. They show the transition system’s expressivity and give corpus-specific accuracy figures. They leave open the question of sustained accuracy on reference trees with more gaps or with many discontinuous constituents in the same sentence.

The aggregate selection metric gives only a small place to the structures the paper is most concerned with. Selecting for overall F1 makes sense for a system intended to parse whole sentences, and it yields the reported operating points. It leaves unresolved which settings give the most dependable rare-structure recovery. A higher discontinuous development score during calibration, on its own, would also require careful interpretation given the small number of reference instances. The paper supplies per-metric extrema and standard deviations across configurations, while offering no uncertainty intervals for the test comparisons.

The domain experiment changes the kind of sentence available to both training and evaluation. Similar annotation conventions support transfer between the treebanks, but they cannot make an interrogative-heavy corpus equivalent to a corpus whose discontinuities mainly come from relative clauses. Neither the question-bank split experiment nor the corpus statistics isolate an effect of frequency at fixed construction mix. The paper also gives no breakdown of parsing accuracy by specific source construction, so the relative-clause and en counts cannot establish which of those cases the parser learns to recover most reliably.

Finally, word-level and phrase-level evaluations expose different properties of the output. The lexicalized trees support typed nonprojective dependencies, and the reported attachment scores cover the evaluated dependencies in aggregate. The paper does not provide a separate attachment score for the nonprojective subset. An overall LAS therefore measures the system’s general labeled attachment accuracy under that protocol. The discontinuous constituent scores provide the direct evidence for recovering phrases with gaps, while leaving the accuracy of particular long-distance dependency types unresolved.

What came after

The paper closes by proposing to oversample sentences with discontinuous constituents during training. That proposal follows from the contrast between the French Treebank and question-bank experiments, where gap frequency, domain and the mix of constructions vary together. The other directions it leaves open are to extend conversion to phenomena beyond the annotated extractions and to evaluate recovery where discontinuous structures are better represented. These are open directions identified by the authors. No later citing study is documented for assessing which of them was pursued or what it achieved.

Cite

Cite as Maximin Coavoux and Benoît Crabbé. 2017. Représentation et analyse automatique des discontinuités syntaxiques dans les corpus arborés en constituants du français (Representation and parsing of syntactic discontinuities in French constituent treebanks). Actes des 24ème Conférence sur le Traitement Automatique des Langues Naturelles. Volume 1 - Articles longs.

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

@inproceedings{coavoux2017representation,
  title = {{Représentation et analyse automatique des discontinuités syntaxiques dans les corpus arborés en constituants du français (Representation and parsing of syntactic discontinuities in French constituent treebanks)}},
  author = {Maximin Coavoux and Benoît Crabbé},
  booktitle = {Actes des 24ème Conférence sur le Traitement Automatique des Langues Naturelles. Volume 1 - Articles longs},
  year = {2017},
  url = {https://aclanthology.org/2017.jeptalnrecital-long.6/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/coavoux-2017-representation-et-analyse-automatique-des/