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

主动学习的正式运行时间分析——在Agda中用合子论方法

Formalized Run-Time Analysis of Active Learning -- Coalgebraically in Agda

Friedrich-Alexander-Universität Erlangen-Nürnberg(弗里德里希·亚历山大·埃尔朗根-纽伦堡大学)

Thorsten Wißmann

AI总结:

本文在Agda中利用合子论方法,通过将学习算法视为广义自动机,形式化证明了主动学习算法的运行时间复杂度为O(log n)。

摘要:

自动机学习的目标是重建一个隐藏自动机的实现,只有教师可以访问该自动机。学习者可以通过向教师提出某些类型的查询来获得更多关于隐藏自动机的信息。此类学习算法的运行时间则以所需的查询次数来衡量,通常与隐藏自动机的状态数参数相关。如何在证明助手中证明此类学习算法的运行时间复杂度,如果我们没有隐藏自动机和状态数可用?在本文中,我们通过将学习算法本身视为广义自动机,更具体地说是合子,来解决这个问题。我们引入了正式且紧凑的定义,说明什么是学习者和教师,这使得在证明助手Agda中轻松证明不同类型学习游戏的上界和下界变得容易。作为运行示例,我们讨论了常见的猜数字游戏,其中教师会想出一个自然数,并通过'正确'、'太高'或'太低'来回答学习者的猜测。为了展示我们的框架,我们正式在Agda中证明了学习者对数字猜测次数的下界和上界均为O(log n),其中n是教师的秘密数字。

英文摘要:

The objective of automata learning is to reconstruct the implementation of a hidden automaton, to which only a teacher has access. The learner can ask certain kinds of queries to the teacher to gain more knowledge about the hidden automaton. The run-time of such a learning algorithm is then measured in the number of queries it takes until the hidden automaton is successfully reconstructed, which is usually parametric in the number of states of that hidden automaton. How can we prove such a run-time complexity of learning algorithms in a proof assistant if we do not have the hidden automaton and the number of states available? In the present paper, we solve this by considering learning algorithms themselves as generalized automata, more specifically as coalgebras. We introduce formal and yet compact definitions of what a learner and a teacher are, which make it easy to prove upper and lower bounds of different kinds of learning games in the proof assistant Agda. As a running example, we discuss the common number guessing game where a teacher thinks of a natural number and answers guesses by the learner with `correct', `too high', or `too low'. To demonstrate our framework, we formally prove in Agda that binary search finds the teacher's secret number $n$ within $\mathcal{O}(\log n)$ guesses and that no learning strategy can guarantee fewer than $\log_2(n)$ guesses. We apply our framework to automata learning to prove the following complexity bounds in Agda: (1) If the teacher does not provide counterexamples, then there is no learning algorithm that uses only polynomially many queries. (2) The $L^{\#}$-learning algorithm takes $\mathcal{O}(k\cdot n^2 + n\cdot \log(m))$ queries to learn a Mealy machine with $k$ input symbols, $n$ states, where $m$ is the maximum length of the teacher's counterexamples.

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

↑