cs.LGNov 24, 2026

Polynomial-Time Learning of Random Automata from One Label per Word

Authors: Yilin Cheng

Organizations: Zhongguancun Academy, Beijing, China

Abstract

We study a binary deterministic finite automaton whose 2n2n transitions are chosen independently and uniformly from its nn states. The learner observes independent uniform words of length mm, each labeled with a single bit indicating acceptance. For every fixed β>0β>0 we give a polynomial-time algorithm that works outside a set of transition tables of probability o(n−β)o(n^{-β}). On each remaining table, for any start state and accepting set, the predictor has error at most εε on fresh uniform words of length mm with probability at least 1−γ1-γ over the training sample and the learner's random choices. Its sample size and running time are polynomial in nn, mm, 1/ε1/ε and log⁡(2/γ)\log(2/γ), with degree depending only on ββ. Although each word reveals only one output, comparing label moments at two consecutive history lengths lets us estimate the expected product of the signed outputs of two continuations from the same hidden state. We also refute Conjecture 4 of Fish and Reyzin on meeting times. For two distinct states fixed before the table is drawn and every fixed c>0c>0, the fraction of words of length ⌊cn⌋\lfloor cn\rfloor that send them to different states converges in probability to e−ce^{-c}. On a typical table, driving this fraction down to 1/n1/n takes asymptotically nlog⁡nn\log n letters. Selected proof steps are formalized in Lean.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SMT-Based Active Learning of Weighted Automata

    May 8, 2026Tiago Ferreira, Kevin Batz, Alexandra SilvaActive LearningSatisfiability Modulo Theories

  2. PAC learning PDFA from data streams

    Apr 2, 2026Robert Baumgartner, Sicco VerwerAutomata LearningFinite-State Machine