# DORY: Deliberative Prompt Recovery for LLM

Source: [DORY: Deliberative Prompt Recovery for LLM](<https://www.sota2.com/research/paper/68fa73901e209131cea5d3e3>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T04:51:13.831Z

Authors: Lirong Gao, Ru Peng, Yiming Zhang, Junbo Zhao

Published: 2024-05-31T07:51:16.000Z

## Abstract

Prompt recovery in large language models (LLMs) is crucial for understanding how LLMs work and addressing concerns regarding privacy, copyright, etc. The trend towards inference-only APIs complicates this task by restricting access to essential outputs for recovery. To tackle this challenge, we extract prompt-related information from limited outputs and identify a strong(negative) correlation between output probability-based uncertainty and the success of prompt recovery. This finding led to the development of Deliberative PrOmpt RecoverY (DORY), our novel approach that leverages uncertainty to recover prompts accurately. DORY involves reconstructing drafts from outputs, refining these with hints, and filtering out noise based on uncertainty. Our evaluation across diverse LLMs and prompt benchmarks shows that DORY outperforms existing baselines, improving performance by approximately 10.82% and establishing a new state-of-the-art record in prompt recovery tasks. Significantly, DORY operates using a single LLM without any external resources or model, offering a cost-effective, user-friendly prompt recovery solution.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Prompt Recovery on Alpaca](<https://www.sota2.com/research/sota/prompt-recovery-on-alpaca.md>): Prompt Recovery; Alpaca; BLEU-1: 43.24.

- [Prompt Recovery on Self-Instruct](<https://www.sota2.com/research/sota/prompt-recovery-on-self-instruct.md>): Prompt Recovery; Self-Instruct; BLEU-1: 34.71.

- [Prompt Recovery on Arxiv Math](<https://www.sota2.com/research/sota/prompt-recovery-on-arxiv-math.md>): Prompt Recovery; Arxiv Math; BLEU-1: 58.41.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2405.20657>)

[PDF](<https://arxiv.org/pdf/2405.20657.pdf>)
