arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.19569cs.LG
收藏

语言模型反向的不变潜在空间视角

An Invariant Latent Space Perspective on Language Model Inversion

Wentao Ye, Jiaqi Hu, Haobo Wang, Xinpeng Ti, Zhiqing Xiao, Hao Chen, Liyao Li, Lei Feng, Sai Wu, Junbo Zhao

AI总结:

本文提出Inv^2A方法,通过不变潜在空间假设提升语言模型反向性能,有效对抗隐私和安全威胁。

摘要:

语言模型反向(LMI),即从输出中恢复隐藏提示,已成为对用户隐私和系统安全的具体威胁。我们重新诠释LMI为重用LLM自身的潜在空间,并提出不变潜在空间假设(ILSH):(1)相同来源提示的多样化输出应保持一致的语义(来源不变性),(2)输入<->输出循环映射应在共享的潜在空间中保持自洽(循环不变性)。据此,我们提出了Inv^2A,将LLM视为不变解码器,并仅学习一个轻量级的逆向编码器,将输出映射到去噪的伪表示。当多个输出可用时,它们在表示层稀疏拼接以增加信息密度。训练分为两个阶段:对比对齐(来源不变性)和监督强化(循环不变性)。可选的训练无关邻域搜索可优化局部性能。在9个涵盖用户和系统提示场景的数据集上,Inv^2A在平均4.77%的BLEU分数上优于基线,同时减少对大规模逆向语料库的依赖。我们的分析进一步表明,普遍的防御措施提供有限的保护,凸显了需要更强策略的必要性。本文涉及的源代码和数据可在https://github.com/yyy01/Invariant_Attacker中找到。

英文摘要:

Language model inversion (LMI), i.e., recovering hidden prompts from outputs, emerges as a concrete threat to user privacy and system security. We recast LMI as reusing the LLM's own latent space and propose the Invariant Latent Space Hypothesis (ILSH): (1) diverse outputs from the same source prompt should preserve consistent semantics (source invariance), and (2) input<->output cyclic mappings should be self-consistent within a shared latent space (cyclic invariance). Accordingly, we present Inv^2A, which treats the LLM as an invariant decoder and learns only a lightweight inverse encoder that maps outputs to a denoised pseudo-representation. When multiple outputs are available, they are sparsely concatenated at the representation layer to increase information density. Training proceeds in two stages: contrastive alignment (source invariance) and supervised reinforcement (cyclic invariance). An optional training-free neighborhood search can refine local performance. Across 9 datasets covering user and system prompt scenarios, Inv^2A outperforms baselines by an average of 4.77% BLEU score while reducing dependence on large inverse corpora. Our analysis further shows that prevalent defenses provide limited protection, underscoring the need for stronger strategies. The source code and data involved in this paper can be found in https://github.com/yyy01/Invariant_Attacker.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑