Manuscript Offprint

arXiv:2609.02172

Breadth Beats Depth: Improving GCG-Based Jailbreak Optimization with Breadth-Oriented Suffix Search

Shiliang Xiao, Jingsong Wei, Yuzhi Liang, Yufan Zheng, Xia Li, Qiliang Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Optimization-based jailbreak attacks such as Greedy Coordinate Gradient (GCG) achieve strong effectiveness and transferability by optimizing adversarial suffixes on white-box source models. However, existing GCG-based methods rely on averaged adversarial loss and deep greedy search, which can over-emphasize easy-to-jailbreak behaviors and overlook promising regions of the suffix space. We propose BOSS, a plug-and-play framework that improves GCG-based jailbreak optimization through breadth-oriented suffix search. BOSS uses Tail-Focused Adversarial Loss (TFAL), standard source loss, and behavior coverage to select terminal suffixes, then explores multiple short trajectories and selectively continues promising suffixes. Experiments on public benchmarks show that BOSS improves attack success rates across multiple GCG-based methods while reducing optimization time.

1 Introduction

Large language models (LLMs) are increasingly protected by safety alignment and content moderation mechanisms, yet they remain vulnerable to jailbreak attacks. Jailbreaks use specially crafted inputs to bypass safeguards and induce models to follow harmful instructions. Among existing attacks, optimization-based jailbreak methods have received substantial attention due to their strong effectiveness and transferability.

A representative method is Greedy Coordinate Gradient (Zou et al., 2023), which appends an adversarial suffix to a harmful prompt and iteratively updates the suffix using source-model gradients. Subsequent work improves GCG through stronger objectives, templates, initialization, candidate construction, and insertion locations (Jia et al., 2025; Liao and Sun, 2024; Zhou et al., 2025; Jeong et al., 2026).

Figure

Figure 1: The final suffix can miss more effective suffixes during search.

Despite these advances, existing GCG-based jailbreak methods still face two key limitations. First, they typically optimize the average adversarial loss over multiple harmful behaviors, where the loss is defined by the likelihood of predefined target tokens. However, this averaged objective can be unreliable for jailbreak optimization. Unlike classification tasks, where successfully optimized examples often contribute little additional loss, jailbreak optimization is a generative target-matching problem: even when a behavior can already be successfully jailbroken, its target-sequence loss may remain nonzero. As a result, easy behaviors may continue to consume optimization effort, while harder behaviors that remain poorly optimized receive insufficient attention. Second, existing GCG-based methods often allocate most computation to searching deeper along greedy trajectories. However, the suffix with the lowest current source loss is not necessarily on a trajectory that leads to the best final suffix. As shown in Figure 1, suffixes selected by several GCG-based algorithms can still deviate from suffixes with substantially lower attainable adversarial losses. This suggests that deeper greedy search can miss promising regions of the suffix space, and that broader exploration may be more effective under a fixed optimization budget.

To address these limitations, we propose

*Equal contribution. †Corresponding author.

Breadth-Oriented Suffix Search (BOSS¹), a simple yet effective search framework for GCG-based jailbreak optimization. We first introduce Tail-Focused Adversarial Loss, a source-side diagnostic that emphasizes high-loss behaviors that remain difficult to optimize. Rather than treating all behaviors uniformly, TFAL directs selection pressure toward the hard tail of the per-behavior loss distribution. To avoid sacrificing broad attack coverage, BOSS uses behavior coverage as a gate and ranks eligible terminal suffixes with a weighted combination of the standard source loss and TFAL. Beyond the loss diagnostic, BOSS reallocates the optimization budget from depth to breadth. Instead of committing most computation to a single long greedy trajectory, BOSS runs multiple short optimization trajectories, retains their terminal suffixes, selects promising parents using source-side diagnostics, continues selected parents with additional budget, and finally chooses the best suffix from the combined terminal set. This design explores a broader suffix pool while remaining plug-and-play with existing GCG-based jailbreak methods.

Our main contributions are summarized as follows:

  • We identify a limitation of the standard averaged adversarial loss used in optimization-based jailbreak attacks, and propose TFAL, a hard-behavior-focused objective that better reflects jailbreak optimization progress and improves final attack success rate.

  • We propose Breadth-Oriented Suffix Search, a plug-and-play framework for GCG-based jailbreak optimization. BOSS reallocates computation from deep greedy search to broad suffix exploration by running multiple short trajectories and selectively continuing promising candidates.

  • Experiments on public benchmarks show that integrating BOSS into multiple GCG-based jailbreak algorithms achieves higher attack success rates while requiring less running time.

References (5)