Extracting Moore Machines from Transformers using Queries and Counterexamples

Rik Adriaensen, Jaron Maene
10/8/2024
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Fuelled by the popularity of the transformer architecture in deep learning, several works have investigated what formal languages a transformer can learn from data. Nonetheless, existing results remain hard to compare due to methodological differences. To address this, we construct finite state automata as high-level abstractions of transformers trained on regular languages using queries and counterexamples. Concretely, we extract Moore machines, as many training tasks used in literature can be mapped onto them. We demonstrate the usefulness of this approach by studying positive-only learning and the sequence accuracy measure in detail.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{adriaensen2024extracting,
  title  = {Extracting Moore Machines from Transformers using Queries and Counterexamples},
  author = {Rik Adriaensen and Jaron Maene},
  year   = {2024},
  eprint = {2410.06045},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.06045v2}
}

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/2410.06045.svg)](https://codeofpaper.com/paper/2410.06045)

Discussion