Researchers propose PTP to reconstruct prompts from LLM responses

A paper submitted to arXiv on July 31, 2026 introduces PTP, an approach to reconstructing prompts from large language model responses. The researchers treat the target LLM as a black box and train a separate inverse language model entirely from scratch. Its training data comes exclusively from synthetic examples generated by the target model itself, without auxiliary aids.
While a conventional LLM predicts the next token, PTP trains its inverse model to predict the previous token. The authors say this link between the forward and inverse processes enables faithful prompt reconstruction. Recovering prompts is complicated by the many-to-many relationship between inputs and outputs. PTP also supports sampling multiple candidate prompts that produce similar responses when passed through the target LLM.
The researchers contrast their approach with earlier methods that reconstruct semantically plausible prompts by fine-tuning pretrained sequence-to-sequence models on large external datasets, requiring access to weights or logits. They report that PTP generalizes across datasets and can reconstruct prompts from responses generated by other LLMs. The authors also claim better results than prior work across the token-based metrics used to evaluate prompt and response reconstruction.
Original source: arxiv.org ↗
Comments on source platforms
Rank is the maximum of the latest discussion counts. These are source metrics.
Hacker News
- Discussion ↗: 9
Measured: 19 Nov 2026, 15:47 UTC