Papers › Functional Homotopy: Smoothing Discrete Optimization via Continuous Parameters for LLM...

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

5 Oct 2024arXiv:2410.04234archive 2025-07-28

Zi Wang, Divyam Anshumaan, Ashish Hooda, Yudong Chen, Somesh Jha

Optimization methods are widely employed in deep learning to identify and mitigate undesired model responses. While gradient-based techniques have proven effective for image models, their application to language models is hindered by the discrete nature of the input space. This study introduces a novel optimization approach, termed the \emph{functional homotopy} method, which leverages the functional duality between model training and input generation. By constructing a series of easy-to-hard optimization problems, we iteratively solve these problems using principles derived from established homotopy methods. We apply this approach to jailbreak attack synthesis for large language models (LLMs), achieving a 20%-30% improvement in success rate over existing methods in circumventing established safe open-source models such as Llama-2 and Llama-3.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.04234")

Code

Syntology Ran 9 of 12 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: found in paper text by Syntology: 12 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

danshumaan/functional_homotopy found in paper text by Syntology report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 9 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
8ran
3unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from danshumaan/functional_homotopy. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

binsearch danshumaan/functional_homotopy/fhgr/fh-gcg-binsearch.py found in paper text by Syntology ran no licence file found · pointer only · e4417ee936754707 · report
binsearch danshumaan/functional_homotopy/utils/harmbench_evaluator.py found in paper text by Syntology ran no licence file found · pointer only · bf2afc38e02b66e4 · report
first_difference danshumaan/functional_homotopy/DualTrainer.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 62252b94693f5878 · report
generate danshumaan/functional_homotopy/fhautodan/fh-autodan.py found in paper text by Syntology ran no licence file found · pointer only · 634d43e275317dd4 · report
init_training_args danshumaan/functional_homotopy/fhgr/fh-gcg-binsearch.py found in paper text by Syntology ran no licence file found · pointer only · 979ebedd65ee2267 · report
load_data danshumaan/functional_homotopy/fhautodan/fh-autodan.py found in paper text by Syntology ran no licence file found · pointer only · a73c774935e3bc59 · report
load_data danshumaan/functional_homotopy/fhgr/fh-gcg-binsearch.py found in paper text by Syntology ran no licence file found · pointer only · 2f49bbc9b11f029c · report
load_model_and_tokenizer danshumaan/functional_homotopy/fhautodan/utils/opt_utils.py found in paper text by Syntology ran no licence file found · pointer only · 576ee553d5cff992 · report
roulette_wheel_selection danshumaan/functional_homotopy/fhautodan/utils/opt_utils.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · 1fe7dbe6f5cc4593 · report
autodan_sample_control danshumaan/functional_homotopy/fhautodan/utils/opt_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 17d869189902d3eb · report
compute_slice danshumaan/functional_homotopy/fhautodan/utils/string_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 4ca908a5f1178bfe · report
harmbench_judge danshumaan/functional_homotopy/fhautodan/fh-autodan.py found in paper text by Syntology unverified no licence file found · pointer only · 4aaded2078e9febe · report

Tasks

LLM Jailbreak

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections