StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language Modeling
Paper · 2021 · Yikang Shen, Yi Tay, Che Zheng et al.
Summary
A sentence has structure that a reader can use even when a word is missing. Some words form phrases, and some words govern others. Teaching a system to recover that structure usually requires deciding what kind of syntax it should learn and what information it can use. StructFormer asks whether the same system can learn both kinds of structure from the task of filling in missing words. It learns where phrases begin and end and which words act as the grammatical parents of others. Human-assigned part-of-speech tags and reference parses play no role in its training.
The parser describes a sentence with a score at each gap between words and a score at each word. The gap scores determine the order in which the sentence can be split into smaller phrases. The word scores rank the candidates for the grammatical center of each phrase. In the paper’s example, like cats is a phrase within I like cats, and like is the grammatical center of both spans. That gives the two representations a common basis: the spans organize the sentence, and the word rankings determine how their parts attach.
StructFormer uses this proposed syntax while it predicts masked words. It turns the span and word scores into graded estimates of which word governs which. Each attention head then learns how much to draw information from a word’s parent and how much to draw from its dependents. Because these estimates enter the prediction calculation directly, errors on masked words can change how the parser assigns scores. The training signal comes from the original words in the text. Syntactic agreement is measured separately, using human annotations after training.
On the Wall Street Journal test set, the parser trained on Penn Treebank text produces competitive phrase trees and competitive dependencies among approaches that work without gold part-of-speech tags. It recovers 61.6% of the undirected connections under the Stanford dependency evaluation. Its agreement with dependency annotations also depends on how those annotations are derived from phrase trees. In masked-word prediction, StructFormer consistently achieves lower perplexity than the paper’s Transformer baseline across Penn Treebank and BLLIP conditions. The comparison of attention settings favors keeping both directions of information flow. Removing access to parents hurts dependency recovery especially, while removing access to dependents hurts phrase recovery especially. Together, the experiments show that a learned syntactic bias can support word prediction while making both kinds of structure available for direct evaluation.
Deep dive: StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language Modeling
StructFormer learns phrase boundaries and word dependencies together by predicting masked words and using its inferred syntax to guide attention. · about 39 minutes to read
The problem and its context
What a phrase tree and a dependency tree tell us
A phrase tree represents grouping. In I like cats, it can record that like cats belongs together and that this phrase combines with I to make the sentence. A dependency tree represents relationships between particular words. In the paper’s analysis, like governs cats and I. The phrase tree tells us which stretches of the sentence form units. The dependency tree tells us which word connects each part to the rest. The paper treats both as objects that a system can infer through parsing.
The views are related because a phrase can have a central word. Once a phrase has been divided into parts, identifying the central word of each part gives a way to connect them. The phrase like cats can be represented by like when it combines with I. That choice retains an account of the larger grouping and supplies a word-level attachment. A phrase tree without head choices leaves such attachments open, and a ranking of the words without phrase boundaries leaves open which words belong in each local decision. StructFormer exploits the information available from both through its approach to dependency parsing.
Learning a parser without reference trees requires some other criterion for choosing a structure. The strategy described in the paper is to design a system whose work is easier if it organizes the input in useful ways. Prediction supplies a measurable objective. The architecture determines how proposed structures can help with that objective. An inductive bias is the preference introduced by such a design. Here, the preference is for pooling information through grammatical links inferred from the sentence. Whether those links resemble human syntax is a separate empirical question.
That distinction matters for the interpretation of unsupervised grammar induction. A system that assigns every sentence a tree necessarily produces tree-shaped outputs. A meaningful test asks what those trees group and attach. Similarly, success at guessing missing words shows that the context was useful for prediction. A parser can make useful predictions while favoring groupings or attachment conventions that differ from what a human annotator would choose. StructFormer evaluates prediction and syntax separately so that each claim has its own evidence.
What earlier dependency induction used as input
Much of the earlier dependency work discussed in the paper builds on the dependency model with valence, abbreviated DMV. Its extensions introduced preferences and features intended to make grammar learning more effective. One example is sharing information among grammar parameters involving different part-of-speech categories. A neural DMV variant uses distributed representations of the tags to predict probabilities for grammar rules. The tags give the learner information about a word’s grammatical category before it decides where the word attaches.
Gold tags are categories supplied by human annotators. Training without reference dependency trees can still make extensive use of those categories, so the supervision available to a method depends on its inputs as well as on the targets it predicts. The authors emphasize that annotated tags can be costly to obtain at corpus scale. Their goal is to infer syntax without requiring this intermediate annotation step, an issue central to part-of-speech tagging.
The paper also describes methods that start from words and get extra guidance elsewhere. Word clustering can produce substitute categories, with assignments that take context into account. Another line combines DMV with an invertible neural network, learning discrete syntax alongside continuous word representations. The introduction also cites work drawing on acoustic evidence or annotations in related languages. These approaches differ in the information they bring to the task. For StructFormer, a central design question is how to give the parser enough guidance using the prediction objective and a structural constraint on attention.
How earlier systems learned phrases
The constituency literature in the paper offers several ways to make structure part of prediction. PRPN learns scores associated with breaks in the sentence and uses its proposed structure to retrieve relevant memories. ON-LSTM builds a hierarchy into how a recurrent network retains information. Both illustrate how a preferred organization can arise through the behavior of a predictor, even when each training sentence arrives without a tree.
Other systems explicitly consider possible trees. The unsupervised recurrent grammar approach couples a network for inferring trees with a recurrent grammatical decoder. Its training uses approximate inference to relate the two. DIORA builds representations over possible binary trees using information from inside and outside spans. Its training brings representations derived from the same sentence into agreement. The decoder in the recurrent approach belongs to the family introduced in Recurrent Neural Network Grammars.
The compound PCFG takes a grammar-based route. It learns from sentence likelihood while accounting for alternative derivations under a probabilistic grammar. In that setting, production rules govern how larger units can expand into smaller units. Neural L-PCFG incorporates lexical dependencies into a phrase grammar, so the paper already has a point of comparison for learning both structures together. StructFormer’s distinctive choice is to make induced word attachments regulate attention in an encoder. The grammar-based comparison is grounded in the context-free grammar approach.
Tree Transformer is a closer architectural comparison. It introduces local attention constraints that broaden through the layers. Lower layers favor nearby words, and higher layers can connect across a wider portion of the sentence. StructFormer also creates a structural bias in attention, but the information it supplies to attention describes possible attachments between words. A phrase boundary matters because it helps determine which word can govern another. This differs from making the phrase itself the direct limit on attention, as in Tree Transformer.
Why use syntax inside attention
Ordinary self-attention lets a position consider every position in the sentence as a source of information. Individual pairs can receive very different weights, but all are eligible under the basic encoder calculation. That flexibility is valuable for prediction. It leaves the designer with no explicit requirement that the selected paths correspond to phrases or grammatical attachments. StructFormer starts with the information-sharing mechanism of the Transformer.
Earlier work discussed by the authors gives reasons to introduce syntax at that point. Some systems use grammatical structure to improve semantic role labeling. One cited attention method makes a particular head look to the syntactic governor of the input token. The paper also describes dependency-informed attention in machine translation and syntactic guidance in pretraining for language understanding. Those studies motivate making a grammatical relation available to the encoder. StructFormer asks whether the encoder can learn the relation as it learns to predict, with no reference governor supplied during training. The comparison is particularly direct with Linguistically-Informed Self-Attention for Semantic Role Labeling.
The method, step by step
The parser and the encoder begin with shared word embeddings, which are learned vectors associated with the input tokens. A small convolutional parser estimates a score at each break and a score for each token. It uses those estimates to give each token a graded set of possible grammatical parents. The encoder receives the embeddings and the attachment scores. Its prediction of a missing word depends on which sources of information those scores favor.
There are two uses for the parser’s output. To inspect the syntax, a reader can ask for discrete spans and attachments. For training, the system needs scores through which prediction errors can travel back to the parser. The authors therefore describe how the scores define a tree and how a soft calculation over possible spans supplies the edges used in attention. The soft calculation operates while the predictor is still learning which structural distinctions are useful.
From a masked sentence to syntax-guided prediction
The steps in order.
Give gaps and words different jobs
Syntactic distance is a score for the gap between neighboring words. It describes the importance of that gap as a place to separate larger pieces. Suppose a phrase tree is already available. For each pair of adjacent words, find the smallest node in the tree that contains them both. A pair with a common ancestor high in the tree straddles a major division. The authors define the syntactic distances to have the same ordering as the heights of those common ancestors. The ranks retain the relevant information about which divisions come first when the tree is rebuilt.
τ = (τ₁, …, τₙ₋₁)
Here τ is the sequence of syntactic distances. The sentence has n tokens, and τᵢ is the score for the gap after token i and before the following token. The ellipsis ranges over the remaining internal gaps. The indices begin with the gap after the first token and end with the gap before the final token.
A discrete constituency tree can be read from these scores by splitting at the largest gap in the current span, then applying the same rule to each resulting span. A single token is a leaf. Each split has a left and right child, so the result is binary. The algorithm recovers the organization of the tree from the order of the gaps. The values that determine which split comes first can vary in magnitude while leaving this order intact. A choice among tied maxima would require a tie convention.
The paper’s short sentence illustrates the idea. If the gap separating I from like outranks the gap separating like from cats, the first split sets the subject apart from the words that follow. The next split within like cats separates the verb and noun. The result contains both the full sentence and the smaller phrase. The distance scores have done their job once they have determined which spans are nested inside which others. Choosing the word that represents each span requires another signal.
δ = (δ₁, …, δₙ)
Here δ is the sequence of syntactic heights, δᵢ is the height assigned to token i, and n is the number of tokens. The ellipsis covers the intermediate tokens. A higher score ranks a token closer to the root in the intended dependency interpretation. This ranking supplies a preference for grammatical centrality. It lacks the information needed to tell which side a word attaches to or which neighboring phrase supplies its parent.
Given the binary phrase tree, the authors choose the highest-ranked word inside each span as its representative. At a merge, the child containing that word provides the representative of the larger phrase. The representative of the other child attaches to it. In like cats, like is the higher word and cats attaches to it. At the larger merge, like again wins, and I attaches to it. The head of the full span serves as the root of this construction. The paper also describes a joint procedure that returns the tree, the dependency edges, and the root word and its height.
This construction makes explicit what is shared. The distance sequence controls the nesting of spans. Height determines which word inherits responsibility for a span when it combines with another. The relevant notion of height is a ranking of words, while the relevant notion of distance is a ranking of gaps. StructFormer also compares the two on a common numerical scale when it calculates soft attachments. That calculation gives meaning to their relative magnitudes, over and above the separate rankings used for discrete reconstruction.
Predict the scores from the input
The convolutional parser uses a window of representations around each position. Each layer combines its input window and applies a hyperbolic tangent. The next layer sees the resulting representations. Stacking these operations gives the scoring networks access to neighboring information gathered through the stack. The embedding at a position is thus the starting point for scoring a token in context.
sₗ,ᵢ = tanh(Conv(sₗ₋₁,ᵢ₋W, …, sₗ₋₁,ᵢ₊W))
Here sₗ,ᵢ is the vector at position i after convolution layer l. Its input vectors come from layer l − 1, with s₀,ᵢ denoting the embedding of the input token wᵢ. W is the window radius, so the convolution kernel has size 2W + 1. Conv is the learned convolution, the ellipsis includes the intervening positions in the window, and tanh is the hyperbolic tangent applied to the result.
The distance predictor looks at the parser vectors on both sides of each internal gap. It concatenates those vectors, applies a learned projection and a nonlinearity, and reads out a scalar. The sentence edges also receive boundary scores. These allow the search for a span to terminate at the edges of the sentence in the same notation used for interior gaps.
τᵢ = { W₁ᵗ tanh(W₂ᵗ [sₙₗ,ᵢ ; sₙₗ,ᵢ₊₁]) if 1 ≤ i ≤ n − 1
{ ∞ if i = 0 or i = n
Here τᵢ scores gap i in a sentence of n tokens. The subscript ₙₗ denotes the final convolution layer, distinct from n, the sentence length. The bracketed expression concatenates the final vectors sₙₗ,ᵢ and sₙₗ,ᵢ₊₁ on either side of the gap. W₂ᵗ and W₁ᵗ are the learned projections for distance, with superscript t identifying this prediction instead of a matrix transpose. The tanh operation is the hyperbolic tangent. The symbol ∞ denotes the infinite scores assigned at the two outer boundaries.
The height projection works on the final vector for one position. Though its immediate input is a single vector, that vector already contains information from the convolutional context. This gives the parser a way to favor a word as a center in one sentence and to assign it a different role in another.
δᵢ = W₁ʰ tanh(W₂ʰ sₙₗ,ᵢ + b₂ʰ) + b₁ʰ
Here δᵢ is the height score of token i, and sₙₗ,ᵢ is its vector at the final convolution layer. W₂ʰ and W₁ʰ are learned projections in the height predictor. The corresponding learned offsets are b₂ʰ and b₁ʰ. The superscript h identifies height parameters, tanh denotes the hyperbolic tangent, and each plus sign adds the corresponding offset at its stage.
Find the span that supplies a parent
In the hard phrase-tree picture, follow a word upward through the phrases it represents. The first time a larger phrase is represented by a different word, that word becomes its parent. The span containing the attachment is therefore the smallest phrase containing the original word in which a different word wins the head choice. The paper expresses the search as a composition of finding a span and finding its representative.
D(xᵢ) = parent(C(xᵢ))
Here xᵢ is the token at position i, C(xᵢ) is its attachment span, parent returns the representative word of that span, and D(xᵢ) denotes the resulting parent of xᵢ. This description concerns a word that attaches to another word. The representative of the full sentence in the hard construction has no parent inside that sentence.
For the differentiable calculation, StructFormer locates the span by comparing the height of the token with the distances at successive gaps. Starting from the token, the first gap with a larger score in each direction defines that side’s stopping point. The distance between two pieces thus operates as a barrier. A high-ranking word can cross gaps that would stop a lower-ranking word. This is how the architecture ties the tendency to connect distant parts of a sentence to the grammatical centrality of particular tokens.
δᵢ < τₗ₋₁ and δᵢ < τᵣ
Here δᵢ is the height of token i in the span [l, r], where l and r are its first and last positions. The gap τₗ₋₁ is immediately to the left of the span, and τᵣ is immediately to its right. Each inequality says the boundary score exceeds the token’s height. The stopping rule uses the first such boundary on each side. The gaps inside the selected interval have already been crossed in the search from i.
The paper gives an example in which the height at position 4 is 3.5. The gap at position 3 has distance 4, so the left endpoint is position 4. The right search extends to position 8, where the sentence boundary has infinite distance. This produces the span [4, 8]. The highest word score within the span is 4.5, at position 6, so that token becomes the span representative. The calculation separates the question of how far the original token can reach from the question of which word wins once the candidate span is known.
Keep the span calculation soft
Hard boundary choices would change abruptly when a score moves past a threshold. The soft version uses a sigmoid to grade the comparison. A height well above a gap earns a strong chance of crossing it, while a height well below the gap earns a weak chance. Near the threshold, the relative scores can change that chance gradually. The parser can therefore receive a signal about a better boundary even when its current highest-scoring span would stay the same after a small update.
p(δ̃ᵢ > τₖ) = σ((δᵢ − τₖ) / μ₁)
Here p denotes probability and δ̃ᵢ is the uncertain height for token i. Its predicted central value is δᵢ. The gap at position k has score τₖ. The sigmoid σ maps the scaled score difference to a probability, and μ₁ is the learned temperature controlling how sharply the comparison changes. The greater-than sign specifies the event that the height exceeds the gap score.
To include a position on the left, the search must cross every gap between it and the original token. The highest gap is sufficient to express that test. Once the height exceeds the largest score, it exceeds all the smaller scores on the same path. The threshold for including a more distant position can therefore increase or stay unchanged as the span extends. The right side uses the same reasoning in the other direction.
p(l ∈ C(xᵢ)) = σ((δᵢ − max(τₗ, …, τᵢ₋₁)) / μ₁)
Here p is the probability that l belongs to the candidate span C(xᵢ) of token xᵢ, for l to the left of i. The symbol ∈ denotes membership. The max operation selects the largest of the distances τₗ through τᵢ₋₁. The ellipsis comprises the intervening gaps. The height δᵢ, sigmoid σ and temperature μ₁ are the same quantities used in the single-gap comparison.
Inclusion gives a probability for reaching a position. An exact endpoint requires reaching that position and stopping before the next one. Because the reach events are nested, the authors use the difference between two reach probabilities. On the left, the second term includes the gap immediately to the left of the candidate endpoint.
pᴸ(l | i) = σ((δᵢ − max(τₗ, …, τᵢ₋₁)) / μ₁) − σ((δᵢ − max(τₗ₋₁, …, τᵢ₋₁)) / μ₁)
Here pᴸ(l | i) is the probability that the left endpoint is l for token i. The vertical bar identifies the token for which the endpoint is computed. The first maximum covers the gaps from l to i, excluding the gap after i. More precisely, its final index is i − 1, the gap immediately before i. The second maximum also includes the gap at l − 1. The ellipses stand for all intervening gaps. The sigmoid σ converts each comparison of the token height δᵢ with a maximum gap score into a reach probability, with μ₁ controlling the transition. When the endpoint is the token itself, reaching that endpoint requires crossing no gaps.
The right endpoint uses the gap immediately beyond r to distinguish reaching r from reaching any farther. It follows the same pattern, with both maxima starting on the right of token i.
pᴿ(r | i) = σ((δᵢ − max(τᵢ, …, τᵣ₋₁)) / μ₁) − σ((δᵢ − max(τᵢ, …, τᵣ)) / μ₁)
Here pᴿ(r | i) is the probability of ending the span at r on the right of token i. The first maximum includes the gaps before r beginning at τᵢ, the gap immediately after i. The second extends the same list through τᵣ. The ellipses cover the gaps between the endpoints of each list. The token height is δᵢ, σ is the sigmoid and μ₁ is the learned comparison temperature. A span that ends at i on the right has no internal rightward gap to cross.
The method combines the left and right endpoint estimates by multiplication. The product gives the weight of an entire candidate span for the original token. Only spans that contain the token participate.
P꜀([l, r] | i) = { pᴸ(l | i) pᴿ(r | i) if l ≤ i ≤ r
{ 0 otherwise
Here P꜀ is the candidate-span probability used in the parent calculation. The endpoints l and r bound the inclusive span [l, r], and i is the token being assigned a parent. The two factors are the left and right endpoint probabilities. The condition l ≤ i ≤ r gives positive eligibility to spans covering i, and 0 assigns no mass to other spans. The product is the paper’s construction of the span estimate from the endpoint estimates. Though a common height score informs both sides, the calculation uses the product of their separate probabilities.
Turn spans into directed attachments
The representative of a span is chosen using the word heights inside it. The hard procedure takes the maximum. For learning, a softmax distributes credit among the words in the span. This preserves the preference for a high-ranking word and allows competing choices to contribute to the next calculation.
Pₕ(j | [l, r]) = { exp(δⱼ / μ₂) / Σₖ₌ₗʳ exp(δₖ / μ₂) if l ≤ j ≤ r
{ 0 otherwise
Here Pₕ is the probability that token j represents [l, r], whose inclusive endpoints are l and r. The height scores of j and any candidate k are δⱼ and δₖ. The exponential function is exp. The summation Σ runs over the positions k from l through r and normalizes the weight of j over the span. The temperature μ₂ sets how much the distribution favors higher scores. A token outside the span receives 0 probability of representing it.
A word may receive support as a parent through several spans. The final attachment estimate sums those contributions. For each span, the method multiplies its probability for the original token by the probability that the proposed parent represents it. This accounts for uncertainty in both stages. A candidate can be a strong representative of a poorly supported span, or a plausible representative of several spans that the parser considers likely.
Pᴅ(j | i) = { Σ[l, r] Pₕ(j | [l, r]) P꜀([l, r] | i) if j ≠ i
{ 0 if j = i
Here Pᴅ(j | i) is the weight for j as the parent of i. The sum indicated by Σ[l, r] ranges over candidate spans with endpoints l and r. Pₕ gives the span’s preference for j as representative, and P꜀ gives that span’s probability for i. The sign ≠ means the positions are different. The self-parent entry is set to 0. This last operation can remove mass that the span-based computation would otherwise allocate to the token itself, and the displayed rule has no subsequent normalization. The authors accordingly observe that a row of these parent scores may sum to less than 1.
The direction of the indices is important. In the equations for identifying a parent and for evaluating attachments, the expression with j to the left of the conditioning bar scores j as the parent of i. For attention at i, it therefore offers a possible source of information upstream of i in the dependency tree. Reversing the indices gives the weight for i as the parent of j, making j a possible dependent from which i can receive information. The same estimate can be used for both forms of communication.
Calibrate distances against heights
The shared scale for gaps and token heights creates a possible failure. Consider an interior phrase with a large distance at both ends. If every word in the phrase has a height below both distances, each word’s hard search stops within the phrase. The span then has no word able to reach outside under the threshold rule. A large gap is useful for marking a division, but surrounding a phrase with such gaps can keep its words from obtaining sentence-wide context.
The calibration in the appendix starts by finding the highest token in each span under consideration. The authors compute it for spans with distinct endpoints.
δ₍ₗ,ᵣ₎ = max(δₗ, …, δᵣ), l < r
Here δ₍ₗ,ᵣ₎ is the greatest height in the inclusive span from position l to position r. The terms δₗ through δᵣ are the scores of its tokens, the ellipsis includes the intervening scores, and max selects the largest. The condition l < r says the span extends beyond a single token.
The highest word needs to be able to reach at least one side to avoid the failure the authors describe. The calibration therefore measures how far the lower of the two barriers stands above that word. Keeping only the positive part isolates the cases where both ends are too high.
ε₍ₗ,ᵣ₎ = ReLU(min(τₗ₋₁ − δ₍ₗ,ᵣ₎, τᵣ − δ₍ₗ,ᵣ₎))
Here ε₍ₗ,ᵣ₎ is the shortfall for the span with endpoints l and r. Its boundary distances are τₗ₋₁ and τᵣ, and δ₍ₗ,ᵣ₎ is its maximum token height. The min operation takes the smaller of the two excesses above that height. ReLU keeps a positive input and maps a nonpositive input to zero. A positive shortfall thus means both boundaries exceed even the highest word in the span.
The surrounding explanation specifies subtracting a common amount from the distances. The appendix’s displayed assignment uses a height symbol, which conflicts with that explanation and with its stated aim of lowering the barriers. In the notation used here, the operation described in the prose is as follows.
τ̂ᵢ = τᵢ − max₍ₗ,ᵣ₎≠₍₁,ₙ₎ ε₍ₗ,ᵣ₎
Here τ̂ᵢ is the calibrated gap score and τᵢ is its original value. The maximum selects the largest shortfall ε₍ₗ,ᵣ₎ among the spans considered, excluding the full sentence from position 1 through n. The sign ≠ marks that exclusion. Subtracting the same amount from all finite gaps preserves their order. The recursive constituency splits can therefore stay the same while the comparison between a word and a boundary changes. This is an adjustment to the scale used for communication, with the intention of preventing a phrase from being sealed off on both sides.
Make syntax constrain self-attention
For each attention head, the encoder learns how much to favor sources that are parents and how much to favor sources that are dependents. These weights are parameters of the head. The candidate attachment scores vary with the sentence and token pair. The architecture can therefore use the same inferred syntax in different ways across heads without requiring a different parser for each head.
aₚ = exp(wₚ) / (exp(wₚ) + exp(wᴅ))
Here aₚ is the head’s mixture weight for receiving information from a parent. The learned scores wₚ and wᴅ correspond to the parent and dependent directions, respectively. The function exp converts each score to a positive weight, and the denominator normalizes over both directions.
aᴅ = exp(wᴅ) / (exp(wₚ) + exp(wᴅ))
Here aᴅ is the same head’s mixture weight for receiving information from a dependent. The function exp and learned scores wₚ and wᴅ are the same as above. The shared denominator makes the weights a distribution over the directions.
The head uses those weights to mix the parser’s estimate for the pair and the estimate for the reversed pair. In I like cats, the token cats can receive information from like through the parent term. The token like can receive information from cats through the dependent term. This distinction gives the encoder a way to treat the same grammatical attachment differently depending on which word is being updated.
pᵢⱼ = aₚ Pᴅ(j | i) + aᴅ Pᴅ(i | j)
Here pᵢⱼ is the structural weight for information flowing from source token j to receiving token i in the current head. The weights aₚ and aᴅ favor the parent and dependent directions. Pᴅ(j | i) is the estimate that j governs i. Pᴅ(i | j) is the estimate that i governs j, so that j is a dependent of i. The addition pools the two ways in which the pair can be related.
A structural link alone leaves open whether a particular head should use that link. The authors draw on earlier observations that different attention heads can respond to different kinds of dependencies. They give each head a second score for each pair, computed from the current query and key vectors. That score allows the head to choose among plausible links based on the representations at the two positions.
qᵢⱼ = σ((Qᵢ · Kⱼ) / √dₖ)
Here qᵢⱼ is the content-based gate for source j and receiver i. Qᵢ is the query vector at i, and Kⱼ is the key vector at j. The centered dot is their dot product. The size of the head’s query and key vectors is dₖ, and its square root sets the scale of the dot product. The sigmoid σ converts the scaled value into an independent gate for the pair. A stronger gate for one source does not directly use up the weight available to other sources through a softmax over positions.
The two gates multiply the value vector contributed by the source. The shape of this operation makes the division of labor clear. The parser supplies a preference for a grammatical connection, and the head supplies a preference based on what is represented at each position. Both affect how much of the source vector is passed to the receiver.
Attention(Qᵢ, Kⱼ, Vⱼ, D) = pᵢⱼ qᵢⱼ Vⱼ
Here Attention denotes the contribution from source j to receiver i in the current head. Qᵢ and Kⱼ are the query and key, Vⱼ is the value vector at the source, and D denotes the soft dependency graph from which the structural weight is derived. The scalar pᵢⱼ comes from the attachment calculation and direction mixture, while qᵢⱼ comes from the query and key. Their product scales the source value that enters the head’s aggregation. A weak structural score suppresses the contribution even when the query and key favor the pair. A strong structural score leaves the content gate free to reduce the contribution.
Learn from the hidden words and read out the syntax
During training, each token independently has a chance of replacement by a mask symbol. The parser and encoder work with the resulting input. At a masked position, the prediction target is the original token. The shared embeddings and the convolutional parser feed into the encoder’s attention through the span and dependency estimates. Errors in word prediction can consequently change the gap scores, word heights and attention parameters in concert. This is the learning route described by the paper for masked prediction in language modeling.
The hard splits used for constituency evaluation are unnecessary inside that training route. The encoder uses the graded edge weights. For evaluation, the authors decode the constituency tree by taking the largest gap at each split. The dependency evaluation uses a different readout: for each token, it selects the highest-scoring parent from the soft distribution. The appendix’s joint tree construction explains how distances and heights can produce both sorts of syntax together, while the evaluation rule specifies how the study obtains the attachments it scores.
k = argmaxⱼ ≠ ᵢ Pᴅ(j | i)
Here i is the token to be attached, j ranges over the other positions, and Pᴅ(j | i) is the parent score. The argmax operation returns the index k that maximizes the expression. Excluding j = i rules out a self-attachment. This expression is a local choice per word. The statement of the evaluation rule leaves any additional global decoding constraints unspecified.
Experiments and results
The experiments answer different questions about the same architecture. Masked prediction tests how well the encoder recovers removed tokens. Constituency evaluation tests whether its gap scores recover human-identified phrases. Dependency evaluation tests whether its attachment scores recover human-identified pairs and, in the directed metric, the correct parent within each pair. The syntax experiments use a parser trained on Penn Treebank text. The BLLIP conditions extend the word-prediction comparison to additional amounts of training data.
The authors keep their encoder close to the original Transformer and put layer normalization before each layer, following the placement in T5. They report faster convergence with that placement. Their settings use 8 encoder layers and 8 attention heads, embedding and hidden widths of 512, and feed-forward width of 2048. The dropout rate is 0.1. The parsing network uses 3 convolution layers. These settings describe the experimental implementation. The difference introduced by the paper lies in how the parser and the attention mechanism interact. The layer normalization placement follows the T5 study.
Masked prediction on Penn Treebank and BLLIP
For the Penn Treebank condition, abbreviated PTB, preprocessing removes punctuation and maps infrequent words to a common unknown-token symbol. The resulting vocabulary has 10,001 entries, including the symbols for unknown tokens, padding and masking. Unknown tokens are eligible for replacement by the mask, just as ordinary words are. The PTB mask rate is 30%. The target at each selected position is whatever token appeared there after preprocessing, including the unknown symbol when that is the original token in the processed sequence.
BLLIP is a corpus of roughly 24 million sentences in the Penn Treebank annotation style. In the paper, sections chosen at random from BLLIP 1987-89 Corpus Release 1 form the basis for the training conditions. BLLIP-XS contains 40k sentences and 1M tokens. BLLIP-SM contains 200K sentences and 5M tokens. BLLIP-MD contains 600K sentences and 14M tokens. Training on these samples gives a series of comparisons against a shared BLLIP test set with 20k sentences and 500k tokens.
The BLLIP runs use a sub-word vocabulary taken from GPT-2 and a mask rate of 15%. The paper follows an earlier evaluation setup for this vocabulary choice. Reusing the vocabulary determines how the text is divided into units. It is a distinct choice from initializing the parser with pretrained word embeddings. PTB uses its processed word vocabulary, so what counts as a prediction target differs across the two corpora. This matters when reading perplexities across datasets with different tokenization.
Mask rates for the PTB and BLLIP masked-prediction settings
The Penn Treebank condition hides a larger share of input tokens than the BLLIP conditions.
The numbers
| System or setting | mask rate % |
|---|---|
| BLLIP-XS | 15 |
| BLLIP-SM | 15 |
| BLLIP-MD | 15 |
| StructFormer on PTB (this paper) | 30 |
The chart compares the fraction chosen for masking. Its ordering describes how much text was hidden, and each setting’s prediction quality is evaluated separately. Perplexity is measured on the masked tokens. It reflects how much probability the predictor gives the correct tokens, with lower values indicating stronger predictions. Visible tokens supply context. Keeping the score focused on the masked positions makes it a test of recovering information that was removed from the input.
StructFormer has lower masked-token perplexity than the authors’ standard Transformer baseline across PTB and the BLLIP settings. The authors also report faster convergence than their baseline. The comparison addresses whether replacing ordinary attention with the parser-guided mechanism decreases effectiveness at the task that supplies the training signal. For the conditions tested, the structured attention system improves that measure while also providing syntax for direct inspection. The BLLIP results show the same direction of comparison across its different training samples.
The comparison is clearest within a corpus setting. On BLLIP, different training samples can be compared on the shared test set under the same masking rate and vocabulary. A PTB score reflects a different vocabulary, different preprocessing and a different density of missing tokens. The role of the two corpora is to evaluate the architectural comparison under more than one setup. The masked prediction experiments use the kind of objective discussed in BERT and RoBERTa.
Recovering phrases in the Wall Street Journal
The authors use the parser trained on PTB for both kinds of syntax evaluation. The reference test material is Wall Street Journal section 23, which contains 2416 sentences with expert annotations. The evaluation ignores punctuation. When the reader sees a score for phrase or dependency recovery, it therefore describes this annotated test set and this punctuation policy. The training target remains word prediction.
For constituency, the authors turn the predicted gaps into a tree by splitting recursively. The evaluation checks which contiguous spans match constituents in the human tree. The headline metric is unlabeled F1, abbreviated UF1. A correctly recovered span contributes regardless of the phrase label. Precision concerns how many predicted spans are correct, while recall concerns how many reference spans were recovered. F1 combines those two aspects of span agreement. This makes the task appropriate for a parser that builds a binary tree of spans without assigning categories to its nodes.
The paper also groups the reference constituents by their human labels and asks how frequently the parser recovers each kind of span. This is recall by category. For instance, a recovered noun phrase counts because the predicted boundaries match those of the annotated noun phrase. The procedure uses the reference category to organize the scores. A parser can consequently show strong recovery of spans that humans call noun phrases without producing a noun-phrase label of its own.
StructFormer performs strongly in the authors’ comparison, with stronger constituency parsing than Tree Transformer and weaker performance than the compound PCFG. These are different comparisons. Tree Transformer also incorporates structure into a Transformer encoder, with attention constrained by a hierarchy of locality. The compound PCFG uses a finite inventory of production rules, giving it a different set of linguistic constraints. Its advantage on the phrase benchmark gives context to StructFormer’s result. The system that shares its structure with a masked predictor is competitive, while a grammar designed specifically around phrase derivations can recover the annotated grouping more closely. The paper makes this comparison with Compound Probabilistic Context-Free Grammars.
The category breakdown provides evidence about what the overall span score contains. The authors highlight strong recall for noun phrases, prepositional phrases, adjective phrases and adverb phrases. This shows that the overlaps include several linguistically recognizable kinds of phrase. The comparison with Tree Transformer is relevant to the design because StructFormer’s attention uses word attachments even though the constituency output is evaluated in its own right. The authors suggest that dependency constraints may offer a useful route to inducing phrases in a Transformer.
Recovering word attachments under two conventions
The dependency evaluation has another choice to make. The human annotations in the WSJ test material describe constituents, so the reference dependencies come from converting those phrase trees into graphs. Stanford and CoNLL dependencies use different rules for the conversion. A prediction can consequently agree with one reference and disagree with the other even when both references originate from the same annotated sentence. The authors report both because they noticed predictions that sometimes resemble the CoNLL analysis more closely. Stanford dependencies are the reference used in the earlier comparisons they discuss.
Unlabeled Attachment Score, or UAS, asks whether the predicted parent matches the reference parent for a token. The direction of the relation matters: identifying the two words without choosing the reference head is insufficient for this metric. Undirected Unlabeled Attachment Score, or UUAS, instead asks whether the connection is recovered when its direction is ignored. Both metrics set aside the label of the grammatical relation. Together they distinguish finding a plausible pair of words from assigning the parent in agreement with the reference.
Under the Stanford evaluation, StructFormer recovers 61.6% of the undirected connections on the WSJ test set. This figure describes agreement on word pairs after punctuation is ignored. The directed evaluation makes the additional demand that those pairs have the correct parent. The paper describes StructFormer as competitive with systems that do not receive gold part-of-speech tags. Its comparison includes DMV-based approaches and Neural L-PCFG. The baseline table also distinguishes results that benefit from punctuation-based constraints or from additional training data, factors that change what evidence a parser can use.
The choice of reference clarifies the authors’ central comparison. StructFormer can recover a substantial share of human-derived connections without a gold tag sequence, a clustering system supplying categories, or pretrained word embeddings for the parser. Its output still has to be judged against a specified conversion. Agreement with a dependency benchmark measures how well the learned connections and head choices match that convention. The paper’s use of both conventions exposes some of the variation that a single score would conceal.
What the ablations show
Removing an information direction
The main ablation restricts which kinds of dependency information attention can use. The full system permits a learned mixture of information from parents and information from dependents. The restricted versions remove one direction. The parser still produces its structural estimates, and the restriction changes how the prediction objective can use those estimates. Since the parser learns through that objective, the change can affect its inferred trees as well as the encoder’s ability to combine information.
Removing the parent relation means a receiving word no longer has that route to its proposed governor. The paper finds that dependency recovery suffers especially under this restriction. This fits the way the parser is evaluated: the output of interest is, for each word, its choice of another word as parent. With the parent route available, masked prediction can reward a structural estimate when a candidate governor carries useful context to the governed word. The ablation shows that access to this direction helps produce the evaluated attachment structure within the architecture.
Removing the dependent relation has a different effect. A word may still receive information from its proposed parent, but the parent loses the direct route for gathering information from words attached to it. Constituency recovery suffers especially in this version. The result is consistent with a phrase representative benefiting from information about the parts it represents, though the ablation changes the learned system as a whole. The experiment measures the consequence of removing a route. It does not trace each recovered phrase to a specific message sent by one child.
Both restrictions weaken masked prediction relative to the full mixture. The complete architecture gives the strongest combined performance in the relation comparison. Each direction offers a distinct benefit, and the asymmetric changes in parsing tell more than the prediction comparison alone would. If dropping either direction had affected phrase and dependency recovery in the same way, there would be less reason to distinguish their roles. The different patterns instead show that the path through which context reaches a word matters to the syntax learned under the prediction objective.
The directions should be interpreted as relations available to each receiving position. For a dependent token, its governor is a source when the head takes the parent relation. For that governor, the dependent becomes a source when the head takes the dependent relation. Removing a direction changes the flow of information over a proposed dependency and thus changes the training feedback on the scores behind it. The sparsity or prominence of a discrete edge by itself does not capture that distinction.
Inspecting the learned mixtures
The appendix examines the direction preferences learned by individual heads. On PTB, the first encoder layer tends to favor receiving information from parents. From the second layer, the system uses both kinds of relation. The finding concerns the mixture parameters supplied to attention. The effective information flow for a sentence also depends on the attachment probabilities and the content gate, so the parameter figures give one part of the explanation of what a head actually uses.
The comparison with BLLIP-SM shows clearer preferences among heads in that condition. The authors suggest that the larger supply of training data may account for the difference. This is an interpretation of the visual comparison. The experiments also change vocabulary and masking setup between PTB and BLLIP, so the figures do not isolate data quantity as the cause. They do show that the direction weights remain available for inspection in either condition and can develop recognizable layer-level patterns without separate direction labels in training.
These observations complement the ablation. Removing a direction asks what happens when access to it is prohibited. Reading the learned weights asks what the full system favors when it can choose. A tendency to emphasize parents early can coexist with a benefit from retaining dependent information in the complete encoder. The mixture parameters can show that a route is available and preferred, while a particular sentence may supply little support for specific pairs along that route.
Looking at uncertainty in individual attachments
The example parent distributions reveal broad preferences rather than uniformly sharp selections. A word can assign appreciable support to several candidate governors. The qualitative ACL paper examples come from the WSJ test set, with each row representing the candidate parents of one word. The displayed probabilities also reflect the missing self-parent entry, so the total weight in a row need not equal 1.
The authors offer the existence of different annotation conventions as one explanation for the diffuse scores. A system trained to recover words may learn useful relationships that span more than one way of choosing heads. When the evaluation chooses only the largest score, smaller alternatives disappear from the reported attachment. The appendix’s examples expose this uncertainty and motivate the authors’ question of how to encourage a particular dependency style without simply supplying the reference trees during training.
Changing how much text is hidden
The paper also varies the mask rate on PTB. Its appendix reports that dependency parsing is particularly sensitive to this setting and identifies 0.3 as the best and most stable rate in that comparison. This sensitivity matters because the mask rate affects two parts of the experiment at once. It changes how much visible context is available to the parser and encoder, and it changes how often a position provides a target for learning.
The mask-rate comparison thus qualifies any account that attributes the learned structures entirely to the architecture. Distances, heights and attention determine the kinds of structure the system can use. The way text is corrupted determines the prediction problems on which those structures are trained. The appendix supports the particular setting used for PTB, while the BLLIP experiments use their separately specified masking procedure. The best PTB condition is evidence about the tested rates and corpus, with the authors emphasizing the dependency scores in particular.
Limitations
Limits the authors identify
The authors explicitly discuss the ambiguity introduced by the two dependency conversions. Reference choice changes how a connection should be scored, especially when the metric requires the correct governor. The parent distributions in their examples are often diffuse, and the authors suggest that the system may be learning preferences compatible with more than one convention. They identify learning a bias toward a particular dependency style as a future research problem. Their evaluation documents agreement under both references while leaving the choice of a target convention open.
The paper also identifies a structural hazard in comparing heights with distances. A phrase can become isolated when both boundary scores exceed all its token heights. The proposed calibration addresses that specific source of isolation by shifting the common distance scale while preserving the gap order. The need for calibration shows that ranking gaps correctly for constituency and setting their magnitudes appropriately for communication are separate concerns. A phrase boundary can be perfectly reasonable as a split and still be too high for context to reach across it in the soft parser.
The authors recognize that the compound PCFG has the stronger constituency result. They distinguish their design by its potential use as an encoder and by its ability to serve masked prediction alongside joint induction. Their conclusion describes a route toward adding linguistic structure to pretrained encoders. The experiments in the paper demonstrate the local design under masked prediction and the reported parsing conditions. Applications as replacements for widely used encoders or in translation remain proposals in the paper.
Limits of the experimental setup
The syntax evaluation covers the WSJ test set and uses the PTB-trained system. BLLIP broadens the evidence for masked prediction, but its prediction results do not independently establish parsing accuracy on its own test set. The scope of the syntax evidence is therefore narrower than the scope of the language-prediction evidence. The paper also gives no multilingual parsing experiment. Its discussion of the expense of annotation motivates induction from text, while the reported structure scores concern the English corpus used for evaluation.
The evaluated representations are intentionally limited. Constituency decoding yields a binary tree without category labels. Where several children are present in the reference structure, binary recursion still resolves its own splits through pairs of children. The label recall breakdown tells us about recovery of spans that humans assign to particular categories. It supplies no test of whether StructFormer can name those categories. Dependency recovery is likewise evaluated without relation labels. Even a correctly directed link is evidence for the choice of parent, with distinctions among kinds of grammatical relations left unevaluated.
The two dependency evaluations also use references derived from the same WSJ constituency annotations. This supports a comparison of conversion choices on the same sentences. It leaves open how results would transfer to dependency annotations made in a separate annotation process. In addition, punctuation is omitted for PTB prediction and ignored in the parsing evaluation. The reported scores say little about the usefulness or organization of punctuation in the inferred structures.
Another distinction concerns the readout. Recursive splitting supplies a well-defined binary phrase structure once a split is selected at every internal span. The soft dependency matrix serves a different purpose, since it supplies weights for information transfer. Selecting the top non-self candidate independently for each token is the evaluation readout described by the paper. That local rule alone does not guarantee one root, global connectedness or the absence of cycles. The hard joint construction with phrase representatives has a tree-building logic, but those properties cannot be inferred from the pairwise maximum rule simply because the paper also describes that construction.
The masked-word improvement establishes an advantage over the authors’ Transformer baseline under their evaluated setups. It leaves several explanations for the gain open. The architecture changes both the structural weighting of candidate pairs and the content gate used inside attention. The relation ablation tests whether each direction contributes within this system. It does not isolate the role of every component in the full comparison with standard attention. Likewise, a lower perplexity establishes better recovery of masked tokens under the reported conditions. The paper discusses links between masked prediction and downstream performance as motivation, but evaluates no downstream task that would show the effects of this particular parser there.
Finally, the decoder and the attention calculation summarize uncertainty differently. A highest-scoring parent provides a single decision for UAS. A soft mixture can still give the encoder useful evidence from a candidate that loses that decision. Conversely, a correct top-ranked parent need not dominate the signal once the head’s direction preference and content score are applied. This makes the prediction and parsing results complementary. The parsing metrics tell how the decoded structure aligns with references, while the prediction comparison measures whether the soft constraints help with the learning task.
What came after
The paper leaves open how to induce a particular dependency convention from the masked-word objective. The WSJ comparison gives this question a concrete form: an induced connection can be useful for prediction while its direction agrees better with one conversion of a phrase tree than with another. The authors propose looking for an inductive bias that would make the attachment scores favor a chosen convention more consistently.
A second direction follows from the architecture. Since attention consumes the dependency estimates while predictions train the parser, the approach can in principle be tested wherever an encoder is trained to recover information from context. The paper points to larger pretrained encoders and translation systems as possible applications. Its experiments establish the idea in masked-word prediction and in the accompanying PTB-trained parsing evaluations. No subsequent study is identified here that tests those proposed extensions or establishes how later work adopted them.
Cite
Cite as Yikang Shen, Yi Tay, Che Zheng, Dara Bahri, Donald Metzler and Aaron Courville. 2021. StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language Modeling. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).
@inproceedings{shen2021structformer,
title = {{StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language Modeling}},
author = {Yikang Shen, Yi Tay, Che Zheng, Dara Bahri, Donald Metzler and Aaron Courville},
booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
year = {2021},
doi = {10.18653/v1/2021.acl-long.559},
eprint = {2012.00857},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/2021.acl-long.559}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/shen-2021-structformer-joint-unsupervised-induction-dependency/
References
- Jiong Cai, Yong Jiang, and Kewei Tu. 2017. Crf autoencoder for unsupervised dependency parsing. arXiv preprint arXiv:1708.01018. OpenAlex ↗ · Scholar ↗
- Shay B Cohen, Dipanjan Das, and Noah A Smith. 2011. Unsupervised structure prediction with non-parallel multilingual guidance. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pages 50–61. our card
- Shay B Cohen and Noah A Smith. 2009. Shared logistic normal distributions for soft parameter tying in unsupervised grammar induction. In Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, pages 74–82. our card
- Hal Daumé III. 2009. Unsupervised search-based structured prediction. In Proceedings of the 26th Annual International Conference on Machine Learning, pages 209–216. OpenAlex ↗ · Scholar ↗
- Hiroyuki Deguchi, Akihiro Tamura, and Takashi Ninomiya. 2019. Dependency-based self-attention for transformer nmt. In Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019), pages 239–246. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. our card
- Andrew Drozdov, Patrick Verga, Mohit Yadav, Mohit Iyyer, and Andrew McCallum. 2019. Unsupervised latent tree induction with deep inside-outside recursive auto-encoders. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 1129–1141. OpenAlex ↗ · Scholar ↗
- Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A Smith. 2016. Recurrent neural network grammars. In Proceedings of NAACL-HLT, pages 199–209. our card
- Alexander Gelbukh, Sulema Torres, and Hiram Calvo. 2005. Transforming a constituency treebank into a dependency treebank. Procesamiento del lenguaje natural, (35):145–152. OpenAlex ↗ · Scholar ↗
- Jennifer Gillenwater, Kuzman Ganchev, João Graça, Fernando Pereira, and Ben Taskar. 2010. Sparsity in dependency grammar induction. ACL 2010, page 194. OpenAlex ↗ · Scholar ↗
- Wenjuan Han, Yong Jiang, and Kewei Tu. 2017. Dependency grammar induction with neural lexicalization and big training data. arXiv preprint arXiv:1708.00801. OpenAlex ↗ · Scholar ↗
- Junxian He, Graham Neubig, and Taylor Berg-Kirkpatrick. 2018. Unsupervised learning of syntactic structure with invertible neural projections. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1292–1302. OpenAlex ↗ · Scholar ↗
- William P Headden III, Mark Johnson, and David McClosky. 2009. Improving unsupervised dependency parsing with richer contexts and smoothing. In Proceedings of human language technologies: the 2009 annual conference of the North American chapter of the association for computational linguistics, pages 101–109. OpenAlex ↗ · Scholar ↗
- Phu Mon Htut, Jason Phang, Shikha Bordia, and Samuel R Bowman. 2019. Do attention heads in bert track syntactic dependencies? arXiv preprint arXiv:1911.12246. OpenAlex ↗ · Scholar ↗
- Jennifer Hu, Jon Gauthier, Peng Qian, Ethan Wilcox, and Roger P Levy. 2020. A systematic assessment of syntactic generalization in neural language models. arXiv preprint arXiv:2005.03692. our card
- Yong Jiang, Wenjuan Han, Kewei Tu, et al. 2016. Unsupervised neural dependency parsing. Association for Computational Linguistics (ACL). OpenAlex ↗ · Scholar ↗
- Taeuk Kim, Jihun Choi, Daniel Edmiston, and Sang-goo Lee. 2020. Are pre-trained language models aware of phrases? simple but strong baselines for grammar induction. arXiv preprint arXiv:2002.00737. OpenAlex ↗ · Scholar ↗
- Yoon Kim, Chris Dyer, and Alexander M Rush. 2019a. Compound probabilistic context-free grammars for grammar induction. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 2369–2385. our card
- Yoon Kim, Alexander M Rush, Lei Yu, Adhiguna Kuncoro, Chris Dyer, and Gábor Melis. 2019b. Unsupervised recurrent neural network grammars. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 1105–1117. our card
- Dan Klein. 2005. The unsupervised learning of natural language structure. Stanford University Stanford. OpenAlex ↗ · Scholar ↗
- Dan Klein and Christopher D Manning. 2002. A generative constituent-context model for improved grammar induction. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 128–135. our card
- Dan Klein and Christopher D Manning. 2004. Corpus-based induction of syntactic structure: Models of dependency and constituency. In Proceedings of the 42nd annual meeting of the association for computational linguistics (ACL-04), pages 478–485. OpenAlex ↗ · Scholar ↗
- Adhiguna Kuncoro, Lingpeng Kong, Daniel Fried, Dani Yogatama, Laura Rimell, Chris Dyer, and Phil Blunsom. 2020. Syntactic structure distillation pretraining for bidirectional encoders. arXiv preprint arXiv:2005.13482. OpenAlex ↗ · Scholar ↗
- Phong Le and Willem Zuidema. 2015. Unsupervised dependency parsing: Let's use supervised parsers. arXiv preprint arXiv:1504.04666. OpenAlex ↗ · Scholar ↗
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. our card
- Hongyin Luo, Lan Jiang, Yonatan Belinkov, and James Glass. 2019. Improving neural language models by segmenting, attending, and predicting the future. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1483–1493. OpenAlex ↗ · Scholar ↗
- Diego Marcheggiani and Ivan Titov. 2017. Encoding sentences with graph convolutional networks for semantic role labeling. arXiv preprint arXiv:1703.04826. our card
- Tomáš Mikolov et al. 2012. Statistical language models based on neural networks. Presentation at Google, Mountain View, 2nd April, 80:26. OpenAlex ↗ · Scholar ↗
- Yutaro Omote, Akihiro Tamura, and Takashi Ninomiya. 2019. Dependency-based relative positional encoding for transformer nmt. In Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019), pages 854–861. OpenAlex ↗ · Scholar ↗
- John K Pate and Sharon Goldwater. 2013. Unsupervised dependency parsing with acoustic cues. Transactions of the Association for Computational Linguistics, 1:63–74. OpenAlex ↗ · Scholar ↗
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683. our card
- Yikang Shen, Zhouhan Lin, Chin-wei Huang, and Aaron Courville. 2018a. Neural language modeling by jointly learning syntax and lexicon. In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
- Yikang Shen, Zhouhan Lin, Athul Paul Jacob, Alessandro Sordoni, Aaron Courville, and Yoshua Bengio. 2018b. Straight to the tree: Constituency parsing with neural syntactic distance. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1171–1180. OpenAlex ↗ · Scholar ↗
- Yikang Shen, Shawn Tan, Alessandro Sordoni, and Aaron Courville. 2018c. Ordered neurons: Integrating tree structures into recurrent neural networks. In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
- Valentin I Spitkovsky, Hiyan Alshawi, Angel Chang, and Dan Jurafsky. 2011. Unsupervised dependency parsing without gold part-of-speech tags. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pages 1281–1290. OpenAlex ↗ · Scholar ↗
- Valentin I Spitkovsky, Daniel Jurafsky, and Hiyan Alshawi. 2013. Breaking out of local optima with count transforms and model recombination: A study in grammar induction. OpenAlex ↗ · Scholar ↗
- Emma Strubell, Patrick Verga, Daniel Andor, David Weiss, and Andrew McCallum. 2018. Linguistically-informed self-attention for semantic role labeling. arXiv preprint arXiv:1804.08199. our card
- Kewei Tu and Vasant Honavar. 2012. Unambiguity regularization for unsupervised learning of probabilistic grammars. In Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 1324–1334. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008. our card
- Yaushian Wang, Hung-Yi Lee, and Yun-Nung Chen. 2019. Tree transformer: Integrating tree structures into self-attention. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 1060–1070. our card
- Hao Zhu, Yonatan Bisk, and Graham Neubig. 2020. The return of lexical dependencies: Neural lexicalized pcfgs. Transactions of the Association for Computational Linguistics, 8:647–661. OpenAlex ↗ · Scholar ↗