Can LSTM Learn to Capture Agreement? The Case of Basque
Paper · 2018 · Shauli Ravfogel, Yoav Goldberg and Francis Tyers
Summary
A verb can agree with a noun that is far away while ignoring another noun right beside it. That difference makes agreement a way to test whether a network trained on word sequences learns anything about syntax. The authors test a recurrent network called a long short-term memory network, or LSTM, on Basque. In Basque, a verb can register the number of several participants at once, and those participants can appear in different positions around it. The nouns carry clues in their endings, but the same ending can mean either that a noun is a singular agent or that it is a plural object. A network can therefore make progress by learning endings and common word orders, even when it has trouble finding which noun belongs to which verb.
The authors approach the problem from opposite directions. In verb argument number prediction, they hide an auxiliary verb’s inflected form and ask the network to recover the agreement information it carried. On the Basque Wikipedia evaluation, the bidirectional LSTM achieves 87.1% accuracy for ergative number and 93.8% for absolutive number. Dative accuracy reaches 98.0%, but its reported recall is 54.9%. The authors also give the network sentences with altered endings or restrict the evaluation to simpler sentences. These comparisons show where the endings help, where other features of the sentence can compensate, and where an aggregate accuracy score conceals difficulty.
In suffix recovery, the verb stays in view while the endings that mark core grammatical roles and number are removed. The network predicts a suffix, or its absence, at each word. It reaches an F1 score of 85.5% for singular absolutive -a and 65.0% for plural dative -ei. Predictions generally improve when a word’s closest verb is also the verb it belongs to. Separate classifiers can read information about case, number, and grammatical relations from the network’s internal states, including some information that the suffix predictor fails to turn into a correct answer. Together, the experiments make Basque agreement a test of grammatical learning with several ways to succeed or fail. The evidence suggests that the network learns some grammatical distinctions and that nearby words help it make decisions. How it combines those cues with sentence structure remains open.
Deep dive: Can LSTM Learn to Capture Agreement? The Case of Basque
How a bidirectional LSTM predicts verb agreement and recovers case suffixes in Basque, and what its successes and errors reveal about syntax. · about 35 minutes to read
The problem and its context
What an agreement test can isolate
The authors start from a question about how a network reads. A recurrent network processes a sequence of words, updating an internal state as it moves along. The grammatical relations in a sentence frequently have a different shape from that sequence. A noun phrase can contain another phrase with its own noun. A sentence can contain several verbs, each with participants of its own. A noun may be close to a verb on the page while having its grammatical role in another part of the sentence. The question is whether training on sequences gives the network a way to handle those relationships.
A direct test would train a network to produce a parse, a description of how a sentence is put together. In the studies of parsing and shallow parsing that the authors discuss, training examples contain linguistic annotation that identifies grammatical structure. This provides a clear objective if the goal is to build a parser. For the question posed here, it brings a complication. The learner is shown the structural descriptions whose acquisition the researcher wants to investigate. Preparing those descriptions also takes expert work, and the evaluation inherits the choices made by the annotation scheme.
A broader approach is language modeling, where the learner assigns probabilities to words in context. This needs no parse for each example, but its usual measures combine many kinds of success. A system might improve because it has learned which words are common together, what kinds of events usually occur, or which grammatical forms a context permits. Perplexity, a measure of how much probability the system assigns to the observed text, aggregates all of those influences. Agreement offers a smaller question with a target that can be checked directly. Given a context, can the system identify the number or ending recorded in that sentence?
That narrower objective still leaves room for different strategies. A learner might identify the constituent that controls the agreement, where a constituent is a unit such as a noun phrase. It might also learn a rule of thumb that works on much of the corpus, such as looking for the closest noun with a particular ending. An agreement benchmark becomes more informative when it includes situations where those strategies suggest different answers. The resulting error patterns can show which distinctions need closer examination, even when the output alone cannot identify the internal decision process.
Why earlier work examined intervening nouns
The paper uses previous experiments in English to explain why agreement is an attractive test. For the present-tense verbs considered in that work, the relevant verb form follows from the number of the grammatical subject. Once the subject has been found, choosing the form is a relatively narrow prediction. Finding the subject is where sentence structure matters. If a noun inside a modifying phrase is closer to the verb and has the opposite number, following that noun produces the wrong answer. The earlier work calls such competing nouns agreement attractors.
As the authors describe it, Linzen and colleagues approached the English problem in several ways. A network could infer the missing verb’s number from the material before it. It could judge the agreement in a sentence whose verb was visible. Or it could learn to predict words under a general language objective, with agreement examined as part of that broader task. These objectives offer different levels of supervision. When training labels directly indicate the target number, every labeled example can teach the learner something about the decision being tested. Under general word prediction, an agreement-sensitive choice is one part of a much larger objective. The attractor analysis gave the researchers a way to investigate whether the learner’s behavior followed the grammatical subject or the distribution of nouns in the sequence.
The authors also discuss two ways that other researchers broadened the inquiry. Bernardy and Lappin used a larger dataset and argued that a larger vocabulary helps a learner identify structural patterns. Gulordava and colleagues studied agreement under a language prediction objective and used sentences with implausible or nonsensical content to reduce the value of semantic clues. That manipulation addresses a different shortcut from attractors. An attractor places misleading number information in a plausible sentence. A sentence stripped of normal meaning tests how much a system can do when familiar combinations of words and events offer less guidance.
The paper’s point of departure is that the languages examined in earlier agreement research covered only part of the range of possible agreement systems. It describes earlier work on several Indo-European languages and on Hebrew. Basque changes the problem in several respects at once. The target verb carries information about several arguments, word order allows substantial variation, and the nouns themselves bear endings that can help identify their roles. The experiment asks how a sequential architecture fares when both the challenges and the available clues change.
What Basque marks on nouns and verbs
Morphology concerns how words are formed and how their forms express distinctions such as number and case. Number here means singular or plural. Case helps identify the role of a noun phrase. The paper focuses on three core, or nuclear, cases in Basque: ergative, absolutive, and dative. A noun phrase’s case ending normally appears at its outer edge, on the phrase’s final element. Finding the word that should carry the ending can therefore involve recognizing the boundaries of a phrase as well as recognizing its grammatical role.
A contrast between being somewhere and giving something explains the alignment. The authors use the same noun, kutxazain for cashier, in both situations. In their giving example, the cashiers are the agents and carry the plural ergative ending -ek. The books, which are being given, take the absolutive. The customer, as recipient, takes the dative. In the example where the cashiers are simply present, they are the sole argument of an intransitive verb, a verb with no object in that use. They take the absolutive plural -ak. A participant that an English reader might call the subject thus receives different cases in the two Basque sentences.
The distinction is known as ergative–absolutive alignment. The single argument of an intransitive verb shares its usual case with the more patient-like argument of a transitive verb. A transitive verb’s more agent-like argument takes the ergative. The dative can identify an indirect object such as the customer in the giving example. The authors’ task therefore cannot be reduced to finding the subject and then applying the same number rule at every masked verb. A learner needs to distinguish grammatical roles that depend partly on the kind of verb involved.
The endings do some of that work for a reader. In the paper’s forms with a determiner, singular absolutive is -a and plural ergative is -ek. Singular and plural dative are -ari and -ei. The form -ak is shared by singular ergative and plural absolutive. Linguists call the sharing of a form across grammatical categories syncretism. A classifier can recover -ak as an ending while leaving open which category it expresses. Conversely, a classifier trying to infer number from a visible -ak cannot read singular or plural from the ending in isolation.
The authors illustrate the ambiguity with a person and a tree. Both nouns can appear with -ak, and the auxiliary can indicate that a singular participant sees a plural group. The reading in which a person sees the trees is natural, while the same markings, with a different interpretation of the order, can describe a tree seeing the people. The grammar permits word order to vary with what the sentence is about and what it emphasizes. Case endings help a reader follow the participants through that variation, but the shared ending can leave context and knowledge of the world to settle the reading.
Basque also has what the paper calls polypersonal agreement. Verb inflection can mark the number of each ergative, absolutive, and dative argument. The authors distinguish synthetic verbs, which carry inflection on the verb itself, from the more common constructions containing a nonfinite verb and an inflected auxiliary. In the latter construction, the nonfinite verb contributes lexical information, and the auxiliary supplies the agreement pattern. The choice of auxiliary also depends on transitivity. A recognizable auxiliary or the stem beside it can thus provide a clue to which roles a verb permits, even when its full agreement form has been hidden.
Finally, an agreement feature can survive on the verb even if the corresponding noun is absent. The authors emphasize that ergative arguments can be left unspoken. They also point out that a proper name may lack visible number marking. These properties make the direction of prediction consequential. From a visible auxiliary, a learner can recover an ending on a noun that is present if it can connect the noun to the proper role. From visible nouns alone, it can be asked to recover an agreement feature whose matching noun is absent. The paper’s tasks are designed around that difference.
The method, step by step
Turning sentences into prediction tasks
The researchers begin with Basque Wikipedia and use the Apertium morphological analyzer to identify word categories and inflection. The analyzer supplies information such as whether a token is a verb, noun, or adjective, and which parts of its spelling express grammatical features. This lets the authors derive many examples from ordinary text. They can keep an inflection as the answer while hiding it from the network, or remove noun endings and treat their original forms as the targets. The main training tasks do not supply a parse of each sentence.
The corpus preparation also included an attempt to filter out articles that appeared to have been generated by bots. The researchers used keywords for that filtering. They report making the data publicly available. A separate set of experiments uses human-annotated Basque sentences from the Universal Dependencies treebank. Those annotations provide independent labels for the grammatical information that the trained network may have acquired, such as case and the dependency linking a word to its head. The treebank is used to train and evaluate those diagnostic classifiers. Wikipedia supplies the examples for the principal prediction tasks.
In the verb task, the authors select an auxiliary and replace its inflected form with a special verb marker. The other words remain available in the main condition, including material on either side of that position. The target is a set of decisions about the auxiliary’s ergative, absolutive, and dative agreement. Each decision can be singular, plural, or none. The distinction between none and singular matters because the outputs describe the agreement slots of the original auxiliary. An applicable slot can encode a participant whose noun phrase does not appear in the sentence.
In the giving example, the hidden auxiliary is dizkiote. Its agreement pattern marks a plural ergative, a plural absolutive, and a singular dative. The network can see the words indicating the cashiers, books, and customer, as well as the nonfinite form of “give.” The auxiliary’s lemma is also available according to the task description. A lemma is the base form that groups related inflected forms. The task therefore hides the target inflection while preserving a clue to the auxiliary’s identity. That identity and the accompanying verb stem can help a learner distinguish transitive and intransitive uses.
The second task starts with the same sort of sentence and obscures another part of it. The network sees the original auxiliary and nonfinite verb. The nuclear endings on noun phrases are removed, making the spelling of those phrases less informative about case and number. The target now runs across the sentence. For the word denoting the cashiers, the desired ending is -ek. For the books it is -ak, and for the customer it is -ari. Words that require none of the stripped endings get an absence label. The network sees an ending’s potential controller and must work out which word, if any, should bear the ending.
This reversal changes the role of phrase boundaries. If a noun phrase includes several words, the suffix belongs at its outer edge. A network could infer that a phrase is a plural ergative and still fail by placing -ek on the wrong word in the phrase. It could also locate the right word but choose a suffix belonging to an argument of another verb. The authors relate this aspect of suffix recovery to shallow parsing, which identifies units such as noun phrases. A correct output brings several useful decisions together in a form that can be checked against the original text.
Removing a suffix requires care when the same string can be part of an ordinary word. The paper illustrates this with ur, meaning water, and uda, meaning summer. The marked form of ur is ura. In uda, the ending letter a already belongs to the base form, and the form shown for the absolutive is spelled the same way. Deleting a final a mechanically would therefore transform some stems along with genuine endings. The authors use Apertium to distinguish these cases and exclude words ending in -a that the analyzer does not recognize.
From Basque sentences to agreement predictions
The steps in order.
Giving each word a representation
The input is a sequence of word embeddings, vectors of learned numbers that represent words and their components. Basque morphology motivates the use of several components for the same word. An inflected token tells the network which form actually appears. A lemma allows forms of the same word to share information. Short sequences of characters can represent pieces of spelling shared by different words. The authors include character n-grams of lengths 1 to 5, where an n-gram in this setting is a contiguous character sequence.
The components are added as follows.
e_w = E_t[t_w] + E_l[l_w] + ∑_{ng ∈ {ng_w}} E_ng[ng]
Here w is the word being represented, and e_w is its resulting embedding. The subscript t denotes tokens, l denotes lemmas, and ng denotes character n-grams. The matrices E_t, E_l, and E_ng store the embeddings for those respective components. The surface token is t_w, the selected lemma is l_w, and {ng_w} is the set of included character n-grams for w. Square brackets select a stored vector using the entry inside them. The symbol ∈ means that ng is drawn from the word’s set of n-grams, braces delimit that set, and ∑ adds the selected n-gram vectors. The plus signs combine that sum with the token and lemma vectors. The equals sign gives the definition of the final representation.
Each embedding vector has size 150. The paper reports recording the 100,000 most common entries for words, n-grams, and lemmas and using an unknown entry for items outside the recorded vocabulary. The analyzer supplies a single lemma for most words. When it proposes alternatives, the researchers discard colloquial or familiar verb forms, which they describe as uncommon in Wikipedia, and take the first remaining lemma. They use part-of-speech information to find relevant words during preparation. Those tags do not form a component of the embeddings.
The input representation is important for interpreting the experiments. A network presented with a full noun sees cues from its token identity, its base form, and its spelling. Removing the nuclear suffix does not remove the other components or the context they appear in. Similarly, a network restricted to a single word can still exploit several kinds of lexical information through that word’s embedding. The controlled settings alter which information is available for a prediction, and the embedding design determines what remains after each alteration.
Reading the whole sentence and choosing an output
The network is a bidirectional LSTM, or BiLSTM. Its recurrent states summarize the sequence from both directions. Information from a word after the target can therefore inform the representation at that target, just as information from a word before it can. This matters for Basque because an argument can follow the verb whose agreement is being predicted. A system that looks only at the prefix may lose an informative noun phrase altogether. The authors also measure a unidirectional LSTM on the verb task to see how the restriction plays out in practice.
The BiLSTM uses a single layer with 150 hidden units. The authors selected the size on the development set. A hidden state is the internal vector available at a particular word position after the recurrent computation. A multilayer perceptron, or MLP, then reads the chosen state and converts it to an output. In verb number prediction, the relevant state is at the masked auxiliary. The paper uses three independent MLPs with one 128-unit hidden layer apiece. Each receives the same state while making a decision for its own case: ergative, absolutive, or dative.
In suffix recovery, the relevant state is at each word. An MLP of size 128 reads that state and predicts the ending or its absence. The distinction between the tasks is therefore also a distinction about where to read from the network. The verb task gathers the evidence at one position and asks several questions about that position. The suffix task makes a decision at every word, using a contextual state specific to the word being classified. In both tasks the authors train the embeddings, recurrent network, and output components together, using the Adam optimizer to update their parameters.
The diagnostic experiments add separate prediction jobs after suffix training. Instead of asking the suffix predictor for a different answer, the authors collect the hidden states it has already learned. They train classifiers to infer a property from a state, such as whether the nearest verb really governs that word or whether a treebank annotator labeled it ergative. A property can be readily detectable in a state even if the original suffix predictor has no output dedicated to it. This setup gives the authors a way to compare the information accessible in the representation with the decisions made by the main task predictor.
Experiments and results
The corpora and the scores
The authors report a Basque Wikipedia corpus of 1,896,371 sentences. They provide 935,730 sentences to train on, 129,375 to validate on, and 259,215 to evaluate on. The main verb and suffix scores come from the Wikipedia experiments, with separate conditions when the authors change the input or restrict which sentences are eligible. In the nearest-verb analysis they use a larger test portion containing 50% of the data, because the structures eligible for that comparison are uncommon. The results of that analysis concern its selected sentences.
The grammatical diagnostics use the established Basque treebank split. According to the paper, the training set contains 5,173 sentences, and the development and test sets contain 1,719 each. The researchers train the diagnostic classifiers on states collected from these sentences and select them by their development accuracy. The label sources are different for the main tasks and the diagnostics. The Wikipedia tasks use the forms and analyses available in the corpus. The treebank diagnostics ask whether a learned state can support an answer taken from human grammatical annotation.
For verb argument number prediction, the authors report accuracy and recall for each case separately. Accuracy concerns the predicted label across evaluation examples, including cases where the correct label is none. Recall gives another view of how frequently the network detects the argument in question. The authors explain absolutive recall of 100% by noting that absolutives are nearly always present. When a case is rare, accuracy over all examples can remain high even if the system misses many of the relevant instances. The dative results illustrate the value of reading both measures.
Suffix recovery is evaluated with precision, recall, and F1. For an ending such as -ek, precision asks how frequently a guess of -ek is right, and recall asks how often an original -ek is recovered. F1 combines those measures, so a system needs both to score well. The paper also reports an “Any” result that treats identifying the presence of a nuclear suffix as the decision. That score captures the ability to recognize that an ending belongs at a position. The individual ending scores assess the additional ability to choose the original form.
Predicting the number on a hidden auxiliary
The base bidirectional system records 87.1% accuracy and 80.0% recall for ergative agreement on the Wikipedia evaluation. For absolutive agreement it records 93.8% accuracy and 100% recall. The dative has the highest accuracy at 98.0%, alongside the lowest recall at 54.9%. The paper says that only around 3.5% of sentences contain a dative. An evaluation dominated by sentences without one gives accuracy considerable room to look strong while the network still has difficulty detecting the dative where it occurs.
The unidirectional baseline reaches 86.6% accuracy for ergative and 91.7% for absolutive prediction. Its reported recalls are 78.9% and 100%, respectively. On the dative, it reaches 98.2% accuracy and 60.1% recall. Thus the result depends on the agreement slot being scored. In these runs, bidirectional context improves the accuracy of the ergative and absolutive decisions. The unidirectional baseline records the higher values on the dative. The comparison gives an empirical check on the benefit of looking beyond the masked auxiliary, which is grammatically motivated by Basque word order but need not help each class equally.
Absolutive number prediction accuracy on Basque Wikipedia
The bidirectional system achieves higher accuracy on the absolutive slot.
The numbers
| System or setting | accuracy % |
|---|---|
| Unidirectional LSTM | 91.7 |
| Bidirectional LSTM (this paper) | 93.8 |
The authors contrast the Basque results with the earlier English agreement figures they cite, where general sentences yielded accuracy above 99%. The Basque errors arise in a broad evaluation set, before the analysis homes in on special cases involving ambiguity or competing verbs. The comparison identifies Basque Wikipedia agreement as a demanding evaluation in its own right. The target in the English work is subject–verb agreement, while the Basque results are separated by grammatical case and include agreement with several possible arguments. Those differences matter when interpreting the gap.
Recovering endings while the verbs remain visible
The suffix task gives the strongest F1 among the individual endings to -a, the singular absolutive form, at 85.5%. Its precision is 88.0% and its recall is 83.2%. The authors suggest that the ending benefits from being unambiguous as a case suffix and from the rarity of omitted absolutive arguments. When the verb indicates a singular absolutive, that information often has an overt phrase to attach to. The score for -ak, which can represent singular ergative or plural absolutive, is 83.2% F1. The combined label is the surface ending, so that result measures restoration of the spelling shared by both interpretations.
The plural ergative -ek reaches 78.2% F1. Its precision is 82.0% and its recall is 74.7%, meaning that the system is more reliable when it selects the suffix than it is at recovering all its occurrences. The singular dative -ari reaches 78.8% F1. The plural dative -ei has 65.0% F1, the lowest of the individual suffix scores, with 65.5% precision and 64.5% recall. Dative agreement is difficult in both directions of prediction, although the two tasks use different targets and measures.
For the presence of any nuclear suffix, the base system achieves 95.1% precision, 91.7% recall, and 93.4% F1. That broad result is compatible with weaker performance on specific forms. A prediction can place a suffix on the right word but select the wrong case or number. The distinction is useful for a task that contains both a phrase-boundary decision and a choice among grammatical endings.
The paper’s suffix baselines ask how well the task works with less information. The word-only baseline takes the embedding of the word to be classified and lacks sentence context. The no-verb condition uses the surrounding sentence but replaces verb forms with a marker. Plural dative recovery is an especially clear comparison among these settings.
Plural dative -ei recovery on Basque Wikipedia
Recovering the ending improves with sentence context and improves further when the verb forms are visible.
The numbers
| System or setting | F1 |
|---|---|
| Word-only classifier | 24.2 |
| Sentence with verb forms masked | 47.3 |
| Bidirectional LSTM with full verb forms (this paper) | 65.0 |
The same ordering holds for each of the individual suffixes in the paper’s baseline comparison. Word-level information carries some ability to predict endings, and the rest of the sentence offers more. The visible verb gives the network another source of evidence, including the agreement morphology that motivated the task. The comparisons in the next section examine what remains possible when particular cues disappear and what happens when several verbs offer plausible places to look.
What the ablations show
What noun endings contribute to verb number prediction
The verb experiments alter the sentence in several ways. In the suffix-only setting, the network sees nuclear suffixes without the identities of the words or their character n-grams. In the no-suffix setting, it sees word forms after the nuclear endings have been removed. The neutralized setting keeps explicit number cues where the ending has an unambiguous number but strips away case identity. A word with the plural ergative -ek, for instance, is marked as plural. The ambiguous -ak receives an ambiguity marker. The settings differ in which part of the original evidence the learner can use.
Suffixes alone give 69.0% ergative accuracy and 40.3% recall. The absolutive reaches 83.7% accuracy and 100% recall, while the dative reaches 97.0% accuracy and 26.0% recall. The authors take the surviving performance as evidence that the inventory and order of the endings are predictive. A sequence of endings offers clues to which participants are present, including clues that can be used before the words have been identified. The low recalls for ergative and dative in this condition also show why the high accuracy of a rare case deserves particular caution. The dative percentage chiefly describes performance over a set where positive instances are uncommon.
Removing nuclear suffixes while retaining the rest of the words produces 83.8% accuracy and 80.0% recall for the ergative, 87.8% accuracy and 100% recall for the absolutive, and 97.3% accuracy and 34.7% recall for the dative. The authors point to function words that can suggest number and to other endings outside the nuclear system. A word’s identity and its position in the sentence may also constrain the likely interpretation. Because this manipulation leaves those cues available together, it shows what can be recovered from the remainder of the input without assigning credit to a specific cue.
The neutralized case condition achieves 86.0% ergative accuracy with 79.3% recall, and 93.3% absolutive accuracy with 100% recall. Its dative accuracy is 97.3% and recall is 38.1%. In particular, the ergative and absolutive accuracy scores stay close to those in the base condition after overt case identity is removed. Several explanations fit the result. The network may make relatively little use of explicit case labels in those decisions, or it may learn to compensate with other context. Keeping number information makes compensation easier than it would be if all evidence about number were removed. The dative recall result shows a larger sensitivity to the alteration than the aggregate dative accuracy suggests.
These comparisons bear on the choice of a benchmark. Overt case marks can provide shortcuts to argument identification, but their availability is only part of the explanation for the original result. The remaining words, endings, and positions carry enough information to support useful predictions in their absence. The tests change a channel through which the answer can be inferred. They do not require the remaining evidence to be interpreted structurally, so success after an ablation still needs to be read alongside tests where simple positional and lexical regularities are less helpful.
Where sentence selection makes the task easier
The paper restricts both training and testing to sentences with a single verb to reduce the problem of deciding which verb an argument belongs to. Its results table gives 90.6% ergative accuracy and 89.0% recall in that condition. Absolutive accuracy is 96.04% with 100% recall. Dative accuracy is 98.9% with 74.7% recall. The authors observe that such sentences also tend to be shorter and structurally simpler. The comparison therefore changes more than the number of potential verbal heads. It indicates the difficulty of the broader corpus, where several complications can occur together.
A separate restriction excludes sentences containing -ak. Ergative prediction reaches 90.9% accuracy and 81.1% recall, absolutive prediction reaches 96.6% accuracy and 100% recall, and dative prediction reaches 98.6% accuracy and 67.7% recall. Removing these sentences rules out the particular form that can be either ergative singular or absolutive plural. The restriction also selects a different mix of agreement patterns. As a consequence, the score concerns the remaining distribution of examples, with the ambiguous form absent throughout the sentence.
With both restrictions in place, the accuracies are 92.6% for ergative, 97.2% for absolutive, and 99.1% for dative. The corresponding recalls are 83.4%, 100%, and 75.4%. The combined condition has the strongest accuracy for all three roles among these restrictions. Ergative recall, however, is highest under the single-verb restriction by itself. Filtering for easy cases can change the class mix as well as the syntactic decisions a network faces. Reading each case and measure individually preserves that distinction.
The authors also report that 55% of sentences marked for third-person plural ergative agreement contain no word with -ek. This observation illustrates why an apparently straightforward cue often fails to appear. A plural ergative can be omitted, or the participant’s number may be left unmarked on a name. The statistic concerns the absence of a particular visible ending. It captures circumstances in which a suffix detector has no direct -ek cue to pass along, while leaving room for other evidence in the sentence.
What the verb contributes to suffix recovery
In the no-verb experiment, the original verb forms are replaced by the special verb marker. The network still sees the rest of the sentence. Its F1 scores are 72.0% for -ak, 65.4% for -ek, 78.1% for -a, 67.5% for -ari, and 47.3% for -ei. Detection of any nuclear suffix reaches 92.0% F1. Those results show that much of the ability to locate a potential suffix survives the removal of the verb forms. Identifying the individual ending suffers more visibly, because its case and number can depend on evidence carried by the inflected verb.
The word-only baseline tests how far the embedding of an isolated word can take the prediction. It records F1 scores of 56.0% for -ak, 49.5% for -ek, 55.2% for -a, 56.5% for -ari, and 24.2% for -ei. Its F1 for any nuclear suffix is 69.8%. The authors suggest that particular words tend to occur in particular roles. A classifier can exploit those tendencies without seeing a verb or a neighboring word. Its limited performance gives a concrete measure of how far suffix recovery exceeds a lexical guessing task.
Together, the word-only and masked-verb conditions distinguish two sources of help. Context beyond the word improves the prediction, even without inflected verbs. That context includes position, neighboring words, and non-nuclear endings that were left visible. Restoring verb forms then supplies more direct information about the arguments. The largest conceptual benefit of the comparison is that it separates the presence of a useful verb cue from all the other regularities in a sentence. The network sees both in the base condition, and its base score alone cannot tell them apart.
Testing proximity against a grammatical connection
Once the verb is visible, the network has to decide which verb is relevant. The authors investigate a simple rule of thumb: a word may be associated with the closest verb in the sequence. This can be a good approximation when proximity and grammatical structure coincide. It can fail when the noun phrase belongs to another clause or another verb is placed between it and its head. A comparison between cases where the rule agrees with the grammar and cases where it conflicts can reveal whether errors concentrate in the latter.
The authors need a way to identify the actual relationship before making that comparison. In raw Wikipedia sentences, ambiguous endings prevent a reliable automatic assignment for the general case. They select sentences with exactly 2 verbs of particular types, where certain noun–verb links can be inferred unambiguously. This yields a limited but interpretable collection. The paper shows a subset with the verb form da, meaning “is,” and reports a similar general pattern for several other forms.
In the da subset where the nearest verb is the grammatical one, suffix F1 is 84.1 for -ak and 77.2 for -ek. Where the nearest verb is the wrong one, F1 is 76.9 for -ak and 75.1 for -ek. The pattern is consistent with the network benefiting from proximity. The authors also note an accompanying difference in absolute distances between verbs and arguments. A group where the nearest verb is the wrong one can differ in the length of the required connection as well as in the presence of a misleading neighbor. The comparison leaves those influences entangled.
The authors then train a diagnostic classifier to predict whether the closest verb is actually connected to a given word. This follows the approach of testing representations through a separate prediction task, as in earlier work on sentence embeddings and auxiliary prediction. The diagnostic input is the BiLSTM state at the word being examined. The classifier does not receive the closest verb directly. Each training label records whether the grammatical connection exists. The authors compare a linear classifier, which makes the decision directly from a weighted combination of state features, and an MLP with a hidden layer, which can combine those features nonlinearly.
For sentences with da, the linear diagnostic reaches 70.2% accuracy on words whose suffix the BiLSTM recovered correctly and 56.2% accuracy when suffix recovery failed. The MLP reaches 75.6% and 69.3% on those respective subsets. The majority accuracy reported for da is 62.4%. The paper gives the same direction of association for zen, meaning “was,” and ziren, meaning “were.” The diagnostics tend to do better on the subset where the original predictor also succeeds.
This second comparison asks a question about the state that the proximity comparison cannot answer. It shows that the distinction between a nearby verb and the relevant verb is more accessible in states associated with correct endings. A classifier that identifies the relationship from a state establishes that the state contains predictive information for that decision. It remains possible that a third property, such as a simpler construction, helps both the suffix predictor and the diagnostic. The authors treat the pattern as tentative evidence about how the network handles local cues.
Grammatical information beyond the suffix label
The other diagnostic experiments use the Basque treebank to test for specific grammatical properties. The researchers collect states from the trained suffix recovery network at words in the annotated sentences. They train separate MLPs to predict number, case, part of speech, or the type of dependency edge from the word to its head. Each diagnostic MLP uses hidden layers of sizes 100 and 50. The authors train 5 versions with different initializations for each diagnostic task and report the version selected by development accuracy. A majority classifier, which always assigns the most frequent label, serves as a baseline.
For the nuclear-case and number diagnostics, the authors select words with nuclear suffixes. On words the original network handled correctly, number is predicted with 95.0% accuracy, against 67.3% for the majority baseline. Case is predicted with 93.5% accuracy, against 61.7% for its majority baseline. The case result is particularly informative for words with -ak. On the subset limited to that form, the diagnostic distinguishes ergative from absolutive with 91.2% accuracy, compared with a majority baseline of 65.4%. The suffix predictor itself only needs to emit the shared form. The diagnostic shows that its internal state preserves information that allows a separate classifier to distinguish the interpretations.
The authors also look at words for which the original suffix prediction was wrong. The diagnostic still reaches 74.7% accuracy on number and 69.7% on case. These results distinguish the condition of having some grammatical information available in the representation from successfully turning that information into a suffix. A wrong answer could involve an error in an additional decision, such as locating a phrase boundary, identifying a relevant verb, or combining case and number at the output. The diagnostic does not assign an individual error to one of those causes. It establishes that the state can support some correct grammatical predictions on the error subset.
For the broader diagnostics, the data include words without nuclear endings and words on which suffix prediction failed. Part of speech is predicted with 87.5% accuracy against a 23.2% majority baseline. The general case task covers 16 labels, including the absence of case. It yields 85.7% accuracy against 64.7% for the majority. The dependency relation to the annotated head is predicted with 69.0% accuracy against a 19.0% majority baseline. The dependency target is a relation type. A correct answer indicates that information about the relation is accessible, while recovering the full tree would also require finding the actual head and connecting the sentence’s words into a coherent structure.
Limitations
Limits the authors state
The most direct limit is the information available in verb number prediction. An omitted ergative can still determine the auxiliary’s form. A proper noun may also give no overt indication of its number. When the task hides the auxiliary’s inflection, the number a reader is meant to predict may have no direct expression elsewhere in the sentence. In such cases a mistake can reflect uncertainty in the evidence as well as difficulty recognizing sentence structure. The authors introduce suffix recovery in part to avoid setting this kind of target. It asks for a feature on a word actually present and keeps the agreement-bearing verb in view.
The authors also identify the opposite problem. A visible nuclear suffix can give a learner a grammatical role in a compact, easy-to-detect signal. When the role and number are both overt, a network can sometimes make a useful prediction by following surface patterns. That is a legitimate way to predict the auxiliary from the text, but a benchmark intended to examine hierarchical learning must account for it. The suffix-only, no-suffix, and neutralized conditions reveal some of the contribution of overt markings. Each condition still leaves the possibility of other cues performing similar work.
For the nearest-verb analysis, the authors explicitly limit their conclusion because the compared groups also differ in absolute verb–argument distance. The diagnostic results add information about what can be extracted from the states, but the paper characterizes the evidence about reliance on shallow cues as tentative. This is consistent with the design. The study observes existing predictions, changes available input in some experiments, and trains auxiliary classifiers in others. The findings about the nearest verb do not include an intervention on the particular hidden-state information that the diagnostic reads.
The paper proposes case recovery as an economical way to evaluate grammatical learning in languages with case systems. Its conclusion leaves the connection to full parsing for future work. The authors ask how much syntactic representation case recovery shares with parsing and whether training on the former could help the latter. Their part-of-speech, case, and dependency diagnostics provide reasons to ask those questions. A demonstration of transfer to a parser would require an experiment in which parsing itself is trained and evaluated with and without the benefit of the case recovery task.
Limits of the experimental comparisons
The Wikipedia examples depend on the analyzer for the information used to construct the tasks. The relevant question is how errors or ambiguities in that analysis propagate. A mistake in identifying an auxiliary, lemma, or suffix can change the input, the target, or both. The paper discusses a rule for ambiguous lemmatization and a specific exclusion for unfamiliar -a endings. Those choices make parts of the procedure explicit while leaving the overall accuracy of the automatically derived labels unmeasured by a separately reported audit. The treebank diagnostics have human labels, but they address what the hidden states encode on a different corpus.
The corpus totals also deserve care. The paper gives an overall Wikipedia sentence count and reports the sizes used for training, validation, and evaluation. It does not explain the relationship between those figures in enough detail to reconstruct the disposition of every sentence. The bot filtering is described as an attempt using keywords, so its success and its effect on the language distribution remain unknown. The reported results characterize the authors’ Wikipedia setup. Generalization to different kinds of Basque text would require evidence from those kinds of text.
The presentation of some results requires reading the prose alongside the tables. The grammar discussion and the suffix table identify -ak as plural absolutive or singular ergative, whereas a sentence in the suffix results calls it singular absolutive as well as singular ergative. The case system and the corresponding table consistently make -a the singular absolutive form. The tables also give a more precise account of which metrics belong to which suffix. Keeping the form labels attached to their grammatical descriptions matters for understanding why -ak is the ambiguous class.
Several changes to the inputs alter more than one factor. The single-verb condition removes competing verbs while favoring sentences that tend to be shorter and simpler. Excluding -ak removes a source of ambiguity while changing which combinations of role and number can be represented by the remaining examples. Masking verb forms removes direct agreement information along with other information expressed by the original forms. These experiments quantify performance on concrete alternative inputs and collections. Their ability to isolate a single causal factor depends on what each change leaves constant.
Accuracy comparisons across languages also need compatible targets. The English results cited by the authors provide motivation and an informative point of reference. The Basque experiments use different agreement slots and a different data source, and allow context on both sides of the target in the bidirectional setup. In Basque the verb can agree with an argument that is absent from the sentence. A claim about the isolated effect of switching languages would require a more closely matched experiment. The observed strengths and errors here answer the more specific question of how the tested recurrent systems handle the Basque tasks.
Finally, surface recovery and grammatical analysis have different units of success. An exact -ak prediction restores the word’s form. A successful case diagnostic distinguishes the underlying interpretation. A successful relation diagnostic gives the label of a dependency to a head. The experiments show that the network can support each of these decisions to some degree, under its particular training and evaluation conditions. An account of the network’s use of hierarchy would also need to establish which distinctions the predictor consults when the available clues disagree, and how consistently it does so across constructions outside the selected cases.
What came after
The later citing work spans several ways to ask what a system learns about sentence structure. Their titles establish the scope of each inquiry and their citations establish a connection to the Basque study. The exact role of the citation in each experiment is unspecified. The connections below concern the questions those works take up, such as which languages a benchmark covers, which cues its examples preserve, and how the learner’s architecture affects the regularities it acquires.
Comparing languages and designing benchmarks
The closest continuation in scope is the study of cross-linguistic syntactic evaluation of word prediction. Its subject combines syntactic evaluation, word prediction, and comparison across languages. The Basque study shows what can change when an agreement test moves beyond its original language. In addition to supplying different surface forms, a language can change which grammatical roles control the target and where the evidence is found. Cross-linguistic evaluation extends that question from the detailed treatment of a particular language to the comparison itself. What can count as the same syntactic test where the participating languages express grammatical information differently?
CLiMP places Chinese at the center of a language evaluation benchmark. The connection is the value of making a language’s own constructions the subject of evaluation. The Basque paper gets much of its leverage from the contrast between overt endings, a shared suffix, and agreement with several participants. The Chinese benchmark has its own linguistic focus. The bibliographic record establishes that it cites the Basque work, with the common theme of evaluating a language on grammatical evidence appropriate to that language. It does not establish that the benchmark adopts the suffix recovery task.
Targeted Syntactic Evaluation on the Chomsky Hierarchy brings targeted testing to a formal hierarchy of language classes. Its connection to the Basque work lies in making a particular grammatical demand the object of evaluation. Basque suffix recovery makes that demand concrete through the attachment of words to verbs and the expression of case and number. A hierarchy-based inquiry frames the demand in terms of the kind of structure a test calls for. The scopes complement each other. A naturally occurring sentence can combine several kinds of difficulty, while a formally framed question can clarify what sort of dependency the evaluator wants to examine.
Asking what makes structural behavior possible
UnNatural Language Inference takes inference as its subject. The Basque authors are concerned with how much ordinary sentence cues can explain about a prediction that appears grammatical. They alter inputs to determine what information still supports an answer. The inference title points to a related question from another task: how does the character of the input bear on the interpretation of successful behavior? The link here is a shared concern with the evidence an input makes available. The nature of the later paper’s manipulations and their effects cannot be inferred from the citation and title alone.
How to Plant Trees in Language Models puts data and architecture at the center of the emergence of syntactic inductive biases. An inductive bias is a tendency to favor some generalizations over others when learning from examples. The Basque study compares sentence inputs and examines the representations learned by a recurrent architecture. The later title shifts attention towards the conditions that give rise to structural preferences. That makes the connection especially pertinent to the proposed follow-up on parsing. Finding a grammatical distinction in a hidden state raises a question about which features of the training data or architecture caused that distinction to become accessible.
Language Models as Models of Language places computational prediction in relation to the broader study of language. The Basque paper contributes a concrete instance of the distinction a broader treatment has to handle. Restoring an ending, identifying a grammatical property with a probe, and explaining a successful sentence-level decision are separate achievements. The paper’s evidence comes from comparing them in a setting where words carry overlapping clues and agreement can connect several participants to the same verb. Across the later inquiries, that distinction remains a way to say precisely what a syntactic evaluation has established and what would require another experiment.
Cite
Cite as Shauli Ravfogel, Yoav Goldberg and Francis Tyers. 2018. Can LSTM Learn to Capture Agreement? The Case of Basque. Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP.
@inproceedings{ravfogel2018can,
title = {{Can LSTM Learn to Capture Agreement? The Case of Basque}},
author = {Shauli Ravfogel, Yoav Goldberg and Francis Tyers},
booktitle = {Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP},
year = {2018},
doi = {10.18653/v1/w18-5412},
url = {https://doi.org/10.18653/v1/w18-5412}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ravfogel-2018-can-lstm-learn-capture-agreement/