LLMs as Probabilistic Minimally Adequate Teachers for DFA Learning

Lekai Chen, Ashutosh Trivedi, Alvaro Velasquez
8/6/2024
cs.FLcs.AI

No confident code implementation found for this paper.

Abstract

The emergence of intelligence in large language models (LLMs) has inspired investigations into their integration into automata learning. This paper introduces the probabilistic Minimally Adequate Teacher (pMAT) formulation, which leverages a probabilistic oracle that could give persistent errors randomly during answering the membership queries for deterministic finite automata (DFA) learning. Given the tendency of LLMs to produce hallucinatory content, we have developed techniques to improve answer accuracy and ensure the correctness of the learned automata. We propose the $\mathtt{Discrimination}$ prompt as well as the $\mathtt{Verification}$ prompt and explore their advantages over common prompts. Additionally, we compare DFA learning performance between the TTT algorithm and common active learning algorithms. To address the exponential number of persistent errors, we implement a dynamic query cache refinement algorithm that identifies and corrects conflicting queries by combining the active and passive learning algorithms. The empirical results demonstrate the robustness and efficiency of our approach, providing a theoretical foundation for automata learning with LLMs in the loop.

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!

Cite this paper

@article{chen2024llms,
  title  = {LLMs as Probabilistic Minimally Adequate Teachers for DFA Learning},
  author = {Lekai Chen and Ashutosh Trivedi and Alvaro Velasquez},
  year   = {2024},
  eprint = {2408.02999},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.02999v1}
}

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

Discussion