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.
A survey of cross-lingual features for zero-shot cross-lingual semantic parsing
Georgia Institute of Technology(佐治亚理工学院);Samsung AI Center(三星人工智能中心);University of Edinburgh(爱丁堡大学)
利用语料库来训练英语语义分析器,已经在该领域取得了重大进展。不幸的是,对于英语以外的语言,注释是稀缺的,所以是发达的解析器。然后我们会问:一个用英语训练的解析器可以应用于它没有被训练过的语言吗?为了回答这个问题,我们探索zero-shot跨语言语义解析,其中我们训练可用的从粗到细的语义解析器(Liu et al.,2018)使用跨语言词嵌入和英语中的通用依赖关系,并在意大利语,德语和荷兰语上进行测试。并行意义库(一个多语言语义图库)的结果表明,当与其他词汇特征结合使用时,通用依赖特征显着提高了性能,但在对输入进行编码时,直接对UD结构进行建模则不会。