Automatic Extraction of Rules Governing Morphological Agreement
Paper · 2020 · Aditi Chaudhary, Antonios Anastasopoulos, Adithya Pratapa et al.
Summary
Writing a descriptive grammar means identifying which properties of a sentence depend on one another. A Spanish verb, for instance, generally takes its number from its subject in the construction the authors examine. The same verb can appear with a singular or plural object. A corpus will contain verbs whose number happens to match both, so counting matches alone can give a misleading account of the grammar. The authors turn this problem into a way to build a first-pass description of morphological agreement, the dependence that makes words match in features such as number, gender or person. Their method starts with text and produces rules a linguist can inspect alongside examples and counterexamples. The authors released the code and made the rules for 55 languages available through an interactive interface.
The method first uses dependency parsing to identify which words are syntactically linked. It also needs each word’s part of speech and its morphology, including the value of the feature being studied wherever it is marked. For each direct link with that feature marked at both ends, the authors record whether the values match. A decision tree groups these observations by the words’ parts of speech and the relation between them. Its terminal groups become possible rules. The authors try a fixed cutoff of 90% matching examples and a statistical procedure that asks how unusual the observed matches are given the frequencies of the feature values. They favor the statistical procedure because groups with very few examples can clear a fixed cutoff by chance.
Linguists evaluated frequent constructions in Greek, Russian and Catalan. Under the strict scoring convention, they agreed with the extracted labels at an average rate of 78%. The authors also developed the automated rule metric, or ARM, which compares the rules with agreement frequencies in held-out, expertly annotated text. With expert annotations for rule extraction, the method scored 0.574 ARM across treebanks and features, ahead of a baseline that treats agreement as incidental in every construction. The experts sometimes identified a condition the tree could never see. Conjoined verbs, for example, can agree because they have the same subject, a fact that the parts of speech and relation of the two verbs alone cannot establish.
The experiments also tested what happens when annotations are scarce. In simulations with a parser trained using a related language, 50 annotated target sentences produced results close to those obtained with 100 or 500. For Spanish gender, a tree built without target-language training annotations recovered 93% of the rule triples from the tree learned with expert Spanish annotations. In a separate experiment on Breton, Buryat, Faroese, Tagalog and Welsh, the authors used automatically analyzed raw text for rule extraction and reserved the existing expert annotations for testing. The mean ARM was 0.566, compared with 0.506 for the all-chance baseline. For Welsh gender, the scores were 0.730 and 0.615, respectively. The experiments demonstrate a way to put together a preliminary sketch of agreement in a language for which little or no annotated training material is available.
Deep dive: Automatic Extraction of Rules Governing Morphological Agreement
How researchers use parsed text and decision trees to infer when words must agree, and how they test the resulting rules with scarce annotations. · about 35 minutes to read
The problem and its context
When matching forms tell different stories
A grammar sketch gives a reader a compact account of how a particular language puts sentences together. The paper concentrates on agreement because it is both a substantial part of many such descriptions and a tractable place to begin automating them. One word’s form can depend on properties of another word or phrase. If a language requires that dependence in a given construction, changing a feature on one side can force a change on the other. A useful sketch has to identify the construction as well as the feature. Knowing that a language has number marking still leaves open which words must reflect the same number and under what conditions.
The Spanish examples make the problem concrete. In the sentence about riddles being easy, the plural subject enigmas occurs with the plural verb son. The paper’s ungrammatical example illustrates what happens when the subject remains plural and the verb is singular. In the sentence about a brother having a dog, the singular verb tiene and the singular object perro also match. The authors pair that example with a sentence in which the same brother has many dogs. The object becomes plural and the verb stays singular. The subject and the object both yielded a number match in the original examples, but the grammatical explanation differs. The subject controls the relevant form of the verb. The object happens to have the same value.
This distinction makes agreement a difficult inference from ordinary text. A sentence gives evidence about the forms a writer used. The investigator wants to know what the writer would have had to change if another form had been used. A varied corpus can help because it contains different instances of similar constructions. If both matches and mismatches recur under the same description, there is reason to question whether the match is obligatory across that description. If nearly every instance matches, the pattern deserves attention, though other explanations may still account for it. The paper develops a way to organize those observations so that a person can examine the evidence for each candidate rule.
Agreement also varies within familiar syntactic categories. The authors point out that ordinary verbs in English can reflect the subject’s person and number, while a modal such as will retains its form. A general description of English subject–verb agreement therefore needs room for regularities in different kinds of verbs. Across languages, the variation can be much greater. The paper contrasts languages such as Japanese and Malay with languages such as Hindi, Russian and Chichewa to illustrate the range from little or no agreement to much more extensive systems. A procedure for drafting a sketch has to be able to return a sparse description as well as a more elaborate one.
From language documentation to corpus evidence
The authors place the project in a descriptive tradition that seeks to characterize a language from evidence in that language. Their practical motivation is that preparing a grammar is laborious, particularly when the language has received little formal documentation. A preliminary inventory of likely patterns can make corpus examples easier to find and compare. For a linguist, the examples help diagnose whether a generalization needs narrowing. For a teacher or learner, a compact description of which elements agree can make the same regularity easier to find. The paper also points to a computational motivation. Work on counterfactual data augmentation for gender stereotypes illustrates why a program that changes a gendered expression may need to account for the morphology of related words.
Earlier projects described in the paper extract grammatical information from interlinear glossed text, which gives an analysis of the forms in a sentence alongside the text. In the work by Bender and colleagues, separate procedures infer such information as lemmas, lexical rules, word order and case in an endangered language. Some procedures use hand-written rules. Howell and colleagues extend the work on inferring case systems to additional languages. Zamaraeva uses clustering to infer morphotactics, the organization of forms within a word, from glossed examples. The paper also describes a line of work in which Hellan uses sentence templates to characterize the constructions available in a language. These efforts share the goal of making grammatical analysis more systematic. Their input and the grammatical phenomena they target differ from the ones in this study.
The authors’ specific proposal is to begin with raw text and have an automatic analysis supply the structure needed to study agreement. A treebank offers the same kind of structure with annotations already in place. The paper can therefore examine the rule induction procedure with expert annotations and then ask how much of the result survives when those annotations must be predicted. That distinction matters for low-resource languages, where the absence of a training treebank is part of the problem. The procedure still depends on the availability of text and on a parser that can make enough sense of it to reveal the relevant constructions.
The choice of a dependency analysis determines which words become candidates for comparison. In a dependency tree, words are linked by labeled relations, and each link has a direction from a head to its dependent. A verb and its subject can therefore be compared even when another word occurs between them. The link also supplies a reason to group the pair with other subjects of verbs. For a project intended to describe agreement, this is a more specific starting point than treating nearby words as interchangeable evidence. It also sets a boundary on the investigation. A grammatical dependence that cannot be read from a direct link may be difficult to capture with the information the authors retain.
The method, step by step
Turn sentences into observations of agreement
The procedure needs a corpus with three layers of linguistic annotation. Part-of-speech tagging identifies categories such as noun, verb and adjective. Morphological analysis gives the values marked on individual words, such as singular or plural for Number. A dependency analysis supplies directed links and relation labels. The annotations can come from a treebank or from a parser applied to raw sentences. Once these layers are available, the remaining steps use the same basic representation in either case.
The authors use Surface-Syntactic Universal Dependencies, or SUD, for the expert syntactic analyses. They convert Universal Dependencies v.2.5 treebanks with the SUD conversion tool. In the authors’ account, Universal Dependencies tends to choose content words as heads, while SUD chooses heads according to surface-syntactic criteria. Their German example shows an auxiliary taking the infinitive as a dependent in SUD. The direction and type of link matter because the learning procedure examines each edge in the resulting tree. Reassigning the head can change which pairs are seen and how the words in those pairs are described. The annotation scheme is part of the method’s definition of a candidate construction. Universal Dependencies v2 · Surface-Syntactic Universal Dependencies · Improving Surface-Syntactic Universal Dependencies
For a given language, the authors work on one morphological feature at a time. They examine Gender, Person, Number, Mood, Case and Tense. For Number, they keep an edge only when both words have a Number value. The observation receives a positive label if those values are equal and a negative label if they differ. An edge where one word lacks a Number annotation is absent from this training set. It can still contribute to a different feature’s training set if that feature is present on both ends. A missing annotation would be poor evidence for a mismatch, so filtering keeps the classification target tied to comparisons that the annotation actually supports.
The operation gives a name to what is directly observable. In the authors’ Greek example about a port and its connections, the linked words for Italy and Albania both have feminine gender. At this stage that link is a match, just as a noun and an agreeing modifier can be a match. Only a later stage judges whether the match is evidence of a rule. Keeping the two judgments apart lets the procedure record the Greek example accurately without giving the incidental match grammatical force.
From raw sentences to an agreement sketch
The steps in order.
Give the tree the context it can use
The learning unit is a directed edge. Its head and dependent are individual words when the labels are collected. Their parts of speech, together with the relation label, are what the tree can use to make a prediction. For example, a plural noun and a plural adjective can supply a positive Gender or Number observation only if the corresponding feature values match. The tree sees the noun and adjective categories and the relation between them. It does not use the words’ identities or the values that were compared to decide the training label. Using the actual values as predictors would turn the task into recovering the equality comparison, which is already known. The authors want a prediction about a kind of construction.
X_f = {⟨h₁, d₁, r₁⟩, …, ⟨hₙ, dₙ, rₙ⟩}
Here X_f is the collection of eligible dependency triples for the morphological feature f. The braces collect the observations, and the angle brackets group the components of a single edge. h₁, d₁ and r₁ are the first edge’s head, dependent and relation. The dots stand for the intervening observations, and n is the number of eligible edges, so the subscript n marks the last observation. The head and dependent are represented by their parts of speech when the tree is fit.
Y = (y₁, …, yₙ)
Y is the sequence of training labels in the same order as the dependency triples. Each y describes the match status of its corresponding edge. The subscripts mark the first and last positions, and the dots stand for all positions in between.
yⱼ = 1 if f(hⱼ) = f(dⱼ), and 0 otherwise
j indexes a retained edge, and yⱼ is its training label. f(hⱼ) is the value of feature f on the head of that edge, and f(dⱼ) is the value on its dependent. The equality between those expressions is the test for a match. The label 1 records a match and 0 records a difference. The earlier filtering step ensures that both values exist before this comparison is made.
p(Y | X)
p denotes the conditional distribution the tree is trained to predict. Y denotes the binary outcomes and X denotes the input triples for the feature under study. The vertical bar reads as “given.” In this setting, the distribution of interest is the proportion of matches and mismatches among examples that satisfy the same conditions in the tree.
The authors use classification and regression trees, or CART, as implemented in scikit-learn. A classification tree repeatedly divides the training observations according to their predictors. It can ask whether the head is a particular part of speech, for instance, or whether the relation belongs to a category that differentiates the match outcomes. An observation passes down the corresponding branch until it reaches a terminal node, or leaf. The examples in a leaf share all the conditions encountered on that path. A path can therefore be read as a description of a construction or of a group of constructions with similar evidence.
A single concrete triple always follows the same path in a fitted tree. Several different triples can reach the same leaf if the questions on that path make no distinction between them. That grouping is how the method can produce a shorter description than a catalogue of separate results for every observed triple. It also means the tree’s generalization can be too broad. A grouping is justified during fitting by how it separates matches and mismatches in the data. The grammar of all constructions reaching the same leaf may require distinctions that those training proportions do not reveal.
The hyper-parameter search compares Gini impurity and entropy as splitting criteria. Both score the mixture of the two output classes within a node. The authors try maximum depths of 6 and 15 and use 1e−3 as the minimum impurity decrease. Increasing the allowed depth gives the tree more opportunities to distinguish one construction from another, while requiring a decrease in impurity sets a minimum improvement for a split. The authors choose settings by validation performance. For treebanks without a validation split, they use scikit-learn’s default cross-validation. Each language and feature has its own tree, so a useful partition for gender need never be imposed on case.
Decide what the matches mean
A fitted tree gives each leaf a frequency distribution. The paper’s Spanish gender illustration has a leaf with 99% matching training instances and 1% mismatching ones. A different leaf has a majority of matches even though the authors identify the matching values as incidental. The majority class can describe the typical observation within a leaf. To label the leaf as a grammar rule, the procedure needs a further criterion.
a = m / n
a is the observed share of matching links in a leaf, m is its count of matches and n is its total number of observations. The slash indicates division. Under the hard-threshold procedure, the authors use 90% as the common cutoff for this share. They chose that value after inspecting trees and looking for a setting that limited erroneous required-agreement judgments. The same cutoff applies to each feature and each leaf under this version of the method.
A high match rate can arise because a feature value is common even when the two words select their values independently. The authors’ numerical example concerns Number, with 90% singular and 10% plural occurrences. A chance match can consist of either a singular pair or a plural pair. To estimate the total chance of a match, the procedure adds the probabilities of those mutually exclusive events. It obtains its reference frequencies from observed feature values and assumes that head and dependent are independent draws from the same categorical distribution.
p₁ = 0.9 × 0.9 + 0.1 × 0.1 = 0.82
p₁ is the probability of a match under the chance hypothesis in the authors’ Number example. 0.9 is the singular frequency expressed as a proportion, and 0.1 is the plural frequency. Each multiplication gives the probability that both words receive the specified value under independence. The plus sign combines those possibilities, yielding 0.82 as the match probability.
p = [0.18, 0.82]
p is the null distribution over the binary output classes in that example. The brackets give the probabilities in class order. 0.18 is the probability of class 0, a mismatch, and 0.82 is the probability of class 1, a match. For another feature, the same construction uses the observed distribution over that feature’s values.
The paper calls the chance explanation the null hypothesis, H₀. The alternative hypothesis, H₁, is that the leaf represents required agreement. The statistical procedure is applied to leaves where matching examples form the majority. It computes how many matches and mismatches the null distribution would predict in a leaf of that size, then compares those quantities with the observed counts.
Eᵢ = n pᵢ
Eᵢ is the expected count for output class i. The index i selects class 0 for a mismatch or class 1 for a match. n is the number of training observations in the leaf, and pᵢ is the chance probability of that class. Multiplying the count by the probability gives the number of observations of that class expected under the null.
χ² = ∑ᵢ (Oᵢ − Eᵢ)² / Eᵢ
χ² is the chi-squared goodness-of-fit statistic. The summation runs across the mismatch and match classes. For each class i, Oᵢ is the count observed in the leaf and Eᵢ is the expected count. The difference is squared and divided by the expected count before the contributions are added. The statistic increases when the observed class frequencies depart from the chance frequencies.
The resulting p-value expresses how extreme the observed discrepancy is under the null hypothesis. The paper requires the p-value to be below 0.01. With plentiful data, a small departure can satisfy that condition. The authors also require a sufficiently large effect. They use Cramér’s phi to express the discrepancy relative to the number of observations.
φ꜀ = √[χ² / (N(k − 1))]
φ꜀ is Cramér’s phi, and the square-root sign applies to the enclosed quotient. χ² is the goodness-of-fit statistic. N is the total number of cases in the leaf, and k is set to 2 for the two output classes. The subtraction of 1 is part of the normalization. The paper requires φ꜀ to exceed 0.5, the stated cutoff for a large effect. A leaf receives the required-agreement label under the statistical procedure only when it clears both the p-value and effect-size cutoffs.
The two conditions address different ways a leaf can give a misleading impression. A very small leaf can show a high rate with little evidence about how consistently the construction behaves. A large leaf can establish that the rate differs from the chance expectation while the departure remains small. Moreover, the chance rate depends on the feature distribution. A leaf whose words overwhelmingly take one value faces a different reference distribution from a leaf drawn from a corpus where the feature values occur more evenly. The statistical filter is designed to make these situations matter to the labeling decision.
Read the leaves as rules
After labeling, the authors merge sibling leaves that carry the same label. They also collapse a subtree when every leaf below it has the same judgment. A distinction that helped describe the training distribution may therefore disappear from the displayed grammar if it has no effect on the final decision. All triples that entered the subtree still receive the same judgment they would have received before the collapse. What changes is the amount of branching a reader has to follow.
The resulting representation gives the linguist conditions and evidence. A required label marks a candidate rule about the constructions in a leaf. A chance label means the procedure found insufficient grounds to assign the required label under its chosen criterion. The interface lets a reader inspect examples and counterexamples alongside those conditions. That matters when a rare counterexample reveals a genuine restriction or when an apparent exception comes from an annotation problem. The tree locates the relevant evidence, and the examples allow a reader to ask whether the conditions are specific enough.
Experiments and results
Expert judgments and held-out counts
The experiments ask how well the procedure works with expert syntactic analyses and what happens when these must be replaced with predictions. The gold-standard setting learns from the training portions of the converted SUD treebanks. Validation is used for selecting tree settings, and held-out test examples provide evidence for the automatic score. The baseline assigns chance agreement to every leaf. That baseline is informative because many syntactic relations have no requirement for the feature under study. A procedure gains over it by finding required patterns that also appear as such under the evaluation.
For direct evaluation, experts assessed Greek, Russian and Catalan. The authors selected the top 20 frequent triples per feature and describe an annotation design with 120 sets of triples. On average, those frequent triples accounted for roughly 95% of the occurrences in which the feature was active. The interface presented 10 randomly selected training examples for each triple. The expert could judge that the construction almost always requires agreement, requires it in some instances, or need not exhibit agreement. This gives the evaluator a way to distinguish an unconditional generalization from a condition that the triple leaves unspecified.
For strict scoring, the authors count both the expert’s sometimes and need-not categories on the chance side of the comparison. The tree’s required label receives credit when the expert says agreement is almost always needed. The comparison concerns the construction as represented by the triple. It does not score whether the algorithm predicted the match status of each example shown to the linguist.
HS_f,t = 1 if l_human,f,t = l_tree,f,t, and 0 otherwise
HS_f,t is the human comparison score for feature f and triple t. l_human,f,t is the expert’s label after applying the scoring convention. l_tree,f,t is the label of the leaf reached by that triple in the learned tree. The equality tests whether those labels coincide, giving 1 for a correct label and 0 for a discrepancy.
HRM_f = (∑ₜ∈T_f HS_f,t) / |T_f|
HRM_f is the human evaluation metric for feature f. T_f is the set of evaluated triples for the feature. The sum adds the comparison scores HS_f,t for every triple t belonging to that set, as indicated by ∈. The vertical bars around T_f denote the number of triples. Dividing by that number gives the proportion of construction labels that match the expert’s judgment.
Under strict evaluation, accuracy reached 89% in Greek, 78% in Russian, and 66% in Catalan. The paper reports 78% as the average expert accuracy. These scores describe the selected constructions for those languages. The coverage figure helps explain why the authors prioritized frequent triples. A manageable annotation task can still cover a large share of the corpus occurrences. It also leaves open how well the procedure handles a long list of rarer construction types.
For evaluations where an expert cannot examine the rules, the authors estimate the same kind of categorical judgment from held-out gold annotations. They gather the test instances that match each triple and compute the fraction with equal feature values. If that fraction exceeds 0.95, the triple is labeled required for the purposes of the metric. The authors allow a 5% margin to account for such problems as occasional exceptions or errors in analysis. They mention multiword expressions as a case where the representation of a relevant head or dependent may complicate the comparison.
l_test,f,t = required if q_f,t > 0.95, and chance otherwise
l_test,f,t is the test-derived label for feature f and triple t. q_f,t is the fraction of held-out examples for the triple whose words match on the feature. The greater-than sign makes the cutoff 0.95 strict. required and chance are the two evaluation labels. This cutoff creates a proxy label from held-out data and is separate from the cutoffs used to label the tree’s training leaves.
ASₜ = 1 if l_test,f,t = l_tree,f,t, and 0 otherwise
ASₜ is the automatic comparison score for triple t at the feature f being evaluated. l_test,f,t is its label from the test examples, and l_tree,f,t is its predicted leaf label. Matching labels receive 1; unequal labels receive 0.
ARM_f = (∑ₜ∈T_f ASₜ) / |T_f|
ARM_f is the automated rule metric for feature f. In this formula, T_f denotes the evaluated triples for that feature in the automatic comparison. The summation adds ASₜ for each member t of that set. |T_f| counts the members, so the quotient gives equal weight to each evaluated triple. The individual examples are used to establish the test label before this averaging takes place.
What expert training annotations made possible
With gold annotations for learning, the procedure obtained an ARM of 0.574 averaged across treebanks and features. The paper reports an advantage of 0.074 ARM points over the all-chance baseline. Among 451 trees fit across those combinations, 78% beat their corresponding baseline. This last figure counts trees that scored higher, while the average ARM describes the agreement between the predicted and test-derived labels across the evaluation. It measures a different outcome from the average expert accuracy of 78%, in spite of the identical percentage.
The baseline was especially useful for interpreting the results across features. The authors report that extracted rules outperform it clearly in Slavic and Baltic languages, where agreement is extensive, and also show gains in Indo-Aryan and Germanic. They describe substantial improvements for Hindi and Russian. Mood and tense were different. On those features, the chance baseline was broadly comparable to the learned rules. The annotations give mood and tense to verbs and auxiliaries, so there are fewer kinds of word pairs on which the method can observe these features at both ends. A system that makes positive predictions in these settings is judged in part on whether it can avoid mistaking frequent matches within that smaller set for requirements.
Individual trees also reveal patterns that an aggregate can hide. The authors attribute the lower Arabic gender ARM to a small test set, though their discussion identifies noun phrases as an area of substantial agreement in Arabic. In North Sami, the case tree does no better than the baseline overall, yet its branches include an uncommon paratactic construction in which demonstrative pronouns overwhelmingly match their heads. For Tamil, the case analysis finds 100% agreement in the observed constructions involving nominalized verbs whose marking extends through the phrase. The Tamil figure describes the observations for those constructions. The North Sami example illustrates how a corpus sketch can bring cases of interest to a reader’s attention even when its predictions add little to the aggregate score.
Learning with a small annotated sample
The simulated low-resource experiments start with treebanks that have target-language annotations and hide most of them during parser training. The authors use Spanish-GSD with Portuguese-Bosque, and Greek-GDT with Ancient Greek-PROIEL. Spanish-GSD has 14,187 training sentences and 426 test sentences. Greek-GDT has 1662 training sentences and 456 test sentences. In the other pairings, Belarusian-HSE uses Ukrainian-IU and Lithuanian-ALKSNIS uses Latvian-LVTB. The Belarusian counts are 319 training sentences and 253 test sentences, and the Lithuanian counts are 2341 for training and 684 for testing. These are counts for the target-language treebanks, before withholding training annotations in the simulations.
The parser is Udify, which predicts word classes, morphological features and dependencies together. In the target-only condition, the authors train it on a small sample of expert-annotated target sentences. In the cross-lingual condition, they combine that sample with the related language’s treebank for parser training. Once trained, the parser annotates the remaining target sentences. The extracted rules thus use evidence from the target language in either setting. The source language affects the analyses of the target text through the parser. Udify
L − x
L is the number of sentences in the target treebank’s training split, and x is the number of expert-annotated target sentences made available for parser training. The subtraction gives the number of target training sentences annotated automatically. The authors then combine the x expert analyses with the automatic analyses of the remainder and fit the agreement tree to that combined corpus.
The sampled budgets are 50, 100 and 500 target sentences in the experimental design, with the Belarusian setting reported at 50 and 100 because of its smaller training split. To account for the choice of sentences, the authors repeat the sampling procedure 5 times and average the results. The simulated zero-shot condition uses the parser trained on the related language and parses all target training sentences automatically. Expert target annotations remain available for evaluating the rules on the test split.
The Number experiments show that related-language transfer can give high ARM scores with no expertly annotated target training sentences. Once transfer is available, the results with 50 annotated target sentences are generally close to those with 100 or 500. The authors also observe improvements with more annotations in most cases. The claim of closeness concerns the tested budgets, language pairings and evaluation procedure. The design keeps the pool of target sentences available for rule learning in place as the proportion of expert analysis changes.
Spanish Gender illustrates the relationship between the extracted rule inventory and ARM. The zero-shot tree recovered 93% of the rule triples found by the tree learned from the gold training annotations. On held-out Spanish data, the scores were 0.632 for the zero-shot rules and 0.644 for the gold rules. The constructions on which they differ include proper-noun links and an auxiliary construction. The overlap measures resemblance to the gold-trained rule inventory. ARM gives a second comparison, with labels induced from the unseen test instances.
Spanish-GSD gender rules on the held-out test set
Related-language parsing recovers much of the performance of rules learned from gold annotations.
The numbers
| System or setting | ARM |
|---|---|
| Related-language parser with zero target annotations | 0.632 |
| Gold target training annotations (this paper) | 0.644 |
The Spanish examples also show that the gold tree can make mistakes. In the paper’s comparison, the gold-trained and zero-shot outputs both mark some determiners and adjective modifiers as required. They disagree on certain proper-noun constructions. In one of those constructions, the gold tree gives a required judgment and the zero-shot tree gives a chance judgment for a context identified as sometimes requiring agreement. A larger overlap with the gold tree would include copying its decisions on ambiguous constructions as well as copying its clear successes. This is one reason to read the overlap together with the test scores and examples.
Learning from raw text without a target training treebank
Breton, Buryat, Faroese, Tagalog and Welsh provide a different zero-shot setting. The authors have expert test data in those languages and no corresponding gold training splits. They collect raw sentences from the Leipzig Corpora Collection and annotate them using the multilingual release of Udify trained on the available UD treebanks. They then extract rules from the predicted analyses and use the SUD test annotations to score them. The raw corpus supplies the observations for rule fitting, and the test treebank supplies the reference examples for ARM. Leipzig Corpora Collection
The reported training and test sizes help situate the comparison. Breton has 30,000 automatically analyzed training sentences and 888 test sentences. Buryat has 10,000 and 908, and Faroese has 50,000 and 1208. The reported Tagalog counts are 30,000 and 55, while Welsh has 30,000 and 956. These counts separate the amount of raw text that can supply a pattern from the amount of expert text that can verify it. A test set can be much smaller than the corpus used to extract rules, and the evidence for any particular construction is smaller still.
Mean rule accuracy across the real zero-shot test treebanks
Rules learned from automatically parsed text improve on labeling every construction as chance agreement.
The numbers
| System or setting | ARM |
|---|---|
| All-chance baseline | 0.506 |
| Extracted rules from automatically parsed text (this paper) | 0.566 |
The authors describe the aggregate improvement as worthwhile in a setting where many features have few required-agreement constructions. They report that rule extraction remains competitive with the baseline for Buryat and improves on it for Tagalog. They note that the parser’s training material contains neither a Mongolic nor a Philippine language. These cases test transfer in a different situation from using Portuguese to help parse Spanish. The authors suspect that Breton and Welsh also pose difficulties for the parser because of how Celtic languages differ from others in the material available to it. Welsh gender nevertheless shows a clear advantage over assigning chance to every triple.
Welsh-CCG gender agreement on the real zero-shot test set
The extracted rules identify Welsh gender patterns that the all-chance baseline misses.
The numbers
| System or setting | ARM |
|---|---|
| All-chance baseline | 0.615 |
| Extracted Welsh gender rules (this paper) | 0.730 |
The Welsh score concerns the evidence for gender agreement in that held-out treebank. The aggregate score includes a much wider mix of language and feature combinations, including ones for which there is little positive agreement to discover. The two views describe different aspects of the same experiment. A mean summarizes how frequently the method improves the rule judgments across the evaluation. A language-and-feature result shows what that improvement can look like where the grammar supplies strong regularities.
What the ablations show
Labeling by a fixed cutoff or by statistical evidence
The threshold comparison changes how the method interprets the groups produced by a tree. A hard cutoff treats the observed fraction of matches as sufficient evidence by itself. The statistical procedure considers how common matches would be under its chance assumption and how much evidence the group contains. When leaves carry different labels under the two schemes, merging can then produce visibly different trees even when the initial distinction was about how to interpret the observations.
The paper illustrates the difference with Marathi Number. In the comparison, hard thresholding produces branches supported by very few cases. The authors regard these branches as a sign that the displayed rules are too closely fitted to the training examples. They found similar problems on inspecting other trees and chose the statistical threshold for the simulation experiments. The Spanish Gender example gives a complementary diagnostic. A leaf can contain mostly matches and still be a poor required-agreement candidate when the distribution of gender values makes such matches common. Both examples explain why the threshold is a substantive part of rule extraction.
The appendix’s gold test results also show that threshold choice involves a tradeoff. For Ukrainian-IU Gender, the statistical rules obtain 0.701 ARM, the hard-threshold rules obtain 0.693, and the all-chance baseline obtains 0.559. For Ukrainian-IU Number, the corresponding test scores are 0.647, 0.659 and 0.479. The ordering of the two threshold variants changes with the feature. The authors’ preference for the statistical procedure rests on their inspection of the resulting rules and few-example leaves. It is compatible with individual cases where hard thresholding fits the held-out frequency judgments better.
Transfer and the amount of target annotation
The closest experimental comparison for isolating the role of related-language data is between parser training with and without it at the same target annotation budget. Both conditions then supply annotations to the same rule-extraction procedure. In the Number analyses, transfer particularly helps when few or no target training annotations are available. The comparison also makes clear that the effect of transfer operates through the training examples the parser produces. An improvement in a rule can come from identifying a link more accurately, assigning the correct morphological value, or recognizing the word categories that place the pair in the right leaf.
The appendix reports parser performance separately from rule quality. On Greek test data with 50 annotated target training sentences, labeled attachment is 0.203 without transfer and 0.653 with transfer. Labeled attachment, reported as LAS, assesses whether an analysis attaches a word to the correct head and assigns the correct relation label. In Greek with 500 annotated target training sentences, the corresponding scores are 0.866 without transfer and 0.817 with it. These scores are averages over repeated runs of the parser settings. The comparison illustrates how strongly the advantage of source-language data can depend on the target budget, even before examining the agreement rules.
A parser score and a rule score can move differently because rule extraction uses a selected subset of edges and aggregates them. Better analysis of edges that never have the studied feature marked at both ends does little for that feature’s rule inventory. Improvements on common subjects or modifiers can affect many examples belonging to the same rule. A score over all dependencies has a wider target. The experiment therefore reports parser quality and uses ARM to test the actual downstream claim about grammatical signatures.
Belarusian Person provides an exception to the general trend with more annotation. The appendix reports that rule quality can move in the opposite direction as the annotated budget grows. The authors relate this to how person is marked. It is an inflectional feature of non-past finite verbs and auxiliaries and a lexical property in the annotations for pronouns. Other instances can have a person interpretation without an explicit marking that the extraction method can use. The eligible edges consequently represent a particular slice of person agreement. Changing the parser training data can alter the quality of analyses within that slice without making it representative of the full phenomenon.
What expert errors and score correlations reveal
The authors use disagreements with the experts to diagnose where corpus statistics and grammatical requirements diverge. For Russian and Greek conjoined verbs, the requirement to match in person or number depends on whether the verbs share a subject. If they do, the matching forms can arise because each verb has the same agreement controller. The authors find that only 15% of the matching verbs in the relevant treebank analysis actually share a subject. A tree that sees the relation between the verbs and their word classes cannot distinguish that group from other conjugated verbs whose values coincide.
A related observation concerns conjoined verbs in the Indo-Aryan analysis of tense and mood. The authors report that almost 50% of the matching verbs they examined do not share a subject and happen to agree. In both analyses, the presence of a conjunction relation can bring examples with different grammatical explanations into the same leaf. The frequencies differ across the analyses, and the structural problem is the same. A condition on the subject of each verb is being investigated through a representation of the relation between the verbs.
The Catalan errors show another effect of uneven counts. The authors report that 92% of 8650 tokens in their person analysis are third person. In that setting, the procedure labels all leaves as chance even where the experts identify a person or number requirement. When a dominant value already makes random matches highly likely, a real grammatical dependence has less room to change the overall frequency. For Catalan tense, the authors find a preponderance of mismatches between auxiliaries and their dependent verbs, and the tree predicts chance. They suggest that annotation and the realization of past tense both contribute to this result. The two cases explain how a rule can be missed for different reasons even within one language.
The study also tests whether ARM follows the expert score across settings. It compares the baseline, the fully gold setting, and simulated budgets of 50 and 100 annotated sentences. The mean Pearson correlation across features is r = 0.59 in Greek, r = 0.41 in Russian and r = 0.38 in Catalan. A Pearson correlation measures the degree to which the two scores move together across the compared settings. Here the authors characterize the overall correspondence as moderate. ARM provides partial evidence about how an expert would rank the extracted rules.
For certain features, the correspondence is stronger. For Gender the reported correlations are 0.97 in Greek, 0.82 in Russian and 0.98 in Catalan. For Number they are 0.97, 0.69 and 0.96, respectively. Those are the features for which the authors expect extensive agreement. When many constructions have clear requirements, a held-out count can follow expert judgment closely. A feature’s aggregate correlation across settings still leaves room for individual triples on which an expert and the thresholded test distribution disagree.
How compact the rules are
The conciseness analysis relates the average number of tree leaves to word entropy in the training texts. The authors use word entropy as an indicator of morphological richness because a language that packs more information into its word forms can show a more varied distribution of forms. They compute it from the corpus associated with each treebank and report that it is highly correlated with average leaf count. The correlation concerns the size of the learned description. It shows that the method tends to retain more distinctions in the corpora that score higher on this measure.
H(D) = −∑ᵢ∈V p(wᵢ) log p(wᵢ)
H(D) is word entropy for the text D, obtained from the treebank’s training split. V is the vocabulary over which the sum runs, and i indexes a word type wᵢ. p(wᵢ) is the estimated probability of that word type. log denotes the logarithm of the probability. The minus sign converts the sum of the probability-weighted logarithms into an entropy value.
The raw frequency estimate comes from dividing a word’s count by the total token count. The authors follow the entropy method they cite in using shrinkage because direct frequency estimates give no probability to unseen word types. The adjusted estimate combines the empirical distribution with a uniform target.
p(wᵢ) = λp_target(wᵢ) + (1 − λ)p_ML(wᵢ)
p(wᵢ) is the adjusted probability for word type wᵢ. λ is the weight on the target distribution and lies between 0 and 1. p_target(wᵢ) is the probability assigned under the uniform distribution over the vocabulary. p_ML(wᵢ) is the maximum likelihood estimate, the type count normalized by total tokens. The expression 1 − λ gives the remaining weight to that empirical estimate. The plus sign combines the weighted contributions.
The appendix reports that Gender and Case tend to yield larger trees. The authors suggest that the range of possible case values may contribute to the complexity of the case trees. Interpreting leaf count requires some care. Every retained leaf reflects both the structure of the observed constructions and decisions about how to split, label and merge them. A high leaf count is evidence that the procedure needed more branches to express its distinctions for that corpus. Word entropy supplies a comparison with an independent property of the training text, while the rules and their examples show what the extra branches actually describe.
Limitations
Limits identified by the authors
The authors restrict extraction to direct relations between words, with part of speech as the only representation of the words themselves. An agreement requirement can concern an entire phrase. Their English example has John and Mary as a coordinated subject. The subject phrase takes plural agreement, although each name is singular. The dependency representation inspected by the rule learner supplies individual links and does not turn the coordinated phrase into a single item carrying the relevant plural value. This leaves the method without the observation it needs to express the requirement directly.
Word classes can also be too broad for the generalization. The authors use the English mass noun rice as an example of a word whose number behavior differs from what a broad noun category might suggest. Features relating to meaning can matter too. The paper mentions that the name United Nations can trigger singular agreement despite its plural form. A tree limited to part-of-speech categories and relation labels has no input representing that kind of interpretation. Adding more leaves cannot recover a distinction absent from every input triple.
A further stated limitation is the binary output. Some constructions require agreement only under an additional condition, as the experts could indicate with their sometimes category. The method gives every example reaching a leaf the same grammar label. A mixed collection can receive either label depending on its counts and the threshold. In the strict expert evaluation, sometimes cases are counted on the chance side. This makes strict accuracy possible to calculate, while the expert’s conditional observation remains richer than the extracted judgment. The authors leave prediction of conditional agreement for future work.
The authors also name broader evaluation and a more expressive analysis as future work. Their framework studies agreement. They discuss extending extraction to other kinds of morphosyntax, including argument structure and word order. The current experiments provide evidence about a grammar sketch for the studied features. They supply no measurements of those proposed extensions.
Limits that follow from the design
The statistical test uses a specific account of incidental matching. It assumes independent draws with the same feature distribution for heads and dependents. Actual constructions can differ in which values typically appear at either end, even if no rule connects those values. A leaf can also group constructions whose distributions differ from one another. The test establishes a departure from its chosen reference distribution. The linguist still needs to examine whether grammatical dependence accounts for the departure in the construction being described.
Classifying only edges with the feature visible at both ends further restricts the evidence. That decision is appropriate for computing equality and can leave out the very forms needed to describe a feature’s range. A missing tag may reflect the absence of an overt distinction, a decision in the annotation scheme, or an automatic analysis error. Each can change which observations enter the corpus of comparisons. A frequency calculated within that corpus describes its eligible links. Generalizing to the language requires understanding which forms and constructions the eligibility condition selected.
The automated evaluation has its own connection to data coverage. ARM gives equal weight to evaluated triple types and estimates the proxy label for each type from the examples available on the test split. A rare triple can have little evidence behind its frequency. Conversely, repeated incidental matches can make a frequent triple clear the proxy cutoff. The Greek, Russian and Catalan expert comparisons establish that the automatic score tracks human judgments to varying degrees. They also give concrete instances in which a human expert can identify a condition that a frequency test has no way to express.
Finally, claims about low-resource performance depend on what the experiments could supply. The simulations use existing target treebanks and related-language sources selected by the authors. The real zero-shot settings have raw corpora suitable for automatic analysis and expert treebanks held back for testing. The results support first-pass extraction in those conditions, including cases without any target training annotations. They leave open the quality attainable when raw text is scarce, when parser analyses miss the relevant structures, or when there is no comparable expert test corpus. The broad release and the narrower expert evaluation answer different questions about the reach and reliability of the method.
What came after
A later citing work, MultiBLiMP 1.0, presents a multilingual benchmark built around linguistic minimal pairs. A minimal pair puts closely matched expressions side by side so that a particular difference can be examined directly. The Spanish illustrations in the agreement paper use paired examples to explain why a match between a subject and verb has a different status from a match between an object and verb. The extraction experiments themselves rely chiefly on naturally occurring examples grouped by syntactic relation. The connection is the role of controlled linguistic distinctions in evaluating a generalization. The citation alone leaves open whether MultiBLiMP uses the extracted agreement rules, the decision trees or ARM.
Speaking of Language also cites the study and addresses metalanguage in natural language processing. The agreement paper gives a concrete case of metalanguage in use. Terms such as subject, number and required agreement describe regularities in sentences, and the authors use that vocabulary to make corpus patterns available for inspection. The connection concerns the forms that linguistic description can take in computational work, from a corpus annotation to an explicit rule that a linguist can assess. The citation establishes a connection to the discussion of metalanguage. It leaves the nature and extent of any methodological reuse unspecified.
Cite
Cite as Aditi Chaudhary, Antonios Anastasopoulos, Adithya Pratapa and David R. Mortensen et al. 2020. Automatic Extraction of Rules Governing Morphological Agreement. EMNLP 2020 (online).
@inproceedings{chaudhary2020automatic,
title = {{Automatic Extraction of Rules Governing Morphological Agreement}},
author = {Aditi Chaudhary, Antonios Anastasopoulos, Adithya Pratapa and David R. Mortensen et al.},
booktitle = {EMNLP 2020 (online)},
year = {2020},
doi = {10.18653/v1/2020.emnlp-main.422},
url = {https://doi.org/10.18653/v1/2020.emnlp-main.422}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chaudhary-2020-agreement-rules-extraction/