mlsanityData to 14 Oct 2026

On the Relationship Between RNN Hidden State Vectors and Semantic Ground Truth

arXiv 2306.16854 ↗First posted 29 Jun 2023cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

We examine the assumption that the hidden-state vectors of recurrent neural networks (RNNs) tend to form clusters of semantically similar vectors, which we dub the clustering hypothesis. While this hypothesis has been assumed in the analysis of RNNs in recent years, its validity has not been studied thoroughly on modern neural network architectures. We examine the clustering hypothesis in the context of RNNs that were trained to recognize regular languages. This enables us to draw on perfect ground-truth automata in our evaluation, against which we can compare the RNN's accuracy and the distribution of the hidden-state vectors. We start with examining the (piecewise linear) separability of an RNN's hidden-state vectors into semantically different classes. We continue the analysis by computing clusters over the hidden-state vector space with multiple state-of-the-art unsupervised clustering approaches. We formally analyze the accuracy of computed clustering functions and the validity of the clustering hypothesis by determining whether clusters group semantically similar vectors to the same state in the ground-truth model. Our evaluation supports the validity of the clustering hypothesis in the majority of examined cases. We observed that the hidden-state vectors of well-trained RNNs are separable, and that the unsupervised clustering techniques succeed in finding clusters of similar state vectors.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 36 references that are in the map. First posted on arXiv 29 Jun 2023.

Builds on

14 of 36 references.

References · 14

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,304
  4. 2016Safety Verification of Deep Neural Networkscited by 263
  5. 2015A Critical Review of Recurrent Neural Networks for Sequence Learningcited by 224
  6. 2016Long Short-Term Memory-Networks for Machine Readingcited by 161
  7. 2018Concolic Testing for Deep Neural Networkscited by 51
  8. 2017Collective Anomaly Detection based on Long Short Term Memory Recurrent Neural Networkcited by 28
  9. 2017An Empirical Evaluation of Rule Extraction from Recurrent Neural Networkscited by 21
  10. 2017DeepSafe: A Data-driven Approach for Checking Adversarial Robustness in Neural Networkscited by 20
  11. 2022Extracting Finite Automata from RNNs Using State Mergingcited by 17
  12. 2018Learning with Interpretable Structure from Gated RNNcited by 13
2 more
  1. 2019Representing Formal Languages: A Comparison Between Finite Automata and Recurrent Neural Networkscited by 9
  2. 2019Model-Based Testing IoT Communication via Active Automata Learningcited by 4

Built on by

Not cited yet.