Polynomial-Time Learning of Random Automata from One Label per Word
Organizations: Zhongguancun Academy, Beijing, China
Abstract
We study a binary deterministic finite automaton whose transitions are chosen independently and uniformly from its states. The learner observes independent uniform words of length , each labeled with a single bit indicating acceptance. For every fixed we give a polynomial-time algorithm that works outside a set of transition tables of probability . On each remaining table, for any start state and accepting set, the predictor has error at most on fresh uniform words of length with probability at least over the training sample and the learner's random choices. Its sample size and running time are polynomial in , , and , 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 , the fraction of words of length that send them to different states converges in probability to . On a typical table, driving this fraction down to takes asymptotically letters. Selected proof steps are formalized in Lean.
Figures & tables
| History before | Product of two terminal means |
|---|---|
| Defined out of 24 | |||||
|---|---|---|---|---|---|
| 6 | 0.261 | 0.00413 | 20 at all lags | ||
| 10 | 1.15 | 0.0290 | 20 at all lags | ||
| 16 | 1.72 | 0.121 | 22, 22, 22, 21 | ||
| 32 | 4.30 | 0.309 | 20 at all lags | ||
| 64 | 8.77 | 0.732 | 0.0202 | 24 at all lags |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Quantity | Choice and use |
|---|---|
| Clean binary decoder | Let be the dictionary dimension, the number of sign tests, the fixed product-recursion depth, and , where are deterministic clean lower bounds on , respectively. Choose signature depth by Appendix B.6 . Use entry tolerance in all decoder matrices and shift in the PSD test. |
| Clean bin precision | Let be the clean inverse-polynomial lower bound on for a nonconstant core. Use primitive accuracy and population diagonal error at most . Here bounds the coefficient sums in the fixed-degree expansions of the normalized features (a polynomial bound suffices). Choose the whole-block product lag and prefix mixing burn after this accuracy, both . Use the word-bin sample row below with the clean bin probability and tolerance. |
| Residual budget | , heavy mass . Always include the zero predictor. |
| Suffix and signal | Take visible length and apply (S3) at . If the mean squared signal at the designated start exceeds , some suffix in (R2) has for an absolute sufficiently small and large . |
| Entrance threshold | Put . Grid spacing for the scaled threshold, and for , where is the longest tested prefix below. |
| Replacement windows | Fix for the one-sided entrance test. Take with the survival remainder after divided by the inverse-polynomial witness mass at most . Take with (R1) error at most for a sufficiently small . Both are . Put . |