arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.12433cs.DBcs.CR
收藏

动态学习索引上的算法复杂度攻击

Algorithmic Complexity Attacks on Dynamic Learned Indexes

Rui Yang, Evgenios M. Kornaropoulos, Yue Cheng

AI总结:

本研究首次系统性地提出针对动态学习索引ALEX的算法复杂度攻击,分为空间和时间两类,利用其设计缺陷实现内存耗尽或性能下降高达1641倍。

摘要:

学习索引结构(LIS)将排序索引视为一个学习数据分布的模型,该模型以数据元素键为输入,并输出该键的预测位置。原始的LIS只能处理查找操作,不支持更新,这使得它难以用于典型的工作负载。为了解决这一限制,近期的研究聚焦于设计高效的动态学习索引。ALEX作为开创性的动态学习索引结构,通过整合一系列设计选择来实现动态性,包括自适应键空间划分、动态模型重训练,以及优先考虑读写性能的复杂工程和策略。虽然这些设计选择提供了改进的平均情况性能,但对灵活性和性能的强调增加了攻击面,因为允许对抗性行为在 worst-case 场景中最大化 ALEX 的内存空间和时间复杂度。在这项工作中,我们首次系统性地研究了针对 ALEX worst-case 场景的算法复杂度攻击(ACAs)。我们引入了新的 ACAs,分为两类:空间 ACAs 和时间 ACAs,分别针对内存空间和时间复杂度。首先,我们对数据节点的空间 ACA 利用了 ALEX 的间隙数组布局,并使用多选择背包(MCK)生成最优的对抗性插入计划,以在数据节点级别最大化内存消耗。其次,我们对内部节点的空间 ACA 利用了 ALEX 的灾难性成本缓解机制,仅需几百次对抗性插入即可导致内存不足错误。第三,我们的时间 ACA 生成病理性插入,以增加实际键分布与数据节点线性模型之间的差异,与在合法工作负载下运行的 ALEX 相比,运行时性能恶化高达 1,641 倍。

英文摘要:

Learned Index Structures (LIS) view a sorted index as a model that learns the data distribution, takes a data element key as input, and outputs the predicted position of the key. The original LIS can only handle lookup operations with no support for updates, rendering it impractical to use for typical workloads. To address this limitation, recent studies have focused on designing efficient dynamic learned indexes. ALEX, as the pioneering dynamic learned index structures, enables dynamism by incorporating a series of design choices, including adaptive key space partitioning, dynamic model retraining, and sophisticated engineering and policies that prioritize read/write performance. While these design choices offer improved average-case performance, the emphasis on flexibility and performance increases the attack surface by allowing adversarial behaviors that maximize ALEX's memory space and time complexity in worst-case scenarios. In this work, we present the first systematic investigation of algorithmic complexity attacks (ACAs) targeting the worst-case scenarios of ALEX. We introduce new ACAs that fall into two categories, space ACAs and time ACAs, which target the memory space and time complexity, respectively. First, our space ACA on data nodes exploits ALEX's gapped array layout and uses Multiple-Choice Knapsack (MCK) to generate an optimal adversarial insertion plan for maximizing the memory consumption at the data node level. Second, our space ACA on internal nodes exploits ALEX's catastrophic cost mitigation mechanism, causing an out-of-memory error with only a few hundred adversarial insertions. Third, our time ACA generates pathological insertions to increase the disparity between the actual key distribution and the linear models of data nodes, deteriorating the runtime performance by up to 1,641X compared to ALEX operating under legitimate workloads.

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

↑