ENDOPROMPT: Learning prefixes that reduce model task utility using victim-side pseudo-referencesENDOPROMPT: Victim-Side Pseudo-References for Utility Degradation
The authors use ENDOPROMPT to learn utility-degrading prefixes; the average utility change across four models and seven benchmarks is -26.8 percentage points.
During offline training, the attacker has white-box probability access to the victim model; at deployment, it receives only the request text and controls the prefix inside the user message, while the original request and system instructions remain unchanged.
- Benign tasks can fail without harmful outputs or explicit refusals. The authors study how to discover prompt prefixes that reduce the utility of benign tasks without using task labels or preset failure answers.
- ENDOPROMPT uses the victim model's clean continuation as a pseudo-reference, uses its likelihood decrease as the training signal, and applies a policy formed by offline search, preference fitting, and reward refinement to single-shot prefix generation.
- Across the full partition of four models and seven benchmarks, the average utility change is -26.8 percentage points (Table 1). The authors report output expansion and prefix reuse; the fixed-generator control did not establish a degradation advantage from request matching.
- The authors limit conclusions to offline probability access, open-weight models, and user prefix insertion. Each victim model uses only one random seed, and confidence intervals do not estimate retraining variation; the causal value of request input still requires a matched unconditional-generator branch.
- Evaluated models
- Qwen2.5-7BLlama-3.1-8BMistral-7B-v0.3Gemma-2-9B
- Benchmarks
- Dolly-15kGSM8KMATH-500BBHHellaSwagTruthfulQAIFEvalMMLU
- Metrics
- ΔUtilitydisplacement rewardNLL/token
The researchers propose ENDOPROMPT, a white-box method that learns prefixes reducing task utility from unlabeled instructions. Its generator takes the request text as input, treats the victim model's clean continuation as a pseudo-reference, uses local search to find prefixes that lower the continuation's likelihood, then performs preference fitting on comparisons within the same instruction and reward refinement to distill the signal into the generator; at deployment, one prefix is generated per request with no further victim-side search. Across the full partition of four instruction-tuned models and seven benign benchmarks, the average utility change is -26.8 percentage points, with 27 of 28 cells negative. Failure analysis shows output expansion and prefix reuse, and control experiments did not demonstrate that request matching provides a utility-degradation advantage. The authors state that code will be released after the paper is accepted.
Paper analysis
What problem does this paper attempt to solve?
The authors study how to learn prefixes that reduce the utility of benign tasks using only the victim model's behavior, without task labels or preset failure answers.
The core question is: how to discover prompt prefixes that make benign requests fail without task labels or preset failure answers.
- Risk scenario: The authors note that prompt injection can make responses wrong, incomplete, or off-request without producing harmful content or explicit refusals; therefore, benign task performance needs to be measured directly.
- Differences from existing objectives: The authors note that universal triggers can optimize task loss or target outputs; GCG and AdvPrompter use harmful response targets; these objectives directly prescribe optimization behavior.
- Core observation: Clean continuations can serve as a reference for victim model behavior without being correct answers. The authors use prefixes that decrease the likelihood of such continuations to provide perturbation direction, with task errors evaluated separately.
- Threat model:
- Objective and knowledge: Reduce benign task utility; offline training with white-box access to model probabilities.
- Input control: Only the prefix concatenated into the user message is controlled; the original request and system instructions remain unchanged.
- Victim system and deployment: Victim model parameters are frozen; at deployment, the generator receives only the request text, with no victim-side search.
- Evaluation isolation: Benchmark requests, answers, and scoring rules are not used in training or checkpoint selection.
- Proposed method: ENDOPROMPT turns victim-model-guided search into a prefix generator. The authors explicitly state that "request-conditioned" describes the input interface and does not establish a request-matching advantage.
What related research exists?
The authors follow the research line from search to generators, changing the supervision signal from a specified target to the victim model's clean continuations.
Related work centers on adversarial text, jailbreak generators, and benign utility loss.
Adversarial text and discrete prompt optimization
- Jin et al. (2020), BERT-ATTACK (2020), and UAT (2019) — covering input-specific word substitution and universal token-sequence attacks, respectively.
- MINIMAL (2021) — mines universal adversarial triggers that do not depend on training samples, reducing reliance on training instances.
- AutoPrompt (2020), Wen et al. (2023) — optimize discrete prompts for specified targets.
Jailbreak search and generators
- GCG (2023), BEAST (2024) — search for jailbreak suffixes; AmpleGCG (2024) learns a generator for such suffixes.
- AdvPrompter (2025), ProAdvPrompter (2025) — train input-conditioned generators for harmful compliance. The authors regard these two works as especially related to their own.
Prompt robustness and usability attacks
- PromptRobust (2024), Cao et al. (2024) — examine model sensitivity to wording, formatting, and worst-case prompts.
- System prompt poisoning (2025), Zhang et al. (2025) — study system-prompt poisoning and using guardrail false positives to disrupt benign use, respectively.
Reference methods in the experiments
- Baseline methods and data: Table 1 compares UAT, GCG-16, BEAST, AmpleGCG, AdvPrompter, and SPP, using GSM8K, MATH-500, BBH, HellaSwag, TruthfulQA, IFEval, and MMLU.
- Comparison boundary: These methods retain their native objectives and input channels. The authors position them as background references, not as a ranking with matched objectives and channels.
The authors state that ENDOPROMPT continues the search-to-generator line but uses clean victim-model continuations for supervision and separates attack discovery on unlabeled instructions from task-performance measurement on held-out benchmarks.
How does the paper address this problem?
ENDOPROMPT uses the likelihood shift of clean continuations to supervise search and generator learning, generating the prefix only once at deployment.
ENDOPROMPT uses the clean victim model's continuation as a pseudo-reference, learning a prefix generator through offline search, preference fitting, and reward refinement (Figure 2). The training signal measures behavioral displacement, while benign task utility is evaluated independently.
Pseudo-Reference and Displacement Reward
- Fixed behavior reference: The frozen victim model greedily generates a clean continuation for an unlabeled instruction, up to 64 tokens; this continuation is not required to be correct.
- Core definition: r(z;u)=meanNLLθ(ỹ(u)∣ cθ(z⊕ u))−meanNLLθ(ỹ(u)∣ cθ(u)). This is the mean NLL difference formulation of Equation (2): a positive reward indicates that the prefix lowers the likelihood of the same clean continuation.
- Measurement boundary: Both terms use teacher forcing on the same clean tokens. The reward does not directly measure task errors, nor does it use benchmark answers or target failure strings.
Same-Instruction Search and Preference Fitting
- Candidate comparison: The generator provides candidates, and local search continues to find prefixes, ranked by displacement reward. Comparisons under the same instruction keep the behavior reference fixed.
- Preference learning: The highest- and lowest-reward prefixes that meet the criteria form preference pairs; the generator is fitted with a length-normalized pairwise objective, β=0.1, with the reference policy being the pre-fitting policy.
- Iterative connection: The initial generator R0 is trained with the displacement reward; subsequent rounds use the updated generator for the next round of candidate generation.
Reward Refinement and Checkpoint Selection
- Refinement module: After preference fitting, GRPO continues training with the same displacement reward, up to 260 updates per stage, with early stopping based on reward.
- Independent selection: Each round measures the average displacement reward on 600 non-overlapping Dolly instructions. The first-round R1 is the initial retained point; subsequent rounds replace it only if the reward increases by at least 0.03.
- Stopping rule: Stop after two consecutive non-acceptances or upon reaching R6; the final evaluation uses the retained checkpoint, not necessarily the last round.
Deployment and Utility Measurement
- Single generation: One generator is trained per victim model; at deployment, a prefix is generated deterministically, then concatenated with the original request and given to the frozen victim model, without online search.
- Independent task scoring: ΔUtility is the average task score difference of the attack condition minus the clean condition, expressed in percentage points; the same requests and reference answers are used for both conditions, and a negative value indicates a utility decrease.
- Interface and causal distinction: The authors emphasize that the generator receiving a request does not mean each request gets a unique prefix, nor does request matching itself enhance degradation.
What experiments did the paper conduct?
Across four models and seven benchmarks, utility decreased in 27/28 cells; the fixed-generator control did not establish a request-matching advantage.
The main experiments measure benign task utility change and separately examine search gains, response characteristics, and request–prefix matching.
Experimental setup
- Tested models: Qwen2.5-7B, Llama-3.1-8B, Mistral-7B-v0.3, Gemma-2-9B; all generators are initialized from Dolphin3.0-Llama3.2-3B.
- Full evaluation splits: GSM8K 1,319 items, MATH-500 500 items, BBH 6,511 items, HellaSwag 10,042 items, TruthfulQA 817 items, IFEval 541 items, MMLU 14,042 items.
- Inference conditions: GSM8K, BBH, and MMLU are provided with 4, 3, and 5 demonstrations, respectively; the rest have no demonstrations. Both conditions share formatted requests, chat template, greedy decoding, and a 512-token output limit.
- Scoring and metrics: HellaSwag, TruthfulQA, and MMLU share an answer extractor; the rest use native scoring; IFEval uses strict prompt-level scoring. ΔUtility is the score difference of attack minus clean.
- Training and references: Training uses 2,400 instructions from Dolly-15k, discarding original responses and labels; each run uses seed 42. References are UAT, GCG-16, BEAST, AmpleGCG, AdvPrompter, SPP.
- Uncertainty and auxiliary models: 28 units are equally weighted; confidence intervals use 20,000 paired bootstrap resamples shared across models within the same benchmark. No LLM judge is reported; GPT-5.6 assisted with code, visualization, and text polishing.
Main results
The table below shows ENDOPROMPT's ΔUtility in percentage points; means and checkpoints are from Table 1, per-benchmark values from Figure 4.
Swipe horizontally to read the table
Victim model Retained checkpoint Seven-benchmark average BBH MMLU Qwen2.5-7B R1 -14.3 -52.1 -8.3 Llama-3.1-8B R1 -47.2 -56.6 -3.6 Mistral-7B-v0.3 R2 -19.7 -12.5 1.8 Gemma-2-9B R1 -26.0 -33.9 -2.2 - Overall results: The average change across 28 units is -26.8 percentage points, 95% CI [-27.4, -26.2]; 27/28 are negative (Table 1, §4.2).
- Exception: The authors report that Mistral on MMLU is the only positive unit; the magnitude of utility change varies by victim model and benchmark (Figure 4).
- Reference interpretation: Other attacks in Table 1 retain their native objectives and channels; the authors explicitly do not treat these rows as an attack ranking for a matched objective.
Search and round selection
- Search gains: Among 9,600 victim-model–instruction cases, 96.5% of search winners exceed the original best proposal, with an average increase of 0.125 NLL/token; both are rescored in the same search (§4.3).
- Supervision data: Search stages before the retained checkpoint produce 9,597 eligible same-instruction preference pairs. The authors interpret the search comparison as search gains, not downstream utility gains.
- Checkpoint evidence: The Figure 3 caption explicitly marks retained points with diamonds, the y-axis is Reward, and the four panels have different y-axis scales; plain text cannot read curve positions or endpoint values.
Response-level failures and prefix reuse
- Degraded responses: Among 36,750 model–request pairs that are clean-correct and attack-wrong, 58.4% have output tokens at least doubled, 39.5% have no extracted answer, and 0.3% match a fixed refusal vocabulary (§4.4).
- Metric boundaries: Categories in Figure 5(a) can overlap; the refusal approximation is fixed-vocabulary matching, and none of the three are semantic failure labels. The above proportions are aggregated over degraded samples, distinct from the unit-equal-weight means in the main results.
- Prefix concentration: After case and whitespace normalization, the distinct-prefix proportions for Qwen, Llama, Mistral, and Gemma are 2.5%, 4.7%, 0.4%, and 1.9%, respectively; each denominator is 33,772 requests (Figure 5(b)).
Request-matching control with a fixed generator
- Matching and shuffling: matched-minus-shuffled is +0.21 percentage points, 95% CI [-0.06, +0.48]; matched-minus-empty is -0.30, 95% CI [-0.65, +0.06] (§4.4).
- Reusing the modal prefix: The authors report a degradation increase of 2.79 percentage points, 95% CI [2.46, 3.13]; the modal gap is +6.61 for Gemma and +5.04 for Llama, while Qwen and Mistral are both below 0.3 (§4.4).
- Causal boundaries: The authors state these controls do not establish a matching advantage; reusing the generated modal prefix is a concentration diagnostic, not a trained unconditional-generator baseline.
Other ablations and analyses
- Before and after fitting: The four-model seven-benchmark average ΔUtility goes from -23.6 before fitting to -5.5 after fitting, and -26.8 percentage points after full refinement (Table 1).
- Removing the preference loop: Direct reward refinement gives an average ΔUtility of -20.4 percentage points (Table 1).
- Shuffled pseudo-references: Permuting continuations gives an average ΔUtility of -16.1 percentage points (Table 1).
- Prefix modal frequency: Qwen 24.8%, Llama 11.8%, Mistral 65.0%, Gemma 31.6%, each denominator 33,772 (Figure 5(b)).
What are some points that can be further explored?
The authors note that the causal value of request input still requires a matched unconditional-generator branch, and the intervals do not estimate retraining variation.
The authors limit the conclusions to offline white-box probability access and user-prefix insertion, and explicitly leave the causal question of request matching open.
Limitations and future directions noted by the authors
- Scope: The conclusions apply to offline probability access, open-weight victim models, and user-prefix insertion; transfer to closed-source models and indirect injection are outside the scope (§4.5).
- Retraining variation: Each victim model has only one random seed, so the reported intervals do not estimate variation from retraining (§4.5).
- Causal value of the request input: A matched unconditional-generator branch is still needed; the existing ablations change fitting or the pseudo-reference rather than directly isolating the role of the request input (§4.5).
- Artifact plan: The authors plan to release code after the paper is accepted; the abstract does not state that it is already released.
Experimental coverage
- Objects and tasks: The experiments include four instruction-tuned victim models and the full partition of seven benign benchmarks; each model has its own generator (§3.3, §4.1).
- Supervision isolation: Training uses Dolly instructions without original responses or labels; checkpoints are selected by displacement reward on another 600 non-overlapping instructions, and downstream scoring does not participate in selection (§4.1).
- Control types: Retraining ablations include removing the preference loop and permuting the pseudo-reference; the fixed-generator control changes the request–prefix assignment and reuses the modal prefix (§4.3–4.4).
- Scoring evidence: Task scoring uses native scorers or answer extractors; response diagnostics use token counts, extraction failures, and fixed refusal-vocabulary matching, and the paper does not report human semantic evaluation (§4.1, §4.4).
- Interval conditions: Bootstrap is conditional on the evaluated checkpoints, using within-benchmark paired resampling and samples shared across victim models; all training runs use seed 42 (§4.1).
Summarize the main content of the paper
The authors use victim model continuations to supervise benign utility attacks, and evaluate behavioral displacement, task degradation, and request matching effects separately.
ENDOPROMPT is a white-box utility attack that generates prefixes supervised by the victim model's own continuations. It targets benign task failure and does not require producing harmful content or explicit refusals.
- Problem and method: The authors do not use task labels or preset failure responses; instead, they rank candidates by the likelihood decrease of clean continuations, followed by preference fitting and reward refinement; deployment requires only a single generator call.
- Overall utility: The average ΔUtility across four victim models and seven benchmarks is -26.8 percentage points, 95% CI [-27.4, -26.2]; 27/28 units show utility decrease (Table 1, §4.2).
- Model differences and exceptions: Llama-3.1-8B's R1 has an average change of -47.2 percentage points across seven benchmarks (Table 1); Mistral-7B-v0.3 on MMLU is +1.8, the only positive unit (Figure 4).
- Failure forms: Among 36,750 correct-to-wrong samples, 58.4% have output tokens at least doubled, and only 0.3% hit a fixed refusal vocabulary; the authors state these diagnostics do not equal semantic failure labels (§4.4).
- Matching effect: The matched-minus-shuffled for the fixed generator control is +0.21 percentage points, 95% CI [-0.06, +0.48]; the authors state that a degradation advantage for request matching is not established (§4.4).
- Authors' implications and scope: The authors advocate directly measuring benign task preservation after injection and checking responses and common prefixes; conclusions are limited to offline probability access, open-weight victim models, and user prefix insertion.