Skip to main content
QUICK REVIEW

[Paper Review] Something Old, Something New: Grammar-based CCG Parsing with Transformer Models

Stephen Clark|arXiv (Cornell University)|Sep 21, 2021
Natural Language Processing TechniquesComputer Science72 references8 citations
TL;DR

This paper proposes a hybrid approach combining Transformer-based neural models with symbolic Combinatory Categorial Grammar (CCG) parsing, using a multitagger for supertagging and integrating it with a grammar-based parser. The method achieves a new state-of-the-art F-score of 93.0% on the CCGbank test set, with complete sentence accuracy exceeding 54%, demonstrating substantial gains over prior systems.

ABSTRACT

This report describes the parsing problem for Combinatory Categorial Grammar (CCG), showing how a combination of Transformer-based neural models and a symbolic CCG grammar can lead to substantial gains over existing approaches. The report also documents a 20-year research program, showing how NLP methods have evolved over this time. The staggering accuracy improvements provided by neural models for CCG parsing can be seen as a reflection of the improvements seen in NLP more generally. The report provides a minimal introduction to CCG and CCG parsing, with many pointers to the relevant literature. It then describes the CCG supertagging problem, and some recent work from Tian et al. (2020) which applies Transformer-based models to supertagging with great effect. I use this existing model to develop a CCG multitagger, which can serve as a front-end to an existing CCG parser. Simply using this new multitagger provides substantial gains in parsing accuracy. I then show how a Transformer-based model from the parsing literature can be combined with the grammar-based CCG parser, setting a new state-of-the-art for the CCGbank parsing task of almost 93% F-score for labelled dependencies, with complete sentence accuracies of over 50%.

Motivation & Objective

  • To improve CCG parsing accuracy by integrating neural models with symbolic grammar formalisms.
  • To address the limitations of purely neural or purely symbolic CCG parsers through a hybrid architecture.
  • To leverage the contextual strength of Transformers for supertagging while preserving the structural inductive bias of CCG.
  • To achieve state-of-the-art performance on the CCGbank benchmark, particularly in labeled dependency and complete sentence accuracy.
  • To explore the viability of grammar-anchored neural models in modern NLP, especially for compositional and structured language understanding.

Proposed method

  • A multitagger based on the Tian et al. (2020) Transformer model is trained for CCG supertagging, assigning lexical categories to words.
  • The multitagger serves as a front-end to a symbolic CCG parser, replacing traditional supertagging components.
  • A Transformer-based neural parser is integrated with the grammar-based CCG parser, combining neural scoring with symbolic derivation rules.
  • The system uses beam search with varying beam widths to balance accuracy and speed, with a skimmer mode for efficiency.
  • The parser employs combinatory rules including forward/backward application, type-raising, and forward composition to handle syntactic movement and extraction.
  • The model is evaluated on the CCGbank test set (Section 00), measuring F-score, sentence accuracy, and parsing speed.

Experimental results

Research questions

  • RQ1Can a neural supertagger based on Transformers significantly improve CCG parsing accuracy when integrated with a symbolic parser?
  • RQ2How does the integration of neural scoring with symbolic combinatory rules affect parsing performance on CCGbank?
  • RQ3What is the trade-off between parsing accuracy and speed when varying beam width in the hybrid parser?
  • RQ4To what extent can a grammar-anchored neural model outperform previous neural and symbolic CCG parsers?
  • RQ5Can such a hybrid system maintain high accuracy even at reduced beam widths, indicating robustness to search constraints?

Key findings

  • The hybrid system achieves a new state-of-the-art F-score of 93.0% on the CCGbank test set for labeled dependencies.
  • Complete sentence accuracy reaches 54% on the CCGbank test set, significantly outperforming previous methods.
  • The parser maintains high accuracy (93.0%) even at beam widths as low as 8, with only a minor drop to 91.7% at beam width 4.
  • Parsing speed reaches approximately 100 sentences per second on CPU, demonstrating practical efficiency despite non-optimized Java implementation.
  • The %-skimmed column shows that only 0.9% of sentences are processed via the skimmer mode at beam width 64, indicating high reliability of the main parser.
  • The results confirm that neural models effectively reduce the need for extensive search, as seen in prior work on shift-reduce parsing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.