PDFA Distillation via String Probability Queries

Robert Baumgartner, Sicco Verwer
6/26/2024
cs.FLcs.LG

No official code found. Best implementation: tudelft-cda-lab/FlexFringe (26 stars, GPL-3.0, last commit 2026-05-01).

Abstract

Probabilistic deterministic finite automata (PDFA) are discrete event systems modeling conditional probabilities over languages: Given an already seen sequence of tokens they return the probability of tokens of interest to appear next. These types of models have gained interest in the domain of explainable machine learning, where they are used as surrogate models for neural networks trained as language models. In this work we present an algorithm to distill PDFA from neural networks. Our algorithm is a derivative of the L# algorithm and capable of learning PDFA from a new type of query, in which the algorithm infers conditional probabilities from the probability of the queried string to occur. We show its effectiveness on a recent public dataset by distilling PDFA from a set of trained neural networks.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

The FlexFringe tool for flexible learning of state machines (deterministic automata) from traces. See the paper at https://arxiv.org/abs/2203.16331

2611C, C++May 25, 20225 months agoGPL-3.0
data-sciencegrammar-inductionmachine-learningnlp-machine-learning

Similar Papers

Cite this paper

@article{baumgartner2024pdfa,
  title  = {PDFA Distillation via String Probability Queries},
  author = {Robert Baumgartner and Sicco Verwer},
  year   = {2024},
  eprint = {2406.18328},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.18328v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.18328.svg)](https://codeofpaper.com/paper/2406.18328)

Discussion