Back to search

Rice University

Representing Formal Languages: A Comparison Between Finite Automata and Recurrent Neural Networks

Abstract

dc:description.abstract

We investigate the internal representations that a recurrent neural network (RNN) uses while learning to recognize a regular formal language. Specially, we train a RNN on positive and negative examples from a regular language, and ask if there is a simple decoding function that maps states of this RNN to states of the minimal deterministic fnite automaton (MDFA) for the language. Our experiments show that such a decoding function indeed exists, and that it maps states of the RNN not to MDFA states, but to states of an abstraction obtained by clustering small sets of MDFA states into “superstates”. A framework for performing large scale systematic representation analysis between the two language models is discussed. Quantitative analysis surprisingly shows that linear decoding functions are suffcient for the task and an analysis of a range of abstraction functions is given. A qualitative analysis reveals new interpretations of how RNNs implement hierarchical priors during the language recognition task. Overall, the results suggest a strong structural relationship between internal representations used by RNNs and fnite automata, and explain the well-known ability of RNNs to recognize formal grammatical structure.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Engineering
Department thesis:degree_department
Electrical and Computer Engineering
Grantor
Rice University
Year dc:date.issued
2019

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Michalenko, Joshua James
Advisor dc:contributor.advisor
  • Patel, Ankit
Committee member dc:contributor.committeemember
  • Baraniuk , Richard

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Citation
Michalenko, Joshua James. "Representing Formal Languages: A Comparison Between Finite Automata and Recurrent Neural Networks." (2019) Master’s Thesis, Rice University. <a href="https://hdl.handle.net/1911/105421">https://hdl.handle.net/1911/105421</a>.

Chain of custody

source
Harvested from
Rice University
Base URL
repository.rice.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Michalenko, Joshua James. Representing Formal Languages: A Comparison Between Finite Automata and Recurrent Neural Networks. Masters thesis, Rice University, 2019. https://hdl.handle.net/1911/105421