How Much Do Modern Embeddings Reveal? Inversion Attacks on Commercial Embedding Models
Abstract
Text embedding inversion reconstructs source text from fixed-dimensional vectors, posing a privacy risk to systems that store embeddings instead of raw text. We adapt the vec2text framework (Morris et al., 2023) to support text-embedding-3-small and mistral-embed alongside GTR-base. We evaluate 800 samples per category across general instructions, Wikipedia passages, paraphrased instructions, health-related instructions, and short literal code snippets, using a common 60-80-character range and paired original and paraphrased instructions. Under the evaluated vec2text configuration, text-embedding-3-small achieves the highest exact-match rate in all five categories, including 47.4% on health-related instructions and 24.5% on general instructions under the evaluation's case-insensitive, whitespace-stripped matching rule. BERTScore F1 exceeds 87 on the 0-100 scale for every prose category and embedder, indicating high contextual similarity to the references. Short code snippets yield lower reconstruction scores. These findings characterize one attack configuration and the selected datasets; they do not establish attack-independent rankings or sensitive-attribute recovery rates. They nevertheless motivate explicit assessment of inversion risk and access controls for stored embeddings.
Create a lesson
Metadata
- Journal
- Proc. 9th BlackboxNLP Workshop, pp. 76-89, 2026
- Comments
- 14 pages, 10 tables. Published in BlackboxNLP 2026
Related papers
Adopting Embedded AI Through an Innovation Team
Shared title terminologycs.SEViktoria Stray, Kristina Kantima Østvold, Agnes Hunstad Birkemo et al.
EmbedGym: Letting Coding Agents Develop and Debug Embedded Firmware Without Physical Hardware
Shared title terminologycs.SEMinghui Zhao, Yiming Li, Sophie Zhu et al.
How Much Skill Orchestration Can LLM Agents Compile Away? Execution-Grounded Specialization for Token-Efficient Skill Use
Shared title terminologycs.SEJiayi Ni, Zac Wang, Alex Zhang et al.
Construction Contracts for Generated Embedded Domain-Specific Language Programs: A Measurement Protocol and a Conditional Effect
Shared title terminologycs.SEHaowen Guo, Yangzhao Huang
Modern Software Engineering with Verification Agents: A Spec-First Architecture for Autonomous Synthesis, Verification IRs, and Organizational Scale
Shared title terminologycs.SEJason Hickey
When Modernization Breaks Working Code: A Single-File Study of LLMs on Legacy PHP
Shared title terminologycs.SEAfridi Mahmud, Abid Hasan Khondaker, Sadif Ahmed et al.