PLM4NDV: Minimizing Data Access for Number of Distinct Values Estimation with Pre-trained Language Models
Not on the map. Why?
Abstract (arXiv)
Number of Distinct Values (NDV) estimation of a multiset/column is a basis for many data management tasks, especially within databases. Despite decades of research, most existing methods require either a significant amount of samples through uniform random sampling or access to the entire column to produce estimates, leading to substantial data access costs and potentially ineffective estimations in scenarios with limited data access. In this paper, we propose leveraging semantic information, i.e., schema, to address these challenges. The schema contains rich semantic information that can benefit the NDV estimation. To this end, we propose PLM4NDV, a learned method incorporating Pre-trained Language Models (PLMs) to extract semantic schema information for NDV estimation. Specifically, PLM4NDV leverages the semantics of the target column and the corresponding table to gain a comprehensive understanding of the column's meaning. By using the semantics, PLM4NDV reduces data access costs, provides accurate NDV estimation, and can even operate effectively without any data access. Extensive experiments on a large-scale real-world dataset demonstrate the superiority of PLM4NDV over baseline methods. Our code is available at https://github.com/bytedance/plm4ndv.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 92 references that are in the map. First posted on arXiv 1 Apr 2025.
Builds on
28 of 92 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2024Qwen2 Technical Reportcited by 2,076
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
16 more
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2020Deep Entity Matching with Pre-Trained Language Modelscited by 143
- 2021GitTables: A Large-Scale Corpus of Relational Tablescited by 44
- 2021Annotating Columns with Pre-trained Language Modelscited by 37
- 2023D-Bot: Database Diagnosis System using Large Language Modelscited by 28
- 2023Interleaving Pre-Trained Language Models and Large Language Models for Zero-Shot NL2SQL Generationcited by 24
- 2023TabLib: A Dataset of 627M Tables with Contextcited by 23
- 2023ALECE: An Attention-based Learned Cardinality Estimator for SPJ Queries on Dynamic Workloads (Extended)cited by 13
- 2023FormaT5: Abstention and Examples for Conditional Table Formatting with Natural Languagecited by 7
- 2017Approximate Profile Maximum Likelihoodcited by 4
- 2019Unified Sample-Optimal Property Estimation in Near-Linear Timecited by 4
- 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Valuescited by 4
- 2019Cardinality Estimation in a Virtualized Network Device Using Online Machine Learningcited by 2
- 2023UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Countingcited by 1
- 2025AdaNDV: Adaptive Number of Distinct Value Estimation via Learning to Select and Fuse Estimatorscited by 1
Built on by
Not cited yet.