InvBERT: Reconstructing Text from Contextualized Word Embeddings by inverting the BERT pipeline
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 14 of its 34 references that are in the map. First posted on arXiv 21 Sep 2021.
Builds on
14 of 34 references.
References · 14
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2018Exploiting Unintended Feature Leakage in Collaborative Learningcited by 520
- 2016Using the Output Embedding to Improve Language Modelscited by 272
- 2020Information Leakage in Embedding Modelscited by 203
2 more
Built on by
Citing papers per year: 2023: 2; 2024: 4; 2025: 2; 2026: 3.
11 papers.
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 51
- 2024Transferable Embedding Inversion Attack: Uncovering Privacy Risks in Text Embeddings without Model Queriescited by 25
- 2024NLP Verification: Towards a General Methodology for Certifying Robustnesscited by 16
- 2024No Free Lunch Theorem for Privacy-Preserving LLM Inferencecited by 13
- 2023ANTONIO: Towards a Systematic Method of Generating NLP Benchmarks for Verificationcited by 6
- 2025Memory Tokens: Large Language Models Can Generate Reversible Sentence Embeddingscited by 6
- 2025An Attack to Break Permutation-Based Private Third-Party Inference Schemes for LLMscited by 2
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)cited by 2
- 2024Protecting Privacy in Classifiers by Token Manipulationcited by 1
- 2026ctELM: Decoding and Manipulating Embeddings of Clinical Trials with Embedding Language Modelscited by 0
- 2026A Novel Semantic Manifold Alignment Attack against Embedding-to-Embedding Obfuscation in Privacy-Preserving LLMscited by 0
- 2026A Novel Semantic Manifold Alignment Attack against Embedding-to-Embedding Obfuscation in Privacy-Preserving LLMs6 Sep 2026
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)2 Mar 2026
- 2026ctELM: Decoding and Manipulating Embeddings of Clinical Trials with Embedding Language Models26 Jan 2026
- 2025Memory Tokens: Large Language Models Can Generate Reversible Sentence Embeddings17 Jun 2025
- 2025An Attack to Break Permutation-Based Private Third-Party Inference Schemes for LLMs23 May 2025
- 2024Protecting Privacy in Classifiers by Token Manipulation1 Jul 2024
- 2024Transferable Embedding Inversion Attack: Uncovering Privacy Risks in Text Embeddings without Model Queries12 Jun 2024
- 2024No Free Lunch Theorem for Privacy-Preserving LLM Inference31 May 2024
- 2024NLP Verification: Towards a General Methodology for Certifying Robustness15 Mar 2024
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023ANTONIO: Towards a Systematic Method of Generating NLP Benchmarks for Verification6 May 2023