A finite automaton reading a long random string tends to "forget" where it started. Two copies started in different states, fed the same input, usually end up in the same state after a while. Once that happens, the automaton's final answer depends only on the most recent stretch of input. This note proposes to make that forgetting the central quantity in a learning theory of automata, where a learner sees only aggregate statistics of the data and the labels are corrupted by bounded, adversarially placed noise. The claim is this. Let $L$ be the length of recent input the automaton effectively depends on. Then the cost of learning is roughly the number of possible strings of length $L$, and the error under heavy label noise falls toward zero as $L$ grows. That conclusion stands in contrast to the known result that the same noise model makes linear classifiers impossible to learn below error proportional to the noise rate.
This is worth doing because the field has two strong but disconnected stories. Learning theory has shown that noise and restricted data access can make learning very hard. Automata theory has a large literature on how quickly automata synchronize, meaning how fast all their states collapse to one. The only link so far runs through random automata and an unproven conjecture about random walks. The proposal turns synchronization into an explicit, measurable parameter, and it predicts both when learning succeeds and when it fails. We test the predictions on synthetic automata whose synchronization behavior we control, on the classic Tomita grammars, and, as a secondary real-data check, on page-sequence structure in scanned theses.
Background and the Gap
Three terms are used throughout. In the statistical query (SQ) model, the learner never sees individual examples. It asks for the average of a function of its choice over the data distribution and receives that average up to a tolerance. Almost every practical learner based on gradients or moment estimates fits this model. Massart noise means each example's label is flipped with some probability $\eta(x)$ that may depend on the example and is chosen adversarially, subject only to $\eta(x) \le \eta < 1/2$. A synchronizing word, or reset word, is an input that drives every state of an automaton to the same state. The reset threshold is the length of the shortest such word.
The work that motivates this proposal sits in two places. The first is Open Problem: Meeting Times for Learning Random Automata. It shows, using Fourier analysis of Boolean functions, that how much an early input bit influences a random automaton's label equals the probability that two random walks started from different states fail to meet. If the expected meeting time on random 2-regular directed graphs is $O(n)$, this yields $2^{O(n)}$ learning for random $n$-state automata. That paper is restricted to random automata, has no noise, and does not frame its algorithm as an SQ procedure. The second is Learning a Random DFA from Uniform Strings and State Information. It learns random automata with statistical queries by solving least-squares systems built from stationary distributions. However, it requires the learner to observe the automaton's state, not just accept/reject labels, and it does not handle adversarial noise.
The work that constrains the proposal is Near-Optimal Statistical Query Hardness of Learning Halfspaces with Massart Noise. It proves that no efficient SQ algorithm learns linear classifiers below error $\Omega(\eta)$ under Massart noise, even when the best achievable error is tiny. A related negative result is the classical fact that parity functions are exponentially hard for SQ learners. Any positive result for automata must therefore explain why automata escape the halfspace barrier, and must locate parity-like automata on the hard side. The general SQ characterization in A General Characterization of the Statistical Query Complexity gives the tool for the lower-bound side: a randomized statistical dimension that tightly governs query complexity.
No paper in the file studies automata learning from labels under Massart noise, or parameterizes SQ learnability of automata by a synchronization quantity rather than by an assumption that the automaton is random. That is the gap.
Core Claim
Fix an automaton computing a label $f(x) \in \{-1,+1\}$ on strings $x$ of length $m$ over an alphabet of size $s$, with $x$ drawn uniformly. Write $x = uw$, where $w$ is the last $L$ symbols. Define the synchronization profile
$$\rho(L) = \Pr_{u, u', w}\big[f(uw) \ne f(u'w)\big],$$
where $u$ and $u'$ are independent random prefixes of length $m-L$ and $w$ is a shared random suffix of length $L$. This is the probability that the label still depends on something older than the last $L$ symbols. By the meeting-time argument of Open Problem: Meeting Times for Learning Random Automata, $\rho(L)$ is at most the probability that the two states reached by $u$ and $u'$ have not merged after reading $w$.
The learner we analyze builds a "suffix table." For each $w \in \Sigma^L$, it asks one statistical query for the label average among examples ending in $w$, and it predicts the sign of that average. Under Massart noise with rate at most $\eta$, the excess error over $f$ satisfies
$$\Pr_x[h(x) \ne f(x)] \;\le\; \frac{2(1-\eta)}{1-2\eta}\,\rho(L) \;+\; \text{estimation error}.$$
The number of queries is $s^L$, and the inverse tolerance is polynomial in $s^L$ and $1/(1-2\eta)$.
The bound has a short derivation. On the set of strings ending in $w$, adversarial noise can flip the majority sign only if the minority fraction $A_w$ is at least $(1-2\eta)/(2-2\eta)$. Separately, $A_w \le 2A_w(1-A_w)$, and averaging $2A_w(1-A_w)$ over $w$ gives exactly the pairwise disagreement $\rho(L)$.
For synchronizing automata, direction 1 supplies a decay rate. If a reset word of length $r$ exists, then any suffix containing it as a factor merges all states. This gives
$$\rho(L) \le (1 - s^{-r})^{\lfloor L/r \rfloor}.$$
The bound is crude, but it shows that every synchronizing automaton is learnable this way with error tending to zero, without the $\Omega(\eta)$ floor that holds for halfspaces. The reset threshold, the quantity the Černý-conjecture literature bounds, enters the learning cost directly.
The matching hardness side is a family of automata whose label is the parity of a hidden subset of the last $k$ positions. These automata have at most $2^k$ states and depend on exactly $k$ recent symbols. Their labels are pairwise orthogonal, so their statistical dimension is $2^k$. The query cost $s^L$ is therefore unavoidable up to the constant in the exponent when it is measured by synchronization length. Permutation automata, in which every letter permutes the states, never merge state pairs, so $\rho(L)$ never decays; parity of the entire string is the canonical example. These automata sit on the hard side.
The resulting dichotomy is the proposal's main conjecture. For SQ learners under uniform inputs, hardness lives exactly in components of the automaton that do not synchronize. Noise is harmless wherever synchronization is fast.
Research Program
The theoretical work has three parts. The first is to state and prove the upper bound above carefully, including the estimation term. The second is to prove the windowed-parity lower bound using the statistical dimension of A General Characterization of the Statistical Query Complexity. The third is to tighten the reset-word tail bound using the pair-merging structure studied in On the Interplay Between Babai and Černý's Conjectures, where the diameter of the pair digraph controls how quickly pairs of states merge. The pair-merging analysis matters because the theory needs only pairwise collision, not full synchronization. Pairwise collision can be far faster than the reset threshold suggests.
We will also try, as a stretch goal, to make the dichotomy precise. The hypothesis is that, for automata whose non-synchronizing part is a nontrivial permutation group acting on reachable states, the class of relabelings is SQ-hard. This would give a structural, not random-graph, account of the hardness.
The constructive work turns the suffix table into an automaton. The table defines an automaton with at most $s^L$ states that tracks the last $L$ symbols. Standard state minimization collapses it, and we compare the minimized state count to that of the true automaton. This is where direction 1 enters as a tool rather than only as a source of bounds. It also provides a proper-learning output that can be checked for exact identification on small targets.
The empirical work estimates $\rho(L)$ by simulation for each target and checks whether the measured error under adversarial Massart noise follows the predicted curve.
Baselines
The naive reference point is the constant classifier that predicts the majority label. Every method must beat it, and on permutation automata with balanced labels we expect the suffix table to do no better than it, as the theory predicts.
The strongest passive automaton learner in the file is the discretized recurrent network of Learning minimal automata with recurrent neural networks. Its hidden state is forced toward one of $k$ discrete states, and it starts from a prefix-tree bound and shrinks. It learned minimal automata for all seven Tomita grammars and outperformed the classical state-merging algorithm RPNI on sparse data. It is the most serious competitor because it uses raw samples, so it is not bound by SQ limits. We will also run RPNI as that paper's own reference point. Both methods and the suffix table receive identical noisy training sets of equal size. Hyperparameters for each method are tuned on a noise-free validation split with the same number of tuning trials. We evaluate on clean held-out labels.
No reported result was found on Lacuna for passive learning of Tomita grammars under Massart label noise. The RNN paper gives no numeric accuracy in the file. The closest reported number is that DFAs extracted by $L^*_{nsp}$ in Automata Learning and Identification of the Support of Language Models reach 94% to 100% next-symbol-prediction accuracy on Tomita 1–7. That figure comes from an active, noise-free setting with a language-model teacher, so we report it only as a ceiling. Beating the RNN learner means lower clean-label error, at matched data size and at noise rates $\eta \ge 0.2$, on the grammars our theory classes as synchronizing.
The third baseline is an unconstrained gated recurrent network trained directly on noisy labels with the same budget. It asks whether a generic sequence model is already implicitly robust.
The fourth baseline is the low-degree Fourier learner implied by Open Problem: Meeting Times for Learning Random Automata. It estimates all coefficients up to a fixed degree over all positions, with the degree set to match the suffix table's query count. This baseline isolates the key ingredient: the suffix table spends its whole query budget on the recent window that synchronization says matters.
The fifth comparison is an ablation. We pick $L$ from the estimated $\rho(L)$ and compare against a fixed $L$ and against $L$ chosen by validation. This tests whether the synchronization profile itself is predictive.
Why not just…?
Why not just use RPNI or the discretized RNN, which already learn minimal automata from samples? These methods use individual samples and can exploit algebraic structure that SQ learners cannot. Recognizing this is the honest version of the parity/BKW separation. We expect them to win on the permutation grammars Tomita 5 and 6 (even counts of each letter; a count difference divisible by three) at low noise. However, state merging decides whether two states are equivalent from a few label disagreements. Under adversarial noise, those disagreements are exactly what the adversary controls. The RNN paper itself reports failures and poor scaling beyond about ten states. The experiment that settles the question is the noise sweep below. A crossover in which sample-based methods lead at low noise and the suffix table leads on synchronizing targets at high noise confirms the picture. If no crossover occurs, the practical half of the claim is refuted.
Why not just run the low-degree algorithm from the meeting-times paper, since the suffix table looks like a special case? The suffix table is a restriction of low-degree Fourier learning, and we do not claim a new algorithm in that sense. What is new is the parameterization by $\rho(L)$ for arbitrary automata rather than random ones, the Massart-noise guarantee, and the matching lower bound. Empirically, the matched-budget comparison shows whether concentrating queries on the suffix matters. If the full low-degree learner matches the suffix table, we report that, and the contribution becomes purely theoretical.
Why not just train a neural sequence model on the noisy labels and rely on its implicit robustness? That approach may work on easy targets, but nothing guarantees it, and the halfspace barrier shows that gradient-style learners, which are SQ-like, can be stuck at error proportional to $\eta$ when the target lacks the right structure. Running the recurrent baseline on the same targets tells us whether its error tracks $\rho(L)$ as the theory predicts for any SQ-like learner. If it does, that result supports the theory rather than competing with it.
Why not just smooth page predictions with a CRF instead of reasoning about synchronization? A CRF (conditional random field, a sequence model that scores label transitions jointly), like the bidirectional model achieving 91.6% F1 on PubMed 200k RCT: a Dataset for Sequential Sentence Classification in Medical Abstracts, is a real threat in the document setting. We do not expect to beat it. That experiment only tests whether the estimated synchronization length predicts the context window at which a windowed relabeler stops improving.
Proposed Experiments
The main synthetic study draws targets from five families. The first is random automata as in the simulated environments of Learning a Random DFA from Uniform Strings and State Information; we do not reuse its reported error rate of $O(n^{-0.3})$ because it uses state observations. The second is definite automata, where $\rho(L)$ is exactly zero beyond a known $L$. The third is the slowly synchronizing families characterized in Slowly synchronizing automata and digraphs, whose long reset thresholds should produce slow decay. The fourth is windowed hidden-subset parities. The fifth is automata with planted permutation components. Sizes range from 10 to 200 states over binary and ternary alphabets.
For each target, we estimate $\rho(L)$ by simulation. We then train all methods under Massart noise with $\eta \in \{0, 0.1, 0.2, 0.3, 0.4\}$, using two adversaries. One flips majority labels at the maximum rate inside each suffix class. The other places noise on the strings where the minority fraction is largest.
The decisive check is whether clean-label error tracks $2(1-\eta)\rho(L)/(1-2\eta)$ across families. In particular, error must stay well below $\eta$ on the definite and fast-synchronizing families and stay near chance on permutation components. A second check uses the windowed parities. Query budget should grow as $2^k$ before error drops, and plotting error against budget on a log scale should give the predicted slope.
The Tomita study partitions the seven grammars by whether their minimal automaton synchronizes. Grammars with a dead state, such as Tomita 1, 2, and 4, synchronize; the counting grammars 5 and 6 are permutation automata. We predict the crossover described above.
The secondary real-data study uses ETD500 from ETDPC: A Multimodality Framework for Classifying Pages in Electronic Theses and Dissertations. Its multimodal page classifier reports 85% accuracy and macro F1 of 0.83 over 13 page types, against 9% for LayoutLMv2 and 28% for DocFormer. That paper also documents the low-resource, easily confused minority classes, front matter such as tables of contents and lists of figures. These are the analogue of the non-research material (mastheads, committee lists, memorials) that clutters scholarly indexes.
We treat the gold sequence of page types in each thesis as the output of a document-structure automaton and estimate its collision profile from training theses. We then train a cheap per-page classifier and relabel its outputs with windowed suffix tables of increasing width. The test is whether accuracy, especially minority-class F1, saturates at the width the profile predicts. We also report the CRF, and we do not claim to beat ETDPC's 85% with a far smaller model. A mismatch between the predicted and observed saturation width would show that the synchronization profile is not a useful design guide outside synthetic settings. That result would narrow the paper to its theoretical and synthetic contributions.
References
- Open Problem: Meeting Times for Learning Random Automata
- Learning a Random DFA from Uniform Strings and State Information
- Near-Optimal Statistical Query Hardness of Learning Halfspaces with Massart Noise
- A General Characterization of the Statistical Query Complexity
- On the Interplay Between Babai and Černý's Conjectures
- Learning minimal automata with recurrent neural networks
- Automata Learning and Identification of the Support of Language Models
- PubMed 200k RCT: a Dataset for Sequential Sentence Classification in Medical Abstracts
- Slowly Synchronizing Automata and Digraphs
- ETDPC: A Multimodality Framework for Classifying Pages in Electronic Theses and Dissertations