CS Paper Radar

Correcting Deterministic Finite Automata for Didactic Feedback

Maurice Bornett Herwig, Norbert Hundeshagen

cs.FL ·submitted 2026-10-05 17:06 UTC · v1
published

Abstract

Motivated by educational applications, we study the problem of computing all corrections that transform a finite automaton into one recognizing a given regular language L. We show that for deterministic finite automata the set of all corrections can be finitely characterized as a regular tree language. The construction is based on a tree encoding of all deterministic finite automata recognizing L, which is extended to correction trees that make individual corrections and their induced edit-operations explicit. Leveraging the closure properties of regular tree languages, we introduce so-called filters for selecting corrections satisfying didactic constraints, enabling the derivation of individualized feedback from student submissions.

Comment
In Proceedings AFL 2026, arXiv:2608.23071
Journal ref
EPTCS 451, 2026, pp. 75-89
DOI
10.4204/EPTCS.451.6

Closest papers

Nearest neighbours by meaning across the whole index.

Proceedings 17th International Conference on Automata and Formal Languages

cs.FL cs.CC ·2026-08-24 ·Michal Hospodár, Galina Jirásková, Viktor Olejár, Juraj Šebej, György Vaszil
publishedhot direction similarity 0.59
Abstract

The 17th International Conference on Automata and Formal Languages (AFL 2026) was held in Košice, September 7-10, 2026. It was organized by the Faculty of Science, P. J. Šafárik University in Košice and the Mathematical Institute of the Slovak Academy of Sciences. This volume contains the texts of the three invited lectures and the 18 papers selected by the Program Committee from a total of 27 submissions. The accepted papers, submitted by authors from 14 countries, cover all important areas of automata and formal language theory and their applications such as grammars and acceptors for strings, trees, and graphs, algebraic theories and algorithms for automata and languages, decision problems, relations to complexity theory, picture description and analysis, and other fields.

0.53

Weighted Alternating Tree Automata

cs.FL ·2026-08-25 ·Olle Torstensson
published similarity 0.55
Abstract · In Proceedings AFL 2026, arXiv:2608.23071

We define weighted alternating tree automata — a generalization of weighted (non-alternating) tree automata, (unweighted) alternating tree automata, and weighted alternating (string) automata — over commutative semirings. We study their expressive power, and show that it is equivalent to that of weighted tree automata exactly when the employed semiring is locally finite. In our main result, we characterize the class of weighted tree languages defined by weighted alternating tree automata as the closure of the recognizable weighted tree languages under inverse tree homomorphisms.

0.46

Learning of Tree Automata applied to Neural Language Acceptors

cs.CL cs.AI ·2026-11-06 ·Juan Pedro da Silva, Sergio Yovine
similarity 0.55
Abstract · Presented as WIP paper at ICGI 2026, Delft, the Netherlands, October 2026

We extract visibly pushdown grammars (VPGs) from neural language models in a fully black-box setting. Our work builds on the VPL* framework, which learns VPGs from recurrent networks by exploiting access to the target's internal state. First, we replace the white-box equivalence oracle with PAC sampling over trees. The resulting algorithm applies unchanged to transformer language models and, more generally, to any acceptor exposing only binary decisions. Second, we further observe that the original framework only ever queries the target on well-formed sequences that can be accepted by the most permissive VPG (called BParse) with the target's ranked alphabet. That is, VPL* is blind to the target's behavior outside BParse. Thus, we propose to sample trees directly instead of sequences and call the target with all the resulting sequences in order to provide an error estimate of how far the target deviates from being a VPG. Last but not least, we develop a learner that captures a tree automaton describing discovered behaviors of the target outside BParse, which results in a larger learnable space. We evaluate the approach on several cases, including transformers trained with Dyck grammars and synthetic targets designed to be outside BParse.

0.28

Testing and Learning Symbolic Finite State Machines

cs.FL cs.SE ·2026-09-22 ·Wen-ling Huang, Jan Peleska
theory similarity 0.54
Abstract

Symbolic finite state machines (SFSMs) describe input/output behaviour using guards and output assignments with possibly infinite data domains. We study deterministic and completely specified SFSMs whose guards and output assignments depend only on the current input. We define finite representative input sets that contain witnesses for relevant guard overlaps and separating witnesses for output assignments that differ on those overlaps. Our main theorem shows that language equivalence of the finite instantiations implies language equivalence over the full input domain. This result transfers complete testing methods for deterministic finite state machines (DFSMs) to SFSMs, provided finite sets of admissible guards and output assignments and an upper bound on the number of distinguishable reachable states are known. Under these assumptions, a DFSM learner with complete testing can learn a finite instantiation, which is then lifted to an equivalent SFSM. We establish a bound on the size of representative input sets and give an SMT construction whose correctness and termination hold under stated solver assumptions.

0.18

Recovering Reliable Supervision via Critique-Guided On-Policy Distillation

cs.LG cs.AI ·2026-10-14 ·Kaixiang Zhao, Tianrun Yu, Shangzhe Li, Yuxiao Yang, Amanda Hughes +2 more
code/datacommunity pick similarity 0.53
Abstract · 21 pages. Code: https://github.com/kzhao5/CriticOPD

On-policy distillation (OPD) trains a student model on its own rollouts with token-level supervision from a teacher, assuming that the teacher can reach a correct answer from any prefix the student writes. We call this property the recoverability of the teacher and show it fails on incorrect rollouts: the teacher follows student errors, although it recognizes them. We propose CriticOPD, using error recognition to restore recoverability. The teacher critiques an incorrect rollout, allowing the student to rewrite its solution following the error. The resulting output, including the critique as privileged information, is scored by the teacher while the student uses the revision without the critique for training. On two Qwen3 students and six mathematical reasoning benchmarks, CriticOPD improves OPD, with the largest gains on competition problems.

0.57

Constraint Tree Exploration for Learning from Language Feedback

cs.AI cs.CL ·2026-10-06 ·Shaoang Li, Daniel R. Jiang, Jian Li
theory similarity 0.53
Abstract

Natural-language feedback in interactive learning often explains why an action failed by pointing to violated requirements. Misinterpreting this feedback can lead an agent to rule out valid solutions. We study this setting by modeling user intent as latent constraints over an action space and formulating learning from language feedback as pure exploration over feasible regions. We introduce TRACE, an algorithm that organizes candidate constraints in a tree and tests each proposed refinement by generating actions that satisfy it. TRACE commits to the refinement only if the resulting feedback does not contradict it over repeated tests. We distinguish two ways of using the same feedback: (i) falsification, which detects contradictions to the constraint set currently being tested, and (ii) identification, which may additionally name a violated constraint. We prove high-probability coverage bounds with dependence on the candidate class size $H$ for TRACE-Falsification. With reliable identification, TRACE-Identification can replace this dependence by $K/p_{\mathrm{ext}}$, where $K$ is the number of latent constraints and $p_{\mathrm{ext}}$ lower-bounds the probability of extracting a missing true constraint from informative feedback. We evaluate TRACE across six language-feedback tasks. On RecMovie, TRACE-Identification achieves 73% and 86% final-output success under caps of 20 and 60 evaluated outputs, compared with at most 42% and 48% for the evaluated prompting baselines given the same feedback and output caps. Controlled identity-corruption experiments further show greater robustness than direct accumulation when the falsification detector remains reliable.

0.24

Label Cuts in Layered Automata: Short Explanations for the Regular Constraint

cs.FL ·2026-09-09 ·XinYi Zhu, Zonglin Yang
publishedbenchmarktheory similarity 0.52
Abstract · Accepted at PRICAI 2026. 13 pages

Lazy clause generation solvers learn from propagation explanations; the form of a Regular explanation therefore determines which clauses reach the learning engine. Standard decompositions introduce variables for automaton states and derive reasons from local table constraints. BDD and MDD propagators instead select individual diagram edges. We study the direct LCG explanation language for Regular: disequality literals of the form $X_i\neq v$. Here, one literal removes every automaton transition with the same position/value label, so an explanation is not an ordinary edge cut. We prove that explanations for value deletions are exactly label $s$--$t$ cuts in the layered DFA unfolding. This characterization establishes NP-completeness for minimum-weight explanations, gives a polynomial algorithm for inclusion-minimal explanations, and leads to an exact $O((U+n)4^{|Q|})$ dynamic program for small automata. A C++ benchmark compares label-cut explanations with Table-LCG and MDD-edge baselines on 250 generated instances. On average, minimal label cuts reduce projected explanation size from 22.2 to 5.5 literals and run in tens of microseconds. Minimal label cuts are therefore the practical default; the exact algorithm provides an oracle for small automata.

0.46

Automata for MSO over Infinite Trees with Quantification over Borel Sets of Branches

cs.FL cs.LO ·2026-11-06 ·Mikołaj Bojańczyk, Antonio Casares, Sven Manthe, Paweł Parys
top venuetheory similarity 0.52
Abstract

Rabin's Tree Theorem says that the MSO theory of the infinite binary tree $2^*$ is decidable. Shelah showed that MSO logic becomes undecidable if this tree is extended to $2^{\le ω}$, i.e. by allowing quantification over sets of infinite branches. A longstanding open problem is whether the decidability can be recovered in $2^{\le ω}$ by restricting set quantification to Borel sets. We make some progress in this direction, by identifying a suitable automaton model, and showing that most of the automata-theoretic approach to Rabin's Theorem can be extended to the new framework. The only missing part is a conjecture about finite-memory determinacy in certain games. This paper states and explores the conjecture. We prove it in some restricted cases, and give lower bounds on the memory required in those games.

0.70