本文提出了一种确定基于哈希的近似模型计数算法$\textsf{ApproxMC}$内部参数的新方法。在该问题中,所选参数值必须确保$\textsf{ApproxMC}$满足概率近似正确(Probably Approximately Correct,PAC)特性,同时还要尽可能提升算法效率。现有解决该问题的方法依赖启发式策略;本文通过将该问题形式化为一个优化问题来求解,该优化问题源自将$\textsf{ApproxMC}$的正确性证明推广到任意参数值的过程。\n 我们的方法将算法的可靠性与最优性的考量分离,使得我们无需重复进行逐例论证即可解决前者,同时为后者建立了清晰的框架。此外,经过约简后,得到的优化问题呈现出极其简单的形式,既可以使用基础搜索算法求解,也能为理解参数值如何影响算法性能提供洞见。实验结果表明,我们的优化参数根据容错度的不同,将最新版$\textsf{ApproxMC}$的运行时性能提升了1.6到2.4倍。
英文摘要:
This paper proposes a novel approach to determining the internal parameters of the hashing-based approximate model counting algorithm $\mathsf{ApproxMC}$. In this problem, the chosen parameter values must ensure that $\mathsf{ApproxMC}$ is Probably Approximately Correct (PAC), while also making it as efficient as possible. The existing approach to this problem relies on heuristics; in this paper, we solve this problem by formulating it as an optimization problem that arises from generalizing $\mathsf{ApproxMC}$'s correctness proof to arbitrary parameter values.
Our approach separates the concerns of algorithm soundness and optimality, allowing us to address the former without the need for repetitive case-by-case argumentation, while establishing a clear framework for the latter. Furthermore, after reduction, the resulting optimization problem takes on an exceptionally simple form, enabling the use of a basic search algorithm and providing insight into how parameter values affect algorithm performance. Experimental results demonstrate that our optimized parameters improve the runtime performance of the latest $\mathsf{ApproxMC}$ by a factor of 1.6 to 2.4, depending on the error tolerance.
Chennai Mathematical Institute, India IAI, TCG CREST, Kolkata, India(钦奈数学研究所,印度 IAI,TCG CREST,科利尔,印度);Georgia Institute of Technology, USA University of Toronto, Canada(佐治亚理工学院,美国 蒙特利尔大学,加拿大)
Key Laboratory of Symbolic Computation and Knowledge Engineering of Ministry of Education, Jilin University(符号计算与知识工程教育部重点实验室,吉林大学);School of Computing, National University of Singapore(新加坡国立大学计算学院)