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

LAMP:基于语言模型的文本抽取算法

LAMP: Extracting Text from Gradients with Language Model Priors

ETH Zurich(苏黎世联邦理工学院)

Mislav Balunović, Dimitar I. Dimitrov, Nikola Jovanović, Martin Vechev

摘要:

最近的工作表明,敏感的用户数据可以从梯度更新中重建,打破了联邦学习的关键隐私承诺。虽然主要在图像数据上证明了成功,但这些方法并不直接转移到其他领域,如文本。在这项工作中,我们提出了LAMP,一种新的攻击量身定制的文本数据,成功地重建原始文本的梯度。我们的攻击基于两个关键见解:(i)使用辅助语言模型对先验文本概率进行建模,引导搜索更自然的文本,以及(ii)交替连续和离散优化,最大限度地减少嵌入的重建损失,同时通过应用离散文本变换避免局部最小值。我们的实验表明,LAMP比以前的工作更有效:它平均重建了5倍多的二元组和23%长的序列。此外,我们是第一个从大于1的文本模型批量中恢复输入的人。这些发现表明,对文本数据进行操作的模型的梯度更新泄漏的信息比以前认为的要多。

英文摘要:

Recent work shows that sensitive user data can be reconstructed from gradient updates, breaking the key privacy promise of federated learning. While success was demonstrated primarily on image data, these methods do not directly transfer to other domains such as text. In this work, we propose LAMP, a novel attack tailored to textual data, that successfully reconstructs original text from gradients. Our attack is based on two key insights: (i) modeling prior text probability with an auxiliary language model, guiding the search towards more natural text, and (ii) alternating continuous and discrete optimization, which minimizes reconstruction loss on embeddings, while avoiding local minima by applying discrete text transformations. Our experiments demonstrate that LAMP is significantly more effective than prior work: it reconstructs 5x more bigrams and 23% longer subsequences on average. Moreover, we are the first to recover inputs from batch sizes larger than 1 for textual models. These findings indicate that gradient updates of models operating on textual data leak more information than previously thought.

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

↑