arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.06045cs.LGcs.AI
收藏

使用查询和反例从 Transformer 中提取 Moore 机

Extracting Moore Machines from Transformers using Queries and Counterexamples

KU Leuven, Departement of Computer Science(卢森堡大学)

Rik Adriaensen, Jaron Maene

AI总结:

本文提出用查询与反例从训练于正则语言的 Transformer 中提取 Moore 机,以统一形式化比较其语言学习能力,并分析仅正例学习与序列准确率。

摘要:

在深度学习中,transformer 架构的流行推动了若干研究,探讨 transformer 能从数据中学习哪些形式语言。然而,由于方法差异,现有结果仍难以比较。为解决这一问题,我们利用查询和反例,将有限状态自动机构造为在正则语言上训练的 transformer 的高层抽象。具体而言,我们提取 Moore 机,因为文献中使用的许多训练任务都可映射到这类机器。我们通过详细研究仅正例学习和序列准确率度量,证明了该方法的实用性。

英文摘要:

Fuelled by the popularity of the transformer architecture in deep learning, several works have investigated what formal languages a transformer can learn from data. Nonetheless, existing results remain hard to compare due to methodological differences. To address this, we construct finite state automata as high-level abstractions of transformers trained on regular languages using queries and counterexamples. Concretely, we extract Moore machines, as many training tasks used in literature can be mapped onto them. We demonstrate the usefulness of this approach by studying positive-only learning and the sequence accuracy measure in detail.

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

↑