Lune

SIGMOD2024Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Fair-Count-Min: Frequency Estimation under Equal Group-wise Approximation Factor cites Fairness-aware Task Assignment in Spatial Crowdsourcing: Game-Theoretic Approaches
  • Fair-Count-Min: Frequency Estimation under Equal Group-wise Approximation Factor cites Fair Hierarchical Clustering
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. On Fair Epsilon Net and Geometric Hitting SetMohsen Dehghankar, Stavros Sintos, Abolfazl AsudehVLDB 2026 · 1 citation
  2. Fair-Count-Min: Frequency Estimation under Equal Group-wise Approximation FactorNima Shahbazi, Stavros Sintos, Abolfazl AsudehSIGMOD 2026

Builds on25

  1. Benchmarking Learned IndexesRyan Marcus, Andreas Kipf, Alexander van Renen, Mihail Stoian et al.VLDB 2021 · 185 citations
  2. Fairness-aware Task Assignment in Spatial Crowdsourcing: Game-Theoretic ApproachesYan Zhao, Kai Zheng, Jiannan Guo, Bin Yang et al.ICDE 2021 · 81 citations
  3. Fair Hierarchical ClusteringSara Ahmadian, Alessandro Epasto, Marina Knittel, Ravi Kumar et al.NeurIPS 2020 · 61 citations
  4. Faster Matrix Multiplication via Asymmetric HashingRan Duan, Hongxun Wu, Renfei ZhouFOCS 2023 · 54 citations
  5. Causal Conceptions of Fairness and their ConsequencesHamed Nilforoshan, Johann D. Gaebler, Ravi Shroff, Sharad GoelICML 2022 · 52 citations

Related papers

  1. FaiREE: fair classification with finite-sample and distribution-free guaranteePuheng Li, James Zou, Linjun ZhangICLR 2023
  2. Fairness-Aware PageRankSotiris Tsioutsiouliklis, Evaggelia Pitoura, Panayiotis Tsaparas, Ilias Kleftakis et al.WWW 2021 · 58 citations
  3. Maxmin-Fair Ranking: Individual Fairness under Group-Fairness ConstraintsDavid García-Soriano, Francesco BonchiKDD 2021 · 30 citations
  4. Rank Aggregation Algorithms for Fair ConsensusCaitlin Kuhlman, Elke A. RundensteinerVLDB 2020 · 60 citations
  5. Unbiased Binning for Fairness-aware Attribute RepresentationAbolfazl Asudeh, Zeinab Asoodeh, Bita Asoodeh, Omid AsudehVLDB 2026
Dusk over the sea between two cliffs drawn in fine vertical lines