# Weighted Automata Extraction from Recurrent Neural Networks via   Regression on State Spaces

**Authors:** Takamasa Okudono, Masaki Waga, Taro Sekiyama, Ichiro Hasuo

arXiv: 1904.02931 · 2019-11-21

## TL;DR

This paper introduces a novel method for extracting weighted finite automata from RNNs using regression techniques, enhancing the interpretability and analysis of neural network internal states.

## Contribution

It extends existing automaton extraction methods by incorporating regression for equivalence queries, enabling weighted automaton extraction from RNNs.

## Key findings

- High accuracy in automaton extraction
- Improved expressivity over previous DFA-based methods
- Efficient extraction process demonstrated

## Abstract

We present a method to extract a weighted finite automaton (WFA) from a recurrent neural network (RNN). Our algorithm is based on the WFA learning algorithm by Balle and Mohri, which is in turn an extension of Angluin's classic \lstar algorithm. Our technical novelty is in the use of \emph{regression} methods for the so-called equivalence queries, thus exploiting the internal state space of an RNN to prioritize counterexample candidates. This way we achieve a quantitative/weighted extension of the recent work by Weiss, Goldberg and Yahav that extracts DFAs. We experimentally evaluate the accuracy, expressivity and efficiency of the extracted WFAs.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.02931/full.md

## Figures

20 figures with captions in the complete paper: https://tomesphere.com/paper/1904.02931/full.md

## References

30 references — full list in the complete paper: https://tomesphere.com/paper/1904.02931/full.md

---
Source: https://tomesphere.com/paper/1904.02931