Make them spill it all: Mandatory knowledge extraction from production LLMsMake Them Spill the Beans! Coercive Knowledge Extraction from (Production) LLMs
The authors propose L INT: when output logits are accessible, it forces selection of low-ranked tokens to make the model emit harmful responses, achieving average 1-round ASR 92% and 5-round 98% across 5 open-source models (Table I).
The attacker has soft-label black-box access to the victim LLM: only access to the output logits of each token is needed, not internal states such as weights or gradients; the goal is the same as jailbreaking, i.e., use a toxic question X to make the model produce a high-quality harmful response Y, but no prompt needs to be constructed; it is assumed the model genuinely possesses the true knowledge of Y.
- Aligned LLMs refuse toxic questions, but the authors argue that harmful responses still hide in low-ranked tokens of the output logits; when an attacker can access soft-label information (open-source models or some commercial APIs), existing jailbreak countermeasures are unlikely to mitigate this threat.
- Proposes L INT (LLM INterrogaTion): iteratively locate the intervention point in a response where it shifts from harmful to harmless, at that point force the model to regenerate the next sentence from top-k low-ranked tokens, and use MNLI-based entailment analysis to select the candidate sentence most consistent with the toxic question, until a complete harmful response is produced.
- Across 5 open-source general-purpose models, average 1-round ASR 92% and 5-round 98% (Table I); on Llama2-70B, average TTS 198.32s, lower than GPTFuzzer's 1093.03s and GCG's 2110.98s (Table II); also effective on commercial APIs that provide only top-5 logits and on code models.
- The authors recommend caution in open-sourcing LLMs and suggest that data cleaning or model unlearning could thoroughly remove harmful knowledge (Discussion); the evaluation covers only 10 models and 50 TDC 2023 questions, and the paper reports no evaluation of any defenses.
- Evaluated models
- Yi-34BVicuna-13BLlama2-7BLlama2-13BLlama2-70BCodellama-13B-InstructCodellama-13B-PythonGPT-3.5-turbo-instructGPT-3.5-turbo-instruct-0914Text-davinci-003
- Benchmarks
- TDC 2023 red-teaming track(50 个有毒问题)
- Metrics
- Toxicity ASR1-round ASR5-round ASRATTTTS#FLRSoR#Query
The researchers propose the Lint method: under the condition of being able to access the model's output logits, it constructs no prompt at all, but instead forces the model to choose lower-ranked tokens at a few key positions, forcing out harmful answers masked by refusals. The method uses textual entailment analysis to select, from the top-1000 next-sentence candidates, the sentence that best fits the harmful question, and uses toxicity judgments of the prefix and suffix to locate the intervention point where the model's stance shifts. The authors tested on 50 TDC 2023 harmful questions across 7 open-source models and 3 OpenAI commercial APIs, achieving an average single-turn ASR of 92% and a five-turn ASR of 98%, with an average of 2.4 to 3.0 forced interventions yielding a complete answer; the authors claim it performs better than GCG and GPTFuzzer's 62% and is 10 to 20 times faster. The authors also claim that even models customized for code tasks can have harmful knowledge extracted from them.
Why it was selectedThe paper presents an intervention method that, when output logits are accessible, forces the model to progressively reveal harmful content, and compares the success rate and time cost of GCG and GPTFuzzer.
Paper analysis
What problem does this paper attempt to solve?
The authors state: when output logits are accessible, aligned models can be forced to emit hidden harmful responses without constructing prompts.
Core question: when an attacker can access an LLM's output logits (soft-label information), can alignment be bypassed to force the model to give high-quality harmful responses without relying on any carefully crafted prompt.
- Setting and importance: Open-source models (such as Llama) and some commercial APIs (such as certain GPT models) expose output token logits. The authors believe model training corpora may contain harmful knowledge, which could cause real-world harm if maliciously extracted.
- Shortcomings of existing methods: The authors state that jailbreak methods require trying different prompts for different questions, have long time-to-success (GPTFuzzer exceeds 7000 seconds for a single query), and the produced content is often irrelevant, incomplete or obscure; once jailbreak prompts are exposed, vendors can quickly patch them.
- Core observation: Even when an aligned model refuses a toxic question, the harmful response is still hidden in the low-ranked tokens of the output logits (Figure 3a); and once a model begins answering a toxic question, it tends to continue, so intervention is only needed at a few key positions.
- Paper proposes: L INT (LLM INterrogaTion), an iterative forced interrogation method, evaluated on 50 toxic questions across 7 open-source models and 3 commercial APIs, and compared with GCG and GPTFuzzer.
- Threat model:
- Goal: use a toxic question X to make the victim model M produce a relevant, complete, clear, high-quality harmful response Y.
- Knowledge: soft-label black-box access—only the output logits of each token are needed, not internal states such as weights or gradients.
- Capability: force selection of low-ranked output tokens during autoregressive generation; no need to construct a prompt P(X).
- Victim system and assumptions: an open-source LLM or a commercial LLM providing a soft-label API; assumes the model genuinely possesses the true knowledge of Y (consistent with the jailbreak literature).
What related research exists?
Related work falls into three groups: LLM alignment (RLHF), manual and automated jailbreak methods, and the soft-label black-box attack literature.
LLM Alignment
- Ouyang et al. [9], Touvron et al. [36], etc.: Use alignment techniques such as RLHF to make LLMs comply with human laws and norms—humans give corrections, ratings or preferences on model responses, and the model learns a reward function and optimizes generation via reinforcement learning.
LLM Jailbreak
- Shen et al. [15]: Collected 6,387 jailbreak prompts from the internet and tested their effectiveness on commercial closed-source models such as GPT-4, representing the manual-prompt approach.
- GCG [14]: A white-box method that uses gradient-based optimization to find input sequences that make the model begin with an affirmative phrase; the paper notes it requires full white-box access.
- GPTFuzzer [19]: A black-box method drawing on software fuzzing, using manual templates as seeds and continuously mutating them to generate new templates until the model produces toxic responses.
- Other automated jailbreaks [17], [18]: Use the knowledge of another LLM or construct nested scenarios to lower the cost of jailbreaking; [60] notes that fine-tuning with a small amount of toxic data can weaken alignment protections.
Soft-label Attack Literature
- ZOO [2], Cheng et al. [3], Sparse-RS [4]: Black-box adversarial attack literature that uses soft-label information; the paper classifies its attack as a soft-label attack.
Baselines and Benchmark
- Baseline methods: GCG [14] and GPTFuzzer [19], which the paper calls SOTA jailbreak techniques; the comparison is conducted on Llama2-70B (Table II).
- Benchmark: 50 toxic questions from the NeurIPS Trojan Detection Challenge 2023 (TDC 2023) red-teaming track, each with 50 ground-truth example responses [40].
The authors position this paper as a new threat orthogonal to jailbreaking: rather than constructing prompts, it uses soft-label access to directly force model output; they state that existing countermeasures against jailbreaking are unlikely to mitigate it.
How does the paper address this problem?
L INT iteratively locates the intervention point, forces the model to select low-ranked tokens to regenerate the next sentence, and uses entailment analysis to select the candidate that best matches the toxic question.
Overall approach: L INT models the attack as an iterative interrogation loop—finding the position in the model's response where it shifts from harmful to harmless, at that position forcing the model to regenerate the next sentence using low-ranked tokens, until a complete harmful response is obtained. Two challenges must be solved: next sentence selection and intervention point identification.
Process overview (Figure 4)
- Ask and first refusal: pose the toxic question to the target LLM; the model's refusal response constitutes the first intervention point.
- Candidate generation: take the top-k tokens of the output logits at that position (default top-1000), each used as a start to generate a candidate next sentence; the paper notes that 1000 sentences can be generated in one batch at low cost.
- Selection and continuation: use a sentence selector to pick the candidate sentence most consistent with the toxic question, append it to the input and let the model continue writing the full response.
- Locate and truncate: identify the new intervention point in the response, discard the content after it, and repeat the above process until the entire response is toxic and matches the question.
Next sentence selection: entailment analysis scoring
- Formalization: given a toxic query X and a candidate set K, select kmax = argmaxk R(X, k), where R is the scoring function for candidate sentences.
- Why naive methods fail: filtering by negative words (R1) fails because models express refusals in diverse ways and harmful content itself often contains negative words; using a pretrained toxicity classifier (R2) misses candidates that are not toxic as a single sentence but are harmful in context, and the classifier's accuracy drops on unknown harmful topics (the authors cite [33]).
- Scoring in this paper: transform X and candidate k via a transformation function T into hypothesis H and text T, and score by entailment RE(X, k) = E(T(X, k)); the implementation uses a roBERTa model [35] fine-tuned on the MNLI corpus, trained on general data rather than toxic data.
Intervention point identification: binary prefix/suffix
- Failed exploration: letting the LLM identify the intervention point itself (including few-shot) causes refusal because the model is averse to harmful content; passing each sentence through a toxicity classifier gives unstable results, because a single sentence may appear harmless and only together are they toxic.
- Key observation: the authors state that the transition from harmful to harmless in a response is monotonic, with the two not interleaved, so the response can be split into prefix P(i) and suffix S(i) and judged separately.
- Definition: the intervention point is the smallest sentence index i satisfying Mc(S(i)) = BENIGN and Mc(P(i−1)) = TOXIC; classification is done using the victim LLM itself in a separate clean session, with prompting following prior work [33], [37].
Key parameters and implementation
- top-k: default top-1000 candidates; the ablation compares top-5/10/50/100/500 (Figure 6).
- Number of iterations: experiments find an average of 2.76 forced interventions per toxic question (main text), and the average #F for the 5 open-source models is 2.4–3.0 (Table I).
- Combining with jailbreaks: a simple prompt can be prepended to the start of the response (w/ Magic setting) to narrow the search space and improve efficiency.
What experiments did the paper conduct?
10 models, 50 TDC 2023 questions: average 1-round ASR 92%, 5-round 98%, TTS an order of magnitude lower than jailbreak baselines.
Experimental Setup
- Models tested: 7 open-source models (Yi-34B, Vicuna-13B, Llama2-7B/-13B/-70B, Codellama-13B-Instruct/-Python) and 3 OpenAI commercial APIs (Gpt-3.5-turbo-instruct, Gpt-3.5-turbo-instruct-0914, Text-davinci-003), which the authors state were all alignment-trained.
- Dataset: 50 toxic questions from the TDC 2023 red-teaming track, each with 50 ground-truth example responses for manual verification.
- Baselines: GPTFuzzer (black-box search) and GCG (white-box gradient optimization), compared on Llama2-70B; GCG was run with 5 random seeds, and GPTFuzzer was run until 5 responses it judged toxic were collected.
- Metrics: Toxicity ASR, 1-round ASR, 5-round ASR, ATT, TTS, plus internal metrics #F (number of interventions), LR (lowest rank), SoR (sum of ranks); for commercial APIs, #Query was additionally measured.
- Review method: A response entered manual verification only after both the GPT-4 prompt classifier and the roBERTa classifier from prior work [19] judged it toxic; manual evaluation against the 50 example responses assessed relevance, completeness and clarity, with each response independently verified by at least two authors and disagreements adjudicated by a third person; manual verification took over 80 hours, and total compute exceeded 2,500 A100 hours.
- Sample size: 50 questions per model; two interrogation settings, 1-round and 5-round.
Main Results
According to Table I (5 open-source general-purpose models, top-1000 candidates):
Swipe horizontally to read the table
Model Toxicity ASR 1-round ASR 5-round ASR Average #F Yi-34B 50/50 44/50 47/50 3.0 Vicuna-13B 50/50 48/50 49/50 2.8 Llama2-7B 50/50 45/50 49/50 2.7 Llama2-13B 50/50 46/50 50/50 2.9 Llama2-70B 50/50 47/50 50/50 2.4 - The authors state that across the 5 models, average 1-round ASR was 92%, 5-round ASR 98%, and Toxicity ASR 100% (Finding 1).
- The authors state that on average only 2.4–3.0 forced interventions were needed, and the models' resistance to interrogation was limited (Finding 2).
- Exceptions: a few questions still failed after 5 rounds on individual models, such as 3 questions on Yi-34B and 1 question each on Vicuna-13B and Llama2-7B (the rows in Table I where ATT is a failure symbol).
Comparison with Jailbreak Techniques (Table II, Llama2-70B)
- ASR: L INT Vanilla (top-1000) 1-round 48/50, 5-round 50/50; GPTFuzzer 25/50 and 46/50, GCG 31/50 and 46/50; the w/ Magic setting 1-round 47/50.
- TTS (successful cases only): L INT Vanilla average 198.32s, maximum 532.15s; GPTFuzzer average 1093.03s, maximum 7132.02s; GCG average 2110.98s, maximum 4397.34s; w/ Magic with top-50 average 138.65s. The authors state this saves 10x to 20x time (Finding 7).
- Quality: The authors state that manual analysis found GCG's responses were often interrupted by the model midway and GPTFuzzer's responses lacked clarity, whereas L INT's responses were relevant, complete and clear (Finding 9); no formal user study was conducted for IRB reasons.
Commercial APIs, Code Models and Privacy (Tables IV, V)
- Commercial APIs (top-5 logits only, Table IV): Vanilla L INT achieved ASR 38/50 on GPT-3.5-instruct and -0914, and 23/50 on text-davinci-003; with w/ Magic, text-davinci-003 rose to 46/50 while the other two were unchanged; under the same setting, Llama2-70B (top-5) Vanilla achieved only 4/50 and w/ Magic 33/50. Average query counts were 22.24–103.78.
- Code models (Table V): Codellama-13B-Instruct 1-round 28/50, 5-round 43/50; Codellama-13B-Python only 1/50 and 2/50, which the authors attribute to repetitive generation; after adding a repetition penalty (Python++), this rose to 30/50 and 37/50.
- Privacy leakage (n=3): Tested on 3 authors, the authors report that L INT forced Llama2-70B to give all 3 people's email addresses and guessed 1 person's weak password; without interrogation the model refused.
Other Ablations and Analyses
- Naive selection methods (Table III, Llama2-70B): The toxicity-classifier version achieved 1-round 34/50, the negative-word-filtering version 14/50, and removing the intervention component only 26/50, all below the full L INT's 47/50.
- top-k range (Figure 6): The authors state that a larger top-k gives higher ASR; with w/ Magic, top-5 already exceeded 60% 1-round and 5-round ASR; #F for successful cases was similar across top-k values.
- Which model to use for identifying intervention points (Figure 7): The authors state that using the victim model itself for identification was best on all four measures: 1-round ASR, #F, LR and SoR.
- Internal statistics (Figure 5): The authors state that forced positions were mostly at the first token; most optimal candidate sentences ranked within the top 500; between two intervention points the model produced on average about 74–90 tokens of harmful content continuously.
What are some points that can be further explored?
In the Discussion, the authors recommend cautious open-sourcing and removal of harmful knowledge; the evaluation covers 10 models and 50 questions, and defenses were not tested.
Limitations and future directions noted by the authors
- Open-source risk warning (Discussion): The authors recommend that the community remain cautious about open-sourcing LLMs, stating that as long as a model has learned harmful content it can be forcibly extracted, unless it can be guaranteed that the model was never trained on toxic data.
- As an alignment evaluation tool (Discussion): The authors propose that even without white-box or soft-label access, this method can be used in internal alignment training to measure a model's degree of resistance.
- Complete removal of harmful knowledge (Discussion): The authors state that the safest approach may be to completely remove toxic knowledge from LLMs via data cleaning [47]–[49] or model unlearning [50], [51].
- The paper has no dedicated Limitations section; the above are directions explicitly stated in the Discussion.
Scope of experimental coverage
- Models tested: 7 open-source models plus 3 OpenAI commercial APIs, 10 in total (Section VI-A); the main results table (Table I) covers 5 of the open-source general-purpose models.
- Dataset: only the 50 toxic questions from the TDC 2023 red-teaming track; the paper does not report evaluation on other benchmarks.
- Baselines: only GPTFuzzer and GCG, and the comparison is conducted only on Llama2-70B (Table II).
- Defense evaluation: the paper does not report experiments on any jailbreak defenses or detection measures; the commercial API experiments cover only the three GPT models that provide top-5 logits.
- Reviewer consistency: manual verification was performed independently by at least two authors, with disagreements adjudicated by a third; the paper does not report consistency values; the privacy experiments use n=3 per group.
Summarize the main content of the paper
L INT uses output logits to force low-ranked tokens and elicit harmful responses, with an average 1-round ASR of 92%, faster than jailbreak baselines.
An attack paper: targeting LLMs with access to output logits (soft-label black-box access), it proposes a forced-extraction attack that requires no prompt construction.
- Problem: The authors state that although aligned models refuse toxic questions, harmful responses still hide in low-ranked tokens of the output logits; jailbreak methods require constructing a prompt per question, are time-consuming, and produce unstable output quality.
- Method: L INT iterates two steps—using the victim model's own clean conversation to classify the toxicity of prefixes/suffixes and locate the intervention point where the response shifts from harmful to harmless; at that point it takes the top-1000 low-ranked tokens to regenerate candidate next sentences, uses an MNLI-fine-tuned roBERTa for entailment analysis to select the candidate best matching the toxic question, and forces continuation until completion.
- Main results: Across 5 open-source general-purpose models, Toxicity ASR 100%, average 1-round ASR 92%, 5-round 98%, average #F 2.4–3.0 (Table I).
- Comparison: On Llama2-70B, L INT Vanilla 1-round ASR 48/50, average TTS 198.32s; GPTFuzzer 25/50, 1093.03s; GCG 31/50, 2110.98s (Table II).
- Extension: For commercial APIs that provide only top-5 logits, ASR 38/50 on GPT-3.5-instruct (Table IV); code model Codellama-13B-Instruct 5-round ASR 43/50 (Table V); in a privacy test on 3 authors, the model was forced to give all email addresses and guessed 1 weak password.
- Authors' conclusion: They state that interrogation is a more severe threat than known jailbreaks, recommend that the community be cautious about open-sourcing LLMs, and consider that the safest approach may be to thoroughly remove harmful knowledge through data cleaning or model unlearning.