atlas

Research map / Large language models / Language, safety and interpretability

Functional Homotopy: Smoothing Discrete Optimization via Continuous Parameters for LLM Jailbreak Attacks

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Mechanistic analysis of attention and representations · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes functional homotopy, which fine-tunes LLMs to produce a chain of progressively less-aligned checkpoints and warm-starts a greedy token-level jailbreak search along that chain, improving attack success on Llama-2 and Llama-3.

Problem

Gradient-based token search for LLM jailbreak suffixes is hard because the input space is discrete and token gradients give only weak guidance; the paper also argues the general input generation problem is NP-hard.

Approach

Lift the objective to F(p,x) with model parameters p as a continuous variable; run gradient descent on p to create a chain of intermediate (weakly aligned) checkpoints, then solve the discrete input search from the weakest checkpoint back to the base model, warm-starting each stage with the previous suffix (homotopy/easy-to-hard).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply functional homotopy to GR (ablation)GR · AdvBench + HarmBench, Llama-2ASR: 37.5 → 99.5Helped
apply functional homotopy to GCG (ablation)GCG · AdvBench + HarmBench, Llama-2ASR: 69.5 → 99.0Helped
apply functional homotopy to AutoDAN (ablation)AutoDAN · AdvBench + HarmBench, Llama-2ASR: 61.5 → 68.5Helped
apply functional homotopy to GR (ablation)GR · AdvBench + HarmBench, Llama-3ASR: 47.0 → 76.5Helped
apply functional homotopy to GCG (ablation)GCG · AdvBench + HarmBench, Llama-3ASR: 59.0 → 77.5Helped
apply functional homotopy to AutoDAN (ablation)AutoDAN · AdvBench + HarmBench, Llama-3ASR: 19.5 → 14.5Hurt
use token-gradient ranking instead of random rankingtoken selection · AdvBench, Llama-3 8BRBO: 0.50 → 0.517Helped
use token-gradient ranking instead of random rankingtoken selection · AdvBench, Llama-2 7BRBO: 0.50 → 0.506Helped
use token-gradient ranking instead of random rankingtoken selection · AdvBench, Mistral-v0.3RBO: 0.498 → 0.503Helped
use token-gradient ranking instead of random rankingtoken selection · AdvBench, Vicuna-v1.5RBO: 0.50 → 0.507Helped
use token-gradient substitutions instead of greedy random substitutionsGCG · jailbreak search iterationcomputational time: +85% computational timeHurt
use functional homotopy rather than direct searchFH-GR · Llama-2 and Llama-3, hard samplesloss convergenceHelped

Surprising findings

Limitations

Experimental setup

Datasets: AdvBench HarmBench

Benchmarks: AdvBench HarmBench

Metrics: attack success rate rank biased overlap iterations to success runtime

Baselines: GCG AutoDAN Greedy Random (GR)

Builds on: GCG AutoDAN homotopy method LoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy