Supertagging with CCG primitives

Aditya Bhargava, Gerald Penn

In the realm of natural language processing, supertagging serves as a critical bridge between raw text and deep syntactic analysis. Traditionally, models have treated these complex syntactic labels as atomic, opaque units. However, a recent paper presented at RepL4NLP 2020 challenges this paradigm by proposing a compositional approach that treats supertags as sequences of basic primitives.

The Challenge of Atomic Supertagging

Combinatory Categorial Grammar (CCG) supertags are significantly more complex than standard Part-of-Speech tags. They encode the precise way a word interacts with its neighbors to form a sentence. Because of this specificity, the number of possible tags is vast, leading to two primary difficulties:

  1. The Long Tail: Rare syntactic constructions are often poorly represented in training data, causing models to struggle with infrequent but valid labels.
  2. Out-of-Vocabulary (OOV) Tags: Traditional "atomic" models are restricted to a fixed vocabulary of tags. If a sentence requires a category the model hasn't seen before, it is mathematically impossible for the model to predict it correctly.

The PRIMDECODER Architecture

The authors introduce PRIMDECODER, a model that shifts the focus from label classification to sequence generation. The core innovation is Linearization: breaking down complex CCG tags into a sequence of 38 basic primitives, such as $S$, $N$, $NP$, slashes, and parentheses.

The PRIMDECODER architecture uses a BiLSTM encoder and an LSTM decoder to predict sequences of CCG primitives for each word.

As shown in the architecture diagram above, the model employs a bidirectional LSTM (BiLSTM) encoder with ELMo embeddings to capture contextual word meanings. A unidirectional LSTM decoder then predicts the sequence of primitives for each word until it reaches a [SEP] (stop) token. Crucially, the decoder's hidden state is maintained across words, allowing the model to retain a "memory" of previous syntactic choices, which ensures global consistency across the sentence.

Performance and Parser Coverage

By treating tags as compositional structures, PRIMDECODER achieves state-of-the-art results on the standard CCGbank dataset. Beyond simple word accuracy, the model significantly improves the performance of downstream parsers.

Comparison of PRIMDECODER against previous state-of-the-art models, showing superior accuracy and parser coverage.

As detailed in the results table, PRIMDECODER achieved a word accuracy of 96.00% on the test set. More impressively, the "coverage"—the percentage of sentences a real parser could successfully process using these tags—jumped to 96.2%, compared to the 84.6% baseline.

Furthermore, the model demonstrated a unique generative capability. Unlike atomic models, which have 0% accuracy on unseen tags, PRIMDECODER successfully predicted approximately 5% of OOV categories. While modest, this represents a significant breakthrough in handling the "long tail" of linguistic structures.

Conclusion

The success of PRIMDECODER highlights that syntactic tags are not random strings but possess an internal grammar. By leveraging this compositionality and maintaining a history of predictions, the model moves closer to a truly robust understanding of natural language syntax. Future work may refine this by exploring tree-structured decoders to better reflect the hierarchical nature of CCG tags.

Reference: Bhargava, A., & Penn, G. (2020). Supertagging with CCG primitives. Proceedings of the 5th Workshop on Representation Learning for NLP (RepL4NLP-2020), 194–204.

Summary updated

BibTeX
@inproceedings{bhargava2020supertagging,
  author = {Aditya Bhargava and Gerald Penn},
  title = {{Supertagging with CCG primitives}},
  booktitle = {RepL4NLP @ ACL},
  year = {2020},
  doi = {10.18653/v1/2020.repl4nlp-1.23},
}
Figure