mlsanityData to 14 Oct 2026

Extracting Weighted Automata for Approximate Minimization in Language Modelling

arXiv 2106.02965 ↗First posted 5 Jun 2021cs.LG cs.FLcited by 3

Not on the map. Why?

Abstract (arXiv)

In this paper we study the approximate minimization problem for language modelling. We assume we are given some language model as a black box. The objective is to obtain a weighted finite automaton (WFA) that fits within a given size constraint and which mimics the behaviour of the original model while minimizing some notion of distance between the black box and the extracted WFA. We provide an algorithm for the approximate minimization of black boxes trained for language modelling of sequential data over a one-letter alphabet. By reformulating the problem in terms of Hankel matrices, we leverage classical results on the approximation of Hankel operators, namely the celebrated Adamyan-Arov-Krein (AAK) theory. This allows us to use the spectral norm to measure the distance between the black box and the WFA. We provide theoretical guarantees to study the potentially infinite-rank Hankel matrix of the black box, without accessing the training data, and we prove that our method returns an asymptotically-optimal approximation.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 15 of its 66 references that are in the map. First posted on arXiv 5 Jun 2021.

Builds on

15 of 66 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  3. 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,416
  4. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  5. 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
  6. 2020A Formal Hierarchy of RNN Architecturescited by 62
  7. 2019Learning Deterministic Weighted Automata with Queries and Counterexamplescited by 22
  8. 2017An Empirical Evaluation of Rule Extraction from Recurrent Neural Networkscited by 21
  9. 2019Weighted Automata Extraction from Recurrent Neural Networks via Regression on State Spacescited by 21
  10. 2018Connecting Weighted Automata and Recurrent Neural Networks through Spectral Learningcited by 15
  11. 2018Explaining Black Boxes on Sequential Data using Weighted Automatacited by 11
  12. 2019Approximating probabilistic models as weighted finite automatacited by 6
3 more
  1. 2020Distillation of Weighted Automata from Recurrent Neural Networks using a Spectral Approachcited by 6
  2. 2016Interpreting Finite Automata for Sequential Datacited by 4
  3. 2020Distance and Equivalence between Finite State Machines and Recurrent Neural Networks: Computational resultscited by 2

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 0; 2024: 2.

3 papers.