Supertagging with CCG primitives
Paper · 2020 · Aditya Bhargava and Gerald Penn
Summary
A parser needs to know what each word can combine with before it can work out the structure of a sentence. In Combinatory Categorial Grammar, or CCG, much of that information is packed into the grammatical category assigned to each word. Some categories have a compact name, such as NP for noun phrase. Others contain several smaller categories and specify where to find each argument and what kind of expression the combination will produce. Assigning these detailed categories is called supertagging. The assignment matters because a wrong category can leave a parser without a way to complete the sentence. The paper asks whether supertagging should build categories from their parts, given the role that those parts play in parsing.
A conventional supertagger chooses a complete category from a fixed inventory. Bhargava and Penn instead split each category into a string of primitive types, direction markers, and parentheses. Their system reads the sentence in both directions to obtain a contextual representation for each word. It then generates the corresponding category symbol by symbol, consulting that word’s representation at every step. A boundary symbol tells the decoder to move on to the next word. The decoder carries its recurrent state across these boundaries, so it can use information about its earlier predictions while forming the next category.
On the English CCGbank test set, the primitive decoder reaches 96.00% word accuracy against 95.89% for the authors’ whole-category classifier. The difference is more pronounced when the predicted categories are passed to a parser. Labelled F₁ rises from 90.2 to 90.9, and the share of test sentences for which the parser finds a complete analysis rises from 84.6% to 96.2%. These parsing results use reference part-of-speech tags and substitute the classifier’s prediction whenever the primitive decoder generates a category outside the training inventory. In a separate assessment of those unseen categories, the decoder supplies the exact reference category for 5% of the affected test tokens. The classifier scores 0% on that subset because its output inventory is fixed.
The authors compare ways of changing the output representation and retaining earlier predictions. Decoding primitives with a fresh state at each word gives about the same overall tagging accuracy as whole-category classification without prediction history. Carrying history across words improves parser coverage even with whole categories. The strongest results come from putting the two changes together. The evidence therefore concerns both what the supertagger can express and what information it can carry from one prediction to the next. A vocabulary of reusable symbols allows it to construct unseen categories, while the state that remembers those symbols helps it produce sequences of categories that the parser can use together.
Deep dive: Supertagging with CCG primitives
Supertagging with CCG primitives builds tags from smaller symbols and improves parsing coverage on English CCGbank by remembering earlier predictions. · about 36 minutes to read
The problem and its context
Why the choice of category matters
A conventional tag such as VBD identifies a word as a past-tense verb. A CCG category can specify what a verb expects to combine with, which direction to look in, and what kind of expression is left after the combination. It can also specify arguments that are themselves complex. The authors use this difference to explain why a supertagger faces a different output problem from a system for part-of-speech tagging.
CCG belongs to a family of highly lexicalized grammars. In this setting, lexicalized means that a substantial share of the syntactic information resides in the categories associated with words. Categorial grammars use relatively few general rules for combining expressions. The categories give those rules much of the information needed to determine which combinations are possible. A category can describe an expression that is ready to be used as a noun phrase, for instance, or a function that will yield a noun phrase once it combines with a suitable expression in a particular direction. When a function’s result is itself a function, one lexical category can describe successive combinations.
The Penn Treebank tag inventory cited in the paper contains 48 part-of-speech tags, including tags for punctuation. The authors cite 1322 lexical categories for CCGbank as a whole. The examples from the training set come from an inventory of 1285 categories. Those inventories describe different scopes of the data. Their sizes illustrate how much variety can arise when a category has internal syntax of its own. Many CCG tags reuse some of the same symbols in different arrangements, so a large inventory of complete categories can coexist with a small vocabulary for describing them.
Complexity also varies substantially within that inventory. The category N is a single symbol. A directional modifier can contain copies of the same subtype on both sides of a slash, which expresses that it takes an expression of that type and leaves the combined expression with the same type. Another modifier can take a function of this kind as its argument, with parentheses marking the nested structure. The paper includes examples of such nested categories among those in the training set’s top 100 by frequency, alongside much shorter entries. The corpus is one of the treebanks that the paper uses to connect the design of a tag inventory with the demands of actual sentences. CCGbank
Those distinctions affect parsing because each additional candidate category opens possible combinations with the surrounding words. If the parser has to consider too many possibilities at each word, the search for a sentence analysis can become impractical. A supertagger narrows that search by predicting which categories are plausible in context. The paper traces the task to work on lexicalized tree-adjoining grammar, another formalism in which a tag can carry much of the information required for a parse. In CCG, previous work had likewise emphasized that efficient, wide-coverage parsing depends heavily on this preliminary assignment. Supertagging as almost parsing and The importance of supertagging for CCG parsing
The basic difficulty can be seen even without a full derivation. If a tag describes an expression that takes an NP on its right, the parser will have to find a suitable noun phrase for that argument. The corresponding NP may be the category of a single word or the result of combining words whose categories contain NP as a component. This makes category structure informative about the rest of the sentence. The paper turns that observation into a question about the predictor itself. If it has already produced symbols that indicate a particular requirement or result, can it use that information when predicting the remaining categories?
How supertaggers had handled the inventory
The paper describes earlier supervised systems as approaching CCG supertagging mostly as classification over a list of complete categories. In the earliest examples it discusses, a maximum-entropy classifier used manually specified features and selected from a restricted inventory. A tag dictionary tracked which categories frequent words could take according to the training data. These design choices constrained the set of candidates. They also tied some decisions to whether the training corpus had already shown a particular word with a particular tag.
Later systems improved representations of the input words. Lewis and Steedman combined externally learned vectors with features for capitalization and suffixes and tried both a feed-forward classifier and a conditional random field. They allowed a word to receive a category even when that word and category had never appeared together in the training data. This loosened a lexical restriction while still relying on an inventory of categories that the tagger could predict. The paper treats the use of word embeddings as a way to improve handling of unfamiliar words and reduce dependence on potentially erroneous part-of-speech predictions. Improved CCG Parsing with Semi-supervised Supertagging and Word Representations for Semi-Supervised Learning
The next changes concerned how a system read the sentence. The authors describe work by Xu and colleagues that used recurrent networks with the same embeddings and features, first in a single direction and later in both directions. Lewis and colleagues used stacked bidirectional long short-term memory layers, or LSTMs, and augmented the training data. An LSTM passes a state along a sequence and can retain information that remains useful at later positions. With bidirectional processing, the representation used to tag a word has access to context on both sides. This became the shared basis for the whole-category baseline and the primitive decoder in the paper.
Vaswani and colleagues added recurrence over the tags that the system had already predicted. That work gives the paper an important precedent for treating prediction history as a design choice in its own right. A sentence encoder can see the word to the left of the current word. A recurrent output component can also know something about which tag the system assigned there. These are distinct sources of information. The input supplies evidence about what a word might be doing, while the output state records decisions that later predictions may have to accommodate. In the design discussed by Bhargava and Penn, the prior decisions were still represented as complete category labels.
The paper also discusses Clark and colleagues’ cross-view training. Their system used a bidirectional LSTM with word representations and a character-level convolutional component. Auxiliary predictors shared the sentence representation and learned from unlabelled text. Each auxiliary predictor received a restricted view, such as words to one side, and learned to agree with the label predicted using the fuller view. Clark and colleagues also compared this training strategy with using contextual word representations. These approaches changed the input evidence and the training regime. The supervised predictor still made its decision over complete tags. Cross-view training and GloVe
What an open category inventory changes
There are two distinct ways that an example can be new to a supertagger. An unfamiliar word may require a category that the system already knows. Alternatively, even a familiar word may require a category absent from the training split. Input embeddings help with the first case because they provide a representation of the word. The second case depends on what the output procedure can express. A classifier can only pick an entry in its category inventory. A generator can, in principle, arrange familiar category symbols in a combination whose complete form it has never been trained to predict.
Unseen categories affect a small share of the standard CCGbank splits by token count. The paper reports that 0.06% of development tokens and 0.04% of test tokens require a category absent from the training set. The share of sentences affected is 0.9% in each split. The two units of measurement answer different questions. The token figures show how little influence these instances can have on aggregate word accuracy. The sentence figure identifies where an unavailable tag can affect a parser’s chances of finding a complete analysis. CCGbank’s authors had also distinguished genuine rare constructions from cases caused by noise or annotation errors. Bhargava and Penn mention categories for relative pronouns in pied-piping constructions, verbs with expletive subjects, and extended chains of modification as examples of the kinds of structures involved. Linguistic annotation
Earlier approaches had used the components of CCG categories under other supervision conditions. The paper describes a weakly supervised Bayesian approach that worked with a tag dictionary and unlabelled text. It generated categories and gave preference to adjacent tags that could combine under CCG rules. Work on inducing a CCG grammar had also considered how categories were put together. Outside CCG, the authors discuss a constructive supertagger for a Dutch type-logical grammar. Its atomic types and non-directional connectives expressed a different type system, which limits what its results can establish about the English CCG task.
The opening, then, was to study category construction in ordinary supervised CCG supertagging, where the training sentences already come with reference categories. This setting makes a direct comparison possible. A predictor can use the same dataset and sentence representations with either a whole-category output or a sequence of primitives. It also makes sense to ask whether a system gains more from its previous outputs when it can represent the internal structure of those outputs. Before running that comparison, there is a concrete tradeoff. Splitting categories reduces the number of distinct choices at each output step, while increasing the number of decisions needed to finish a complex tag.
The method, step by step
Keep the symbols that make a category readable
The procedure begins by changing how the training targets are represented. Each word still has the same reference CCG category. The authors split the category string at slashes and parentheses, preserving those characters as separate output symbols. Atomic types, including feature-marked forms, remain intact. The result is a sequence that can be reconstructed as a category string by putting its symbols back together. The paper calls all the resulting units primitives, including the punctuation used inside categories.
Consider the category used to illustrate this procedure.
(S[dcl]\NP)/NP
Here S means a sentence, [dcl] marks it as declarative, and NP stands for noun phrase. The backward slash \ associates the sentence result with a noun-phrase argument to its left. The forward slash / indicates an argument to the right. The opening and closing parentheses group the sentence-with-a-leftward-argument as the result of the outer function. Read from the outer slash, the category first expects a noun phrase on the right. The expression obtained after that combination still expects a noun phrase on the left before it yields a declarative sentence.
For the decoder, the first output for that category is an opening parenthesis. The feature-marked sentence symbol comes next, followed by a backward slash, a noun phrase, and a closing parenthesis. The rightward slash and the second noun phrase finish the category. This order is simply the order of the characters and types in the written string. The attachment information survives because the delimiters that specify the grouping survive. For an atomic category such as N, the content consists of the type itself, and the decoder can then advance to the next word.
Splitting the tags in this way yields a vocabulary of 38 category symbols, including slashes and parentheses. The count includes feature-marked variants. A declarative sentence type or a numeral-marked noun type is a distinct output symbol at this level of decomposition. The system can reuse those units across tags, including inside larger combinations. It leaves the internal analysis of an atomic type and its feature to the vocabulary design, so its productive capacity comes from arranging the available symbols.
The representation gives the decoder some choices that are impossible for a classifier and creates others that a classifier never needs to make. A classifier’s candidate list already consists of category labels. A sequential decoder has to learn when an opening parenthesis is appropriate, whether a typed symbol should be followed by a slash, and when the category is complete. If it starts a group, it needs to close it at the appropriate point. Directly adjacent primitive types may be plausible as separate pieces of text, but the decoder needs to learn that the category notation requires a slash to connect them. The authors take encouragement from earlier work that generated linearized constituent trees and generally produced usable bracketed outputs despite occasional structural mistakes. Grammar as a Foreign Language
Read the sentence and stay aligned to the current word
The sentence encoder processes the input words in both directions. At each position, one LSTM provides information from the preceding context and the other provides information from the following context. A feed-forward layer combines and projects their outputs to obtain the representation for that position. Whole-category classification can feed that representation into a softmax, a layer that turns candidate scores into a distribution over the available tags. The primitive decoder uses the representation across a sequence of output steps instead.
The design is related to recurrent encoder–decoder work. In the standard arrangement discussed by the authors, a network can finish reading the input before another begins producing the output. The encoder’s final state can initialize the decoder, which then generates a sequence whose length and alignment need not match the input. This flexibility is useful in machine translation, where input and output positions may have a complicated correspondence. CCG supertagging already supplies a simpler alignment: the category being constructed belongs to the current input word, however many steps it takes to finish that category. Learning Phrase Representations with an RNN Encoder–Decoder and Sequence to Sequence Learning
Bhargava and Penn exploit this alignment by feeding the current word’s encoder representation directly to the decoder. They concatenate it with the representation of the previous output symbol. The decoder is a unidirectional LSTM, so it also has a recurrent state that summarizes its earlier steps. Together, these inputs give it the context of the current word, the symbol it has just received, and information retained from earlier predictions. A long category gets repeated access to the same contextual word representation while its internal symbol sequence changes from step to step.
The architecture figure uses the following notation for the output associated with an input position.
yᵢ,₁, …, yᵢ,ₙᵢ
Here y denotes an output symbol, i identifies the current word position, and the index after the internal comma identifies a symbol’s position within that word’s category. The 1 identifies the first primitive. The final subscript nᵢ, written as Nᵢ in the figure, is the length of the category for word i. The ellipsis stands for the intervening symbols. The paper writes wᵢ for the word supplying the encoder representation, with w denoting the input word at position i. A longer sequence of y symbols still belongs to the same wᵢ until the decoder reaches the boundary.
During training, the alignment follows from the corpus. The authors know the category associated with each word and can pass that word’s encoder output to the decoder for each of the category’s target symbols. The standard sequence training arrangement gives the decoder the correct previous symbol and asks it to predict the next. The time notation in the paper distinguishes these steps as follows.
t − 1
Here t is the current decoder step, the minus sign denotes subtraction, and 1 specifies a move of one step back in the output sequence. At training time, the input symbol from that earlier step comes from the reference sequence. At inference time, it comes from the system’s own output. The decoder therefore learns from correct prefixes during training and must continue the prefixes it actually produces when tagging new sentences.
Advance at category boundaries and keep the recurrent state
At inference time the system must decide when it has generated enough material for a word. It keeps a pointer to the encoder output for the active word. The initial value in the paper is the index of the first input position.
i = 1
Here i is the word pointer, the equals sign gives its initial value, and 1 is the first word position. For each predicted primitive in the current category, the pointer stays at that position, and the same encoder representation remains available. When the decoder emits the boundary symbol, the pointer advances to the following word. A boundary at the final word completes the sentence’s sequence of categories.
A conventional sequence decoder can use separate [START] and [STOP] symbols. In supertagging, the end of each word’s category also supplies the transition needed to begin the next. The authors use [SEP] to combine those roles at the word boundaries. This is a separator in the generated category stream, not a punctuation mark to be attached to a word. Its prediction controls which input position the decoder will consult next. The procedure gives the decoder freedom over a category’s length while maintaining the order of the input words.
The recurrent state stays active when the pointer advances. Within one word, it can hold information about the prefix that has already been written. After the boundary, it can also retain information from earlier words’ categories. The encoder supplies both left and right word context throughout, while the decoder proceeds through its outputs in one direction. Hence, it can consult the words that follow the current position, but the prediction history consists of symbols already emitted in sentence order. This distinction matters in the comparison with the variant that resets the decoder between words. The reset variant still has the bidirectional encoding of the sentence, and it still has memory within each individual category. It specifically loses the memory of previous output decisions at the transition between words.
This approach also changes the meaning of a decoding error. If the system selects the wrong type, it may continue generating a structurally valid category that asks for the wrong argument. If it predicts a boundary too early, the current category may lose material that it needs. And once an incorrect symbol enters the recurrent state, it can influence later categories. The authors’ qualitative examples include an instance in which this influence is compatible with a complete parse even though the earlier and later tags are both wrong. The method can preserve consistency with its own decisions, a property that has to be checked separately from agreement with the reference.
How the primitive decoder supertags a sentence
The steps in order.
Prepare the data and train the systems
The corpus is CCGbank. The training material comes from sections 2–22, development and tuning use section 0, and final evaluation uses section 23. The primitive decoder’s targets come from splitting the reference categories and adding the word-boundary separator. The whole-category classifier uses those same reference categories as complete labels. The split therefore governs both what the systems see at training time and what counts as an unseen category during evaluation.
The input starts with frozen 5.5B ELMo embeddings. The representations are contextual and character-based, preserve casing, and remain fixed while the supertagger is trained. Since the underlying representations work from character information, the authors do not introduce a dedicated input symbol for unknown words. This is a separate matter from unknown output categories. The input can represent a word that never appeared during CCG training even in a system whose category inventory is closed. Deep Contextualized Word Representations
The authors make a small set of changes to align the input wording with the form ELMo encountered in its own training. In separated negative contractions, they move the n from n’t to the preceding token, subject to the stated exceptions for can and won, and use ’t for the contraction token. They convert treebank bracket placeholders back to the characters they stand for and remove the escape marks on slashes and asterisks. The remainder is preserved. These changes concern the input words. Splitting the CCG category strings is a separate output-side operation, with different symbols and a different purpose. Tokenization
All layers except the softmax use size 512. The LSTMs use sigmoid gates and a hyperbolic tangent for the state activation. A rectified linear activation is applied in the layer that merges the encoder states from both directions. The authors initialize that projection using the procedure associated with He and colleagues, the recurrent weights using Saxe and colleagues’ procedure, and the remaining weights using the procedure associated with Glorot and Bengio. Saxe and colleagues’ work on learning dynamics
The authors apply variational recurrent dropout, including dropout on the input embeddings. For the connections between successive LSTM states, the implementation uses the same dropout mask across time and shares it among the sentences in a batch, which lets the authors use the fast cuDNN LSTM implementation. They exempt the encoder output supplied directly to the primitive decoder because dropping values there was detrimental in their initial tests. Other options tried during development included attention and using the encoder to initialize the decoder’s state. The resulting system uses the direct word-to-decoder input without those additions. It also leaves out layer normalization of ELMo embeddings, pretrained primitive embeddings, and scheduled sampling. Variational recurrent dropout
Training uses 25 epochs. The optimizer adjusts the system’s weights, and the learning rate is halved when the loss on the development set fails to improve. The retained checkpoint is the one with the highest development word accuracy. These are separate decisions: loss controls when the step size changes, and exact tag accuracy controls which checkpoint is kept. The authors also rescale the gradients when the reported sum of their norms exceeds 1. Adam
For batching, the authors sort examples by the length of the target sequence. Similar target lengths make batching more efficient, which matters when a sentence’s category stream can contain many more elements than there are words. They then feed the batches through a shuffling buffer to obtain a partly shuffled processing order. This keeps the length grouping within batches while varying the order in which the batches reach the optimizer.
The search covers the initial learning rate and the dropout rates on the input embeddings, immediately before the softmax, and elsewhere in the system. It explores 50 settings using the tree-structured Parzen estimator procedure in Optuna. The initial learning rate is sampled on a logarithmic scale from the following interval.
[10⁻⁴, 10⁻²)
The powers of 10 give the lower and upper endpoints for the initial learning rate. The superscripts −4 and −2 are the exponents. The square bracket includes the lower endpoint, the round parenthesis excludes the upper endpoint, and the comma separates them. The paper notes that running many trials in parallel made the realized search closer to ordinary random sampling.
Each of the dropout rates is independently sampled on a uniform scale from the following interval.
[0, 0.8)
Here 0 and 0.8 are the lower and upper rates in the search range. The square bracket includes zero, and the parenthesis excludes the upper endpoint. The comma separates the bounds. For every setting, the authors train five times with different random seeds and choose settings using development accuracy. They run the selected settings with 15 additional seeds to examine variability across initializations.
Decode under a length bound
The primitive system generates greedily during hyper-parameter search. In this mode it proceeds with the current best symbol choice. For final evaluation it uses beam search with a width of 5, keeping several partial sequences in contention as it generates more symbols. Because a category may require several steps, the partial sequence with the best immediate next symbol can develop into a weaker complete candidate. The beam gives the decoder some room to retain alternative continuations. The paper makes this search procedure part of the evaluation configuration.
There is also a length bound for each generated category. During inference, the authors use the length of the longest training-set category as the upper limit. This allows the decoder to produce a new arrangement within the range of lengths supported by that bound. Once it has produced categories, cleanup is confined to removing redundant parentheses. The remaining malformed outputs count as incorrect in supertagging. The benchmark consequently tests how well the decoder has learned the written form of categories without a full grammar-enforcing repair stage.
Experiments and results
Measure tag accuracy, parser quality, and complete analyses
The principal comparison uses a whole-category BiLSTM classifier that the authors implemented for the study. It shares the primitive system’s input representations, bidirectional sentence encoder, and projection layer. Its softmax scores complete categories from the training inventory. PrimDecoder uses a recurrent decoder to generate primitives. Comparing the systems within the same implementation makes the result easier to interpret than a comparison based only on scores from different studies. The paper then adds variants that probe the output representation and prediction history separately.
The authors measure word accuracy by exact match between the predicted and reference categories. An incorrect feature on an otherwise matching category still counts as an error. The paper also gives a separate exact-match score for tokens whose reference category is absent from the training inventory. In this measure, out-of-vocabulary, or OOV, describes the category. A token’s spelling or frequency as an input word is irrelevant to whether the token belongs in this subset.
For parsing, the authors use the Java C&C parser with predicted supertags and gold part-of-speech tags. Gold tags are the reference annotations supplied with the corpus. The parser is evaluated on labelled F₁, which measures how closely its labelled structures match those in the reference analysis, and on coverage, the percentage of sentences it can analyse completely. The two metrics capture distinct outcomes. A sentence can count toward coverage even when parts of its analysis disagree with the reference. Labelled F₁ addresses the quality of the analysis that the pipeline produces.
The parser accepts a fixed inventory of categories. When PrimDecoder predicts a novel category, the evaluation sends the classifier’s predicted category to the parser for that word. The OOV tagging score is calculated separately, using what the primitive decoder actually produced. This distinction is consequential. A result for coverage or labelled F₁ describes the pipeline with the fallback in place, while the unseen-category score tells the reader how often the new output matched a reference tag that the classifier could never produce.
Compare the systems on CCGbank
On the development split, BiLSTM obtains 96.15% word accuracy and PrimDecoder obtains 96.27%. With the parser, the development labelled F₁ scores are 90.6 and 91.3, respectively, and the development coverage figures are 87.0% and 96.0%. On development tokens whose category was unseen in training, the classifier scores 0% and the primitive decoder achieves 11%. The pattern across the development metrics already separates the small change in exact tagging accuracy from the larger change in the parser’s ability to finish an analysis.
The held-out test split shows the same ordering. BiLSTM has 95.89% exact word accuracy and PrimDecoder has 96.00%. Test labelled F₁ is 90.2 for BiLSTM and 90.9 for PrimDecoder. Test coverage is 84.6% and 96.2%, respectively. On the test subset requiring unseen categories, scores are 0% for BiLSTM and 5% for PrimDecoder. Each of these comparisons has the same pair of systems, yet they describe different consequences of changing the output architecture.
Exact word accuracy on the CCGbank test set
The primitive decoder has the highest reported accuracy among the single-task systems shown.
The numbers
| System or setting | accuracy % |
|---|---|
| Clark and colleagues, cross-view training | 95.7 |
| Clark and colleagues, ELMo-based | 95.8 |
| Bhargava and Penn, BiLSTM classifier | 95.89 |
| Bhargava and Penn, PrimDecoder (this paper) | 96.00 |
Labelled parser F₁ on the CCGbank test set
The parser scores higher with predictions from the primitive decoder and the classifier fallback for unseen tags.
The numbers
| System or setting | F₁ |
|---|---|
| BiLSTM classifier | 90.2 |
| PrimDecoder (this paper) | 90.9 |
The coverage result gives a sentence-level view of the change. A wrong tag can be locally close to the reference while imposing a requirement that its neighbours cannot meet. Conversely, a sequence of predicted categories can support a complete derivation even when some individual tags are incorrect. Since coverage gives credit for finding a complete structure, it can rise when the errors that remain are easier for the parser to accommodate. The simultaneous increase in labelled F₁ shows that the coverage gain occurs alongside a gain in the reported structural score. The aggregate results leave open which sentences account for each improvement.
The results table reports averages over 20 runs with distinct random seeds. The authors describe a standard deviation around 0.05% for word accuracy and 0.1% for labelled F₁. The reported standard deviation for parser coverage is around 0.4% for the classifier and 0.2% for the primitive decoder. These values describe variation over the runs. The paper also reports significance tests, which address whether the observed differences are systematic in the comparisons.
For test word accuracy, the authors use the Cochran–Mantel–Haenszel test and report an approximate p-value of 1.6 × 10⁻⁷. They use the same test for coverage, for which the reported p-value is roughly 0. Their rationale for this test is that they have multiple runs. The paper identifies McNemar’s test as the corresponding choice for a single run. For labelled F₁, it describes averaging sentence scores over the runs and reports a Wilcoxon signed-rank test with an approximate p-value of 6.7 × 10⁻¹⁵. The statistical evidence accompanies the observed differences on CCGbank. The size and practical meaning of each difference still come from the metric itself.
Put the previous single-task results in context
Clark and colleagues report 95.7% test word accuracy for their cross-view training system and 95.8% for their ELMo-based alternative in the single-task comparison. The latter was the strongest earlier single-task result discussed by Bhargava and Penn. Their own whole-category baseline already reaches 95.89% on the test set. As a result, a comparison between PrimDecoder and that baseline is a more direct way to examine the contribution of the new output design. The earlier results provide context for the level of exact-match accuracy achieved on the benchmark. Cross-view training
The preceding ELMo-based system and the authors’ classifier differ in architecture and in how they use the embeddings. In the system reported by Clark and colleagues, stacked LSTM layers have a hidden size of 1024, with projections to 512 units between layers and after the final layer. It includes GloVe alongside ELMo and also supplies ELMo representations to the final output layer. The classifier implemented for the present study uses a single encoder layer of width 512 and supplies ELMo at the input. Bhargava and Penn suggest that implementation details may account for the fact that their simpler comparator obtains higher word accuracy. Matching ELMo’s training tokenization is one possible contributor they identify. These are proposed explanations for the cross-study difference, without an experiment that isolates each choice.
The earlier paper also reports 96.0% test word accuracy with cross-view training in a multitask setting, and 96.1% for a much larger system with LSTMs of width 4096. The authors treat multitask training as a different setting. Their single-task result is based on training the supertagger for CCG categories, with externally pretrained ELMo embeddings held fixed. The qualification is important to the state-of-the-art claim. It concerns the single-task English CCG supertagging results reported in the paper and the comparisons it makes on that benchmark.
Look separately at novel and malformed outputs
The paper’s overall claim about novel categories is supported by a low but observable exact-match score. PrimDecoder can produce a category whose full string was absent from the CCGbank training split. It sometimes matches the annotated category for an affected word, as reflected in the development and test OOV results. The classifier has no output entry corresponding to those reference categories. This is a structural difference between the two systems regardless of how frequently the primitive decoder succeeds on the subset.
A novel output can be either well formed or malformed, just as a well-formed output can be either appropriate or inappropriate for its sentence. The authors describe seven malformed cases in their test-run analysis, averaging 0.35 instances per run over a test set of around 55k words. The errors consist of missing closing parentheses or extra opening parentheses, and are counted as wrong. They separately report two redundant-parenthesis cases, which were repaired automatically. These observations show that the linearized category syntax was usually respected in the evaluated outputs. They also preserve a distinction between harmless redundancy that cleanup can remove and malformed outputs that the evaluation leaves as generated.
A system can therefore do well on the surface construction problem while still finding the rare-category prediction problem difficult. Correct brackets and operators establish that the string can express a category. Exact tagging then requires the right category for the current context, with the correct types, features, orientations, and grouping. The paper’s examples of unseen outputs help reveal what those successes and failures look like at a level that the aggregate scores cannot convey.
What the ablations show
Separate the units of prediction from the memory of predictions
There are two changes between the main classifier and PrimDecoder. One concerns the units of output, with complete categories on one side and primitive sequences on the other. The second concerns which earlier outputs the system can use. The main classifier selects a tag from the encoding of the current word. The primitive decoder carries a recurrent state across word boundaries. Since previous work had already shown that output history could improve parsability with whole tags, the main performance comparison alone leaves the two factors entangled.
The authors add a category classifier with history and a primitive decoder with its history reset at each word. In the first variant, an LSTM runs over the whole-category predictions. The current encoder output feeds directly into this upper recurrent layer. The point of that connection is to keep the architecture close to PrimDecoder while changing what it predicts and remembers. Its output choices remain complete categories. The state now has access to information about earlier choices as it proceeds through the sentence.
The second variant uses the primitive decoder but clears its state between words. It still generates each tag one symbol at a time, so the start of a category can affect how the category ends. Resetting makes the previous category’s generated symbols unavailable through the recurrent state. Sentence context from the encoder remains available in both directions. Accordingly, a comparison with this variant addresses the value of earlier predictions above and beyond what the input word context already supplies.
The authors hold the stated layer widths, training and hyper-parameter selection procedures, and beam width consistent across these comparisons. The two control variants, together with the main systems, give each combination of the studied choices a place in the comparison. The test-set ablation table rounds its word accuracy entries differently from the main results table. The figures below follow the precision of the ablation table when discussing those comparisons.
Parser coverage by output representation and history on the CCGbank test set
Carrying prediction history helps both output representations, with the best coverage when that history consists of primitives.
The numbers
| System or setting | coverage % |
|---|---|
| Whole categories without history | 84.6 |
| Primitives without history | 84.9 |
| Whole categories with history | 90.8 |
| Primitives with history (this paper) | 96.2 |
Keeping whole-category history helps the parser
For whole categories, introducing prediction history raises test parser coverage from 84.6% to 90.8%. Test labelled F₁ moves from 90.2 to 90.3, while test word accuracy goes from 95.9% to 95.8% at the precision reported in the ablation table. The coverage gain can therefore occur even when fewer word-level decisions exactly match the annotated tags. This is consistent with the idea that prediction history can help the tagger make choices that are usable together.
The authors relate this pattern to Vaswani and colleagues’ earlier findings about history and parser coverage. They also connect the slight word accuracy decrease to the omission of scheduled sampling, a training choice that determines whether the decoder sometimes receives its own prior outputs during training. In the paper’s shared setup, the decoder learns from reference prefixes and uses its own predictions at inference. The authors regard the absence of scheduled sampling as a plausible reason for the accuracy result, based on the earlier work. Their own factorial comparison holds that training choice fixed, so it leaves that explanation as an attribution.
This variant matters for interpreting the headline coverage result. Some of the parser benefit can be obtained by carrying information about previous predictions even when the system works with the existing inventory of complete tags. There is no need for an unseen category to explain that part of the result. A category classifier may choose a usable existing tag more frequently if its output state helps it keep track of the categories assigned so far.
Splitting categories has a different effect without cross-word memory
The comparison without history gives test word accuracy of 95.9% and labelled F₁ of 90.2 for both output representations. Test coverage is 84.6% for whole categories and 84.9% for primitives. On these metrics the decoder can build each category from several symbols while remaining near the whole-category classifier. The result addresses an uncertainty in the method design. Replacing a large category inventory with a small primitive vocabulary also adds decisions, and this comparison shows that the added sequence generation is feasible even when the decoder starts each word with a cleared state.
Decomposition gives this reset variant access to unseen categories. On the development subset whose reference categories are absent from training, its exact-match word accuracy is 2%. On the corresponding test subset the score is 0.3%. These results are below the 11% and 5% obtained with the persistent primitive decoder on development and test, respectively. They show that the open output representation is available even when prediction history stops at word boundaries. The more frequent correct use of that representation belongs to the configuration in which the decoder can carry its state across the sentence.
The two primitive variants also clarify what is being decomposed in this experiment. Both have access to the same symbols and the same way of turning a tag into a sequence. Both can make decisions based on the symbols already produced for the current tag. The difference lies in information carried over from completed tags. Thus the result for unseen categories is compatible with a contribution from past output decisions in addition to the input context and the internal prefix of the current category.
The strongest configuration puts the two changes together
The combination of primitives and cross-word history achieves test word accuracy of 96.0%, labelled F₁ of 90.9, and parser coverage of 96.2% in the ablation table. With history available, the configuration that remembers whole categories obtains 95.8% word accuracy, 90.3 labelled F₁, and 90.8% coverage. The direction of the word accuracy change with added history is different for primitive outputs than it is for whole-category outputs. For coverage, history helps both, and the configuration with primitive outputs reaches the highest figure.
The authors describe this as a synergistic effect. Their comparison indicates that the benefit of the combined configuration exceeds what the separate changes produce when applied to the baseline individually. Their explanation is that the primitive history makes category associations easier to learn because the recurrent decoder encounters the component symbols directly. As an example of how that could work, consider tags that contain the same argument type in different larger structures. At the complete-label level, each structure is presented as a separate category. At the primitive level, the decoder has repeated exposure to the argument symbol as part of several sequences. An association learned at the symbol level could therefore be relevant across those structures.
The ablation establishes the behavior of the alternatives on the measured task. The proposed mechanism remains an interpretation of why one architecture uses history better. The reported experiments compare predictions and parser outcomes. They do not inspect the decoder state to identify which argument types, features, or combinations it stores at particular positions. The distinction matters for claims about how much grammar the decoder has learned. Its outputs are consistent with useful subcategory associations, and the measurements are at the level of the tagger and parser.
Examples show correctness and consistency coming apart
One example concerns the verb “makes” in a sentence describing a law under which breaching test security is a crime. The reference category has several layers of structure and includes a feature-marked noun phrase for an expletive argument. PrimDecoder generates the exact unseen category. The classifier chooses a closely related category whose final argument is an ordinary noun phrase. The two outputs share most of their structure, so the difference that matters is localized. The primitive system has a way to preserve that common structure while selecting the feature-marked type in a combination absent from training.
Another example concerns the currency sign in a brief mention of a fine. The reference category first takes a numeral-marked noun and yields a modifier whose own target is an NP modifier. The primitive decoder generates the unseen reference category. The classifier’s output also takes a numeral-marked noun, but its result is a noun modifier. This comparison illustrates an unseen category requiring a change in the surrounding functional structure. Choosing the right numeral argument is only part of the assignment. The result of combining with that argument must also have the right type for its role in the larger phrase.
The example involving “as has been” shows a different outcome. Both systems give “as” a category that asks for an inverted sentence, where the reference category asks for a declarative expression that still needs a subject. The primitive decoder then generates a novel tag for “has” that yields the inverted sentence its earlier tag expects. The resulting sequence is parsable even though the novel tag for “has” is also incorrect. The classifier gives “has” a different category. The authors see the primitive output as an instance of accommodating an earlier error. Since the parser benchmark substitutes a classifier prediction for an unseen tag, this qualitative example illustrates the compatibility of the generated sequence and does not establish a direct contribution from that novel tag to the reported coverage score.
Together, the examples give the OOV and coverage results concrete meanings. An unseen prediction is sometimes a precise solution to a rare local construction. In another context it can be a consequence of maintaining consistency with an earlier mistake. A parser that checks whether a derivation can be built and an evaluator that checks the reference tag will respond differently to the latter case. The metrics are used side by side because the same category prediction can have different consequences under the two tests.
Limitations
Limits the authors identify
The authors describe exact recovery of unseen tags as modest. On the CCGbank test subset whose reference category is absent from training, the primitive decoder’s word accuracy is 5%. They discuss individual cases that recur in their outputs while saying that these observations do not support general claims about when the system will generate novel categories. The useful distinction is between an available output mechanism and a reliable ability to choose the right construction with it. The paper demonstrates the former and documents some successes with the latter.
The authors also describe the parser’s fixed category inventory as a constraint on evaluation. Its input receives a baseline tag whenever PrimDecoder produces an unseen category. As a result, the parsing experiment can measure how well the system’s predictions work in the existing parser pipeline with the substitution in place. A direct test of whether the parser could use newly generated categories would require a parser capable of accepting them. That integration is outside the reported evaluation, even though addressing rare categories was a central reason for changing the supertagger.
The category representation is a simple linearization of the written string. The authors report that malformed outputs are rare, and they leave the malformed cases in the evaluation as errors. Their procedure also restricts each category to the length of the longest one encountered in the training set. Within that limit, familiar symbols can be rearranged into something previously unseen. Categories that require a longer output are outside the implemented decoding range. Additionally, the symbol inventory treats feature-bearing atomic forms as units, so the reported method decomposes functions and grouping while relying on the available feature-bearing symbols.
The comparisons in the paper concern English CCGbank. The authors discuss another study’s constructive tagging for Dutch, but describe the underlying type system as different enough to make a transfer conclusion difficult. In their own conclusion, they name more structured alternatives to string linearization and possible applications to other categorial grammars, including Lambek categorial grammar. They suggest that the formal properties of those grammars may support different decompositions and closer coordination with parsing. These are directions proposed by the authors. The demonstrated results come from the English CCG setup.
The paper qualifies some of the development choices. Its attention trials were preliminary and limited. The authors report increased memory use and slower training without a benefit in those trials. They also found that supplying context through the decoder input worked better than their attempted initialization of the decoder state, with no benefit from combining the approaches they tried. These observations justify the choices for the reported system. Their scope is the configurations examined during its development.
Limits of the experimental setup
The use of reference part-of-speech tags supports a controlled comparison between supertaggers. It also conditions the parser results on input that a practical pipeline may have to predict. Since the reported evaluations use gold tags throughout, they leave open the size of the same coverage and labelled F₁ gains when part-of-speech assignments can be wrong. The benchmark also uses one parsing implementation. The consequences of the same supertag sequences would have to be measured for other ways of finding a sentence analysis.
The parser fallback means that the reported improvement in coverage cannot be assigned to the parser’s direct use of correct unseen tags. It also complicates any attempt to infer what coverage would be if every primitive prediction could be passed through unchanged. Some of the new tags match the reference, others are valid category strings that encode the wrong analysis, and malformed outputs are possible. The published evaluation shows how the fallback-equipped system performed. It gives no general measurement of how each of these kinds of novel prediction would affect a parser that accepted the generated inventory.
The split-specific OOV score gives each affected word token a vote. It leaves several questions about generalization open. A system could correctly generate a particular unseen category in multiple places or succeed on distinct syntactic patterns. The same aggregate token score could arise in either case. The qualitative examples identify particular kinds of behavior, but they provide no basis for estimating the full range of constructions recovered. Similarly, the in-domain evaluation provides no direct measurement of robustness when a different genre introduces unfamiliar constructions or a different distribution of familiar categories.
The history ablation probes the design as a whole. Its consistent training procedures support comparison between variants, but a primitive decoder spends several recurrent steps on a complex category, whereas a whole-category history component advances by category. The internal state therefore has different opportunities to update in the two settings. The ablation shows the benefit of pairing history with the primitive sequence representation as implemented. It leaves open how much of that benefit depends on recurrent timing, the reuse of particular symbols, or their combination. The paper’s explanation about learned associations between category parts is plausible in light of the comparison and examples, without a direct accounting of those associations in the state.
The system’s near-perfect production of readable category strings in the reported runs also has a narrow meaning. It shows that the decoder typically learns the form of the category notation in context. It does not test all possible arrangements of the primitive inventory or provide a guarantee that a new output has a suitable interpretation in its sentence. The remaining errors include structural issues as well as the much more common possibility of a well-formed tag that disagrees with the reference. Exact tagging, well-formedness, and successful parsing remain separate criteria, each with its own evidence in the study.
Finally, the state-of-the-art comparison is bounded by the single-task experiments the authors report. All of their main systems rely on external contextual embeddings, and the historical comparisons differ in training setup, architecture, and use of those embeddings. The controlled comparison within the study is the firmer basis for attributing the difference to the output design. It establishes higher exact tagging accuracy and improved parser outcomes under that setup, while the component analysis identifies the combination that performed best among the tested alternatives.
What came after
The subsequent research record here contains no documented study that took up the paper’s method. The directions the authors themselves set out were to preserve more of the internal structure of categories during prediction and to explore decompositions suited to other categorial grammars. They also raised the possibility of integrating supertagging more closely into parsing. The experiments in this paper leave that last question concrete and open: the tagger can generate a category outside the training inventory, while the parser used to evaluate it requires a substitute from the existing inventory.
Cite
Cite as Aditya Bhargava and Gerald Penn. 2020. Supertagging with CCG primitives. Proceedings of the 5th Workshop on Representation Learning for NLP.
@inproceedings{bhargava2020supertagging,
title = {{Supertagging with CCG primitives}},
author = {Aditya Bhargava and Gerald Penn},
booktitle = {Proceedings of the 5th Workshop on Representation Learning for NLP},
year = {2020},
doi = {10.18653/v1/2020.repl4nlp-1.23},
url = {https://doi.org/10.18653/v1/2020.repl4nlp-1.23}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bhargava-2020-supertagging-ccg-primitives/