arXiv:2608.03439cs.DScs.LG2026-08

提出高效算法检测序列中模式出现异常,利用验证与测试的不对称性实现快速判断。

Quality Control Algorithms for Pattern Counting

论文配图:Quality Control Algorithms for Pattern Counting
图 1 · 摘自论文原文
  • 利用质量控制问题的非对称性,仅需多项式时间即可完成模式检测
  • 在长度为n的序列中,对长度k的模式计数只需poly(k)查询,无需指数级开销
  • 适用于字母表有限或实值序列,适合随机性评估场景

近期工作引入了质量控制问题,旨在判断输入是否真正随机:接受来自指定分布的典型输入,拒绝统计量明显偏离分布基线的输入。这反映了实际中用特定统计量作为随机性质量代理的做法。然而现有算法未充分利用质量控制问题的非对称性——只需最坏情况下的可靠性,平均情况下只要求完整性。本文研究序列上的质量控制问题,目标是区分独立同分布字符序列与某些模式作为子序列出现频率过高等异常序列。考虑有限字母表下的模式计数问题和实值序列中的排列模式计数问题。已知在最坏情况下,近似计数长度为k的(排列)模式需要指数级依赖于k的查询次数。本文证明,通过利用定义中的非对称性,可设计出运行时间为poly(k)的算法。同时,我们还证明任何在自然分布下的质量控制算法均需超线性查询次数关于k。

原文摘要 · Abstract (English)

In recent work, Marcussen, Rubinfeld, and Sudan introduced the notion of quality control problems, which aim to capture the task of determining if a given input is truly random. Formally, their goal is to accept typical inputs from the specified distribution while rejecting every input whose value of a specified statistic is far from the distributional baseline. This captures the empirical practice of using specified statistics as a proxy for the quality of randomness. Empirical algorithms, however, have not exploited the asymmetry in the definition of quality control problems, which require soundness guarantees in the worst-case while only seeking average-case completeness. Their work abstracted a problem definition emphasizing this asymmetry and used it to give efficient quality control algorithms for assessing the randomness of graphs. In this work, we introduce and study quality control problems over sequences, where the goal is to distinguish a sequence of i.i.d. characters from sequences where some specified pattern appears too often (or too infrequently) as a subsequence. We consider this problem in both the finite-alphabet setting and for real-valued sequences. We refer to the former setting as the pattern counting problem. In the latter case, the natural notion of a pattern is to consider the relative ordering of the characters in the subsequence, and we refer to this as the permutation pattern counting problem. Algorithms to approximately count (permutation) patterns of length $k$ in a worst-case sequence of length $n$ can provably require exponential in $k$ queries into the sequence. In contrast, we show that by taking advantage of the asymmetry in the definition of quality control, we give algorithms that run in poly$(k)$ time to solve these problems. We also prove that any quality control algorithm (over some natural distributions) requires superlinear queries in $k$.

模式检测随机性验证算法复杂度

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。