arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.02563cs.LGcs.CRcs.DC
收藏

通过私有端侧局部敏感哈希实现大规模分布式学习

Large-Scale Distributed Learning via Private On-Device Locality-Sensitive Hashing

University of Maryland(马里兰大学)

Tahseen Rabbani, Marco Bornstein, Furong Huang

AI总结:

针对分布式与联邦场景中端侧内存受限及数据隐私问题,提出基于新哈希函数族的私有个性化端侧 LSH 框架,支持压缩权重和串行生成/丢弃哈希表,并在大规模推荐网络训练中表现出竞争力。

摘要:

基于局部敏感哈希(LSH)的框架已被高效用于在稠密隐藏层中选择与输入具有高余弦相似度的权重向量,从而实现动态剪枝。尽管这类方案已被证明能够提升计算训练效率,但现有算法需要对全层权重进行重复随机投影,这对于计算和内存受限的设备而言并不现实。在分布式场景中,将 LSH 分析交由集中式主机处理存在两个问题:(i)当设备集群规模较大时速度缓慢;(ii)需要访问输入数据,而这在联邦环境中是被禁止的。利用一个新的哈希函数族,我们开发了最早的一批私有、个性化且内存高效的端侧 LSH 框架之一。我们的框架允许每台设备在没有中央主机帮助的情况下,使用设备特定的哈希超参数(例如哈希表数量或哈希长度)生成哈希表,从而实现隐私性和个性化。哈希表由全量权重的压缩集合生成;如果该过程内存占用较高,还可以串行生成并丢弃哈希表。这使设备无需为 LSH 分析在本地内存中维护(i)全尺寸模型以及(ii)大量哈希表。我们证明了所提哈希函数的若干统计性质和敏感性性质,并通过实验表明,与其他假设端侧容量不受限制的 LSH 框架相比,我们的框架在训练大规模推荐网络方面具有竞争力。

英文摘要:

Locality-sensitive hashing (LSH) based frameworks have been used efficiently to select weight vectors in a dense hidden layer with high cosine similarity to an input, enabling dynamic pruning. While this type of scheme has been shown to improve computational training efficiency, existing algorithms require repeated randomized projection of the full layer weight, which is impractical for computational- and memory-constrained devices. In a distributed setting, deferring LSH analysis to a centralized host is (i) slow if the device cluster is large and (ii) requires access to input data which is forbidden in a federated context. Using a new family of hash functions, we develop one of the first private, personalized, and memory-efficient on-device LSH frameworks. Our framework enables privacy and personalization by allowing each device to generate hash tables, without the help of a central host, using device-specific hashing hyper-parameters (e.g. number of hash tables or hash length). Hash tables are generated with a compressed set of the full weights, and can be serially generated and discarded if the process is memory-intensive. This allows devices to avoid maintaining (i) the fully-sized model and (ii) large amounts of hash tables in local memory for LSH analysis. We prove several statistical and sensitivity properties of our hash functions, and experimentally demonstrate that our framework is competitive in training large-scale recommender networks compared to other LSH frameworks which assume unrestricted on-device capacity.

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

↑