Approximating CKY with Transformers
Not on the map. Why?
Abstract (arXiv)
We investigate the ability of transformer models to approximate the CKY algorithm, using them to directly predict a sentence's 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 textitrandom 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 a subgradient of a partition function variant with respect to the chart.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 44 of its 82 references that are in the map. First posted on arXiv 3 May 2023.
Builds on
44 of 82 references.
References · 44
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2016Layer Normalizationcited by 5,579
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2014Neural Turing Machinescited by 630
- 2018Universal Transformerscited by 613
32 more
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2018Constituency Parsing with a Self-Attentive Encodercited by 196
- 2019What Can Neural Networks Reason About?cited by 155
- 2015Neural GPUs Learn Algorithmscited by 118
- 2018Multilingual Constituency Parsing with Self-Attention and Pre-Trainingcited by 117
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2014Grammar as a Foreign Languagecited by 70
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2017A Minimal Span-Based Neural Constituency Parsercited by 59
- 2022Graph Neural Networks are Dynamic Programmerscited by 55
- 2020Efficient Second-Order TreeCRF for Neural Dependency Parsingcited by 48
- 2023Do Transformers Parse while Predicting the Masked Word?cited by 48
- 2020Torch-Struct: Deep Structured Prediction Librarycited by 40
- 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 40
- 2020Transition-based Parsing with Stack-Transformerscited by 37
- 2019Location Attention for Extrapolation to Longer Sequencescited by 33
- 2021Do Syntactic Probes Probe Syntax? Experiments with Jabberwocky Probingcited by 28
- 2022Probing for Incremental Parse States in Autoregressive Language Modelscited by 24
- 2018What's Going On in Neural Constituency Parsers? An Analysiscited by 22
- 2021Bottom-Up Constituency Parsing and Nested Named Entity Recognition with Pointer Networkscited by 21
- 2016Span-Based Constituency Parsing with a Structure-Label System and Provably Optimal Dynamic Oraclescited by 20
- 2020Improving Constituency Parsing with Span Attentioncited by 17
- 2021Can Transformers Jump Around Right in Natural Language? Assessing Performance Transfer from SCANcited by 14
- 2018Learning Approximate Inference Networks for Structured Predictioncited by 13
- 2020Heads-up! Unsupervised Constituency Parsing via Self-Attention Headscited by 12
- 2020Span-based discontinuous constituency parsing: a family of exact chart-based algorithms with time complexities from O(n^6) down to O(n^3)cited by 11
- 2020Enriched In-Order Linearization for Faster Sequence-to-Sequence Constituent Parsingcited by 9
- 2020Fast Interleaved Bidirectional Sequence Generationcited by 8
- 2021A Conditional Splitting Framework for Efficient Constituency Parsingcited by 7
- 2018Transition-based Parsing with Lighter Feed-Forward Networkscited by 2
Built on by
Citing papers per year: 2024: 2; 2025: 0; 2026: 1.
3 papers.