arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.09943cs.CRcs.CLcs.LG
收藏

使用私有联邦学习免费培训令牌化器

Training a Tokenizer for Free with Private Federated Learning

Cornell Tech(康奈尔科技校区);Apple(苹果公司)

Eugene Bagdasaryan, Congzheng Song, Rogier van Dalen, Matt Seigel, Áine Cahill

摘要:

具有差分隐私的联邦学习,即私有联邦学习(PFL),使得可以在分布在用户设备上的私有数据上训练模型而不损害隐私。PFL对于诸如神经网络之类的模型是有效的,这些模型具有固定数量的参数,因此具有固定维度的梯度向量。这样的模型包括神经网络语言模型,但不包括本文的主题--标记器。训练分词器需要来自无限词汇表的单词的频率,并且用于查找无限词汇表的现有方法需要单独的隐私预算。一种解决方法是根据公开可用的数据对标记器进行训练。然而,在本文中,我们首先表明,与访问用户数据的违反隐私的“oracle”令牌化器相比,在不匹配的数据上训练的令牌化器会导致更差的模型性能,困惑度增加了20%。我们还表明,子词tokenizers更适合联邦上下文比字级的,因为他们可以编码新的单词,虽然每个单词有更多的令牌。其次,我们提出了一种新的方法来获得一个标记器,而不使用任何额外的隐私预算。在语言模型的私有联邦学习过程中,我们从模型中采样,在采样序列上训练新的标记器,并更新模型嵌入。然后,我们继续进行私有联邦学习,并获得“oracle”标记器的1%以内的性能。由于此过程仅间接地在私有数据上训练令牌化器,因此我们可以使用差分隐私的“后处理保证”,从而不使用额外的隐私预算。

英文摘要:

Federated learning with differential privacy, i.e. private federated learning (PFL), makes it possible to train models on private data distributed across users' devices without harming privacy. PFL is efficient for models, such as neural networks, that have a fixed number of parameters, and thus a fixed-dimensional gradient vector. Such models include neural-net language models, but not tokenizers, the topic of this work. Training a tokenizer requires frequencies of words from an unlimited vocabulary, and existing methods for finding an unlimited vocabulary need a separate privacy budget. A workaround is to train the tokenizer on publicly available data. However, in this paper we first show that a tokenizer trained on mismatched data results in worse model performance compared to a privacy-violating "oracle" tokenizer that accesses user data, with perplexity increasing by 20%. We also show that sub-word tokenizers are better suited to the federated context than word-level ones, since they can encode new words, though with more tokens per word. Second, we propose a novel method to obtain a tokenizer without using any additional privacy budget. During private federated learning of the language model, we sample from the model, train a new tokenizer on the sampled sequences, and update the model embeddings. We then continue private federated learning, and obtain performance within 1% of the "oracle" tokenizer. Since this process trains the tokenizer only indirectly on private data, we can use the "postprocessing guarantee" of differential privacy and thus use no additional privacy budget.

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

↑