arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.11355cs.DScs.DB
收藏

一种公平且内存/时间高效的哈希表

A Fair and Memory/Time-efficient Hashmap

Abolfazl Asudeh, Nima Shahbazi, Stavros Sintos

AI总结:

针对现有数据依赖型哈希表缺乏群体公平性保障的问题,本文提出FairHash,通过三类算法实现三种公平性概念,实验证明其公平性优于基线且几乎无性能损耗。

摘要:

哈希表是计算机科学中的基础数据结构。已有大量研究致力于构建能将冲突次数降至最低、从而实现高效查找查询时间的哈希表。近年来,数据依赖型方法会针对目标数据分布定制哈希表,可保证数据在不同桶之间均匀分布,进而将冲突降至最低。但据我们所知,现有技术均无法保证哈希表中存储的不同物品组之间的群体公平性。\n 因此,本文提出FairHash(公平哈希表)——这是一种数据依赖型哈希表,可保证哈希桶之间在群体层面实现均匀分布,从而满足群体公平性的统计均等概念。我们正式定义了三种公平性概念,与现有研究不同的是,FairHash可同时满足全部三种概念。我们提出了三类适用于不同场景的公平哈希表设计算法族。基于排序的算法无需任何内存开销,即可降低数据依赖型哈希表的不公平性。基于切割的算法无论数据如何分布,都能保证所有场景下不公平性为零,但会带来额外的内存开销。最后但同样重要的是,基于差异的算法可在不同公平性概念之间进行权衡。除理论分析外,我们还在真实数据集上开展了大量实验,以评估算法的效率与效果。结果证实,与其他基线方法相比,FairHash在公平性方面表现更优,且几乎不产生性能成本。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑