mlsanityData to 7 Oct 2026

Approximating CKY with Transformers

arXiv 2305.02386 ↗First posted 3 May 2023cs.CL cs.LGcited by 3

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2016Layer Normalizationcited by 5,579
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  7. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  8. 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
  9. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  10. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  11. 2014Neural Turing Machinescited by 630
  12. 2018Universal Transformerscited by 613
32 more
  1. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
  2. 2022Neural Networks and the Chomsky Hierarchycited by 214
  3. 2018Constituency Parsing with a Self-Attentive Encodercited by 196
  4. 2019What Can Neural Networks Reason About?cited by 155
  5. 2015Neural GPUs Learn Algorithmscited by 118
  6. 2018Multilingual Constituency Parsing with Self-Attention and Pre-Trainingcited by 117
  7. 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
  8. 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
  9. 2014Grammar as a Foreign Languagecited by 70
  10. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  11. 2017A Minimal Span-Based Neural Constituency Parsercited by 59
  12. 2022Graph Neural Networks are Dynamic Programmerscited by 55
  13. 2020Efficient Second-Order TreeCRF for Neural Dependency Parsingcited by 48
  14. 2023Do Transformers Parse while Predicting the Masked Word?cited by 48
  15. 2020Torch-Struct: Deep Structured Prediction Librarycited by 40
  16. 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 40
  17. 2020Transition-based Parsing with Stack-Transformerscited by 37
  18. 2019Location Attention for Extrapolation to Longer Sequencescited by 33
  19. 2021Do Syntactic Probes Probe Syntax? Experiments with Jabberwocky Probingcited by 28
  20. 2022Probing for Incremental Parse States in Autoregressive Language Modelscited by 24
  21. 2018What's Going On in Neural Constituency Parsers? An Analysiscited by 22
  22. 2021Bottom-Up Constituency Parsing and Nested Named Entity Recognition with Pointer Networkscited by 21
  23. 2016Span-Based Constituency Parsing with a Structure-Label System and Provably Optimal Dynamic Oraclescited by 20
  24. 2020Improving Constituency Parsing with Span Attentioncited by 17
  25. 2021Can Transformers Jump Around Right in Natural Language? Assessing Performance Transfer from SCANcited by 14
  26. 2018Learning Approximate Inference Networks for Structured Predictioncited by 13
  27. 2020Heads-up! Unsupervised Constituency Parsing via Self-Attention Headscited by 12
  28. 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
  29. 2020Enriched In-Order Linearization for Faster Sequence-to-Sequence Constituent Parsingcited by 9
  30. 2020Fast Interleaved Bidirectional Sequence Generationcited by 8
  31. 2021A Conditional Splitting Framework for Efficient Constituency Parsingcited by 7
  32. 2018Transition-based Parsing with Lighter Feed-Forward Networkscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 0; 2026: 1.

3 papers.