$L^*LM$: Learning Automata from Examples using Natural Language Oracles

Marcell Vazquez-Chanlatte, Karim Elmaaroufi, Stefan J. Witwicki, Matei Zaharia, Sanjit A. Seshia
2/10/2024
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Expert demonstrations have proven an easy way to indirectly specify complex tasks. Recent algorithms even support extracting unambiguous formal specifications, e.g. deterministic finite automata (DFA), from demonstrations. Unfortunately, these techniques are generally not sample efficient. In this work, we introduce $L^*LM$, an algorithm for learning DFAs from both demonstrations and natural language. Due to the expressivity of natural language, we observe a significant improvement in the data efficiency of learning DFAs from expert demonstrations. Technically, $L^*LM$ leverages large language models to answer membership queries about the underlying task. This is then combined with recent techniques for transforming learning from demonstrations into a sequence of labeled example learning problems. In our experiments, we observe the two modalities complement each other, yielding a powerful few-shot learner.

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{vazquezchanlatte2024llm,
  title  = {$L^*LM$: Learning Automata from Examples using Natural Language Oracles},
  author = {Marcell Vazquez-Chanlatte and Karim Elmaaroufi and Stefan J. Witwicki and Matei Zaharia and Sanjit A. Seshia},
  year   = {2024},
  eprint = {2402.07051},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.07051v2}
}

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

Discussion