arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.07599cs.LG
收藏

理性转导器

Rational Transductors

Google Research(谷歌研究院)

Mehryar Mohri

AI总结:

理性转导器通过引入双流架构和理性注入方案,扩展转换器的表达能力以捕捉正则语言和$\NC^1$-完全问题,实现鲁棒的长度泛化。

摘要:

标准转换器在语义建模方面表现出色,但在刚性顺序逻辑和状态跟踪方面存在困难。理论研究表明,自注意力机制在硬注意力下仅能支持$\AC^0$复杂度类,在软注意力下仅能支持$\TC^0$复杂度类,这些复杂度类往往无法在顺序问题上实现鲁棒的长度泛化,而没有中间的思考链。在本工作中,我们引入了理性转导器,这是一种双流架构,通过从加权有限自动机(WFA)中衍生出的矩阵值递归来增强转换器。通过将理性状态信息注入注意力机制,我们的框架严格扩展了转换器的表达能力,以捕捉所有正则语言、$\NC^1$-完全问题(如布尔公式评估)以及基本分离如奇偶性和模计数。同时保持$O(L + \log T)$的并行时间复杂度。我们基于严谨的学习理论:我们证明了随机理性特征是顺序依赖性的通用基,这证明了我们的初始化策略,同时建立了可微理性特征制度是关闭表示紧凑性差距所必需的。理论分析和实证结果表明,理性转导器解决了“正则间隙”,在标准转换器无法处理的算法任务上实现了鲁棒的长度泛化,而无需传统RNNs的顺序计算瓶颈。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑