The researchers propose Controlled Decoding Attacks, jailbreaking black-box LLMs through a text-only interfaceControlled Decoding Attacks on Black-Box LLMs
The authors propose BLINDBIAS, which applies decoding control to text-only continuation interfaces, achieving the highest mean harmfulness scores in most comparisons.
black-box, sample-only: the attacker can submit user prompts and assistant prefixes, and repeatedly request random continuations; cannot access target weights, hidden states, or numerical token probabilities. The goal is to bypass safety alignment.
- Whether hiding only numerical probabilities is sufficient to prevent decoding-time jailbreaks is the authors' concern. Repeated sampling can estimate the distribution, but finite samples introduce sparsity and noise, and position-by-position reconstruction increases query cost.
- BLINDBIAS reconstructs local action distributions from samples and priors, with a prefix risk model deciding when to apply BiasNet residuals; when consecutive positions need no intervention, it batch-validates the target model's multi-token drafts.
- The authors report that across four targets and three benchmarks, most score comparisons have the highest mean achieved by BLINDBIAS, but there are exceptions by model and metric. Gating reduces queries and controller calls while also lowering attack scores relative to no gating.
- The authors list endpoint query efficiency and control beyond the tokenizer action space as future directions. The interface must support repeated sampling and assistant prefix continuation; the string extension has action coverage and approximate mapping issues.
- Evaluated models
- GLM-5Gemini-3.5-FlashQwen3-32BKimi-K2.5
- Benchmarks
- AdvBenchHarmBenchSORRY-BenchLLM-LAT/harmful-dataset
- Metrics
- Harm ScoreHarm Info ScorePPLUnseen NLLAPI callsActive positions
The researchers propose a jailbreak framework for black-box large language models that conducts the attack solely through a text-only interface that allows repeated sampling and assistant-prefix continuation, without requiring model weights or numeric token probabilities. The method reconstructs the distribution using sampled outputs combined with a prior over unobserved actions, then decides at which positions to reconstruct and modify the distribution based on the response prefix, and amortizes the cost of target calls using speculative multi-token execution. Across four target endpoints and three benchmarks, the method achieves the highest average score in most comparisons.
Related events and news
1 events · 0 news mentions
- This event's paper
黑盒LLM受控解码越狱攻击框架
Paper analysis
What problem does this paper attempt to solve?
The authors investigate whether an interface that returns only sampled text and allows prefix continuation can support decoding-time jailbreaks.
The core question is: without reading target weights or numerical probabilities, can stepwise decoding control be preserved while reducing the query cost of distribution estimation.
- Scenario and motivation: The authors argue that once LLMs enter sensitive decision-making processes, jailbreaks may pose safety and privacy risks. Existing decoding-time attacks require weights or numerical probabilities and cannot be directly applied to interfaces that only return sampled text.
- Estimation challenge: Repeated continuations of the same prefix can be used to estimate the next-action distribution, but finite sampling produces sparse, noisy estimates; reconstructing the distribution at every position increases query cost.
- Core observation: The authors state that large distribution changes in successful jailbreak trajectories concentrate on a few positions, so selective intervention based on the current answer prefix is possible. Figure 2 provides KL analysis, but text conversion cannot verify bar heights or trajectory shapes.
- Proposed method: BLINDBIAS combines sample distribution reconstruction, risk-gated residual control, and multi-token draft verification, adapting BiasNet to sample-only interfaces.
- Threat model: The paper uses a black-box, sample-only setting.
- Goal: Make a safety-aligned target model answer harmful requests it would otherwise refuse.
- Knowledge: No access to target weights, hidden states, or numerical token probabilities.
- Capabilities: Control the user prompt and assistant prefix, repeatedly request random continuations of the same prefix.
- Victim system: An interface that accepts externally provided assistant prefixes and returns only text continuations; not equivalent to all text chat interfaces.
What related research exists?
The most direct predecessor is JULI; the authors retain BiasNet but switch to sampling-based input reconstruction and selective execution.
Related work spans prompt attacks, decoding control, selective computation, and broader adaptation methods.
Prompt-level jailbreaks
- Search and templates: Zou et al. (2023) optimize transferable suffixes; PAIR (2023) and TAP (2023) use feedback optimization and tree search, respectively; GPTFuzzer (2024) builds attacks via template mutation and response selection.
- Representation and interaction: CipherChat (2024), FlipAttack (2026), and LogiBreak (2026) change the request's encoding, text representation, and logical representation, respectively; Crescendo (2024) advances the goal through multi-turn interaction.
- Baseline methods: Experiments use PAIR, GPTFuzz, LogiBreak, FlipAttack, with benchmarks AdvBench, HarmBench, and SORRY-Bench as comparisons.
Decoding-time control and attacks
- Controlled generation: PPLM (2020) modifies hidden activations; GeDi (2021) and FUDGE (2021) guide token probabilities; Proxy tuning (2024a) transfers the distribution difference from tuning a small model to the target.
- Decoding-time jailbreaks: Weak-to-Strong (2025) and Emulated Disalignment (2024) redirect target outputs using auxiliary model distributions.
- JULI (2026): Introduces BiasNet, which can use top-5 log-probabilities. The authors emphasize this is already a black-box attack when numerical probabilities are visible; this paper changes to a stricter sample-only interface.
Shallow alignment and adaptive execution
- Prefix and alignment: Qi et al. (2025) discuss alignment's effect on initial tokens; Andriushchenko et al. (2025) discuss vulnerabilities in prefilling and target-specific API access. The authors do not conclude that a fixed initial window is sufficient.
- Speculative decoding: Leviathan et al. (2023) and Chen et al. (2023) use draft-and-verify structures. BLINDBIAS uses a remote target for drafts and a local risk model for verification gating, without promising to preserve the target sampling distribution.
- Verification and resource allocation: Premise verification, TS-Reasoner, Memory retrieval, Learning to Deliberate, AgentAuditor, and Self-Compression provide background on verification and adaptive computation; the paper notes their goals differ from jailbreak control.
Broader reliability and adaptation
- Multimodal methods: The paper discusses semantic prototype learning, DPU, Geometry over Density, Treble Counterfactual VLMs, MIRROR, and cloud-device collaboration as background for targeted intervention and adaptation.
The authors position their contribution as changing how BiasNet inputs are obtained and when execution occurs, not re-proposing its residual control form. Compared to prompt-level attacks, this work additionally relies on repeated random sampling and an attacker-provided assistant prefix.
How does the paper address this problem?
BLINDBIAS reconstructs the action distribution, applies residuals only at positions allowed by the gate, and validates multi-token drafts.
BLINDBIAS decomposes sample-only control into three components: information reconstruction, selective intervention, and call amortization; the primary action space is defined by the local tokenizer.
Action Representation and Distribution Reconstruction
- Local actions: Returned text is mapped to local action IDs, and selected actions are decoded into an assistant prefix. These actions need not correspond to the provider's internal tokens, and the generation budget is separate from the API output budget.
- Prior smoothing: The core estimate is p̂t(v)=(cv+κ/|V|)/(K+κ). Counts come from sampling, the uniform prior reserves probability mass for unobserved actions, and κ is the total prior mass.
- Sample completeness: Training cache and inference use the same estimator; invalid or unmappable responses are resampled, and reconstruction is aborted if the retry budget is exhausted, without silently falling back to fewer samples.
Prefix Risk Gating and Residuals
- Risk object: A fixed risk model judges whether "current prefix plus target candidate action" has entered an unsafe trajectory, rather than judging only the user prompt. The higher the risk, the weaker the control residual.
- Control objective: The core selection rule is yt=argmaxv[ℓt+s̃t Bϕ(ℓt)]v. BiasNet adjusts the reconstructed log-probabilities, and the gate scale determines residual strength; a scale of zero directly accepts the target candidate.
- Gate meaning: The soft scale and the execution cutoff separately control strength and whether the controller is invoked. The authors note that the midpoint of the soft gate does not equal the actual execution boundary, nor is it equivalent to a hard gate with the same threshold.
- Initial handling: Short prefixes use full-strength warm-up to avoid risk decisions based on empty or very short responses; the gate can be re-enabled at later positions.
Controller and Risk Model Training
- BiasNet cache: For each target, all response prefixes from 40 LLM-LAT instruction–response records are constructed, with 8 records deterministically held out; uses a 1,024-dimensional, four-hash count-sketch input projection and layer normalization.
- Training objective: Cross-entropy is optimized on reference prefixes, including only positions with nonzero residual scale, using the same soft scale as inference. Training is 10 epochs, AdamW, batch size 32, with the risk model kept fixed.
- Risk classifier: A frozen Llama-3.1-8B-Instruct backbone is used, with a classification head trained on the 4,096-dimensional representation at the last layer, last non-padding token; its sigmoid output gives prefix risk.
- Label source: Llama-Guard-3-8B is used to locate the unsafe boundary, and prefixes at and after the boundary are uniformly labeled unsafe. Appendix A.3.3 states this is not a Guard judgment obtained independently for each prefix.
Multi-token Drafts and String Extension
- Draft validation: When consecutive positions require no intervention, the target returns a multi-token draft at once, and the local risk model validates each prefix; only the contiguous portion satisfying the gating rule is submitted, the rest is discarded and control resumes.
- Semantic boundary: Validation enforces the gating rule on accepted prefixes, but does not guarantee action-by-action consistency with repeated single-action API calls, nor distribution preservation.
- String action extension: Section 3.4 defines an empirical action space using strings from calibration samples and reference labels, fusing a public proxy model prior, without using the target tokenizer.
- Extension positioning: The authors list it separately as an exploratory stress test. The main text gives no standalone result table for this extension, so the main tokenizer experiments or Table 2 cannot be taken as evidence of its effectiveness.
What experiments did the paper conduct?
Main results include model and metric exceptions; gating experiments reduce queries while lowering attack scores relative to no gating.
Experimental comparison of attack scores, reconstruction quality, and gating call costs; the main results do not lead on all conditions.
Experimental Setup
- Target models: GLM-5, Gemini-3.5-Flash, Qwen3-32B, Kimi-K2.5; a controller is trained separately for each target. Gemini uses the native API, the rest use OpenRouter (Section 4.2).
- Benchmark scale: Three English harmful request benchmarks: AdvBench 520 targets, HarmBench 320-behavior text test split, SORRY-Bench 440 base prompts, 44 categories (Section 4.1).
- Baselines and settings: PAIR, GPTFuzz, LogiBreak, FlipAttack use official implementations and settings; the main result BLINDBIAS uses soft-gated, global-uniform configuration with an output budget of 80 local tokens (Appendix A.2).
- Metrics and judges: Gemini-3.5-Flash rates Harm Score and Harm Info Score, measuring harmful intent compliance and harmful information content, respectively. The paper does not report binary success thresholds; Appendix A.1 separately lists the sources of the two scoring prompts.
- Diagnostic protocol: Unless otherwise noted, uses a 40-record training cache, 100 AdvBench prompts, and Qwen3-32B. Reconstruction prediction metrics use calibrated/held-out splits of the same prefix samples (Appendix A.3).
- Evidence recording: The paper does not report the number of repetitions for main results, confidence intervals, or human-judge agreement. The seed 42 listed in the appendix is a training setting, not the number of experimental repetitions.
Main Results
According to Table 1, the following are BLINDBIAS's average Harm/Info; the full table uses soft-gated, global-uniform configuration.
Swipe horizontally to read the table
Target model AdvBench HarmBench SORRY-Bench GLM-5 4.29/2.88 4.14/2.74 3.83/2.50 Gemini-3.5-Flash 3.58/2.27 3.57/2.39 3.67/2.30 Qwen3-32B 3.03/2.16 2.68/1.97 2.91/2.15 Kimi-K2.5 3.42/2.49 3.31/2.54 3.55/2.47 - Author summary: The authors report that BLINDBIAS achieves the highest mean in 20 of 24 model × benchmark × metric comparisons. The comparison involves prompt-layer baselines with different interface capabilities.
- GLM-5 exception: On SORRY-Bench, FlipAttack's Harm/Info is 4.45/2.71, both higher than BLINDBIAS (Table 1).
- Metric divergence: Kimi-K2.5's AdvBench Harm is led by LogiBreak at 4.25; Qwen3-32B's HarmBench Info is led by PAIR at 2.12 (Table 1).
Reconstruction Signal and Attack Scores
- Uniform prior: On Qwen3-32B, Table 3's smoothed empirical counts and uniform prior give PPL of 11.85, 7.07, Unseen NLL of 21.14, 14.50; Harm/Info on 100 AdvBench prompts is 1.50/1.26, 3.03/2.16.
- Prediction and control separation: The global unigram prior has PPL/Unseen NLL of 5.81/12.34, but Harm/Info of 2.78/1.94. The authors argue that predictive fit and steering utility are related but not interchangeable (Table 3).
- Numerical reference: Numerical log probabilities have PPL/Unseen NLL of 3.17/7.38, Harm/Info of 4.06/3.08. This reference is not part of the sample-only threat model (Table 3, Appendix A.3.1).
Cross-Family Transfer of Context Priors
- Same-family proxy: With fixed Qwen3-32B target and controller, on 100 AdvBench prompts, Qwen3-1.7B prior gives Harm/Info of 3.90/2.83, with PPL of 3.86 within the proxy calibration protocol (Table 2). The target differs from the proxy.
- Cross-family proxy: SmolLM2-1.7B has PPL, Harm, Info of 3.93, 3.02, 2.12; Gemma-3-1B has 3.94, 3.38, 2.39; shuffled control has 7.11, 2.69, 2.16 (Table 2).
- Author interpretation and conditions: The authors argue that cross-family priors can provide control signals, but only Gemma's Info exceeds the shuffled control. This experiment still defines actions with the target tokenizer, not an extension without a target tokenizer.
Gating Quality and Call Costs
- Full pipeline comparison: On Gemini-3.5-Flash, 100 AdvBench prompts, no-gate, hard-gate, and runtime soft-gate give Harm/Info of 3.96/2.81, 3.44/2.19, 3.58/2.27, respectively (Table 4).
- Cost results: The three have average API calls per response of 4000, 448, 283, and Active positions of 100.0%, 9.5%, 5.25%. The authors state that soft gating reduces intervention and queries but incurs a score cost relative to no gating (Table 4).
- Comparison boundary: Hard gating uses a controller trained without gating, while the soft pipeline uses scaled training and execution; thus it is not an ablation that only replaces inference gating. The authors note that call costs also depend on sampling, retries, and response length.
Other Ablations and Analyses
- 75 epochs training rule: Table 5's No gate/Soft weights have Margin of -2.683/-1.346, Beats base of 19.7%/36.6%; evaluation weights and support sets change with the rule.
- 10 epochs training rule: Table 5's Hard-active only/Hard + first 3 have Margin of 2.250/1.040, Beats base of 64.3%/54.5%; the authors state that end-to-end gains cannot be confirmed from this.
- KL analysis: Figure 2 labels GLM-5, Qwen3-32B, KL Divergence, and Frequency. The authors state that large changes concentrate on a few positions; plain text cannot verify bar heights, peaks, or trajectory positions, and the figure caption does not specify benchmarks or sample sizes.
What are some points that can be further explored?
The authors list endpoint query efficiency and control beyond the tokenizer action space as future directions.
The authors explicitly retain boundaries regarding interface and action representation, and propose improving endpoint query efficiency.
Limitations and Future Directions Noted by the Authors
- Query efficiency: The conclusion states that sample-only control still has costs, and improving endpoint-level query efficiency is a future direction (Section 5).
- Action space extension: The conclusion lists control beyond tokenizer-based action spaces as a future direction (Section 5).
- String approximation: The empirical string space cannot output target token strings that never appear in calibration; the proxy scorer keeps only the first proxy token of the string (Section 3.4).
- Training and inference prefixes: Training uses reference prefixes, inference uses generated prefixes; shared reconstruction and gating rules cannot eliminate the difference between these two prefix distributions (Section 3.2).
- Draft validation boundary: Validation follows the gating rule, but does not guarantee consistency with repeated single-action API calls or distribution preservation (Section 3.3).
- Training diagnostics boundary: The evaluations in Table 5 support changes with the rule, but cannot isolate training effects on the common support; warm-up diagnostics do not confirm end-to-end improvements (Appendix A.3.3).
Experimental Coverage
- Interface and targets: Main results include four targets and three English benchmarks; the attack interface supports repeated random sampling and external assistant prefixes (Section 3, Section 4).
- Action representation: Main experiments use the local tokenizer; Gemini-3.5-Flash uses the Gemma tokenizer, whose local actions need not correspond to Gemini's internal tokens (Appendix A.2).
- Diagnostic scale: Reconstruction and transfer analyses use Qwen3-32B and 100 AdvBench prompts; full pipeline comparisons with gating use Gemini-3.5-Flash and 100 AdvBench prompts (Tables 2–4).
- Review information: Outputs are scored by Gemini-3.5-Flash; the paper does not report human agreement, number of repetitions for main results, or confidence intervals (Section 4.1, Appendix A.1).
- Risk model records: Retained checkpoints confirm architecture and label source, but do not retain original optimizer parameters or dataset size; the optimization parameters listed in Appendix A.3.3 are code defaults.
Summarize the main content of the paper
The authors argue that hiding numerical probabilities is not sufficient to eliminate the decoding attack surface of interfaces that support repeated sampling and prefix continuation.
BLINDBIAS is a black-box decoding-time jailbreak framework for sample-only continuation interfaces, studying whether sampling can support step-by-step control without target numerical probabilities.
- Method positioning: Reconstructs local action distributions via prior smoothing, scales BiasNet residuals by answer prefix risk, and amortizes multi-token draft calls with local validation; the interface must allow the attacker to provide assistant prefixes and repeated sampling.
- Main effect: On Gemini-3.5-Flash's SORRY-Bench, the soft-gated, global-uniform version has Harm/Info of 3.67/2.30, both the highest means for that condition (Table 1).
- Leading exceptions: On GLM-5's SORRY-Bench, BLINDBIAS has 3.83/2.50, FlipAttack has 4.45/2.71; on Kimi-K2.5's AdvBench Harm, LogiBreak leads with 4.25 (Table 1).
- Reconstruction evidence: On Qwen3-32B with 100 AdvBench prompts, the uniform prior has Harm/Info of 3.03/2.16, and the global unigram prior has 2.78/1.94. The authors argue that better predictive fit does not automatically yield better control scores (Table 3).
- Cost trade-off: On Gemini-3.5-Flash with 100 AdvBench prompts, soft gating averages 283 API calls per response with Harm 3.58; no gating has 4000 calls and 3.96 (Table 4).
- Author conclusion: The authors argue that hiding only numerical probabilities may not close the decoding attack surface of such interfaces, and list query efficiency and action space extension as future directions. Draft validation does not guarantee action-by-action equivalence, and main results do not report repetitions or human scoring agreement.
Related papers
- What Do Safety-Aligned LLMs Learn From Mixed Compliance Demonstrations?Analysis / interpretabilityarXiv