Approximating CKY with Transformers

05/03/2023
by   Ghazal Khalighinejad, et al.
0

We investigate the ability of transformer models to approximate the CKY algorithm, using them to directly predict a parse and thus avoid the CKY algorithm's cubic dependence on sentence length. We find that on standard constituency parsing benchmarks this approach achieves competitive or better performance than comparable parsers that make use of CKY, while being faster. We also evaluate the viability of this approach for parsing under random PCFGs. Here we find that performance declines as the grammar becomes more ambiguous, suggesting that the transformer is not fully capturing the CKY computation. However, we also find that incorporating additional inductive bias is helpful, and we propose a novel approach that makes use of gradients with respect to chart representations in predicting the parse, in analogy with the CKY algorithm being the subgradient of a partition function variant with respect to the chart.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/09/2021

Levi Graph AMR Parser using Heterogeneous Attention

Coupled with biaffine decoders, transformers have been effectively adapt...
research
09/21/2021

Something Old, Something New: Grammar-based CCG Parsing with Transformer Models

This report describes the parsing problem for Combinatory Categorial Gra...
research
02/21/2017

On the Complexity of CCG Parsing

We study the parsing complexity of Combinatory Categorial Grammar (CCG) ...
research
04/19/2023

Beyond Transformers for Function Learning

The ability to learn and predict simple functions is a key aspect of hum...
research
07/06/2023

Efficient Semiring-Weighted Earley Parsing

This paper provides a reference description, in the form of a deduction ...
research
08/11/2022

Structural Biases for Improving Transformers on Translation into Morphologically Rich Languages

Machine translation has seen rapid progress with the advent of Transform...
research
11/08/2022

Strictly Breadth-First AMR Parsing

AMR parsing is the task that maps a sentence to an AMR semantic graph au...

Please sign up or login with your details

Forgot password? Click here to reset