paper-with-me

Papers

Approximating CKY with Transformers

2023-05-03 · Ghazal Khalighinejad, Ollie Liu, Sam Wiseman

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 \textit{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 a subgradient of a partition function variant with respect to the chart.

📄 PDF Abstract BibTeX arXiv:2305.02386

Code (1)

ghazalkhalighinejad/approximating-cky 공식 구현 pytorch

Tasks

Constituency ParsingInductive BiasSentence

Similar Papers 제목 키워드 기반

Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learning

2025-08-22 · Baiyuan Chen, Shinji Ito, Masaaki Imaizumi arxiv

Transformers have demonstrated exceptional performance across a wide range of domains. While their ability to perform reinforcement learning in-context has been established both theoretically and empirically, their behav…

Reinforcement Learning

Variance-Reducing Couplings for Random Features

2024-05-26 · Isaac Reid, Stratis Markou, Krzysztof Choromanski, Richard E. Turner 외

Random features (RFs) are a popular technique to scale up kernel methods in machine learning, replacing exact kernel evaluations with stochastic Monte Carlo estimates. They underpin models as diverse as efficient transfo…

Gaussian Processes

Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformers

2021-07-28 · Colin Wei, Yining Chen, Tengyu Ma

A common lens to theoretically study neural net architectures is to analyze the functions they can approximate. However, constructions from approximation theory may be unrealistic and therefore less meaningful. For examp…

Generalization Bounds

Statistically Meaningful Approximation: a Theoretical Analysis for Approximating Turing Machines with Transformers

2021-09-29 · Colin Wei, Yining Chen, Tengyu Ma

A common lens to theoretically study neural net architectures is to analyze the functions they can approximate. However, constructions from approximation theory may be unrealistic and therefore less meaningful. For examp…

Sumformer: Universal Approximation for Efficient Transformers

2023-07-05 · Silas Alberti, Niclas Dern, Laura Thesing, Gitta Kutyniok

Natural language processing (NLP) made an impressive jump with the introduction of Transformers. ChatGPT is one of the most famous examples, changing the perception of the possibilities of AI even outside the research co…