Lune

SIGMOD2024顶会

PACE: Poisoning Attacks on Learned Cardinality Estimation

Jintao Zhang, Chao Zhang, Guoliang Li, Chengliang Chai

摘要

Cardinality estimation (CE) plays a crucial role in database optimizer. We have witnessed the emergence of numerous learned CE models recently which can outperform traditional methods such as histograms and samplings. However, learned models also bring many security risks. For example, a query-driven learned CE model learns a query-to-cardinality mapping based on the historical workload. Such a learned model could be attacked by poisoning queries, which are crafted by malicious attackers and woven into the historical workload, leading to performance degradation of CE.

In this paper, we explore the potential security risks in learned CE and study a new problem of poisoning attacks on learned CE in a black-box setting. There are three challenges. First, the interior details of the CE model are hidden in the black-box setting, making it difficult to attack the model. Second, the attacked CE model's parameters will be updated with the poisoning queries, i.e., a variable varying with the optimization variable, so the problem cannot be modeled as a univariate optimization problem and thus is hard to solve by an efficient algorithm. Third, to make an imperceptible attack, it requires to generate poisoning queries that follow a similar distribution to historical workload. We propose a poisoning attack system, PACE, to address these challenges. To tackle the first challenge, we propose a method of speculating and training a surrogate model, which transforms the black-box attack into a near-white-box attack. To address the second challenge, we model the poisoning problem as a bivariate optimization problem, and design an effective and efficient algorithm to solve it. To overcome the third challenge, we propose an adversarial approach to train a poisoning query generator alongside an anomaly detector, ensuring that the poisoning queries follow similar distribution to historical workload. Experiments show that PACE reduces the accuracy of the learned CE models by 178×, leading to a 10× decrease in the end-to-end performance of the target database.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality Estimation 引用了 Learned Cardinality Estimation: A Design Space Exploration and A Comparative Evaluation
  • AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality Estimation 引用了 Are We Ready For Learned Cardinality Estimation?
  • AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality Estimation 引用了 Deep Unsupervised Cardinality Estimation
  • AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality Estimation 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality Estimation 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Learned Cardinality Estimation: A Design Space Exploration and A Comparative Evaluation 引用了 Are We Ready For Learned Cardinality Estimation?
  • Learned Cardinality Estimation: A Design Space Exploration and A Comparative Evaluation 引用了 Deep Unsupervised Cardinality Estimation
  • Learned Cardinality Estimation: A Design Space Exploration and A Comparative Evaluation 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Graph Transformers for Query Plan Representation: Potentials and Challenges 引用了 Deep Unsupervised Cardinality Estimation
  • Graph Transformers for Query Plan Representation: Potentials and Challenges 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Are We Ready For Learned Cardinality Estimation? 引用了 Deep Unsupervised Cardinality Estimation
  • Are We Ready For Learned Cardinality Estimation? 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • SAGE: A Framework of Precise Retrieval for RAG 引用了 AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality Estimation
  • SAGE: A Framework of Precise Retrieval for RAG 引用了 Learned Cardinality Estimation: A Design Space Exploration and A Comparative Evaluation
  • Understanding Robustness Issues of Updatable Learned Indexes: [Experiments & Analysis] 引用了 Are We Ready For Learned Cardinality Estimation?
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 Are We Ready For Learned Cardinality Estimation?
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • NeuroCard: One Cardinality Estimator for All Tables 引用了 Deep Unsupervised Cardinality Estimation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality EstimationJintao Zhang, Chao Zhang, Guoliang Li, Chengliang ChaiICDE 2023 · 13 次引用
  2. SAGE: A Framework of Precise Retrieval for RAGJintao Zhang, Guoliang Li, Jinyang SuICDE 2025 · 9 次引用
  3. Understanding Robustness Issues of Updatable Learned Indexes: [Experiments & Analysis]Yuanhui Luo, Minhui Xie, Yiheng Tong, Shichao Jiang 等SIGMOD 2026 · 1 次引用
  4. VisPoison: An Effective Backdoor Attack Framework for Tabular Data Visualization ModelsShuaimin Li, Chen Jason Zhang, Xuanang Chen, Anni Peng 等ICDE 2026
  5. Graph Transformers for Query Plan Representation: Potentials and ChallengesChenghao Lyu, Guillaume Lachaud, Gabriel Lozano, Yanlei DiaoVLDB 2025

它引用的 Paper16

  1. Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu 等VLDB 2020 · 206 次引用
  2. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu 等VLDB 2022 · 169 次引用
  3. Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang 等VLDB 2021 · 156 次引用
  4. NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang 等VLDB 2021 · 138 次引用
  5. Learned Cardinality Estimation: A Design Space Exploration and A Comparative EvaluationJi Sun, Jintao Zhang, Zhaoyan Sun, Guoliang Li 等VLDB 2022 · 90 次引用

相关 Paper

  1. Warper: Efficiently Adapting Learned Cardinality Estimators to Data and Workload DriftsBeibin Li, Yao Lu, Srikanth KandulaSIGMOD 2022 · 29 次引用
  2. Learned Cardinality Estimation: An In-depth StudyKyoungmin Kim, Jisung Jung, In Seo, Wook-Shin Han 等SIGMOD 2022 · 51 次引用
  3. Prediction Intervals for Learned Cardinality Estimation: An Experimental EvaluationSaravanan Thirumuruganathan, Suraj Shetiya, Nick Koudas, Gautam DasICDE 2022 · 7 次引用
  4. The Price of Tailoring the Index to Your Data: Poisoning Attacks on Learned Index StructuresEvgenios M. Kornaropoulos, Silei Ren, Roberto TamassiaSIGMOD 2022 · 13 次引用
  5. Data-Agnostic Cardinality Learning from Imperfect WorkloadsPeizhi Wu, Rong Kang, Tieying Zhang, Jianjun Chen 等VLDB 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖