arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.10104cs.CL
收藏

InvBERT:通过逆转BERT流程从上下文化词嵌入中重构文本

InvBERT: Reconstructing Text from Contextualized Word Embeddings by inverting the BERT pipeline

Trier University(特里尔大学)

Kai Kugler, Simon Münker, Johannes Höhmann, Achim Rettinger

AI总结:

本文提出InvBERT方法,通过逆转BERT流程从上下文化词嵌入中重构原始文本,揭示了发布此类嵌入存在版权泄露风险。

摘要:

数字人文与计算文学研究应用文本挖掘方法来研究文学。此类自动化方法使得对大规模语料库进行定量研究成为可能,而仅靠人工检查是无法实现的。然而,由于版权限制,相关数字化文学作品的可用性有限。衍生文本格式(DTFs)被提出作为一种解决方案。在此,文本材料被转换,去除了版权关键特征,但仍可使用某些分析方法。由transformer编码器(如BERT)生成的上下文化词嵌入是DTFs的有前途的候选者,因为它们允许在各种分析任务上实现最先进的性能,并且乍看之下不会泄露原始文本。然而,在本文中,我们证明了在特定条件下,重构受版权保护的原始文本变得可行,并且以上下文化token表示的形式发布它是不安全的。我们逆转BERT的尝试表明,将编码器作为黑盒连同上下文化嵌入一起发布是危险的,因为这允许生成数据来训练解码器,其重构精度足以违反版权法。

英文摘要:

Digital Humanities and Computational Literary Studies apply text mining methods to investigate literature. Such automated approaches enable quantitative studies on large corpora which would not be feasible by manual inspection alone. However, due to copyright restrictions, the availability of relevant digitized literary works is limited. Derived Text Formats (DTFs) have been proposed as a solution. Here, textual materials are transformed in such a way that copyright-critical features are removed, but that the use of certain analytical methods remains possible. Contextualized word embeddings produced by transformer-encoders (like BERT) are promising candidates for DTFs because they allow for state-of-the-art performance on various analytical tasks and, at first sight, do not disclose the original text. However, in this paper we demonstrate that under certain conditions the reconstruction of the original copyrighted text becomes feasible and its publication in the form of contextualized token representations is not safe. Our attempts to invert BERT suggest, that publishing the encoder as a black box together with the contextualized embeddings is critical, since it allows to generate data to train a decoder with a reconstruction accuracy sufficient to violate copyright laws.

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

↑