通过基于记忆化的增量训练加速字符串键学习型索引结构
Accelerating String-Key Learned Index Structures via Memoization-based Incremental Training
AI总结:
针对字符串键学习型索引重训练开销大的性能瓶颈,提出算法-硬件协同设计的SIA系统,通过基于记忆化的增量训练复用未更新键的分解结果,并结合FPGA加速训练,在真实基准上实现了显著的吞吐量提升。
摘要:
学习型索引利用机器学习模型学习键与其在键值索引中对应位置之间的映射关系,这类索引将映射信息用作训练数据。为了纳入更新查询带来的变更,学习型索引需要频繁对模型进行重训练。为高效完成模型重训练,现有学习型索引系统通常采用线性代数中的QR分解技术来执行矩阵分解。这种分解方法在每次重训练时都会处理所有键-位置对,导致计算操作量随键的总数量及其长度线性增长。因此,重训练会造成严重的性能瓶颈,对于变长字符串键而言尤为突出,尽管重训练对于维持高预测精度、进而保障低查询服务延迟至关重要。\n 为解决这一性能问题,我们开发了一套算法-硬件协同设计的字符串键学习型索引系统,命名为SIA。在设计SIA的过程中,我们利用了基于矩阵分解的训练方法的一项独特算法特性。基于该特性,我们提出了一种基于记忆化的增量训练方案,该方案仅需对更新后的键进行计算,而之前计算得到的未更新键的分解结果可以被复用。我们进一步对SIA进行优化,将部分训练过程卸载到FPGA加速器上,这不仅可以释放CPU资源用于索引查询服务(即推理),还能加快训练本身的速度。我们的评估结果显示,与ALEX、LIPP和SIndex这些最先进的学习型索引系统相比,经SIA加速的学习型索引在YCSB和Twitter缓存轨迹这两个真实基准测试套件上的吞吐量分别提升了2.6倍和3.4倍。
英文摘要:
Learned indexes use machine learning models to learn the mappings between keys and their corresponding positions in key-value indexes. These indexes use the mapping information as training data. Learned indexes require frequent retrainings of their models to incorporate the changes introduced by update queries. To efficiently retrain the models, existing learned index systems often harness a linear algebraic QR factorization technique that performs matrix decomposition. This factorization approach processes all key-position pairs during each retraining, resulting in compute operations that grow linearly with the total number of keys and their lengths. Consequently, the retrainings create a severe performance bottleneck, especially for variable-length string keys, while the retrainings are crucial for maintaining high prediction accuracy and in turn, ensuring low query service latency. To address this performance problem, we develop an algorithm-hardware co-designed string-key learned index system, dubbed SIA. In designing SIA, we leverage a unique algorithmic property of the matrix decomposition-based training method. Exploiting the property, we develop a memoization-based incremental training scheme, which only requires computation over updated keys, while decomposition results of non-updated keys from previous computations can be reused. We further enhance SIA to offload a portion of this training process to an FPGA accelerator to not only relieve CPU resources for serving index queries (i.e., inference), but also accelerate the training itself. Our evaluation shows that compared to ALEX, LIPP, and SIndex, a state-of-the-art learned index systems, SIA-accelerated learned indexes offer 2.6x and 3.4x higher throughput on the two real-world benchmark suites, YCSB and Twitter cache trace, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。