Saved in:
Bibliographic Details
Main Authors: Chen, Lekai, Trivedi, Ashutosh, Velasquez, Alvaro
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.02999
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913459445170176
author Chen, Lekai
Trivedi, Ashutosh
Velasquez, Alvaro
author_facet Chen, Lekai
Trivedi, Ashutosh
Velasquez, Alvaro
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_02999
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LLMs as Probabilistic Minimally Adequate Teachers for DFA Learning
Chen, Lekai
Trivedi, Ashutosh
Velasquez, Alvaro
Formal Languages and Automata Theory
Artificial Intelligence
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.
title LLMs as Probabilistic Minimally Adequate Teachers for DFA Learning
topic Formal Languages and Automata Theory
Artificial Intelligence
url https://arxiv.org/abs/2408.02999