atlas

Research map / Large language models / Language, safety and interpretability

Better Language Model Inversion by Compactly Representing Next-Token Distributions

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes PILS, which losslessly compresses full next-token logprob vectors over multiple generation steps into D-dimensional representations via an alr transform, and trains a T5-base inverter to recover hidden prompts from them.

Problem

Recovering hidden prompts or system messages from language model outputs using next-token logprobs, which prior logprob-based method (L2T) only uses at a single generation step and which are expensive to obtain via APIs.

Approach

Next-token probability vectors lie in a D-dimensional subspace (softmax bottleneck), so an additive log-ratio transform plus selecting D+100 token indices losslessly compresses each step's logprobs to a D-dimensional vector; a T5 inverter then consumes sequences of these vectors across many generation steps, needing only about D+1 logprobs per step.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use PILS logprob sequences instead of L2TLlama 2 Chat prompt inversion · 2M Instructions validationexact match: 23% -> 51%Helped
Use PILS logprob sequences instead of the previous best modelLlama 2 Chat prompt inversion · Alpaca Codeexact match: 17% -> 60%Helped
Use 32 generation steps at test time instead of 16PILS trained on 16 steps · Test-time prompt recoveryprompt recovery: 5--27 pointsHelped
Use PILS instead of DoryPrompt inversion · Dory comparisonBLEU: 58--69 point improvementsHelped
Use PILS with multiple generation steps instead of one-step L2TPrompt inversion · In-domain and out-of-distribution promptsexact recovery rate: 2--3.5 times higherHelped
Use PILS with one generation step rather than L2T (ablation)Prompt inversion · Across metrics and datasetsinversion performanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: 2M Instructions Alpaca Code Anthropic Helpful/Harmless (HH) Awesome GPT Prompts GPT Store

Benchmarks: 2M Instructions validation Alpaca Code Anthropic HH Awesome GPT Prompts GPT Store

Metrics: exact match BLEU token F1

Baselines: Output2Prompt (O2P) Logit2Text (L2T) L2T++ DORY

Builds on: Logit2Text (L2T) Output2Prompt (O2P) softmax bottleneck

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy