paper-with-me

홈 › Papers

Evaluating the Ability of LSTMs to Learn Context-Free Grammars

2018-11-06 · WS 2018 11 · Luzi Sennhauser, Robert C. Berwick

While long short-term memory (LSTM) neural net architectures are designed to capture sequence information, human language is generally composed of hierarchical structures. This raises the question as to whether LSTMs can learn hierarchical structures. We explore this question with a well-formed bracket prediction task using two types of brackets modeled by an LSTM. Demonstrating that such a system is learnable by an LSTM is the first step in demonstrating that the entire class of CFLs is also learnable. We observe that the model requires exponential memory in terms of the number of characters and embedded depth, where a sub-linear memory should suffice. Still, the model does more than memorize the training input. It learns how to distinguish between relevant and irrelevant information. On the other hand, we also observe that the model does not generalize well. We conclude that LSTMs do not learn the relevant underlying context-free rules, suggesting the good overall performance is attained rather by an efficient way of evaluating nuisance variables. LSTMs are a way to quickly reach good results for many natural language tasks, but to understand and generate natural language one has to investigate other concepts that can make more direct use of natural language's structural nature.

📄 PDF Abstract BibTeX arXiv:1811.02611

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…

Similar Papers 제목 키워드 기반

Evaluating Transformer's Ability to Learn Mildly Context-Sensitive Languages

2023-09-02 · Shunjie Wang, Shane Steinert-Threlkeld

Despite the fact that Transformers perform well in NLP tasks, recent studies suggest that self-attention is theoretically limited in learning even some regular and context-free languages. These findings motivated us to t…

Contextual and Seasonal LSTMs for Time Series Anomaly Detection

2026-02-10 · Lingpei Zhang, Qingming Li, Yong Yang, Jiahao Chen 외 arxiv

Univariate time series (UTS), where each timestamp records a single variable, serve as crucial indicators in web systems and cloud servers. Anomaly detection in UTS plays an essential role in both data mining and system …

Time Series Anomaly Detection

Beyond Word Importance: Contextual Decomposition to Extract Interactions from LSTMs

2018-01-16 · ICLR 2018 1 · W. James Murdoch, Peter J. Liu, Bin Yu

The driving force behind the recent success of LSTMs has been their ability to learn complex and non-linear relationships. Consequently, our inability to describe these relationships has led to LSTMs being characterized …

Sentiment Analysis

Context-Free Transductions with Neural Stacks

2018-09-08 · WS 2018 11 · Yiding Hao, William Merrill, Dana Angluin, Robert Frank 외

This paper analyzes the behavior of stack-augmented recurrent neural network (RNN) models. Due to the architectural similarity between stack RNNs and pushdown transducers, we train stack RNN models on a number of tasks, …

Language Modelling

Assessing the Unitary RNN as an End-to-End Compositional Model of Syntax

2022-08-11 · Jean-Philippe Bernardy, Shalom Lappin

We show that both an LSTM and a unitary-evolution recurrent neural network (URN) can achieve encouraging accuracy on two types of syntactic patterns: context-free long distance agreement, and mildly context-sensitive cro…

Explainable ModelsWord Embeddings