arXiv:cs.LG· Mehryar Mohri·· 10 小时前
Rational Transductors:用加权有限自动机增强 Transformer 的序列推理架构
Rational Transductors
AI 导读
研究者提出 Rational Transductors,一种双流架构,通过来自加权有限自动机(WFA)的矩阵值递归增强 Transformer,并借助 Deep Rational Injection 将有理状态信息注入注意力机制。
正文
Abstract:Standard Transformers excel at semantic modeling but struggle with
rigid sequential logic and state tracking. Theoretical work
establishes that self-attention is limited to $\AC^0$ (under hard
attention) or $\TC^0$ (under soft attention), complexity classes
that often fail to support robust length generalization on
sequential problems without intermediate chain-of-thought
\citep{hahn2020theoretical, hao2022formal, merrill2022saturated}. In this
work, we introduce \emph{Rational Transductors}, a dual-stream
architecture that augments the Transformer with a matrix-valued
recurrence derived from Weighted Finite Automata (WFA). By
injecting rational state information into the attention mechanism
via a \emph{Deep Rational Injection} scheme, our framework strictly
generalizes the expressive power of Transformers to capture all
Regular Languages, $\NC^1$-complete languages (such as the word
problem of $S_5$), and fundamental separations like Parity and
Modular Counting, while preserving $O(\log T)$ parallel training
efficiency. We ground the architecture in a rigorous learning
theory: we prove that \emph{Random Rational Features} act as a
universal basis for sequential dependencies, justifying our
initialization strategy, while establishing that the
\emph{Differentiable Rational Feature} regime is necessary to close
the representational compactness gap. Theoretical analysis and
empirical results demonstrate that Rational Transductors solve the
``Regular Gap,'' enabling robust length generalization on algorithmic
tasks where standard Transformers fail, without the sequential
computational bottlenecks of traditional RNNs.
| Subjects: | Machine Learning (cs.LG) |
| Cite as: | arXiv:2602.07599 [cs.LG] |
| (or arXiv:2602.07599v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2602.07599 arXiv-issued DOI via DataCite |
Submission history
From: Mehryar Mohri [view email]
[v1]
Sat, 7 Feb 2026 16:01:10 UTC (113 KB)
[v2]
Wed, 14 Oct 2026 11:51:03 UTC (116 KB)
来源:arXiv:cs.LG · arxiv.org