Universal Zero-shot Embedding Inversion

Collin Zhang, John X. Morris, Vitaly Shmatikov
3/31/2025
cs.CLcs.CR

No official code found. Best implementation: collinzrj/adversarial_decoding (32 stars, last commit 2025-10-27).

Abstract

Embedding inversion, i.e., reconstructing text given its embedding and black-box access to the embedding encoder, is a fundamental problem in both NLP and security. From the NLP perspective, it helps determine how much semantic information about the input is retained in the embedding. From the security perspective, it measures how much information is leaked by vector databases and embedding-based retrieval systems. State-of-the-art methods for embedding inversion, such as vec2text, have high accuracy but require (a) training a separate model for each embedding, and (b) a large number of queries to the corresponding encoder. We design, implement, and evaluate ZSInvert, a zero-shot inversion method based on the recently proposed adversarial decoding technique. ZSInvert is fast, query-efficient, and can be used for any text embedding without training an embedding-specific inversion model. We measure the effectiveness of ZSInvert on several embeddings and demonstrate that it recovers key semantic information about the corresponding texts.

View on arXivView PDF

Code Implementations(1)

324PythonFeb 28, 202512 months ago

Similar Papers

Cite this paper

@article{zhang2025universal,
  title  = {Universal Zero-shot Embedding Inversion},
  author = {Collin Zhang and John X. Morris and Vitaly Shmatikov},
  year   = {2025},
  eprint = {2504.00147},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.00147v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.00147.svg)](https://codeofpaper.com/paper/2504.00147)

Discussion