Compositional Phrase Alignment and Beyond
Paper · 2020 · Yuki Arase and Jun'ichi Tsujii
Summary
When two sentences express the same idea, their matching parts may occupy different positions and belong to different grammatical groups. Finding those parts is the task of phrase alignment. A system has to decide which phrases correspond, which have no counterpart, and when a plausible match should take precedence over another. Arase and Tsujii study these decisions in pairs of paraphrases. Their aim is to preserve the structure shared by the sentences while still finding correspondences that cross the boundaries of that structure.
The authors use syntactic trees, in which smaller expressions sit beneath the larger expressions they form. An unordered tree comparison finds a low-cost set of matches while allowing child phrases to change order. This handles cases such as antivirus vaccines and vaccines against the virus, where the smaller expressions can still support the larger match after reordering. A further pass handles a different kind of change, where a phrase has moved outside the region corresponding to its original grammatical group. That pass can link phrases that the first comparison left unmatched, provided it can add the new links without taking either phrase away from an existing partner.
The alignment costs depend on how phrases compare in the context of the whole sentence pair. The system begins with contextual token representations from BERT. It builds a matrix of similarities between the tokens in the two sentences and uses a representation of that matrix to adjust the target phrase before scoring it against the source phrase. The adjustment gives the system a way to account for competing expressions elsewhere in the sentences. The authors train it on ESPADA, an extension of their earlier syntactic phrase-alignment dataset, and evaluate it on SPADE with human-annotated trees.
On the SPADE test set, the full system reaches 87.4% on the alignment F-measure, compared with 78.6% for the reimplemented earlier method and 91.3% for agreement among trained annotators under the same evaluation procedure. Both the sentence-wide similarity representation and the pass that recovers unmatched phrases contribute to the result. The recovery is uneven. It finds a larger share of the reference configurations that break the grouping constraint than of those that break the ancestor–descendant constraint. The study therefore shows how a structured alignment can be extended to recover some longer-range correspondences, and where the remaining gaps are.
Deep dive: Compositional Phrase Alignment and Beyond
Arase and Tsujii align phrases across paraphrases by combining syntactic trees with sentence-wide similarity, even when phrases move. · about 38 minutes to read
The problem and its context
What it means for phrases to correspond
A sentence-level paraphrase judgment says that two sentences convey sufficiently similar content. Phrase alignment asks which parts account for that similarity. The answer can include a link between individual words, a link between expressions containing several words, and a link between the larger expressions they form. It can also leave an expression unmatched. These local decisions give a more detailed account of how sentences relate, which is why the authors connect phrase alignment to paraphrase identification, textual entailment, and question answering.
The paper treats a phrase as a node in a syntactic tree. Each node covers a span of a sentence, and its location in the tree shows how that span is grouped with others. A short expression can sit inside a longer one, which can in turn sit inside a clause. Alignment can therefore record a correspondence at several levels. A shared meaning at the level of a noun phrase can coexist with links between smaller expressions inside it. This lets the alignment describe both the whole expression and the evidence contributed by its parts.
The tree also determines the candidates. The method works with spans that appear as nodes in the given analysis. A useful string of words with no corresponding node falls outside that candidate set. This choice gives the problem a structural backbone and distinguishes it from approaches whose primary concern is to collect as many useful string correspondences as possible. The underlying operation is a comparison of the groupings supplied by parsing.
Compositionality here has a specific meaning. If two larger phrases correspond, links among their parts should form a coherent local arrangement. In the paper’s vaccine example, the expression corresponding to vaccines can appear at a different point within the noun phrase, and the material conveying protection against a virus can be organized differently. The two larger phrases can still correspond with support from their components. Preserving the order of the words would be a poor requirement for this example. Preserving enough of the relation between the parts and the whole is more useful.
A different problem arises when the correspondence changes scope. The opening illustration contains a phrase whose target counterpart shares a parent with another matched phrase, while the source counterparts occupy different grammatical regions. The displaced phrase can have a perfectly coherent alignment inside its own subtree. Its link becomes non-compositional in relation to other links in the sentence pair. In the authors’ usage, the label identifies a property of the alignment across trees. It can apply even when the words in the displaced phrase combine in a regular way.
That distinction matters because simply allowing siblings to swap positions addresses only the vaccine kind of reordering. A match outside the corresponding subtree remains difficult even for an unordered comparison. A system searching for the displaced phrase must look beyond the local region. At the same time, a system that compares every span independently gives up the evidence that neighboring decisions can supply. A pair of phrases can look similar in isolation while fitting poorly into the sentence pair’s overall alignment.
How earlier approaches handled structure
As the paper describes the earlier literature, ordered tree mapping provided a way to compare syntactic analyses when estimating relations between sentences. In tree editing, changing a label can represent a match between nodes, while deletion and insertion can represent material that occurs on only one side. Researchers adapted costs and operations to particular tasks. An ordered comparison still imposes the condition that aligned phrases occur in the same relative order. That condition can rule out an otherwise coherent paraphrase solely because its parts have been rearranged. The paper discusses adaptations for entailment, paraphrase, and question answering in connection with Tree Edit Models for Recognizing Textual Entailments, Paraphrases, and Answers to Questions and Probabilistic Tree-Edit Models with Structured Latent Variables for Textual Entailment and Question Answering.
Joint approaches to parsing and alignment had a different reason to relax structural agreement. If paired trees were required to be isomorphic, their nodes would have to fit the same structural pattern. The paper describes earlier methods that instead encourage the analyses to agree while permitting departures. Weakly synchronized grammars and quasi-synchronous grammars offer examples. Another approach uses dual decomposition to encourage a pair of parses to agree. These techniques address the joint construction or selection of analyses and give alignments room to depart from a strict compositional definition. The representative papers include Joint Parsing and Alignment with Weakly Synchronized Grammars and Paraphrase Identification as Probabilistic Quasi-Synchronous Recognition.
The authors also distinguish their task from extracting rules for tree transducers, which transform one tree into another. As described in their review, an earlier rule-extraction method disregards phrase boundaries to increase rule coverage. Arase and Tsujii keep those boundaries because their output is an alignment of syntactic phrases. The unit of evaluation is a correspondence between nodes, including the decision to leave a node unmatched. Whether a phrase boundary helps or hurts a particular match is consequential because it determines what the algorithm can propose.
The closest predecessor is the authors’ own work on monolingual phrase alignment. It required the two root nodes to align, effectively treating the input sentences as counterparts at the whole-sentence level. It also imposed a condition on where aligned phrases join in their respective trees. If two matches existed, their lowest common ancestors had to match as well. A lowest common ancestor is the smallest enclosing node in the tree that contains both nodes under consideration. Requiring a match at that point can produce an unwanted link if the sentences share the smaller phrases but differ in the rest of the material within the enclosing spans. The new approach allows such an enclosing node to remain unmatched. The earlier method is Monolingual Phrase Alignment on Parse Forests.
A parallel line of research concerned how to score the phrases. The paper notes that earlier work on sentence-pair interaction used distributions of word similarities, giving a system access to comparisons across the two sentences. Other work devised phrase representations for particular tasks using contextual information. Arase and Tsujii bring those concerns together. A good phrase representation for alignment needs to capture what the expression means in context and how strongly it competes with the other available expressions in that pair. These precedents include Pairwise Word Interaction Modeling with Deep Neural Networks for Semantic Similarity Measurement, A Decomposable Attention Model for Natural Language Inference, and Transfer Fine-Tuning.
The resulting problem has two coupled decisions. The scoring procedure determines how attractive a possible phrase match is. The tree procedure determines which matches can coexist. Competition among phrases has to be visible early enough that the tree comparison can leave a poor local candidate unmatched. That same competition matters again when the system looks outside the local subtree. An unordered alignment gives the search freedom within the shared structure, while a later recovery step makes room for correspondences that the shared structure cannot accommodate.
The method, step by step
From a sentence pair to an alignment
The system starts with two sentences and their trees. The paper calls the sentences source and target. These names designate the sides of the input, and both sentences in the experiments are in English. The trees identify the available phrases. For each plausible pair of nodes, the system can assign a cost, with a lower cost indicating a more attractive match. It can also assign either node to a null counterpart, meaning that the phrase has no partner in the output. Null alignment is an explicit decision that participates in both search and evaluation.
The first search looks for a collection of matches that fits the trees. Moving a phrase before or after another phrase within a larger expression is allowed. Moving it into the scope of a different larger expression can break a structural condition. After the first search, the system reviews the unmatched phrases, starting with longer spans. It uses the costs and edit decisions already computed for the subtrees to look for compatible additions. The same learned scoring procedure thus influences both the initial selection and the later recovery.
From sentence trees to phrase alignments
The steps in order.
The phrase scorer and the search have different kinds of supervision. The scorer learns from examples of phrases that do and do not correspond. The search uses the learned costs under hand-specified structural rules. The training objective teaches a source phrase to prefer an annotated positive over a sampled negative. At inference, the system must turn those individual preferences into a set of compatible links. The tree algorithm resolves a question the training loss leaves open: which candidate matches belong together?
What a legitimate mapping preserves
The paper writes the two trees as sets of phrase nodes. Their structure is supplied by the input analyses, and the indices provide a way to refer to those nodes.
Tˢ = {τᵢˢ}ᵢ, Tᵗ = {τⱼᵗ}ⱼ
Here Tˢ and Tᵗ are the source and target trees. A term τᵢˢ identifies source node i, and τⱼᵗ identifies target node j. The subscripts on the braces mean the collection ranges over the respective tree’s node indices. The letters s and t mark the side of the pair. The special empty node τ∅ lies outside the input trees and stands for a missing counterpart.
An alignment is a set of links. In the paper’s alignment notation, an index can name a link and thereby refer to the nodes on both sides of it. The same index in that notation can refer to different positions in the original trees.
H = {hᵢ = ⟨τᵢˢ, τᵢᵗ⟩}ᵢ
H is the set of links, and hᵢ is the link indexed by i. The angle brackets give its source and target endpoints. Either endpoint can be the empty node when a real phrase has no partner. The first legitimacy rule, consistency, says that each real node has at most one real partner, whichever side it is on. It prevents a target phrase from satisfying several source phrases merely because each source phrase resembles it.
The second rule, monotonicity, concerns ancestry. In this paper the name refers to containment in a tree. It does not impose left-to-right order. The condition is tested on pairs of links between real nodes.
τᵢˢ ∈ ds(τⱼˢ) ⇔ τᵢᵗ ∈ ds(τⱼᵗ)
ds(τ) is the set of descendants of node τ, namely the nodes beneath it. The subscripts i and j identify the two links, and s and t identify their endpoints. The membership sign ∈ says that the first node belongs to the descendant set of the second. The double arrow ⇔ means that containment on either side requires containment on the other. When an aligned expression sits inside another aligned expression in the source analysis, the corresponding target nodes must preserve that nesting.
The third rule is called familiness. It compares a pair of linked nodes with another linked node and asks where their branches join. In the formal statement, the authors express it with a lowest-common-ancestor relation.
lca(τ₁ˢ, τ₂ˢ) ≺ τ₃ˢ ⇔ lca(τ₁ᵗ, τ₂ᵗ) ≺ τ₃ᵗ
The subscripts ₁, ₂, and ₃ identify the links in the triple, and the superscripts distinguish their source and target endpoints. lca(a, b) selects the lowest common ancestor of nodes a and b. The notation ≺ here means “is a proper ancestor of,” so the node on the left must lie strictly above the node on the right. The double arrow again requires the same relationship on both sides.
Familiness is useful because checks on individual ancestor relationships leave some questions about grouping unanswered. Consider two smaller links whose phrases sit in separate branches. On each side those nodes can be unrelated by descent. The point where their branches join can still be in a different relation to another aligned phrase. Examining the triple detects that difference. Operationally, the rule lets the algorithm keep distinct branches separate when it matches their component subtrees. This is the structural property that makes the constrained search tractable.
Let Hᴸ be the first set of links, chosen under the legitimacy rules, and let Hⁿᶜ be a collection of additional links proposed for a displaced subtree. The additional links can satisfy the rules among themselves while their combination with links in Hᴸ breaks a grouping or ancestry condition. The authors allow them to enter the output when all their real endpoints are available.
⟨τᵢˢ, τᵢᵗ⟩ ∈ Hⁿᶜ ⇒ ⟨τᵢˢ, τ∅⟩ ∈ Hᴸ ∧ ⟨τ∅, τᵢᵗ⟩ ∈ Hᴸ
This is the compatibility requirement for every link in Hⁿᶜ whose endpoints are real nodes. The implication sign ⇒ leads to the conditions that both links to τ∅ must currently hold, and ∧ joins those conditions. The index i identifies the proposed link, while s and t distinguish its endpoints. Both nodes must be free, which preserves one-to-one matching when the two null links are replaced. A compatible addition can still change the ancestry or grouping relationships in the final output. That relaxation is the purpose of the second pass.
Building a cost from the sentence pair
A phrase starts as a span of contextual token vectors. The authors use the last BERT layer, so a token vector comes from the token as it appears in its sentence context. Pooling reduces the vectors in a span to a vector with the same width as an individual token vector. In the reported experiments, the pooling operation takes the mean. The authors found it more effective than maximum pooling in preliminary comparisons.
eˢ = pool(hᵢ, …, hⱼ) ∈ ℝᵇ
eˢ is the basic source phrase vector. pool is the pooling operation, and hᵢ through hⱼ are the token vectors from positions i through j of the span. The dots cover the intervening positions. ℝᵇ is the space of real vectors with b components, where b is the BERT hidden width. Applying the same pooling operation to a target span gives the basic target vector eᵗ. The h in this formula refers to token representations. In the earlier alignment notation, it named a link.
A phrase vector already carries context from BERT, but the paper adds a direct description of how the two sentences compare. It computes cosine similarity for every cross-sentence token pair. Cosine similarity measures how closely the two vectors point in the same direction. Arranging the comparisons in a matrix gives each source token a row of similarities against target tokens. It also gives each target token a column showing how strongly source tokens resemble it. The authors’ matrix illustration uses shades to show the variation in these similarities.
This arrangement exposes a comparison that a score for just one pair cannot make. A target expression may resemble the local source candidate while resembling a different source expression even more. The matrix makes those alternatives available to the scorer. The authors compress it with a shallow convolutional network. A convolution applies a learned filter to local regions of the matrix. Its output passes through a rectified linear activation, a max-pooling layer, and a fully connected network. The result is a vector eᶜ, also with b real components, which the paper calls the SimMatrix representation.
The architecture uses a single convolution channel, with a kernel size of three and a pooling size of two. Input matrices are padded with zeros up to the sequence length of 128 for shorter sentences. The paper reports that no sentence pair exceeded that length. The authors chose a shallow network on the premise that local patterns in the matrix could be captured with a relatively small learned component and that such a component could be trained alongside BERT on the alignment corpus.
The next step uses attention, a learned way of combining input information according to its relevance to the current calculation. The attention component receives the source phrase vector eˢ, the basic target phrase vector eᵗ, and the sentence-pair vector eᶜ. It produces an adjusted target vector êᵗ. The source phrase therefore helps determine how the target phrase is represented for their comparison. The scorer still measures dissimilarity between two vectors, but the target vector in that calculation can depend on the sentence-wide evidence and the source phrase under consideration. The paper follows the multi-head attention and feed-forward architecture introduced in Attention Is All You Need.
The adjustment is directional as described. The system starts with pooled vectors on both sides, transforms the target, and evaluates it against the basic source representation. Calling cosine distance a symmetric comparison of vectors does not make this whole procedure symmetric under exchanging the sentences. On exchanging the input sides, the inputs and the direction of the transformation would change. The matching constraint, meanwhile, still applies to both source and target nodes.
At inference, the cost function γ uses cosine distance for a real phrase pair. A null link has no empty-span vector to compare, so the authors give null alignments a constant cost.
γ(⟨τˢ, τ∅⟩) = γ(⟨τ∅, τᵗ⟩) = λ∅ ∈ [0, 2.0]
γ assigns an edit cost, τˢ and τᵗ are real source and target nodes, and τ∅ is the empty counterpart. λ∅ is the shared cost of leaving either node unmatched. The bracketed interval gives its permitted range in the formulation. The value used for a system is selected on the development data. This cost establishes the tradeoff between paying for a weak match and leaving material on one or both sides without a match. It affects the configuration of links as a whole, since accepting one phrase pair may also prevent another pair from being selected.
Learning from positive and negative phrases
The scorer is trained using a triplet. A source phrase is the anchor. A target phrase annotated as its counterpart provides the positive, and a sampled target phrase provides the negative. The intended ordering puts the anchor closer to the adjusted positive vector than to the adjusted negative vector by a margin. If the ordering is already strong enough, the triplet makes no further contribution to the loss.
L(eˢ, êᵗᵖ, êᵗⁿ) = max{‖eˢ − êᵗᵖ‖₂ − ‖eˢ − êᵗⁿ‖₂ + δ, 0}
L is the triplet margin loss. The anchor eˢ is the basic source vector. êᵗᵖ and êᵗⁿ are the adjusted target vectors for the positive and negative, with t marking the target side and p and n marking their roles. A hat marks the adjustment by the attention component. The norm ‖·‖₂ measures Euclidean length, so the norm of a difference is the distance between the vectors. δ is the margin. The max operation selects the larger of the expression and 0, clipping the loss at zero when the negative is already sufficiently farther away.
The authors randomly sample negative phrases that lie more than one hop away from the alignable target phrase in its tree. A hop is a tree edge along the path between nodes. This restricts the training contrast to candidates beyond the immediate tree neighborhood of the positive. The loss itself compares Euclidean distances, while the tree search uses cosine distance at inference. The paper also reports trying an alignability classifier and another objective based directly on cosine similarity. The triplet objective gave the stronger result in those trials.
Training examples come from ESPADA, the Extended Syntactic Phrase Alignment DAtaset. The authors sampled pairs from reference translations in NIST OpenMT, leaving out sentences already used in SPADE. Using alternate translations of the same source supplies candidate paraphrases. A linguist screened the pairs for grammaticality and paraphrase status and produced reference trees using head-driven phrase structure grammar. An automatic formatting check flagged tree errors such as inconsistent brackets for the linguist to correct. Phrase alignment was a subsequent annotation task on those trees.
Three native or near-native speakers of English supplied alignments independently. They first annotated trial examples and received feedback on their interpretation of the guidelines. The trial material was kept out of the formal set. During training, each annotator’s alignment decisions were used with equal standing. The authors retained the different alignments of a sentence pair, which allowed an expression judged alignable by an individual annotator to contribute an example. This was a different use of disagreement from the stricter consensus requirement used for recall in linguistic annotation.
The authors shuffled sentence pairs before assigning 90% of ESPADA to training and 10% to validation. All annotations for a sentence pair stayed in the same split. This kept the trainer from seeing one annotator’s version of a sentence pair during training and being evaluated on another annotator’s version during internal validation. They used a batch size of 16 and stopped training based on validation progress, with patience 5 and minimum delta 0.005. The paper identifies the Linguistic Data Consortium as the intended distributor of ESPADA.
The alignment F-measure on the SPADE development set guided hyper-parameter selection. The grid for λ∅ ran from 0.05 to 0.95 in intervals of 0.05. The margin search used the range [0.2, 1.0] with intervals of 0.2. They also selected a learning rate for the AdamW optimizer. The full system uses the uncased BERT base configuration and eight attention heads. The paper reports a dropout setting of 10% on BERT outputs, meaning some output activations are randomly dropped during training at that rate. The optimizer is described in Decoupled Weight Decay Regularization.
How constrained tree editing finds the first alignment
Constrained tree edit distance, abbreviated CTED, converts the structural problem into an optimization. Relabeling a node corresponds to matching it with a real node on the other side. Deleting a source node and inserting a target node represent leaving those nodes unmatched. The objective is to minimize the total edit cost across a legitimate collection of links. Because branches can be matched without preserving sibling order, the problem is an unordered tree comparison. The constraints on ancestry and grouping distinguish it from unrestricted unordered editing.
The dynamic program stores costs for subtrees and for forests. At a node, the tree state includes the node itself. Its corresponding forest state consists of the child subtrees beneath it. This distinction lets the procedure compare the children while leaving the question of whether their parents align to a separate decision. A forest may contain several disjoint subtrees. The grouping constraint makes it possible to solve a part of the forest problem by finding a matching between child subtrees.
The paper’s appendix uses node indices i and j directly to address the dynamic-programming tables. An index of 0 stands for the empty side. The completely empty comparison starts with zero cost.
D[0][0] = F[0][0] = 0
D is the table for tree costs, and F is the table for forest costs. The brackets give the indices on the source and target sides in that order. Each 0 inside brackets refers to the empty side, while the final zero is the cost of comparing empty structures.
For a source forest with an empty target side, every child subtree is handled as an unmatched tree.
F[i][0] = ∑ₖ₌₁ⁿⁱ D[iₖ][0]
i is the source node whose child forest is being scored. In the sum, k ranges from 1 to the child count nᵢ, shown as ⁿⁱ above the summation. iₖ is the source node’s child indexed by k, and D[iₖ][0] is the cost of comparing that subtree to an empty target. F[i][0] collects the costs below source node i.
The tree state for the same empty-target comparison adds the cost of leaving the source root unmatched.
D[i][0] = F[i][0] + γ(⟨τᵢˢ, τ∅⟩)
D[i][0] includes source node i itself, while F[i][0] includes the child forest only. The addition is the edit cost γ for pairing the source root τᵢˢ with the empty node τ∅.
The empty-source base case takes the same form for the target forest.
F[0][j] = ∑ₖ₌₁ⁿʲ D[0][jₖ]
j is the target node under consideration. The summation index k runs from 1 to the target child count nⱼ, shown as ⁿʲ above the summation. jₖ is a child of that node, and D[0][jₖ] gives the cost of comparing its subtree to an empty source. F[0][j] collects these costs for the target child forest.
The corresponding target tree includes its root as well.
D[0][j] = F[0][j] + γ(⟨τ∅, τⱼᵗ⟩)
Here D[0][j] scores the full target subtree against an empty source. F[0][j] accounts for its children, and γ supplies the extra cost for leaving target node τⱼᵗ without a partner. τ∅ is again the empty node.
Once the smaller costs are available, the forest recurrence considers three possibilities. A source forest may fit inside the forest under a particular target child. A target forest may fit inside the forest under a particular source child. Or the two child forests may be matched directly with each other.
F[i][j] = min{
F[0][j] + minₖ {F[i][jₖ] − F[0][jₖ]},
F[i][0] + minₗ {F[iₗ][j] − F[iₗ][0]},
min over Hᵢⱼ {γ(Hᵢⱼ)}
}
i and j are the source and target nodes. F[i][j] describes their child forests. In the first line, k ranges over the nⱼ target children jₖ. The expression starts from the cost F[0][j] of an unmatched target forest, removes the empty-source baseline F[0][jₖ] for one child forest, and substitutes the cost F[i][jₖ] of comparing there. The second line uses l over the nᵢ source children iₗ and makes the corresponding substitution on the source side. Hᵢⱼ is a candidate set of links between the forests, and γ(Hᵢⱼ) is its total cost. The inner minimums pick among the named children or sets of links. The outer min chooses the lowest cost of the three cases.
The total cost of a particular forest alignment is additive.
γ(Hᵢⱼ) = ∑⟨u,v⟩∈Hᵢⱼ γ(⟨u, v⟩)
Hᵢⱼ is the alignment set for the child forests of source node i and target node j. Each ordered pair ⟨u, v⟩ contributes the edit cost γ(⟨u, v⟩). u is the source endpoint and v the target endpoint. Either can be τ∅ for a null alignment. The summation ranges over the pairs belonging to the set.
To find the cheapest direct forest matching, the algorithm uses a minimum-cost maximum-flow problem. The network has a source and sink, a vertex for each child on either side, and extra vertices that represent unmatched trees on those sides. Paths through the network encode matching a source child subtree to a target child subtree, or paying for one subtree to remain unmatched. The cost on a real-to-real edge is the subtree cost that the dynamic program has already computed. Edges to empty counterparts use the corresponding empty-side costs. Capacity one at a real child prevents it from being allocated to several partners.
The extra capacity for the null vertices lets the network route all of the required flow even when some real children match each other and others remain unmatched. In the authors’ appendix, the maximum flow is the sum of the two child counts. The edge between the null vertices has capacity equal to the smaller child count. That choice lets the unused portion of the empty-side capacity be routed when real subtrees are matched. The minimum cost at maximum flow is the cost of the forest matching. The numerical minimum and the specific child assignments are both important. The assignments identify which subtree edits to recover when reconstructing the output.
The tree recurrence moves from forests to the full subtrees rooted at i and j. Again it can descend on one side or the other. Its remaining possibility matches the roots and adds that cost to the result for their child forests.
D[i][j] = min{
D[0][j] + minₖ {D[i][jₖ] − D[0][jₖ]},
D[i][0] + minₗ {D[iₗ][j] − D[iₗ][0]},
F[i][j] + γ(⟨τᵢˢ, τⱼᵗ⟩)
}
D[i][j] is the full subtree cost, and D[0][j] and D[i][0] are the empty-side baselines. The inner minimum over k uses target children jₖ, and the one over l uses source children iₗ. Each subtraction removes the empty-side cost for the part replaced by a real comparison. In the last line, F[i][j] supplies the cost of the forests beneath the roots, and γ(⟨τᵢˢ, τⱼᵗ⟩) is the cost of linking those roots. The outer min selects among the cases. The roots can therefore be left unmatched while correspondences are found farther down the trees.
The authors report polynomial running time for the constrained comparison. Their expression describes how the computation grows with the input trees.
O(|Tˢ||Tᵗ|(deg(Tˢ) + deg(Tᵗ)) log(deg(Tˢ) + deg(Tᵗ)))
O denotes an asymptotic bound. Tˢ and Tᵗ are the two trees, and the vertical bars count their nodes. deg(T) is defined in the paper’s notation as the maximum depth of tree T. log denotes the logarithm. The expression concerns the constrained tree computation. The ability to decompose branch comparisons under the familiness rule is what distinguishes this computation from trying all unordered sets of node correspondences.
Recovering compatible matches outside the local structure
The initial alignment supplies the search with a set of unresolved nodes. For each pair of subtrees, the tree computation has also retained a cost and the edit operations that realize it. These stored operations matter because a candidate recovery can include a phrase link together with links below it. A match for a large displaced phrase can thus carry a structured account of how its parts correspond.
The recovery pass sorts null links by decreasing span length. It starts with larger phrases and looks across the other tree for the least-cost candidates in the table. A source phrase left unmatched can be checked against target candidates, and the procedure does the corresponding search for an unmatched target phrase. The method then inspects the real links in the candidate’s stored operations. If any endpoint already has a real partner, the proposed set fails compatibility. If the endpoints are free, their null links are removed and replaced with the new links.
This top-down pass gives a large candidate an opportunity to enter before a shorter candidate consumes one of the nodes it needs. It also makes each decision dependent on the current set of links. A match accepted early can affect what remains available later. The authors describe the pass as a heuristic for a combination problem that is computationally intractable in general. Its candidate choice uses minimum costs, and its compatibility test preserves consistency. Its search priority is a way to recover useful structural chunks within those restrictions.
The distinction between the stages explains how the method can handle the paper’s displaced phrase. Inside the relocated subtree, a set of correspondences can be constructed by the same tree procedure used elsewhere. In relation to matches already made in another branch, the relocation can break familiness. The affected endpoints remain available after the first step, so the second can add the internally coherent links. The same mechanism also explains why scoring matters before recovery. If the first stage commits a phrase to a merely adequate local partner, the compatibility rule protects that link and the better distant candidate cannot use the phrase.
Experiments and results
What the evaluation measures
ESPADA provides 1,916 sentence pairs for training and internal validation. The corpus statistics list 75,283 phrases when tokens are excluded, 251,972 total annotated pairs, and 105,154 unique annotated pairs. Among the unique pairs, 80,572 have agreement from at least two annotators and 66,246 have agreement from all annotators. The totals reflect the difference between recording all annotators’ decisions and collapsing repeated decisions into a set of distinct pairs. The same distinction is important in the evaluation, where agreement establishes different thresholds for recall and precision.
SPADE supplies a development set of 50 sentence pairs and a test set of 151. There are 3,566 unique annotated phrase pairs on development and 10,790 on test. Hyper-parameters and score thresholds are chosen on development. The main comparisons are on test using reference trees. In this setup, the system’s task is to decide which available nodes correspond. The benchmark score reflects the alignment decisions on a shared set of phrase candidates.
The evaluation uses alignment recall, alignment precision, and alignment F-measure, abbreviated ALIR, ALIP, and ALIF. For a pair of reference annotators, a link is required for recall when both annotators selected it. Precision credits a predicted link if either annotator chose it. The difference lets recall focus on the stronger agreements while precision allows some variation in what counts as a reasonable correspondence.
ALIR = |{h | h ∈ Hᵃ ∧ h ∈ G ∩ G′}| ÷ |G ∩ G′|
Hᵃ is the set of alignments produced by the system. G and G′ are the alignment sets of the two reference annotators. h stands for an alignment link. In the set description, the inner vertical bar means “such that,” ∈ means membership, and ∧ requires both memberships to hold. ∩ is intersection, containing links found in both reference sets. The outer bars count links, and ÷ denotes division. Recall is the fraction of agreed reference links that the system supplies.
ALIP = |{h | h ∈ Hᵃ ∧ h ∈ G ∪ G′}| ÷ |Hᵃ|
ALIP is alignment precision, and Hᵃ, G, G′, and h retain their meanings. The union sign ∪ collects links accepted by either reference annotator, while ∈ and ∧ select automatic links that are also in that union. The bars count the qualifying links and the whole automatic set, with ÷ dividing those counts. A prediction supported by just one of the two annotators can therefore receive precision credit.
ALIF is the harmonic mean of ALIR and ALIP. This mean requires both components to be strong for the combined score to be strong. The experiment computes the metrics under the different choices of annotator pairs and averages the results. Null links are counted. Leaving more real phrases unmatched can enlarge the predicted set because a potential real-to-real link gives way to separate null decisions. A conservative system that makes few real matches can therefore lose precision under ALIP. That is an important feature of this evaluation when interpreting the effects of the null cost.
For a human comparison, the authors take one annotator’s links as predictions and use the others as references, then average across the choices. On ESPADA, this procedure gives 93.3% ALIR, 90.2% ALIP, and 91.7% ALIF. On the SPADE development set it gives 93.5% ALIR, 91.4% ALIP, and 92.4% ALIF. On the SPADE test set it gives 92.3% ALIR, 90.3% ALIP, and 91.3% ALIF. The authors use these scores as empirical upper bounds for their comparisons. The procedure captures how much independently trained annotators agree under the same scoring rules that apply to the automatic alignments.
Comparison systems and the full result
The external comparison is the reimplementation of Arase and Tsujii’s earlier syntactic phrase aligner. The authors also evaluate thresholding, which selects phrase matches whose cosine similarities clear a cutoff. The cutoff is chosen for SPADE development ALIF. Thresholding supplies a comparison that uses phrase similarity without the tree constraints of CTED. Within the CTED systems, the paper compares direct phrase pooling, a phrase transformation conditioned on BERT’s special initial [CLS] token, and the transformation conditioned on SimMatrix. The [CLS] variant tests whether a general sentence-pair representation can supply the evidence that the explicit token-similarity matrix is designed to capture.
The full system, BERT+SimMatrix+CTED with post-processing, reaches 88.2% ALIR, 86.6% ALIP, and 87.4% ALIF on the SPADE test set. The reported 95% confidence interval for ALIF is represented in the paper as 87.4 ± 0.2. The reimplemented earlier method reaches 81.8% ALIR, 75.6% ALIP, and 78.6% ALIF on the same test set. Thresholding with SimMatrix reaches 84.4% ALIF. The authors report the full method’s ALIF as 95.7% of the annotators’ test ALIF, a comparison of the two scores under their evaluation.
Selected alignment systems on SPADE test ALIF
The full system leads the earlier aligner and the threshold-based systems.
The numbers
| System or setting | ALIF % |
|---|---|
| Arase and Tsujii's earlier aligner | 78.6 |
| BERT with thresholding | 83.5 |
| BERT with CLS and thresholding | 84.1 |
| BERT with SimMatrix and thresholding | 84.4 |
| BERT with SimMatrix and CTED, before recovery | 84.2 |
| BERT with SimMatrix and CTED, after recovery (this paper) | 87.4 |
The ordering in the chart illustrates a qualification to the aggregate result. With SimMatrix, strict tree alignment before recovery has 84.2% ALIF, while thresholding has 84.4%. The CTED variant has higher recall, 85.7% against 84.1%, and lower precision, 82.7% against 84.7%. The composition of the final system matters. A strong score for independent candidates makes thresholding competitive, while enforcing structure changes the balance of the metric. Adding compatible links after the constrained comparison produces the strongest combined score.
For the trainable systems, the paper reports means across 10 runs with different random seeds, accompanied by 95% confidence intervals. This addresses variation from random initialization and training. The authors also use a randomization test for differences in means and mark their best scores at a significance level of < 1%. Different comparisons answer different questions. The earlier external aligner gives a point of reference for overall performance, while comparisons that retain the same scorer or the same search give more direct evidence about particular parts of the new method.
Phrase representations with CTED and recovery on SPADE test ALIF
Explicit token similarities give the strongest result when each variant uses tree alignment and recovery.
The numbers
| System or setting | ALIF % |
|---|---|
| Fine-tuned BERT with direct pooling | 86.3 |
| Fine-tuned BERT with CLS conditioning | 86.2 |
| Fine-tuned BERT with SimMatrix conditioning (this paper) | 87.4 |
The full system’s recovery step also makes it possible to examine which structural exceptions appeared in its output. On SPADE test, 0.1% of its alignment pairs violate monotonicity and 1.2% of its alignment triples violate familiness. The authors report coverage of 3.5% of the reference monotonicity violations and 23.2% of the reference familiness violations. The violation percentages describe structures made from pairs or triples of links. Coverage compares those configurations with the gold alignments. A system can produce a noticeable proportion of violations of a given kind while finding only a limited share of the particular configurations in the reference. The aggregate ALIF and these coverage figures answer different questions about the output.
What the ablations show
What changes when search respects the trees
The thresholding comparisons let the authors hold the type of phrase representation broadly fixed while changing how links are selected. Directly pooled, fine-tuned BERT obtains 83.5% ALIF with thresholding and 83.5% with CTED before recovery. With [CLS] conditioning, the corresponding values are 84.1% and 83.8%. With SimMatrix they are 84.4% and 84.2%. The search configurations have their own development-tuned thresholds or null costs. As complete systems their ALIF scores are close, in spite of the difference in how much structural freedom they allow. These rows support the authors’ description of the strict tree alignment as competitive with thresholding.
The individual metrics reveal the change beneath the similar F-measures. For the directly pooled variant, thresholding obtains 83.6% ALIR and 83.4% ALIP. Before recovery, CTED yields 85.3% ALIR and 81.9% ALIP. The same higher-recall, lower-precision pattern appears when moving from thresholding to strict CTED in the [CLS] and SimMatrix comparisons. A single ALIF value can hide these different ways of obtaining it. The null links counted by the metric and the structural choices made jointly by CTED are both relevant to the interpretation.
The most direct comparison for recovery uses each CTED system before and after the added pass. With direct pooling, SPADE test ALIF moves from 83.5% to 86.3%. The [CLS] variant goes from 83.8% to 86.2%, and SimMatrix goes from 84.2% to 87.4%. Across these comparisons the paper reports average improvements of 2.2 percentage points in ALIR, 3.4 in ALIP, and 2.8 in ALIF. The gain appears across all the tested trainable representations. Effective recovery depends on the use of costs and compatibility, since the system has to find plausible endpoints without breaking existing one-to-one matches.
The structural-violation analysis adds an important qualification. The recovered matches improve overall scores while leaving most of the reference violations uncovered, particularly violations of monotonicity. Different measures can coexist here because recall and precision score individual links, whereas a violation involves a configuration of links. Recovering a useful match can help the aggregate result without reproducing all of the surrounding decisions required to trigger the same reference violation. The counts consequently provide a narrower test of success on structural exceptions.
What the similarity matrix contributes
The comparison with direct pooling tests the benefit of the proposed phrase transformation. The comparison with [CLS] focuses the question more narrowly. Both transformations receive a vector intended to characterize the sentence pair, but they obtain that vector in different ways. For [CLS], the vector comes from the special token at the start of the BERT input. SimMatrix explicitly computes the cross-sentence token comparisons and summarizes their layout. The former tests whether the general pair representation already supplies the relevant information. The latter gives the scorer access to an input constructed specifically to expose similarity and competition.
The full representation yields 84.2% SPADE test ALIF with strict CTED, compared with 83.8% for [CLS] and 83.5% for direct pooling. After recovery, the SimMatrix variant reaches 87.4%, and the two alternatives reach 86.2% and 86.3%. The paper reports that the SimMatrix system significantly outperforms both alternatives with CTED, and that its advantage over [CLS] is more pronounced when recovery is enabled. With recovery, its recall and precision both exceed those of the competing representations. Its precision is 86.6%, compared with 85.0% for [CLS] and 85.2% for pooling.
The authors propose two places where the sentence-wide information can make the difference. During CTED, a distant alternative can make a local match look less convincing, allowing a null choice that keeps the endpoints available. During recovery, the same information can guide the ranking of candidates across the trees. These are different roles for the score. The first affects when the system defers a decision, while the second affects which deferred decision it takes up. The experiments compare the effects of the complete representations and passes. The proposed mechanisms help explain that pattern, while the tests do not measure a separate causal contribution from each role.
Development results for the null cost help make the proposed mechanism concrete. When leaving a phrase unmatched is cheap, the system makes many null decisions. Very high null costs make more real matches attractive, creating more competition among possible combinations. The authors find the overly cheap null setting more harmful. Their explanation is that the tree constraints still prune incompatible real links when the null cost is relatively high. In the other direction, a cheap null link can defeat a useful match even when the tree allows it. In the development plot, recovery improves both recall and precision across the displayed range for the full system. The authors report the same trend for direct pooling and [CLS] conditioning.
When the token representations are kept fixed
The paper also tests phrase vectors obtained by mean-pooling pretrained token features, without training a phrase transformation. This is a distinct experimental question. The trainable comparisons test how the learned phrase scorer and search work together. The fixed-feature comparisons ask what the tree search can contribute when the underlying token representation is already available and the main parameter to tune for CTED is the null cost.
FastText produces 73.8% SPADE test ALIF with thresholding, 81.1% with strict CTED, and 83.1% with CTED and recovery. ELMo gives 81.2% with thresholding, 82.0% with strict CTED, and 83.7% with recovery. BERT without fine-tuning scores 80.9%, 81.7%, and 84.7% in the corresponding conditions. These fixed-feature comparisons are deterministic because the reported variants do not involve training the neural representations. The paper presents untuned BERT with CTED and recovery as an option for a setting without phrase-alignment training data. The comparison also draws on Enriching Word Vectors with Subword Information and Deep Contextualized Word Representations.
The switch from thresholding to strict tree alignment helps FastText by a larger amount across the alignment metrics. The authors interpret that finding as evidence that explicit syntactic structure compensates for information missing from its fixed word vectors. They suggest that the smaller gains for ELMo and BERT are consistent with contextual representations already capturing some structural information. For ELMo, ALIP slips from 80.7% under thresholding to 79.8% with strict CTED, even as the combined score increases. This unevenness is one reason to read the pattern as a comparison of whole systems, rather than a direct measurement of the syntax contained in individual vectors. The paper connects its interpretation to A Structural Probe for Finding Syntax in Word Representations and What Does BERT Learn about the Structure of Language?.
The authors ran a further comparison in which the phrase transformation learns while the pretrained token representations remain fixed. With recovery, ELMo with SimMatrix reaches 82.5% test ALIF, below the simpler pooled ELMo system’s 83.7%. For fixed BERT features, the learned [CLS] transformation reaches 84.2% and the learned SimMatrix transformation reaches 83.6%. Both are below the 84.7% of fixed BERT features with direct pooling, CTED, and recovery. For ELMo the scalar weighting parameters are also trained. In these conditions, adding the phrase transformation brings no aggregate gain over pooling.
The authors conjecture that ESPADA may supply too little training data for the added components to adapt to a fixed feature generator. The contrast also makes clear why the frozen-feature setting matters to the interpretation of the main ablation. Explicit similarity conditioning pays off in the system whose token representations can adapt through fine-tuning. Adding a matrix and learning only the downstream transformation gives a different result. The experiments establish that distinction for the reported training arrangements. They give no estimate of how additional data would change the comparison.
Limitations
Limits identified by the authors
The paper identifies a mismatch between the intended properties of an edit cost and the chosen phrase dissimilarity. A proper distance metric obeys the triangle inequality, under which going through an intermediate point cannot give a shorter route than the direct distance. Cosine distance, as used here, does not satisfy that condition. The authors choose it because it is a common comparison for vector representations and propose investigating other distances. The experiment measures the behavior of the chosen cost in the alignment pipeline. A formal characterization of what changes under a proper metric remains open.
The paper also limits the optimization claim for its second stage. The first stage minimizes cost over the alignments allowed by the constrained tree problem. The recovery pass proceeds greedily over available null links, first considering long spans and then updating the current set. It can maintain the one-to-one rule while adding relationships that depart from the structural mapping. The authors describe finding the best combination of those departures as intractable and present the long-span-first rule as a heuristic. Accordingly, the stage can find helpful additions while depending on the ordering of its earlier choices.
Relying on a single given parse on each side creates another limit acknowledged in the discussion. The main evaluation uses reference trees. In a corpus processed automatically, parsing errors could change the candidates, their boundaries, or their relationships. A phrase might disappear as a tree node, or a mistaken attachment might lead CTED to treat a good link as structurally incompatible. The authors propose aligning forests of alternative parses to address this dependence. They also propose trying trees built from chunks, where text fragments may be easier to represent than with full sentence parses.
The method can accept partially paraphrasal sentences because it does not require the roots to be linked. The authors propose testing that capability on comparable corpora and using it to build a larger syntactic and phrasal paraphrase dataset. The architectural permission to leave the roots unmatched supports this direction. The reported benchmark, built from paraphrase pairs, does not measure performance on a dedicated collection of partial paraphrases. The proposal and the test result therefore concern different levels of evidence.
The authors explicitly treat human judgments about acceptable differences in meaning as a source of variation. The annotators’ scores stay fairly consistent across the reported corpora, and they still disagree on individual links. Some correspondences depend on how much extra detail or semantic change an annotator accepts. A comparison against the agreement of trained annotators is suitable for the evaluation protocol, but human agreement depends on the candidate phrases, the annotation guidelines, and the metric. The reported ratio to human ALIF is a comparison within that protocol.
Limits apparent from the setup
The data source narrows the language phenomena exposed by the experiment. Alternate reference translations are constrained by a shared source, and the screening step discards ungrammatical or non-paraphrasal sentence pairs. The authors themselves contrast this material with paraphrases collected from news or tweets, where additions, omissions, and inferences based on world knowledge can be more common. SPADE and ESPADA support detailed comparisons on the selected language and kind of paraphrase. They leave open how well the scorer and the tree restrictions handle a broader range of sentence pairs.
There is a related distinction between training agreement and evaluation agreement. Every annotator can supply a training positive, while the recall denominator requires support from both annotators in the reference pair. Precision can give credit for an alignment supported by only one. The choice makes it possible to retain supervision for judgments on which people differ while giving consistent links particular weight in evaluation. It also means that the aggregate score cannot be read as a single estimate of how frequently the system finds a universally accepted phrase correspondence. The separate recall and precision rules are part of what the reported performance means.
The post-processing evaluation counts structures at the level of link pairs and triples. A phrase that participates in several configurations can contribute to several violations. Conversely, a single displaced expression can affect the structural status of multiple links. Corpus values such as 3.2% for SPADE test non-monotonicity and 1.1% for test non-familiness describe the paper’s chosen configurations among agreed alignments. They do not give the proportion of individual phrases whose correspondence is non-compositional. The low reference coverage reported for the recovered violations likewise concerns configurations. Without a different breakdown, it cannot identify the share of displaced phrases that the system recovers.
The setup gives some evidence about how structure and costs interact, with less evidence about which local decisions drive the residual errors. A phrase can be hard to align because its reference counterpart lies outside the corresponding subtree, because no available node covers the right span, or because the scorer favors a different partner. Recovery can address a case with free endpoints and a promising stored match. Once an endpoint has a partner, compatibility prevents the pass from reconsidering that decision. Since the paper compares aggregate conditions and violation counts, those results leave the relative frequency of these individual failure cases unresolved.
Finally, the experiments measure alignment directly. Paraphrase identification, entailment, and question answering motivate the task, but the reported results concern choosing corresponding nodes from given trees. There is no downstream evaluation showing how an improvement in ALIF changes decisions in those applications. The main empirical claim is accordingly about syntactic phrase alignment on SPADE, including some correspondences a strict compositional mapping leaves unresolved.
What came after
The later citation on word alignment concerns imbalance and names unbalanced optimal transport as its approach. Its topic connects to a decision visible throughout Arase and Tsujii’s phrase aligner: what to do when the two sides provide unequal opportunities for correspondence. The earlier phrase system represents that decision with explicit null links and a development-tuned cost, then allows some of those links to be replaced during recovery. The later work’s title places the problem at the word level and identifies a different mathematical framework. The citation establishes the connection between the works, while the available description does not establish whether the later system adopts the phrase method’s null cost, structural constraints, or recovery procedure. Unbalanced Optimal Transport for Unbalanced Word Alignment
The other later citation concerns a semantic reasoning benchmark. The original phrase-alignment study also makes an evaluation choice about meaning: a correspondence can have strong support from multiple annotators, or it can be acceptable to only one of the reference annotators used for a comparison. That is a specific problem in measuring agreement about paraphrases at the level of phrases. The later title establishes that the citing work addresses the broader subject of benchmarking semantic reasoning. It does not specify whether the benchmark uses the phrase alignments, draws on the datasets, or cites the study when discussing semantic evaluation. Revisiting a Pain in the Neck
Cite
Cite as Yuki Arase and Jun'ichi Tsujii. 2020. Compositional Phrase Alignment and Beyond. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP).
@inproceedings{arase2020compositional,
title = {{Compositional Phrase Alignment and Beyond}},
author = {Yuki Arase and Jun'ichi Tsujii},
booktitle = {Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
year = {2020},
doi = {10.18653/v1/2020.emnlp-main.125},
url = {https://doi.org/10.18653/v1/2020.emnlp-main.125}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/arase-2020-compositional-phrase-alignment-beyond/