arXiv:2611.05716cs.SENov 2026

Manuscript Offprint

arXiv:2611.05716

How Much Do Modern Embeddings Reveal? Inversion Attacks on Commercial Embedding Models

Kareem Elaasar, Cristina Lopes

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Dense text embeddings are the infrastructure layer of modern NLP deployment. Retrieval-augmented generation (RAG) systems, semantic search engines, and recommendation pipelines all rely on fixed-dimensional vectors computed from raw text—and they routinely store those vectors in persistent databases such as Pinecone, Weaviate, and Chroma. A common implicit assumption in these deployments is that embeddings are privacy-preserving by construction: they capture semantic

meaning while discarding surface form, making reconstruction of the source text infeasible.

This assumption was directly challenged by Morris et al. (2023), who showed that a T5-based sequence-to-sequence model—trained to invert embeddings and iteratively corrected by a second model—could recover substantial portions of source text from GTR-base and text-embedding-ada-002 embeddings. Their result has significant implications for the real-world trustworthiness of embedding-based systems: if vectors can be inverted, then organizations that store only embeddings (e.g., to comply with data minimization policies) may be inadvertently retaining recoverable text.

Despite this foundational result, two questions motivate further evaluation. First, commercial embedding APIs now include OpenAI's text-embedding-3-small and Mistral's mistral-embed; their reconstruction rates under a common inversion configuration merit comparison. Second, although prior work evaluated inversion across multiple domains, including BEIR datasets and MIMIC-III clinical notes, comparisons across domains can be affected by differences in input length. We complement these evaluations with five categories restricted to the same character-length range and a paired comparison of original and paraphrased instructions.

This paper investigates these questions. We make the following contributions:

  1. Support for additional embedding APIs. We adapt the open-source vec2text framework to support text-embedding-3-small and mistral-embed alongside GTR-base. The implementation adds model-specific embedding dimension selection, API client integration, and checkpoint registration while retaining the original inversion architecture and training procedure.

  2. Controlled cross-domain evaluation. We evaluate 800 samples per category across general instructions (Zhao, 2023), Wikipedia passages (Merity et al., 2017), paraphrased instructions, health-related instructions, and short literal code snippets. Inputs are restricted to 60–80 characters, and each paraphrased instruction is paired with its original, supporting comparisons under a common character-length constraint.

  3. Empirical findings for the evaluated configuration. With up to five corrector steps, text-embedding-3-small achieves 47.4% exact match on health-related instructions and 24.5% on general instructions under the evaluation's normalization rule. Every prose category achieves BERTScore F1 above 87 on the 0–100 scale for all three embedders. Health-related instructions have the highest exact-match rates and short code snippets the lowest among the evaluated categories. These observations are conditional on the attack, datasets, and training runs used here.

This work sits at the intersection of information retrieval and NLP security, providing empirical grounding for updated threat models around the trustworthiness of deployed embedding systems.