SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.04234 · ICLR · 2025

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

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

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.04234.json · badge: /api/ran/2410.04234.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
danshumaan/functional_homotopy canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
binsearch Ran
ran, honoured the contract we drafted
danshumaan/functional_homotopy/fhgr/fh-gcg-binsearch.py
pointer only (licence: NONE) · get_code("e4417ee936754707")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

binsearch Ran
ran, honoured the contract we drafted
danshumaan/functional_homotopy/utils/harmbench_evaluator.py
pointer only (licence: NONE) · get_code("bf2afc38e02b66e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

first_difference Ran
ran; our contract draft was wrong, not the code
danshumaan/functional_homotopy/DualTrainer.py
pointer only (licence: NONE) · get_code("62252b94693f5878")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate Ran
ran; our contract draft was wrong, not the code
danshumaan/functional_homotopy/fhautodan/fh-autodan.py
pointer only (licence: NONE) · get_code("634d43e275317dd4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

init_training_args Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
danshumaan/functional_homotopy/fhgr/fh-gcg-binsearch.py
pointer only (licence: NONE) · get_code("979ebedd65ee2267")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_data Ran
ran; our contract draft was wrong, not the code
danshumaan/functional_homotopy/fhautodan/fh-autodan.py
pointer only (licence: NONE) · get_code("a73c774935e3bc59")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_data Ran
ran; our contract draft was wrong, not the code
danshumaan/functional_homotopy/fhgr/fh-gcg-binsearch.py
pointer only (licence: NONE) · get_code("2f49bbc9b11f029c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_model_and_tokenizer Ran
ran; our contract draft was wrong, not the code
danshumaan/functional_homotopy/fhautodan/utils/opt_utils.py
pointer only (licence: NONE) · get_code("576ee553d5cff992")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

roulette_wheel_selection Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
danshumaan/functional_homotopy/fhautodan/utils/opt_utils.py
pointer only (licence: NONE) · get_code("1fe7dbe6f5cc4593")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

autodan_sample_control Not yet run
unverified (harvested, no recorded run)
danshumaan/functional_homotopy/fhautodan/utils/opt_utils.py
pointer only (licence: NONE) · get_code("17d869189902d3eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compute_slice Not yet run
unverified (harvested, no recorded run)
danshumaan/functional_homotopy/fhautodan/utils/string_utils.py
pointer only (licence: NONE) · get_code("4ca908a5f1178bfe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

harmbench_judge Not yet run
unverified (harvested, no recorded run)
danshumaan/functional_homotopy/fhautodan/fh-autodan.py
pointer only (licence: NONE) · get_code("4aaded2078e9febe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, danshumaan/functional_homotopy when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
roulette_wheel_selection 2 other papers
2 dated earlier
2310.04451 (2023-10)
AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
2402.16459 (2024-02)
Defending LLMs against Jailbreaking Attacks via Backtranslation
autodan_sample_control 1 other paper
1 dated earlier
2310.04451 (2023-10)
AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
load_model_and_tokenizer 1 other paper
1 dated earlier
2402.09063 (2024-02)
Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Warning: This paper contains potentially offensive and harmful text. 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 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. * Equal contribution.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.04234")
get_code_for_paper("2410.04234")
have("2410.04234")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.04234.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.04234.svg)](https://syntology.ai/paper/2410.04234)

Connect an agent — have() is free.