Quasi-Second-Order Parsing for 1-Endpoint-Crossing, Pagenumber-2 Graphs
Paper · 2017 · Junjie Cao, Sheng Huang, Weiwei Sun et al.
Summary
In semantic dependency parsing, a directed link connects words that stand in a relationship. A parser can score each possible link by itself, but some choices are easier to judge together. If two links share an endpoint, their combination may be more plausible than their individual scores suggest. Cao and colleagues ask how to use such evidence while still finding the highest-scoring graph efficiently. They focus on graphs that permit crossing links under two restrictions. All edges crossing a given edge must meet at a common word, and the edges must fit on two pages, with crossings allowed only between pages. Their algorithm also excludes a particular configuration with two crossing chains.
The authors first redesign the search that uses individual arc scores. Their earlier procedure could leave several arcs optional within a single construction step. In the new procedure, each rule specifies the edges it adds, and the search distinguishes ordinary noncrossing intervals from subproblems that can participate in a crossing. This gives the parser a place to score a pair of neighboring arcs when it has the information needed to identify them. The extension concentrates on sibling factors whose arcs are free of crossings. Both versions of the search take O(n⁴) time and O(n³) space for a sentence of length n.
The extension is called quasi-second-order because it counts positive sibling scores and gives negative sibling scores the effect of zero. A graph can have several derivations, or sequences of rule applications. One derivation may expose a neighboring pair to the scorer while another can build the same arcs without scoring the pair. The search takes advantage of a positive contribution and can bypass a negative one. The authors formulate an objective that reflects this behavior, so the exactness claim applies to the graph class and the scoring rule together.
The parser was evaluated on CCGbank and three datasets from SemEval 2014 Task 8. Adding sibling scores raised unlabeled F-score on every development and test set, both with and without features from automatically produced syntactic trees. The paper reports average absolute improvements of 1.3 without those features and 0.4 with them. Recall rose across all the matched comparisons, while precision moved in both directions. Against a second-order book-embedding parser, the results were split across datasets. The contribution is therefore a way to use neighboring dependencies within an exact search under specified restrictions, with measured accuracy gains over the corresponding arc-only parser.
Deep dive: Quasi-Second-Order Parsing for 1-Endpoint-Crossing, Pagenumber-2 Graphs
Cao and colleagues show how semantic dependency parsing can score neighboring arcs while retaining quartic decoding for graphs with limited crossings. · about 39 minutes to read
The problem and its context
Choosing a graph of dependencies
A semantic dependency analysis assigns directed connections between words in a sentence. Each connection makes a claim about a pair of words. The collection of those claims is a graph, and semantic dependency parsing can be posed as the job of picking that graph from a larger set of possible connections. The sentence supplies an ordered set of vertices, one for each word. A candidate arc specifies an ordered pair of those vertices, with a source and a destination. Selecting an arc puts the corresponding dependency in the analysis.
The paper treats this task as a Maximum Subgraph problem. The procedure starts with a graph of possible arcs, typically a complete directed graph, and seeks the highest-scoring subset that satisfies the output restrictions. The input graph and the output class have different jobs. The former supplies the arcs that the parser may choose. The latter determines which combinations are legal. Scores then determine which legal combination is preferred. In particular, an arc with a good score may be absent from the output if using it would conflict with a better combination under the graph restrictions.
A score can describe either a single dependency or a larger part of a graph. In first-order parsing, each factor contains an individual arc. Its score can still reflect features of the words, their tags, or information from a syntactic analysis. The defining property is that the contribution is attached to the presence of that arc. A second-order factor involving two dependencies makes it possible to assign a separate contribution to their joint occurrence. This changes the search because the usefulness of one decision can depend on which other decision accompanies it.
The paper focuses on sibling factors. The geometry is easiest to see by looking at two arcs incident to the same word on the same side. One reaches an inner endpoint, and the other reaches an outer endpoint. When the arcs are neighbors in the analysis, the scoring system can inspect them together. The question for the decoder is where to evaluate that score. It needs to see both arcs and enough of their surroundings to know whether they form the kind of pair the scoring rule calls for.
Two restrictions on crossings
Crossing is a property of the positions of edges in the sentence. Imagine drawing the words along a line. Two edges with distinct endpoints cross when their endpoints interleave. An edge from an earlier position to a later one can cross an edge that starts between those positions and ends beyond the later endpoint. Edges that meet at a word have a shared endpoint, so that meeting is governed by the graph’s incidence structure rather than by the crossing definition. Direction matters to the dependency analysis, but crossing can be checked using the two positions of each edge.
In a 1-endpoint-crossing graph, the edges that cross any particular edge all share an endpoint. The paper calls that common endpoint a pencil point. In its opening example, the edge between a and c is crossed by the edges between b and d and between b and e. Both crossing edges meet at b, so b serves as the pencil point for the edge between a and c. The condition is checked for each edge. This allows separate crossing groups elsewhere in a sentence and gives the parser a compact way to record the common endpoint of a group.
The pagenumber restriction concerns where the edges can be drawn. Treat the word line as the spine of a book and a half-plane extending from that line as a page. Edges on the same page must be drawable without crossings. A pagenumber-2 graph can be drawn on at most two such pages. Crossings visible in the ordering of the endpoints can be accommodated by assigning the corresponding edges to different pages. The paper’s book-embedding illustration shows the two half-planes separately, with the same word order serving as their boundary.
Cao and colleagues use both restrictions. Their earlier work studied the intersection because it covered a large share of semantic analyses while permitting polynomial-time search with arc scores. That work also identified a complex configuration, called a C structure, involving two crossing chains. The present paper excludes this configuration from its search. The resulting output class is described as 1-endpoint-crossing, pagenumber-2, and C-free. The exclusion belongs to the search space itself. A more favorable weight for an arc cannot make a C structure an admissible output.
Why the earlier search was hard to extend
As the paper describes the field, dynamic programming for noncrossing dependency graphs already furnished a simpler case of the Maximum Subgraph approach. In a noncrossing graph, a parser can exploit the ordered positions of words to divide a problem into intervals. Earlier work on projective dependency trees also provided examples of charging a higher-order score at a rule that adds a specific dependency. The paper relates this style of construction to Eisner’s parsing algorithms and to the higher-order tree-parsing work of McDonald and Pereira, Carreras, and Koo and Collins. The common feature that matters here is that a chosen rule specifies what dependency is created at that point. Three New Probabilistic Models for Dependency Parsing: An Exploration · Online Learning of Approximate Dependency Parsing Algorithms · Experiments with a Higher-Order Projective Dependency Parser
The earlier graph algorithm, which the authors abbreviate as GCHSW, organized its search around recurring backbones. A backbone describes a pattern around which smaller graph pieces can be assembled. The earlier rules could leave several edges available to add at a step, with their individual weights deciding which ones were worth taking. This works with independent arc scores because the local decision can consider each optional edge on its own. Once an arc can gain or lose value through a neighboring arc, the local choice needs information about which other edges will be included.
The paper illustrates the change with a backbone whose positions include i, k, l, and j. The earlier rule highlights edges from i and l to j that the step may add. The redesigned rule centers the construction on the edge between i and k, making its addition part of the rule. The important distinction is between the parser’s choice of rule and the behavior of an applied rule. The parser still compares alternative constructions. Within an alternative, the edges added there are specified, so the decoder knows which scored events that alternative creates.
There is a further obstacle even when edge creation is explicit. To deal with a crossing, the earlier graph algorithms often represented a fragment by a span and one vertex outside it. Work on 1-endpoint-crossing trees supplied part of that decomposition strategy. Those trees have pagenumber at most two, as reported in the paper. For the more general dependency graphs considered here, Cao and colleagues impose pagenumber as a separate restriction. Finding Optimal 1-Endpoint-Crossing Trees
The extra vertex is enough to preserve certain crossing information. It need not preserve the identity of every arc endpoint that a future pair score would need. The paper’s example uses an edge between i and j and a crossing edge between x and k, with x external to the interval from i to j. To score neighbors of the first edge at both ends, a rule might also have to search for a neighbor of i and a neighbor of j. It would then be working with those extra positions in addition to x, i, and j. The authors argue that the resulting enumeration would take at least quintic time in that construction.
The crossing edge between x and k creates another kind of problem. A neighboring arc at x can belong to a different piece of the decomposition. By the time the pieces meet, the identity of k may have been hidden inside a completed subproblem. Retaining that position to score the pair would again enlarge the search. Thus the challenge involves both the number of endpoints a rule must choose and the endpoint information that survives when a graph fragment is summarized by a chart entry.
The paper draws on Pitler’s crossing-sensitive work on tree parsing for a narrower way to use higher-order evidence. If the useful pair consists entirely of noncrossing arcs, the decoder can concentrate its effort where interval structure makes the pair accessible. The authors also point to Sun and colleagues’ second-order work on planar parsing as evidence that wider scoring factors were worth investigating for semantic dependencies. For the present graph class, the task was to build a first-order decomposition in which the noncrossing case was explicit enough to support that extension.
The method, step by step
From possible arcs to a winning construction
The decoder compares legal ways to assemble pieces of a graph. It records the best score for each kind of piece under the conditions that must be visible to a larger construction. A chart entry for an interval can summarize many interior graph choices. An entry that also names an external word can summarize fragments that participate in a permitted crossing. A rule combines the entries it needs, creates the edges specified by the rule, and adds the appropriate scores.
The first-order version carries out this comparison using arc contributions alone. The extension revisits the rules for an interval with a known edge between its endpoints. Those rules can reveal the neighboring arcs of that edge and charge sibling scores when the relevant arcs are noncrossing. After the best complete construction has been found, its choices determine the directed dependency graph. During training, those choices also determine which scoring factors are available for the parameter update.
From candidate dependencies to a scored graph
The steps in order.
What the decoder maximizes
The paper writes the input graph as a set of vertices and a set of candidate arcs. The output uses the same vertices and takes its arcs from the input.
G = (V, A), G′ = (V, A′), A′ ⊆ A
Here G is the candidate graph, V is its vertex set, and A is its set of arcs. G′ is an output candidate and A′ is its selected arc set. The subset symbol ⊆ means every selected arc must be available in A. Parentheses group the vertices and arcs into a graph. The prime mark distinguishes the candidate output from the input.
The paper represents a sentence by its words in order. That order is required both for the graph restriction and for deciding which dependencies count as neighbors.
s = w₀ w₁ ⋯ wₙ₋₁
Here s is the sentence, w denotes a word, and the subscript is the word’s position. The index begins at 0 and ends at n−1, where n is the sentence length and − denotes subtraction. The centered dots stand for the intervening positions. Juxtaposition places the words in sequence.
In the general objective, the selected graph maximizes the sum of scores for the parts it contains. The definition of a part determines the order of the scoring scheme.
arg max over G* ∈ 𝒢(s, G) of Σ_{p in G*} sₚₐᵣₜ(s, p)
G* is a graph considered as a possible output. The asterisk marks the graph variable in the optimization, and ∈ means it belongs to the candidate set 𝒢(s, G). That set contains graphs in the chosen class compatible with sentence s and input graph G. The symbol Σ means sum, and p ranges over the parts present in G*. The function sₚₐᵣₜ gives the score of part p in sentence s. The operation arg max returns a graph attaining the largest sum. In the function names below, the initial s denotes a score, while the standalone s in this expression denotes the sentence.
With first-order scoring, the parts are exactly the arcs of the output graph.
arg max over G* ∈ 𝒢(s, G) of Σ_{d ∈ ARC(G*)} sₐᵣ꜀(d)
G*, 𝒢, s, G, ∈, Σ, and arg max have the roles just described. ARC(G*) is the set of directed arcs in the graph being scored. The variable d denotes one of those arcs, and sₐᵣ꜀ assigns its score. The decoder introduced here restricts 𝒢 to the C-free portion of the 1-endpoint-crossing, pagenumber-2 graph class.
A second-order objective can add a separate sum over sibling events. The two sums let a graph receive credit for each selected dependency and for the configurations those dependencies form.
Σ_{d ∈ ARC(G*)} sₐᵣ꜀(d) + Σ_{q ∈ SIB(G*)} sₛᵢᵦ(q)
The first sum uses the same graph, arc set, variable d, and arc score as the first-order expression. The plus sign adds the two contributions. SIB(G*) denotes the sibling factors considered for G*, q is a factor in that set, and sₛᵢᵦ is its score. The variable q keeps the factor distinct from the sentence symbol s. For the crossing-sensitive extension, the scored neighbors are drawn from arcs free of crossings. The implementation also uses an innermost event at a word, which the recurrence represents by a missing inner neighbor.
What each chart entry remembers
The paper describes the mechanics using undirected edges and evaluates directed arcs. The undirected notation makes the geometry easier to follow. The endpoints determine which intervals an edge can reach and what it can cross, while the directed scoring of dependencies is part of the practical parser. In the chart notation, an interval written as [i, j] includes both endpoint positions. An interval written with parentheses omits the corresponding end positions. An external vertex x lies outside the interval under consideration.
For an edge joining positions i and j, the paper uses e(i, j) when its direction is immaterial. An arc written as a(i, j) goes from word i to word j. The expression pt(i, j) names the pencil point for edges crossing the edge between i and j. Reversing the arc leaves its crossing geometry unchanged, so the pencil point applies to either direction. When a decomposition tracks an absent edge or a case with no pencil point, it uses ∅ to denote that absence.
The ordinary interval family is Int. An Int entry covers an interval with no edge joining one of its vertices to a vertex outside it. Its two variants differ in what the entry guarantees about the edge spanning the interval. Int O permits this edge to be present or absent, while Int C includes it. If a parent rule needs a piece with a known spanning edge, it can call for the C variant. If either outcome is acceptable, it can use the O variant. This distinction supplies the boundary condition that the sibling extension will use.
The other families carry a third position, x. The interval endpoints can serve as pencil points for edges from that external vertex, or the rule can place the pencil point elsewhere. The chart family encodes which case applies and how certain boundary edges are reserved for completion by a parent. In the crossing families, a C variant can promise an edge that a combining rule will insert. The entries therefore specify both the geometry of a fragment and its obligations in the finished graph.
In an L entry, the relevant edges from x into the interval have the left endpoint i as their pencil point. The entry permits an edge between i and j and excludes the edge between x and i. In L O, the edge between x and j can be present or absent. In L C, the construction commits to having that edge in the completed graph, leaving its actual insertion to the rule that combines the entry with other fragments. The child exposes enough of this obligation for the parent to add and score the edge at a specified step.
The R family places the pencil point at the right endpoint j. Its definition excludes edges from x to either boundary word. R O permits the edge joining i and j. R C promises that edge for insertion when the subproblem is combined. L and R thus describe situations with opposite pencil-point placements, while their lists of permitted and promised edges are defined separately.
An LR entry allows i or j as the pencil point. It promises the edge between i and j and leaves insertion of that edge to the combining rule. The entry permits edges from x to the boundary vertices, subject to its decomposition. This is the family that has to account for the possibility that structures tied to the left and right endpoints interact. Its decomposition is also where the paper identifies the characteristic shape excluded by the C-free restriction.
The N family handles the case in which the relevant pencil point falls outside [i, j]. The edge joining i and j is permitted, and the edge from x to i is excluded. N O permits the edge from x to j. N C reserves that edge for insertion by a combining rule. Keeping N separate gives the decoder a way to use interval fragments when the common endpoint governing an external connection is somewhere other than the interval’s boundaries.
Together these families let a rule say why smaller pieces can meet. For an Int entry the interface consists of the interval, its type, and any edge the type guarantees. For the crossing families it includes an external position and a constraint on pencil points. Good interior solutions that obey the same interface can compete for the same entry. A parent can then use the best one without carrying every interior endpoint into its own search.
How the first-order rules split graphs
The authors explain the construction in detail for an Int C entry spanning i to j. The edge between those endpoints is given by the entry type. The parser looks for the farthest neighbor k of i strictly inside that interval. It then considers the crossing status of the edge between i and k and, when there are crossing edges, the location of their pencil point x. The main alternatives hinge on whether there is an interior neighbor, whether its edge is crossed, and whether x falls before or after k.
When there is no k, the remainder from the position after i through j is an ordinary interval. The frontier edge remains the edge required by Int C. When k exists and the edge from i to k is noncrossing, the split yields ordinary interval subproblems on either side of k. Since the edge at the split can be made explicit, the construction creates a natural point at which a later rule can look for an adjacent pair of dependencies.
When x lies after k, the positions k and x give the rule three pieces. The last piece may collapse to a single vertex when x is j. In one branch, k has an edge to a word after x. The one-endpoint restriction then pins down a pencil point that otherwise would require a separate choice. The left piece is an R C entry, so the edge between i and k is created at combination. The middle piece is an ordinary interval, and the right piece is an L O fragment with k as its external vertex. The crossing pattern determines the chart interfaces to which the fragments must conform.
Another branch under the same ordering handles the absence of an edge from k into the region starting at x. The authors use an LR fragment over the left portion with x external and an ordinary interval towards j. When x lies between i and k, the alternatives have a different arrangement. For example, if i reaches an interior word between x and k, the pencil-point constraints lead to an ordinary interval from i to x, an L C fragment from x to k with i external, and an N fragment on the right. The L C entry and its parent divide responsibility for the edge between i and k. The paper also shows a case with an R O fragment on the left and an L O fragment on the right.
The distinction between Int C and Int O gives the parser a simple way to allow the spanning edge without demanding it everywhere. The Int O search can include a solution of Int C among its alternatives. Its other constructions can leave out the spanning edge. Accordingly, the choice of whether to take that edge is made by comparing constructions whose insertions are specified. This is the sense in which the rules are deterministic about edge creation, even though decoding requires searching across rules and split positions.
The L decomposition illustrates how states with an external vertex can turn into simpler ones. If there is no further edge from x into the interval, the fragment can reduce to an ordinary interval. If the optional edge from x to the far boundary is present, the rule creates it and uses an L C subproblem for the remaining fragment. If x reaches an interior word k, the rule uses the farthest such connection to separate two pieces. A further connection from x into the left piece leads to an L C and an N O combination. Without that further connection, the pieces are Int O and L O. An item with an external vertex can thus call ordinary intervals as soon as the crossing constraints allow them.
For LR, the authors first look for a split at which the left and right portions have no edge bridging their interiors. The split allows the left piece to be an L O entry and the right piece an R O entry, both using x as the external word. The endpoint restrictions then govern each side separately. If every possible split is bridged, the authors trace a chain of increasingly far-reaching edges. They follow two interleaved sequences of endpoints until a chain reaches the right boundary. Which chain reaches it and which external edges are present determine whether the fragment can reduce to an L or R case. The configuration in which both external edges complete the characteristic two-chain pattern is excluded as a C structure.
This case analysis supports the paper’s soundness and completeness claim for the first-order search. Soundness means that a graph assembled by the rules belongs to the specified C-free class. Completeness means that each graph in that class has a construction. Since the first-order score depends only on the arcs selected, the best legal construction yields a graph of maximum arc score. The distinction between a mathematical graph and the construction used to obtain it becomes important in the second-order version.
Why several constructions can yield one graph
The crossing families specify where crossing edges are allowed. They can also produce fragments in which some of those edges are absent. This reflects a property that the authors used in their earlier work. Taking a subset of the edges of a 1-endpoint-crossing, pagenumber-2 graph preserves the two restrictions. Removing edges can leave fewer members in a crossing group, and an existing assignment of edges to pages remains valid for the edges that survive.
The paper illustrates the consequence using a graph with an edge from a to e and another from a to c. One derivation uses ordinary intervals to construct both. Another uses states that can accommodate a crossing around the inner edge and then reduces the relevant pieces to intervals, leaving the potential crossing edge out of the final graph. Both derivations produce the same two solid edges in the illustration. The dashed edge marks a possibility in the decomposition.
The authors call this spurious ambiguity. With arc scoring, the two derivations agree in total because they include the same dependencies. With sibling scoring, they can differ. The ordinary interval derivation exposes the neighboring edges at a and can evaluate their joint contribution. The derivation that assigns the inner edge to a crossing-capable fragment can build it without calling the sibling scorer for that pair. The difference arises even though, in the completed graph, the arcs themselves are noncrossing.
Where the second-order score enters
The extension begins with the observation that the first-order rules can make a noncrossing edge serve as an Int C item's frontier edge. The extension uses that item to look inward from its two boundaries. For the edge between i and j, it can seek the rightmost inner neighbor of i, called rᵢ, and the leftmost inner neighbor of j, called lⱼ. The relevant neighbors are on the inside of the frontier, where they can be found by splitting the interval. When both inner edges are noncrossing, their endpoints fit the following ordering.
i < rᵢ ≤ lⱼ < j
Here i and j are the interval’s left and right boundaries. The symbols rᵢ and lⱼ are the positions of the respective inner neighbors. The sign < requires strict precedence in the sentence, and ≤ allows the two inner positions to coincide. If the inner positions occurred in the opposite order, edges from i and j to those positions would interleave. The displayed ordering is for the case where both inner neighbors are present and their edges can be handled as noncrossing.
The paper writes the neighboring edge score in a form that names the common endpoint and the two other positions. It also gives the frontier edge a second-order event if it is the innermost edge on the side being considered.
s₂(i, j₁, j₂)
Here s₂ is the score for the sibling configuration involving edges between i and j₁ and between i and j₂. The subscript 2 identifies the second-order score. The first argument i is the common endpoint, and j₁ and j₂ are the endpoints of its adjacent edges on that side. The positions in the argument list identify the particular neighborhood under consideration.
s₂(i, ∅, j)
Here s₂ again denotes the second-order score. The common endpoint is i, the symbol ∅ records that the inner neighbor is absent, and j is the endpoint of the frontier edge. This event allows a contribution when the edge to j is the innermost connection on that side. The recurrence uses the name sₛᵢᵦ for sibling scores, including these events.
The most informative split is the one where both boundary words have noncrossing inner neighbors. The rule uses an Int C on the left to guarantee the edge to rᵢ, an Int C on the right to guarantee the edge to lⱼ, and an Int O in the middle. The chart terms can be written additively because the rule specifies how the pieces are combined. Its two extra scores describe the frontier edge in relation to one inner neighbor at a time.
Int O[rᵢ, lⱼ] + Int C[i, rᵢ] + Int C[lⱼ, j] + sₛᵢᵦ(i, rᵢ, j) + sₛᵢᵦ(j, lⱼ, i)
Int O and Int C denote best chart scores for ordinary intervals with an optional and a required frontier edge, respectively. Square brackets name the endpoints of the interval. The positions i, j, rᵢ, and lⱼ have the meanings above. Each plus sign adds a child score or a sibling contribution. The function sₛᵢᵦ takes a common endpoint, an inner neighbor, and the far endpoint of the frontier edge, in that order. Its first occurrence evaluates the neighborhood at i and its second evaluates the neighborhood at j. This expression is one branch of the rule. The frontier’s own arc score is added outside the choice of branch.
Other branches handle missing inner edges and crossings. If both boundary words lack an inner edge, the rule takes the ordinary interior and includes the innermost event at each boundary. If one has an ordinary inner edge and the other has none, the split keeps an Int C for the known inner edge and pairs its sibling score with an innermost score on the other side. The relevant formula for two missing inner edges is as follows.
Int O[i + 1, j − 1] + sₛᵢᵦ(i, ∅, j) + sₛᵢᵦ(j, ∅, i)
Int O is the best ordinary-interval score allowing its boundary edge either way. Its bracketed endpoints are the positions just after i and just before j. The signs + and − inside the interval shift the endpoints by one word. The plus signs outside it add the two sibling scores. The first use of ∅ says there is no inner neighbor at i, and the second says there is none at j. The opposite boundary position in each function call is the endpoint of the frontier edge.
An inner edge that crosses another edge calls for the crossing machinery. If a boundary still has an available noncrossing neighbor, a branch can charge the sibling contribution on that side. Branches for the crossing patterns carry forward first-order decompositions with L, R, LR, and N entries and their specified edge additions. The point of preserving these families is that the extension can change the rules for Int C while reusing the first-order treatment of crossing fragments.
Structurally, the recurrence adds the frontier arc score to the best legal branch. One can express the maximization in terms of the score each branch contributes.
Int C[i, j] ← sₐᵣ꜀(i, j) + max over B of score(B)
Int C[i, j] is the best chart score for the interval with its frontier edge required. The left arrow means that the expression on the right determines the value entered in the chart. The function sₐᵣ꜀ gives the score of the frontier arc in the paper’s endpoint notation. The plus sign adds that score to the best branch value. B ranges over the admissible decompositions and split choices for the item, max selects the largest value, and score(B) includes the corresponding child scores and any extra edge or sibling terms created by B. The recurrence’s branch conditions restrict which terms can be evaluated together.
The objective the extension solves
Since a sibling factor can disappear from the score along a different derivation of the same graph, the decoder optimizes the following quasi-second-order objective.
Σ_{d ∈ ARC(G*)} sₐᵣ꜀(d) + Σ_{q ∈ SIB(G*)} max(sₛᵢᵦ(q), 0)
G* is the graph under consideration. The first Σ sums arc scores over d in ARC(G*), the graph’s directed arc set. The second Σ sums over q in SIB(G*), the eligible sibling factors. The membership symbol ∈ specifies the set used in each sum. The plus sign adds the arc and sibling contributions. Inside the second sum, max takes the larger of the sibling score sₛᵢᵦ(q) and 0. A positive sibling score is retained, a zero score contributes zero, and a negative sibling score has the effect of zero. This maximum applies to sibling contributions. Arc scores retain their usual role in the objective.
The example with the edges from a to c and a to e shows why the objective has this form. A positive sibling score rewards the interval derivation that exposes the pair. With a negative score, a crossing-capable derivation that leaves the crossing unrealized can reach the same graph without incurring the penalty. The paper analyzes the maximum over derivations as a way of including all positive eligible contributions. If every sibling score is non-negative, the clipped expression and the corresponding signed expression have the same value for each candidate graph. That gives the stated condition under which this decoder also exactly solves the corresponding second-order optimization.
Counting the search and fitting the scores
The chart complexity follows from the number of positions stored in each family and the number of positions a rule has to consider. An Int entry is indexed by the two boundaries. Its calculation can take time quadratic in the sentence length, including cases that search over split positions or consider both inner neighbors. Each external-vertex family has entries indexed by three positions, with at most a linear calculation per entry. The same account applies to both the arc-only search and its quasi-second-order extension.
Int: O(n²) entries and O(n²) time per entry
Int denotes the ordinary interval family. The notation O gives the asymptotic order of growth, n is sentence length, and the exponent ² indicates quadratic growth. The first expression bounds the number of chart entries in the family. The second bounds the time needed to compute an individual entry.
L, R, LR, N: O(n³) entries per family and O(n) time per entry
L, R, LR, and N denote the external-vertex families. O again expresses an asymptotic bound in terms of the sentence length n. The exponent ³ gives cubic growth in the number of entries in each family. O(n) gives the linear bound on time per entry.
Time O(n⁴), space O(n³)
Here time is the cost of filling the chart and space is the amount of storage required by the decoder. The letter n is the sentence length, O specifies the asymptotic order, and the exponents ⁴ and ³ give quartic and cubic growth. These are the authors’ bounds for both algorithms on the restricted graph class.
For practical parsing, the authors use a global linear scoring scheme. Features come from words and part-of-speech tags, with an additional set derived from pseudo trees in the syntax condition. Part-of-speech tagging assigns grammatical categories to the words. The pseudo trees are automatic syntactic analyses produced by the Mate parser. They provide features for scoring semantic dependencies, while the graph search still determines the form of the semantic output. Top Accuracy and Fast Dependency Parsing is not a Contradiction
The authors estimate the weights with an averaged perceptron. For each training sentence, they decode the best predicted derivation, gather the factors that derivation actually evaluated, and use them in the parameter update. With first-order scoring, the collected dependencies can be read from the completed graph because they coincide with its arc factors. With the extension, a graph alone can leave open which sibling contributions its derivation exposed. The training procedure uses the derivation to preserve that distinction. The paper describes this choice as tending to increase second-order scores, without giving a separate evaluation of that training effect.
Experiments and results
Data and evaluation
The experiments span four datasets. CCGbank supplies dependencies grounded in CCG analyses. DeepBank, Enju HPSGBank, and the Prague dependency dataset come from SemEval 2014 Task 8. The results tables abbreviate Enju HPSGBank as EnjuBank and the Prague dataset as PCEDT. These datasets give the authors several settings in which to compare the same arc-only and quasi-second-order searches. CCGbank: A Corpus of CCG Derivations and Dependency Structures Extracted from the Penn Treebank
For CCGbank, training uses sections 02-21, development uses section 00, and testing uses section 23. The other three datasets follow the shared task’s partition. CCGbank receives automatic part-of-speech tags from a symbol-refined hidden Markov tagger. The experiments on the other datasets use the tags supplied by the shared task. The authors generate pseudo trees with Mate for the configurations that use syntax. Thus the comparison without pseudo-tree features still uses words and part-of-speech information.
The paper measures unlabeled precision, recall, and F-score, abbreviated UP, UR, and UF. Precision asks how many predicted arcs agree with the reference, while recall asks how many reference arcs the parser recovers. F-score summarizes the balance between the two. An arc match must have the correct endpoints and direction. Because the metrics are unlabeled, the semantic relation label is outside this judgment. The authors use the official shared-task evaluation tool, including for the reporting of directed dependencies.
There are two comparisons to keep distinct. The internal baseline is the authors’ first-order parser. Comparing it with their quasi-second-order parser under the same syntax condition indicates how much the extension changes the results in that setup. The external comparator is the book-embedding parser by Sun and colleagues, abbreviated SJW in the test table. That comparison involves differences in graph constraints, scoring factors, and search.
Development results
On the DeepBank development set, unlabeled F-score rises from 86.11 to 87.57 when the authors add sibling factors without using pseudo-tree features. With those features, it rises from 89.14 to 89.85. The increase in F-score accompanies higher recall under both conditions. Without syntax, DeepBank development unlabeled recall goes from 83.03 to 85.98, while unlabeled precision goes from 89.43 to 89.23. With syntax, recall goes from 87.14 to 88.79 and precision goes from 91.24 to 90.93. The extra dependency coverage is large enough for the combined score to rise in each case.
On the EnjuBank development set, unlabeled F-score goes from 88.58 to 90.39 without syntax and from 91.83 to 92.42 with syntax. EnjuBank shows gains in both component metrics in each comparison. With syntax, for instance, development recall rises from 90.96 to 92.11, while precision rises from 92.72 to 92.73. The corresponding comparison without syntax has the same direction in both metrics, with recall moving from 87.10 to 89.90 and precision from 90.10 to 90.88.
On the CCGbank development set, unlabeled F-score progresses from 89.82 to 90.74 without syntax and from 93.02 to 93.13 with syntax. In the latter setting, development precision changes from 94.28 to 93.99, alongside an increase in recall from 91.79 to 92.27. The higher F-score is correspondingly modest. For PCEDT, development F-score goes from 84.70 to 86.52 without syntax and from 89.18 to 89.59 with it. Development recall on PCEDT increases under either condition, while the direction of the precision change depends on whether syntax is used.
The development results therefore show two effects operating together. The addition of pseudo-tree features improves UF for both scoring orders on every dataset. Adding sibling factors also improves UF within each syntax condition. The gains from the latter comparison are smaller when the parser already has access to the tree features, so the two improvements cannot be treated as interchangeable measurements of the same setup.
Test performance without pseudo-tree features
On the DeepBank test set, the first-order parser scores 85.57 UF without syntax, and the quasi-second-order parser scores 87.16 UF. Test recall rises from 82.50 to 85.61 as precision changes from 88.87 to 88.77. This follows the pattern seen on DeepBank development, where the second-order version recovers more reference dependencies while precision changes little. The held-out comparison therefore supports the improvement seen during development for this dataset.
EnjuBank’s no-syntax test UF goes from 88.41 to 90.27. Both precision and recall improve. Test precision goes from 90.12 to 91.06, and test recall goes from 86.76 to 89.50. On CCGbank, no-syntax test UF goes from 90.08 to 91.01, and the corresponding test precision and recall also rise. The first-order CCGbank result is already higher than the first-order DeepBank or PCEDT result in this condition, but the pair scores still yield a measurable improvement on the reported metric.
PCEDT’s test comparison without syntax goes from 83.54 to 85.22 UF. Test recall rises from 80.45 to 83.45 and test precision from 86.87 to 87.07. DeepBank and PCEDT consequently illustrate different precision behavior accompanying the same increase in recall and F-score. A chart of PCEDT isolates how the F-score comparison changes when the syntax features are also available.
Parsing order and syntax features on PCEDT test unlabeled F-score
The quasi-second-order parser leads its arc-only counterpart in both feature conditions.
The numbers
| System or setting | UF |
|---|---|
| First-order without syntax | 83.54 |
| Quasi-second-order without syntax (this paper) | 85.22 |
| First-order with syntax | 87.97 |
| Quasi-second-order with syntax | 88.41 |
Test performance with pseudo-tree features
On the DeepBank test set with syntax, first-order parsing attains 88.58 UF and quasi-second-order parsing attains 89.16 UF. Test recall changes from 86.57 to 88.21, while test precision moves from 90.68 to 90.13. EnjuBank test UF moves from 91.71 to 92.17 in the same comparison, with test recall increasing from 90.62 to 91.50 and precision increasing from 92.82 to 92.84. These are gains over the stronger first-order setup that already uses features derived from a syntactic parse.
On CCGbank, the test results with syntax are 93.09 UF for the first-order parser and 93.17 UF for the extension. The test recall values are 91.88 and 92.27, and the test precision values are 94.32 and 94.09. This is the tightest UF comparison among the reported test results with syntax. On PCEDT, the test scores with syntax are 87.97 and 88.41 UF. Test recall rises from 85.83 to 87.13 while precision changes from 90.11 to 89.73.
The paper summarizes its absolute UF improvement as 1.3 on average without syntactic tree features and 0.4 on average with them. Across the development and test tables, the quasi-second-order parser leads the corresponding first-order parser on UF. The precision and recall columns show how that aggregate comes about. On the test split, recall increases under both feature conditions across all datasets. EnjuBank gains precision under both conditions, while DeepBank gives up some precision under both. CCGbank and PCEDT gain precision without syntax and give up some of it with syntax.
Comparison with the book-embedding parser
SJW also uses explicit restrictions on the semantic graphs it predicts. Its output is restricted by pagenumber, while the Cao parser also enforces the one-endpoint crossing property and searches its C-free space. SJW’s second-order features include neighbors on both sides, and its search uses beam search and dual decomposition. Cao and colleagues’ comparison therefore brings together a more tightly specified search space, a different choice of pair factors, and a different decoding procedure.
For DeepBank, the quasi-second-order parser with syntax scores 89.16 UF on the test set, and the book-embedding parser scores 88.87 UF. On CCGbank, the corresponding scores are 93.17 and 92.98 UF. These are the datasets where the new parser’s test F-score is higher. The DeepBank chart shows that the first-order parser with syntax sits below SJW on UF and that the addition of the sibling factors changes the ordering.
Dependent arc scoring and book embedding on DeepBank test unlabeled F-score
The syntax-informed quasi-second-order parser has the highest F-score in the comparison.
The numbers
| System or setting | UF |
|---|---|
| First-order with syntax | 88.58 |
| SJW book-embedding parser | 88.87 |
| Quasi-second-order with syntax (this paper) | 89.16 |
On EnjuBank, the book-embedding parser reaches 92.46 test UF, compared with 92.17 for the new parser with syntax. On PCEDT, the book-embedding parser reaches 88.65 test UF, compared with 88.41. The component metrics help explain these outcomes. The Cao parser with syntax has PCEDT test precision of 89.73, compared with 89.58 for SJW. SJW has test recall of 87.73, compared with 87.13 for the Cao parser. On CCGbank, the Cao parser leads SJW in precision and SJW leads in recall, with the resulting UF favoring the Cao parser. The direction of the UF comparison therefore depends on the dataset and on how the two component metrics balance.
What the ablations show
Sibling scoring and syntactic features
The paper’s closest controlled comparison is between the first-order and quasi-second-order parsers with the rest of the feature condition held fixed. In the no-syntax comparisons, the systems share the types of information available from the words and tags. The extension adds a score for eligible neighboring dependencies and changes the rules used to find a best construction under that score. Its test and development F-score gains show a benefit from this package of changes across the evaluated datasets.
The precision and recall patterns give a more concrete account of that benefit. DeepBank shows the same direction of change on both splits, with or without syntax. Recall increases and precision falls. EnjuBank’s recall also rises throughout, and its precision rises with it. In other words, the improved recovery of reference dependencies is common to the two datasets, while the balance of correct and incorrect predicted dependencies differs. The data support a claim about reference-arc recovery under these settings. They give only the aggregate outcomes of the changes to individual outputs.
The paired runs with and without pseudo-tree features address a different question. They show whether the sibling extension still offers a gain after another source of structural information is made available. It does in the reported F-scores, although the improvement is smaller in that condition for each dataset. An interpretation consistent with the setup is that some decisions aided by neighbor information are already easier once the scorer has syntactic tree features. The comparison measures the size of the gain under each condition. It leaves open how much the features overlap on particular arcs and which types of semantic dependency account for the remaining improvement.
There is an additional distinction between the role of pseudo trees and the role of sibling factors. A syntactic tree can supply features to an arc scorer even in the first-order configuration. A sibling factor couples choices in the semantic output, because its contribution depends on neighboring arcs actually chosen by the decoder. The experimental design crosses those two choices. That is what allows the paper to show an F-score gain from the extension even with the syntax-derived evidence in place.
How many sibling factors receive a score
The authors also count the coverage of second-order factors on the development sets. This analysis addresses the concern raised by the multiple derivations of a graph. If the parser often chose a derivation in which a sibling contribution went unevaluated, the quasi-second-order search could make much more limited use of the factors than its definition suggests. The paper reports average factor coverage of 99.67%. The dataset breakdown shows that omissions are possible and that measured coverage varies across the two feature conditions.
On DeepBank development, coverage is 99.08 without syntax and 99.77 with syntax. On EnjuBank development, the corresponding values are 99.52 and 99.69. CCGbank development gives 99.67 and 99.88, while PCEDT development gives 98.32 and 99.33. Within the coverage analysis, the syntax condition has higher measured coverage on each dataset. PCEDT has the lowest value in both conditions.
Second-order factor coverage on the PCEDT development set
The syntax-informed configuration evaluates a larger share of the counted factors.
The numbers
| System or setting | coverage % |
|---|---|
| Quasi-second-order without syntax | 98.32 |
| Quasi-second-order with syntax (this paper) | 99.33 |
The denominator here is the set of factors counted in the authors’ development analysis. Factor coverage and attachment quality answer different questions. Coverage describes how frequently a sibling contribution is evaluated by the decoder. Unlabeled F-score describes how the output dependencies compare with the reference. A scored factor may contribute to a graph that contains an attachment error, and a factor left out of the derivation can coexist with correct output arcs. High coverage establishes that the derivation issue seldom removes a counted factor in these runs. Its effect on accuracy would require a comparison that changed the treatment of those factors while holding the rest of the parser fixed.
The SJW comparison offers another useful boundary on what the controlled results establish. It shows that a parser with different output constraints and a different search can attain higher UF on some datasets and lower UF on others. Because several design choices vary together there, the comparison cannot attribute the ordering to the one-endpoint restriction, the treatment of neighbors on both sides, or exact decoding individually. The internal first-order comparison is the more direct evidence for the benefit of adding the paper’s scoring extension to its own parser.
Limitations
Limits the authors identify
The authors’ central qualification concerns negative sibling scores. A fully signed second-order objective can express a penalty for an undesirable pair even when each arc is plausible by itself. In this decoder, the maximum contribution of a negative sibling score and zero is zero. As a result, selecting the pair can cost the graph the opportunity to earn a positive contribution elsewhere, but the pair’s own negative value cannot directly lower the computed total. This limits the kinds of preferences the objective can express through sibling factors.
The source of that limitation is the ambiguity of the decomposition. If every valid derivation of a graph exposed the same sibling factors, a negative score would persist across derivations. The paper’s example instead has two valid derivations whose factor sets differ. With this rule system, maximizing over them can omit a negative score. The authors’ exactness claim accounts for this behavior by defining the clipped objective. It extends to the corresponding signed sibling objective when all sibling scores are non-negative.
There is also an explicit restriction on which pairs the extension considers. Both arcs in an eligible sibling pair must be noncrossing. The authors show why adding crossing arcs to these factors would complicate the current decomposition. One case would require a rule to search for more positions at once. Another would require the chart to retain a position that the current interface can discard. Their argument identifies a cost for extending this decomposition. It leaves the complexity of other approaches to richer factorizations open.
The C-free restriction is a further condition of both search algorithms. The authors describe C structures as linguistically rare and exclude them to obtain the lower complexity. Soundness, completeness, and the optimum guarantee therefore concern the restricted class. For an analysis containing a C structure, the decoder can select the highest-scoring graph within its own class, while the unrestricted optimum may lie outside that class. Preserving the quartic bound depends on keeping this distinction in view.
Finally, the authors identify decoding speed as an open problem. Their extension keeps the same asymptotic cost as the earlier restricted first-order algorithm. The bound still has quartic time growth and cubic space growth. The word same in this comparison refers to the asymptotic orders. Different construction rules and additional scoring terms can have different costs within those bounds. The accuracy experiments supply the UF comparison, while the complexity analysis supplies the growth rates.
Limits of the experimental evidence
The accuracy evidence concerns the chosen datasets, splits, feature sources, and unlabeled evaluation. It establishes improvements in recovery of directed arcs under that setup. Whether the same changes would help predict relation labels is a separate question. The reported metrics also operate over dependencies, which leaves sentence-level outcomes open. A higher UF can reflect better attachment decisions across many graphs even if the evaluation gives no count of complete sentences whose graphs were recovered exactly.
The paper changes decoding and training together to make the second-order parser practical. The extension changes which scores can enter a derivation, and the averaged perceptron uses those derivation-specific factors in its updates. The reported comparison demonstrates the performance of the resulting system. It does not isolate what would happen with another training procedure, with another way of choosing a gold derivation, or with a signed sibling objective solved by a different algorithm. Those would be distinct comparisons.
The broader scoring context also matters when comparing the syntax conditions. The pseudo-tree features come from the Mate parser, and the part-of-speech annotations come from the preprocessing described for each dataset. This means the with-syntax figures characterize a pipeline that has access to those automatic analyses. The experiments leave the sensitivity of the gains to other syntactic inputs unresolved. The no-syntax figures help by measuring the extension without the tree-derived evidence, while retaining the stated word and tag features.
The coverage analysis narrows one concern but leaves several empirical questions open. Its percentages describe how many factors the parser calculates on the development sets. They do not quantify the magnitude of excluded scores, the kinds of arcs involved, or the effect on the best graph of charging those scores. A small number of omissions could have a larger effect if their score magnitudes are high or if they occur near otherwise close decisions. Conversely, frequent small contributions can raise coverage without much effect on the ordering of candidate graphs. The coverage table gives an observed rate of inclusion, which is separate from a bound on the accuracy cost of clipping.
The comparison with SJW also has a limited interpretation. Since the two parsers differ in graph restrictions, features, and decoder, their relative scores cannot identify which of those choices caused a win on one dataset and a loss on another. The theoretical benefit of exact search is that the decoder returns an optimum for its stated preferences and admissible graphs. The test metrics measure agreement with annotated arcs. When that agreement is the criterion, the quality of the scoring scheme and the compatibility of the graph class with the data remain part of the comparison.
What came after
The authors close with two directions for further work. One is to change the factorization, or the choice of parts into which graph scoring is divided. The paper makes one factorization tractable by putting the construction of a noncrossing frontier edge in a rule that can also see its immediate inward neighbors. A different factorization would require deciding where its extra evidence becomes visible and which endpoints a chart item would have to preserve. The paper’s example of a crossing edge whose endpoint disappears inside a completed subproblem describes the concrete issue such a factorization would face.
The other direction is to accelerate decoding. The authors point to vine pruning and cube pruning, which the paper discusses as earlier work on faster higher-order graph-based projective parsing. They propose exploring whether those lines of work can reduce the computational burden of the quartic graph parser. This direction concerns the cost of comparing decompositions and would need to account for crossing fragments as well as ordinary intervals. The paper presents both directions as open work.
Cite
Cite as Junjie Cao, Sheng Huang, Weiwei Sun and Xiaojun Wan. 2017. Quasi-Second-Order Parsing for 1-Endpoint-Crossing, Pagenumber-2 Graphs. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{cao2017quasi,
title = {{Quasi-Second-Order Parsing for 1-Endpoint-Crossing, Pagenumber-2 Graphs}},
author = {Junjie Cao, Sheng Huang, Weiwei Sun and Xiaojun Wan},
booktitle = {Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing},
year = {2017},
doi = {10.18653/v1/d17-1003},
url = {https://doi.org/10.18653/v1/d17-1003}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cao-2017-quasi-second-order-parsing-1/