paper-with-me

홈 › Papers

Effective Prompt Extraction from Language Models

2023-07-13 · Yiming Zhang, Nicholas Carlini, Daphne Ippolito

The text generated by large language models is commonly controlled by prompting, where a prompt prepended to a user's query guides the model's output. The prompts used by companies to guide their models are often treated as secrets, to be hidden from the user making the query. They have even been treated as commodities to be bought and sold on marketplaces. However, anecdotal reports have shown adversarial users employing prompt extraction attacks to recover these prompts. In this paper, we present a framework for systematically measuring the effectiveness of these attacks. In experiments with 3 different sources of prompts and 11 underlying large language models, we find that simple text-based attacks can in fact reveal prompts with high probability. Our framework determines with high precision whether an extracted prompt is the actual secret prompt, rather than a model hallucination. Prompt extraction from real systems such as Claude 3 and ChatGPT further suggest that system prompts can be revealed by an adversary despite existing defenses in place.

📄 PDF Abstract BibTeX arXiv:2307.06865

Code (1)

y0mingzhang/prompt-extraction 공식 구현 pytorch

Tasks

Hallucination

Similar Papers 제목 키워드 기반

A Preliminary Empirical Study on Prompt-based Unsupervised Keyphrase Extraction

2024-05-26 · Mingyang Song, Yi Feng, Liping Jing

Pre-trained large language models can perform natural language processing downstream tasks by conditioning on human-designed prompts. However, a prompt-based approach often requires "prompt engineering" to design differe…

Keyphrase ExtractionPrompt Engineering

Prompt-Learning for Cross-Lingual Relation Extraction

2023-04-20 · Chiaming Hsu, Changtong Zan, Liang Ding, Longyue Wang 외

Relation Extraction (RE) is a crucial task in Information Extraction, which entails predicting relationships between entities within a given sentence. However, extending pre-trained RE models to other languages is challe…

Prompt LearningRelationRelation ExtractionSentence

Decorate the Examples: A Simple Method of Prompt Design for Biomedical Relation Extraction

2022-04-21 · LREC 2022 6 · Hui-Syuan Yeh, Thomas Lavergne, Pierre Zweigenbaum

Relation extraction is a core problem for natural language processing in the biomedical domain. Recent research on relation extraction showed that prompt-based learning improves the performance on both fine-tuning on ful…

Cloze TestRelationRelation Extraction

PromptRE: Weakly-Supervised Document-Level Relation Extraction via Prompting-Based Data Programming

2023-10-13 · Chufan Gao, Xulin Fan, Jimeng Sun, Xuan Wang

Relation extraction aims to classify the relationships between two entities into pre-defined categories. While previous research has mainly focused on sentence-level relation extraction, recent studies have expanded the …

Document-level Relation ExtractionRelationRelation ClassificationRelation Extraction+1

Adapting PromptORE for Modern History: Information Extraction from Hispanic Monarchy Documents of the XVIth Century

2024-05-24 · Hèctor Loopez Hidalgo, Michel Boeglin, David Kahn, Josiane Mothe 외

Semantic relations among entities are a widely accepted method for relation extraction. PromptORE (Prompt-based Open Relation Extraction) was designed to improve relation extraction with Large Language Models on generali…

Prompt EngineeringRelationRelation Extraction