Interpreting Word-Level Hidden State Behaviour of Character-Level LSTM Language Models
While Long Short-Term Memory networks (LSTMs) and other forms of recurrent neural network have been successfully applied to language modeling on a character level, the hidden state dynamics of these models can be difficult to interpret. We investigate the hidden states of such a model by using the HDBSCAN clustering algorithm to identify points in the text at which the hidden state is similar. Focusing on whitespace characters prior to the beginning of a word reveals interpretable clusters that offer insight into how the LSTM may combine contextual and character-level information to identify parts of speech. We also introduce a method for deriving word vectors from the hidden state representation in order to investigate the word-level knowledge of the model. These word vectors encode meaningful semantic information even for words that appear only once in the training text.
Code (0)
등록된 구현이 없습니다.
Tasks
ClusteringLanguage ModelingLanguage ModellingWord EmbeddingsMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
Semantics or spelling? Probing contextual word embeddings with orthographic noise
Pretrained language model (PLM) hidden states are frequently employed as contextual word embeddings (CWE): high-dimensional representations that encode semantic information given linguistic context. Across many areas of …
Language ModelingLanguage ModellingSemantic SimilaritySemantic Textual Similarity+1Robustness Analysis of Grover for Machine-Generated News Detection
Advancements in Natural Language Generation have raised concerns on its potential misuse for deep fake news. Grover is a model for both generation and detection of neural fake news. While its performance on automatically…
ArticlesText GenerationTowards Dark Jargon Interpretation in Underground Forums
Dark jargons are benign-looking words that have hidden, sinister meanings and are used by participants of underground forums for illicit behavior. For example, the dark term "rat" is often used in lieu of "Remote Access …
GrammarSHAP: An Efficient Model-Agnostic and Structure-Aware NLP Explainer
Interpreting NLP models is fundamental for their development as it can shed light on hidden properties and unexpected behaviors. However, while transformer architectures exploit contextual information to enhance their pr…
Constituency ParsingSentenceBreaking Down Word Semantics from Pre-trained Language Models through Layer-wise Dimension Selection
Contextual word embeddings obtained from pre-trained language model (PLM) have proven effective for various natural language processing tasks at the word level. However, interpreting the hidden aspects within embeddings,…
Binary ClassificationLanguage ModelingLanguage ModellingRepresentation Learning+1