FairHash: A Fair and Memory/Time-efficient Hashmap
Nima Shahbazi, Stavros Sintos, Abolfazl Asudeh
Abstract
Hashmap is a fundamental data structure in computer science. There has been extensive research on constructing hashmaps that minimize the number of collisions leading to efficient lookup query time. Recently, the data-dependant approaches, construct hashmaps tailored for a target data distribution that guarantee to uniformly distribute data across different buckets and hence minimize the collisions. Still, to the best of our knowledge, none of the existing technique guarantees group fairness among different groups of items stored in the hashmap. Therefore, in this paper, we introduce FairHash, a data-dependant hashmap that guarantees uniform distribution at the group-level across hash buckets, and hence, satisfies the statistical parity notion of group fairness. We formally define, three notions of fairness and, unlike existing work, FairHash satisfies all three of them simultaneously. We propose three families of algorithms to design fair hashmaps, suitable for different settings. Our ranking-based algorithms reduce the unfairness of data-dependant hashmaps without any memory-overhead. The cut-based algorithms guarantee zero-unfairness in all cases, irrespective of how the data is distributed, but those introduce an extra memory-overhead. Last but not least, the discrepancy-based algorithms enable trading off between various fairness notions. In addition to the theoretical analysis, we perform extensive experiments to evaluate the efficiency and efficacy of our algorithms on real datasets. Our results verify the superiority of FairHash compared to the other baselines on fairness at almost no performance cost.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- On Fair Epsilon Net and Geometric Hitting SetMohsen Dehghankar, Stavros Sintos, Abolfazl AsudehVLDB 2026 · 1 citation
- Fair-Count-Min: Frequency Estimation under Equal Group-wise Approximation FactorNima Shahbazi, Stavros Sintos, Abolfazl AsudehSIGMOD 2026
Builds on25
- Benchmarking Learned IndexesRyan Marcus, Andreas Kipf, Alexander van Renen, Mihail Stoian et al.VLDB 2021 · 185 citations
- Fairness-aware Task Assignment in Spatial Crowdsourcing: Game-Theoretic ApproachesYan Zhao, Kai Zheng, Jiannan Guo, Bin Yang et al.ICDE 2021 · 81 citations
- Fair Hierarchical ClusteringSara Ahmadian, Alessandro Epasto, Marina Knittel, Ravi Kumar et al.NeurIPS 2020 · 61 citations
- Faster Matrix Multiplication via Asymmetric HashingRan Duan, Hongxun Wu, Renfei ZhouFOCS 2023 · 54 citations
- Causal Conceptions of Fairness and their ConsequencesHamed Nilforoshan, Johann D. Gaebler, Ravi Shroff, Sharad GoelICML 2022 · 52 citations
Related papers
- FaiREE: fair classification with finite-sample and distribution-free guaranteePuheng Li, James Zou, Linjun ZhangICLR 2023
- Fairness-Aware PageRankSotiris Tsioutsiouliklis, Evaggelia Pitoura, Panayiotis Tsaparas, Ilias Kleftakis et al.WWW 2021 · 58 citations
- Rank Aggregation Algorithms for Fair ConsensusCaitlin Kuhlman, Elke A. RundensteinerVLDB 2020 · 60 citations
- Unbiased Binning for Fairness-aware Attribute RepresentationAbolfazl Asudeh, Zeinab Asoodeh, Bita Asoodeh, Omid AsudehVLDB 2026
- Fair Clustering Under a Bounded CostSeyed A. Esmaeili, Brian Brubach, Aravind Srinivasan, John DickersonNeurIPS 2021 · 36 citations
