Lookahead-GCG: Improving Universal Multi-Model Optimization-Based Jailbreaking Attacks via Stochastic Nesterov Optimization

Rong Feng, Haohan Zhao, Shiqin Tang, Geng Liu, Song Lai, Meng Wang, Shuxin Zhuang, Yuqi Zha, Changyi Ma, Runsheng YuICML 2026

Introduction

Red-teaming large language models (LLMs) relies heavily on the concept of transferability: the ability to optimize an adversarial prompt or "jailbreak suffix" on accessible, open-source surrogate models and successfully deploy it against proprietary, black-box systems like GPT-4 or Gemini.

Intuitively, optimizing an attack against multiple source models simultaneously should yield a more robust and universally transferable suffix. However, the research community had largely abandoned this multi-model approach because it historically provided almost no performance improvement over single-model training. A new framework, Lookahead-GCG, challenges this consensus. By identifying standard optimizers as the root cause of multi-model failure and introducing a stabilized optimization strategy, Lookahead-GCG achieves a breakthrough 34.03% Attack Success Rate (ASR) on closed-source models, proving that multi-model training is far more effective than previously believed.

The Core Problem: Optimizer Instability

The failure of previous multi-model jailbreaking attempts wasn't a flaw in the strategy itself, but a limitation of the optimizer. Standard jailbreaking methods, such as Greedy Coordinate Gradient (GCG), essentially function as discrete versions of Stochastic Gradient Descent (SGD).

When aggregating gradients from highly diverse models, standard SGD becomes unstable. The optimization process suffers from "noisy" updates, causing the search to jitter and fail to generalize to unseen target models. The researchers realized that to unlock the potential of multi-model ensembles, the optimization process needed a fundamental redesign focused on stability.

The Solution: Lookahead-GCG

To stabilize multi-model optimization, the researchers developed Lookahead-GCG, which introduces three primary innovations:

  1. Stochastic Nesterov Accelerated Gradient (SNAG): Unlike standard momentum, which calculates updates based on the current position, SNAG employs a "lookahead" mechanism. It evaluates the gradient at an anticipated future position. This reduces the optimizer's sensitivity to the specific noise of any single model's gradient, steering the process toward a more stable, universal minimum.
  2. Embedding-Space Momentum Accumulation: Standard GCG operates in a discrete token space (swapping individual words), where the concept of momentum is difficult to apply. Lookahead-GCG reformulates the problem into the continuous latent (embedding) space. This allows the optimizer to accumulate true directional momentum before periodically projecting the results back into the discrete vocabulary.
  3. Maximally Distant Initialization & Templates (MDT): The researchers discovered that starting the optimization from a point that maximizes initial loss across all models prevents the search from getting trapped in model-specific local minima. Furthermore, by using Maximally Distant Templates (MDT), they intentionally shift the instruction format away from what the model expects. This forces the target model into unfamiliar representational states, amplifying the potency of the adversarial suffix.

Experimental Setup and Key Results

The study evaluated Lookahead-GCG using HarmBench, a standardized framework for automated red-teaming. The team trained on a subset of 20 harmful behaviors using Llama-3.1-8B and Vicuna-7b-v1.5 as surrogate models. They then evaluated the generalized suffixes on a 200-behavior test set against a wide array of targets, including open-source models (Llama-2/3, Gemma, Qwen) and commercial APIs (DeepSeek-V3.2, Gemini-1.5-Pro, Grok-3-mini, GPT-4.1-mini, and a preview of GPT-5-mini).

Lookahead-GCG established a new state-of-the-art for universal transferable attacks:

  • Open-Source Dominance: The method achieved a 50.37% ASR on open-source models, significantly outperforming the popular TransferAttack baseline (39.00%).
  • Closed-Source Breakthrough: It reached a 34.03% ASR across commercial APIs, highlighted by a striking 58.83% success rate on Gemini-1.5-Pro.
  • The Multi-Model Gain: While previous methods saw a negligible +0.17% gain from adding more source models, Lookahead-GCG achieved a massive +11.78% boost, validating the efficacy of stabilized multi-model training.
  • Efficiency: Despite the added complexity of continuous-space momentum and lookahead gradients, training time only increased marginally (13.5 hours compared to 10.4 hours for standard GCG).

Limitations and Future Directions

While Lookahead-GCG represents a significant leap forward, it comes with practical constraints. Multi-model training requires loading multiple 7B+ parameter models into memory simultaneously, necessitating at least two A100 GPUs—a potential barrier for resource-constrained researchers.

Furthermore, as LLM defenses evolve, even stabilized optimization faces hurdles. The preview of GPT-5-mini demonstrated high resistance, yielding only a 2% ASR. Future work will likely need to explore even more diverse source ensembles to bypass next-generation safety filters.

Ultimately, Lookahead-GCG highlights a critical vulnerability in modern LLMs. By sharing these findings, the authors aim to equip developers with better red-teaming tools, fostering the creation of more robust and secure AI systems.

Summary updated

BibTeX
@inproceedings{feng2026lookahead,
  author = {Rong Feng and Haohan Zhao and Shiqin Tang and Geng Liu and Song Lai and Meng Wang and Shuxin Zhuang and Yuqi Zha and Changyi Ma and Runsheng Yu},
  title = {{Lookahead-GCG: Improving Universal Multi-Model Optimization-Based Jailbreaking Attacks via Stochastic Nesterov Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=49ZO681M7H},
}
Figure