The Price of Tailoring the Index to Your Data: Poisoning Attacks on Learned Index Structures

The concept of learned index structures relies on the idea that the input-output functionality of a database index can be viewed as a prediction task and, thus, be implemented using a machine learning model instead of traditional algorithmic techniques. This novel angle for a decades-old problem has inspired numerous exciting results in the intersection of machine learning and data structures. However, the main advantage of learned index structures, i.e., the ability to adjust to the data at hand via the underlying ML-model, can become a disadvantage from a security perspective as it could be exploited. In this work, we present the first study of poisoning attacks on learned index structures. The required poisoning approach is different from all previous works since the model under attack is trained on a cumulative distribution function (CDF) and, thus, every injection on the training set has a cascading impact on multiple data values. We formulate the first poisoning attacks on linear regression models trained on the CDF, which is a basic building block of the proposed learned index structures. We generalize our poisoning techniques to attack a more advanced two-stage design of learned index structures called recursive model index (RMI), which has been shown to outperform traditional B-Trees. We evaluate our attacks on real-world and synthetic datasets under a wide variety of parameterizations of the model and show that the error of the RMI increases up to 300× and the error of its second-stage models increases up to 3000×.

READ FULL TEXT
research
07/23/2022

Testing the Robustness of Learned Index Structures

While early empirical evidence has supported the case for learned index ...
research
11/29/2019

SOSD: A Benchmark for Learned Indexes

A groundswell of recent work has focused on improving data management sy...
research
03/01/2021

CARMI: A Cache-Aware Learned Index with a Cost-based Construction Algorithm

Learned indexes, which use machine learning models to replace traditiona...
research
06/23/2020

Benchmarking Learned Indexes

Recent advancements in learned index structures propose replacing existi...
research
12/04/2017

The Case for Learned Index Structures

Indexes are models: a B-Tree-Index can be seen as a model to map a key t...
research
11/16/2018

The Potential of Learned Index Structures for Index Compression

Inverted indexes are vital in providing fast key-word-based search. For ...
research
10/21/2021

Multi-stable design of triangulated origami structures on cones of revolution

It is well-known that the Kresling pattern of congruent triangles can be...

Please sign up or login with your details

Forgot password? Click here to reset