用可学习逻辑门实现交替有限自动机的精确模拟与高效学习
Logic-Gated Time-Shared Feedforward Networks for Alternating Finite Automata: Exact Simulation and Learnability

- 通过可学习状态偏置构建可微逻辑门,统一处理存在与全称聚合
- 仅用n个神经元即可精确表示需2^n状态的正则语言,实现指数级压缩
- 支持从二值标签中同时恢复自动机结构与逻辑语义,适合逻辑推理任务
我们提出一种形式化且可构造的框架,用于使用逻辑门控制的时间共享前馈网络(LG-TS-FFN)模拟交替有限自动机(AFAs)。与以往仅能处理非确定有限自动机(NFAs)和存在性可达性的神经自动机不同,本架构引入可学习的状态依赖偏置,作为可微逻辑门,实现共享参数线性递归中的存在性“或”与全称“与”聚合。我们证明该结构使网络计算能力等价于AFAs,继承其指数级紧凑性:仅用n个神经元即可表示需2^n状态的正则语言。严格证明了LG-TS-FFN的前向传播可精确模拟AFAs的可达性动态,包括瞬时ε-闭包。此外,我们展示了经验可学习性:通过逻辑门的连续松弛,网络可通过标准梯度下降从二值标签中同时恢复自动机拓扑与逻辑语义。大量实验表明,该模型能完美复现真实自动机,弥合了统计学习与紧凑、通用逻辑推理之间的鸿沟。
原文摘要 · Abstract (English)
We present a formal and constructive framework for simulating Alternating Finite Automata (AFAs) using Logic-Gated Time-Shared Feedforward Networks (LG-TS-FFNs). Unlike prior neural automata models limited to Nondeterministic Finite Automata (NFAs) and existential reachability, our architecture integrates learnable, state-dependent biases that function as differentiable logic gates, enabling the representation of both Existential \textsc{\textsc{OR}} and Universal \textsc{\textsc{AND}} aggregation within a shared-parameter linear recurrence. We prove that this architectural modification upgrades the network's computational class to be structurally isomorphic to AFAs, thereby inheriting their exponential succinctness: the network can represent regular languages requiring $2^n$ states in an NFA with only $n$ neurons. We rigorously establish that the forward pass of an LG-TS-FFN exactly simulates the reachability dynamics of an AFA, including instantaneous $\varepsilon$-closures. Furthermore, we demonstrate empirical learnability: a continuous relaxation of the logic gates allows the network to simultaneously recover the automaton's topology and logical semantics from binary labels via standard gradient descent. Extensive experiments confirm that our model achieves perfect recovery of ground-truth automata, bridging the gap between statistical learning and succinct, universal logical reasoning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。