Papers › Tamper-Resistant Safeguards for Open-Weight LLMs

Tamper-Resistant Safeguards for Open-Weight LLMs

1 Aug 2024arXiv:2408.00761archive 2025-07-28

Rishub Tamirisa, Bhrugu Bharathi, Long Phan, Andy Zhou, Alice Gatti, Tarun Suresh, Maxwell Lin, Justin Wang, Rowan Wang, Ron Arel, Andy Zou, Dawn Song, Bo Li, Dan Hendrycks, Mantas Mazeika

Rapid advances in the capabilities of large language models (LLMs) have raised widespread concerns regarding their potential for malicious use. Open-weight LLMs present unique challenges, as existing safeguards lack robustness to tampering attacks that modify model weights. For example, recent works have demonstrated that refusal and unlearning safeguards can be trivially removed with a few steps of fine-tuning. These vulnerabilities necessitate new approaches for enabling the safe release of open-weight LLMs. We develop a method, called TAR, for building tamper-resistant safeguards into open-weight LLMs such that adversaries cannot remove the safeguards even after thousands of steps of fine-tuning. In extensive evaluations and red teaming analyses, we find that our method greatly improves tamper-resistance while preserving benign capabilities. Our results demonstrate that tamper-resistance is a tractable problem, opening up a promising new avenue to improve the safety and security of open-weight LLMs.

PaperPDFCodeCode 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="2408.00761")

Code

Syntology Ran 9 of 16 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 9 ran; community (archive-listed): 2 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rishub-tamirisa/tamper-resistance officialmentioned in papermentioned on GitHubpytorchMIT report
boyiwei/tar-reproduce mentioned on GitHubpytorchMIT 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

16 samples harvested; 9 ran; 0 honoured the contract we drafted; 7 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.

9ran
7unverified

Licence: 0 of the 16 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

get_adam rishub-tamirisa/tamper-resistance/red_teaming/optimizers.py official repository ran MIT (permissive) · 2d4ef3518e6098f8 · report
get_sgd_with_momentum rishub-tamirisa/tamper-resistance/red_teaming/optimizers.py official repository ran MIT (permissive) · 4af747db2262038a · report
get_sgd_with_nesterov_momentum rishub-tamirisa/tamper-resistance/red_teaming/optimizers.py official repository ran MIT (permissive) · 1f164099e83b0e6f · report
lambda_fn rishub-tamirisa/tamper-resistance/tar.py official repository ran MIT (permissive) · d0ee74a4bdf0b184 · report
log_1_minus_p_loss rishub-tamirisa/tamper-resistance/modules/objectives.py official repository ran MIT (permissive) · 5cb0ed367e769a24 · report
log_p_loss rishub-tamirisa/tamper-resistance/modules/objectives.py official repository ran MIT (permissive) · d2fee7baeb212dfd · report
max_entropy_loss rishub-tamirisa/tamper-resistance/modules/objectives.py official repository ran fingerprinted MIT (permissive) · ca477c3a5169e14c · report
return_coin_flip_batch_selection rishub-tamirisa/tamper-resistance/modules/utils.py official repository ran MIT (permissive) · d2d6bebf37fdf81c · report
return_step_based_batch_selection rishub-tamirisa/tamper-resistance/modules/utils.py official repository ran MIT (permissive) · 65d8919abbae12b8 · report
get_bio_pilecamel_forget_with_heldout_dataloaders rishub-tamirisa/tamper-resistance/modules/dataloaders.py official repository unverified MIT (permissive) · 9d75b6ae75b4e40f · report
get_camel_ai_datasets rishub-tamirisa/tamper-resistance/modules/dataloaders.py official repository unverified MIT (permissive) · 1a17a7e1f54cb58c · report
get_distributed_random_number rishub-tamirisa/tamper-resistance/modules/utils.py official repository unverified MIT (permissive) · d8079961a9ada7e2 · report
get_pile_bio_retain_forget_heldout_datasets rishub-tamirisa/tamper-resistance/modules/dataloaders.py official repository unverified MIT (permissive) · 5051961408d3c896 · report
lambda_fn rishub-tamirisa/tamper-resistance/modules/baselines.py official repository unverified MIT (permissive) · 84bd023f74905cd6 · report
get_bio_pilecamel_forget_with_heldout_dataloaders boyiwei/tar-reproduce/modules/dataloaders.py community (archive-listed) unverified MIT (permissive) · 2066015c29979283 · report
get_pile_bio_retain_forget_heldout_datasets boyiwei/tar-reproduce/modules/dataloaders.py community (archive-listed) unverified MIT (permissive) · ba92aaf6d0cfbfc9 · report

Tasks

Red TeamingTAR

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