paper-with-me

홈 › Papers

Extracting Prompts by Inverting LLM Outputs

2024-05-23 · Collin Zhang, John X. Morris, Vitaly Shmatikov

We consider the problem of language model inversion: given outputs of a language model, we seek to extract the prompt that generated these outputs. We develop a new black-box method, output2prompt, that learns to extract prompts without access to the model's logits and without adversarial or jailbreaking queries. In contrast to previous work, output2prompt only needs outputs of normal user queries. To improve memory efficiency, output2prompt employs a new sparse encoding techique. We measure the efficacy of output2prompt on a variety of user and system prompts and demonstrate zero-shot transferability across different LLMs.

📄 PDF Abstract BibTeX arXiv:2405.15012

Code (1)

collinzrj/output2prompt 공식 구현 pytorch

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

What do we learn from inverting CLIP models?

2024-03-05 · Hamid Kazemi, Atoosa Chegini, Jonas Geiping, Soheil Feizi 외

We employ an inversion-based approach to examine CLIP models. Our examination reveals that inverting CLIP models results in the generation of images that exhibit semantic alignment with the specified target prompts. We l…

Prompting as Multimodal Fusing

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Tsimpoukelli et al. (2021) devise Frozen, empowering a language model to solve multimodal tasks by pretraining a vision encoder whose outputs are prompts fed to the language model. The vision encoder has a dual objective…

Language ModelingLanguage Modelling

PromptPex: Automatic Test Generation for Language Model Prompts

2025-03-07 · Reshabh K Sharma, Jonathan De Halleux, Shraddha Barke, Benjamin Zorn

Large language models (LLMs) are being used in many applications and prompts for these models are integrated into software applications as code-like artifacts. These prompts behave much like traditional software in that …

Language ModelingLanguage Modelling

GPT, But Backwards: Exactly Inverting Language Model Outputs

2025-07-02 · Adrians Skapars, Edoardo Manino, Youcheng Sun, Lucas C. Cordeiro arxiv

The task of reconstructing unknown textual inputs to language models is a fundamental auditing primitive that allows us to assess the model's vulnerability to a range of security issues, including stealing hidden system …

JoIN: Joint GANs Inversion for Intrinsic Image Decomposition

2023-05-18 · Viraj Shah, Svetlana Lazebnik, Julien Philip

In this work, we propose to solve ill-posed inverse imaging problems using a bank of Generative Adversarial Networks (GAN) as a prior and apply our method to the case of Intrinsic Image Decomposition for faces and materi…

Image RelightingIntrinsic Image Decomposition