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

基于分布预测的二分查找

Binary Search with Distributional Predictions

Johns Hopkins University(约翰斯·霍普金斯大学);UC Merced(加州大学默塞德分校);University of Texas at Dallas(德克萨斯大学达拉斯分校);Carnegie Mellon University(卡内基梅隆大学);Google Research(谷歌研究院)

Michael Dinitz, Sungjin Im, Thomas Lavastida, Benjamin Moseley, Aidin Niaparast, Sergei Vassilvitskii

AI总结:

针对传统预测算法未利用现代机器学习生成的分布性预测的问题,提出基于分布预测的二分查找算法,其查询复杂度为$O(H(p) + \text{log} η)$,首次给出最优二叉查找树的分布鲁棒算法,且下界证明其最优性并通过实验验证。

摘要:

结合传统最坏情况算法与现代机器学习的(机器学习)预测算法是一个强大的框架。然而,该领域绝大多数研究假设预测本身是非概率性的,即使它由某些随机过程(如机器学习系统)生成。这与现代机器学习(尤其是自然生成分布的现代神经网络)契合度低。我们开创了分布预测算法的研究,其中预测本身是一个分布。我们聚焦于最简单却基础的场景:二分查找(或排序数组搜索)。该场景有基于点预测的最简单算法之一,但预测为分布时会怎样?我们发现这是一个更丰富的场景:存在简单分布,使用基于任何单一预测的经典预测算法效果很差。基于此,我们的主要结果是提出一种查询复杂度为$O(H(p) + \text{log} η)$的算法,其中$H(p)$是真实分布$p$的熵,$η$是真实分布$p$与预测分布$\tilde{p}$之间的地球移动距离。这也为给定目标键分布的最优二叉查找树计算这一经典问题,首次提供了分布鲁棒算法。我们还补充了下界证明,表明该查询复杂度本质上是最优的(常数因子内),并通过实验验证了算法的实际有效性。

英文摘要:

Algorithms with (machine-learned) predictions is a powerful framework for combining traditional worst-case algorithms with modern machine learning. However, the vast majority of work in this space assumes that the prediction itself is non-probabilistic, even if it is generated by some stochastic process (such as a machine learning system). This is a poor fit for modern ML, particularly modern neural networks, which naturally generate a distribution. We initiate the study of algorithms with distributional predictions, where the prediction itself is a distribution. We focus on one of the simplest yet fundamental settings: binary search (or searching a sorted array). This setting has one of the simplest algorithms with a point prediction, but what happens if the prediction is a distribution? We show that this is a richer setting: there are simple distributions where using the classical prediction-based algorithm with any single prediction does poorly. Motivated by this, as our main result, we give an algorithm with query complexity $O(H(p) + \log η)$, where $H(p)$ is the entropy of the true distribution $p$ and $η$ is the earth mover's distance between $p$ and the predicted distribution $\hat p$. This also yields the first distributionally-robust algorithm for the classical problem of computing an optimal binary search tree given a distribution over target keys. We complement this with a lower bound showing that this query complexity is essentially optimal (up to constants), and experiments validating the practical usefulness of our algorithm.

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

↑