abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

dhairyapandya/cross-lingual-tamper-resistance

published by @dhairyapandya

Safety benchmarks, over-refusal tests, and guard-model data.Safety tests and tests for refusing harmless requests.

language:enlanguage:bnlanguage:hilicense:cc-by-nc-4.0size_categories:n<1Kmodality:documentlibrary:datasetslibrary:mlcroissant +15 more
Lifetime downloads
115
Last 30 days
115
Likes
-
Size
958.4 KB

Description

Blue-teaming multilingual safety: when an English-trained defense meets a Bengali attack

A hackathon project on cross-lingual tamper resistance of fine-tuning-stage safety defenses. Full paper (PDF): cross-lingual-tamper-resistance.pdf. Live demo with every chart and an animated walkthrough: getalife-lexsi-study.vercel.app. Every number below carries a 95% confidence interval and its over-refusal.

The game we were playing

Put yourself on the blue team. A model… See the full description on the dataset page: https://huggingface.co/datasets/dhairyapandya/cross-lingual-tamper-resistance.

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
cc-by-nc-4.0
Languages
enbnhi
Created on HFCreated
2026-11-13 · 23 days ago
Size category
n<1K
ModalitiesData types
document
LibrariesTools
datasetsmlcroissant

Related datasets same stage · Evaluatesame step · Testing

Read further

Total size
958.4 KB
Files
3
Formats
pdf
Head
6519ac0
Last updated on HFLast updated
2026-11-13

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("dhairyapandya/cross-lingual-tamper-resistance")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="dhairyapandya/cross-lingual-tamper-resistance", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/dhairyapandya/cross-lingual-tamper-resistance

Files by folder from our last crawlfrom our last check

top level 3 files 958.4 KB
.gitattributes 2.6 KB file download
cross-lingual-tamper-resistance.pdf 942.6 KB pdf download
README.md 13.3 KB md download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Blue-teaming multilingual safety: when an English-trained defense meets a Bengali attack

One model, two verdicts: English harm 0 to 4 percent, Bengali harm 59 to 61 percent after a Bengali fine-tuning attack

A hackathon project on cross-lingual tamper resistance of fine-tuning-stage safety defenses. Full paper (PDF): cross-lingual-tamper-resistance.pdf. Live demo with every chart and an animated walkthrough: getalife-lexsi-study.vercel.app. Every number below carries a 95% confidence interval and its over-refusal.

The game we were playing

Put yourself on the blue team. A model provider lets customers fine-tune a chat model, and the provider's job is to make sure a customer's fine-tune cannot quietly strip the model's safety. There is a whole family of defenses for exactly this, applied at the fine-tuning stage: Lisa, Vaccine, Booster, RepNoise. They work. The catch is that almost every one of them is built, tuned, and evaluated in English.

So we put on the red hat for a moment and asked a question the English-centric defense literature had mostly left open: what if the attacker does not fine-tune in English? What if the poisoned data is in Hindi or Bengali? And then, back on the blue team, the harder question: if the defense still looks fine in English, would we even notice?

The short answer is no, we would not. And that is the whole problem.

What the defender sees, and what the defender misses

We took CohereLabs/tiny-aya-fire, defended it with the standard toolkit, then let an attacker run a poisoned fine-tune in Bengali. Then we evaluated the result in both languages. Here is the gap, the repair, and the counterpart test, all in one place:

Results: the language gap, the low-rank repair dropping Bengali harm from 50 to 14 percent, and the failed training-time prevention

Read the top of that figure slowly, because it is the finding. The same defended model, after the same Bengali attack, refuses almost every harmful English prompt (0 to 4 percent get through) while answering 59 to 61 percent of harmful Bengali ones. If your dashboard is in English, you ship this model and call it robust. It is not robust. It is wide open in a language you did not test.

We checked the obvious escape hatch first: just add Bengali safety data to the defense. It barely helps. Bengali harm falls only from about 0.57 to about 0.46, with overlapping intervals, while English harm actually gets worse. The attacker's Bengali fine-tune overwrites the Bengali safety we added. That is the tell that this is a tamper-resistance problem, not a coverage gap. You cannot patch it by collecting more data in more languages, because the attack removes the safety after you add it.

Why it happens, and the repair that works

Here is the part that gives a defender something to actually do. We looked at the weight change the attack makes, dW = W_post - W_base, and it is nearly rank one. The top one or two singular directions of that update carry about half of its energy. The harmful behavior is written into a tiny, concentrated subspace, while the benign skill the fine-tune also picks up is spread diffusely across many directions.

That asymmetry is the opening. If the harm lives in the top directions and the useful gain does not, then we can cut the top directions out and keep the rest.

The linear algebra of the repair: decompose the attack's weight change, see it is nearly rank one, and project out the top direction

A 45-second animated walkthrough of the linear algebra: watch the repair, or see it on the live demo.

So we did exactly that. For each attention and MLP projection matrix, we took the SVD of dW, removed the top k singular directions, and kept everything else: W_repaired = W_base + (dW - top-k component). It is post-hoc and training-free. The provider runs it once, after the customer's fine-tune, with no retraining.

directions removed (k) English harm Bengali harm over-refusal MMLU
0 (attacked) 0.19 0.50 0.05 0.55
1 0.02 0.14 0.16 0.56
2 0.02 0.14 0.16 0.58
4 0.01 0.11 0.18 0.52
8 0.01 0.08 0.20 0.50

Removing just the single top direction drops Bengali harm from 50 percent to 14 percent, with non-overlapping intervals, and English harm from 19 percent to 2 percent. MMLU holds at 0.56. That last number matters: the fix is not lobotomizing the model to make it look safe. The harmful write was concentrated and we removed it; the benign gain was diffuse and survived. The knee of the curve is at k of 1 to 2. Push further and Bengali harm keeps falling to 8 percent, at the cost of more over-refusal and some capability.

What did not work (and why that is useful to know)

A good blue-team write-up reports the dead ends, because they tell you where not to spend the next person's time.

Prevention during training did not work. The natural alternative to repairing after the fact is to stop the write from landing in the first place. We anchored the model's hidden state to the refusal subspace during the fine-tune. Anchoring on the English refusal direction changed Bengali harm not at all (0.22, identical to the no-anchor control). Anchoring on all three languages made it worse (0.33), probably because the non-English refusal directions were estimated from machine-translated prompts and were too noisy to constrain against. Repair beat prevention here.

arm Bengali harm over-refusal MMLU
no anchor (control) 0.22 0.66 0.49
anchor English direction 0.22 0.60 0.50
anchor English + Bengali + Hindi 0.33 0.60 0.50

A GRPO safety-hardening pilot was a null. At pilot scale nothing moved, for two reasons we could see in the logs: the trainer generated without Tiny Aya's stop token so every sample hit the length cap, and a binary reward gave no gradient when all samples for a prompt agreed. Fixable, but not a result yet.

Balancing the safety data fixed over-refusal but not the gap. Rebuilding the English safety set with benign "twins" cleanly cut over-refusal and restored capability, but Bengali harm stayed around 0.48 to 0.63 at every ratio. Over-refusal is a data-balance problem. The cross-lingual gap is a different animal.

One finding we reported upstream. The toolkit's default refusal auxiliary set is drawn from BeaverTails is_safe responses, but only about 8 percent of those rows are actual refusals. Hardening on it teaches the model to comply rather than refuse, which makes the unattacked model unsafe (Booster reached 59 percent, Vaccine 24 percent). We documented this and raised it with the SafeTune team.

We are standing on two existing lines of work. Cross-lingual fine-tuning fragility is known: attacks transfer across languages (Poppi et al., 2410.18210), and the refusal direction does not cleanly transfer across languages (Zhang, 2026.mrl-1.19). Cross-lingual defenses exist too, but at training time (Safety Kernel, 2610.24614; MPO, 2505.16869; Multilingual Refusal Alignment, 2606.07535). Separately, post-hoc low-rank safety repair is an active area in the English setting (Lee et al., 2610.00320; LSSF, ACL 2025; LoX, 2506.15606; NLSR, 2412.12497).

What is new here is the combination, not a new primitive. We bring low-rank post-hoc repair into the cross-lingual tamper setting, evaluate in the attacker's language, show an English-only evaluation hides the gap, and show the repair beats its training-time prevention counterpart (ProCon, 2509.06795). We do not claim to have invented low-rank repair or discovered cross-lingual fragility. The value is the intersection and the prevention-versus-repair result, on one seed and one model.

The artifacts, models, and licenses

Everything is public.

  • Paper (PDF): cross-lingual-tamper-resistance.pdf, the two-column writeup with the pipeline and mechanism figures.

  • Model artifacts (HF collection): cross-lingual-tamper-resistance-models. The repaired checkpoint is the k=1 projection of a Bengali-attacked Tiny Aya Fire: tiny-aya-fire-bn-repaired_k1.

  • Data artifacts (HF collection): cross-lingual-tamper-resistance-data. Two tiers of the evaluation set: a redacted tier that replaces every non-refusal completion to a harmful prompt with a placeholder while keeping all labels, and a full tier for safety research.

  • Models and licenses: CohereLabs tiny-aya-global and tiny-aya-fire (CC-BY-NC-4.0 plus Cohere's acceptable-use addendum); Aya Expanse 8B as an architectural control. Judges: HarmBench-Mistral-7b-val-cls and Qwen3Guard-Gen-4B.

  • Datasets and benchmarks: StrongREJECT (MIT), MultiJail (MIT), XSTest (CC-BY-4.0), OR-Bench-Hard (CC-BY-4.0), MMLU (MIT), UltraChat (MIT), WikiText-103 (CC-BY-SA-3.0). Attack and safety data translated with NLLB-200-distilled-600M.

  • Hackathon repos we built on: SafeTune (the defenses under test, refusal-direction extraction, judges), AlignTune (the GRPO pilot), CircuitKIT with nnsight (the refusal-direction and low-rank analysis), and NLLB for translation.

Why we think this scales into a general safety win

Our result stands on one seed and one model, so read the next part as a direction, not a claim. But the shape of it is encouraging for a defender with real resources.

The repair works because of a structural fact: a tamper attack writes harm into a low-rank subspace, and useful capability does not live there. That fact is not special to Bengali or to Tiny Aya. If it holds across seeds and model families, then low-rank repair becomes a cheap, general post-hoc safety pass that a provider can run after any customer fine-tune, in any language, without retraining and without hurting the model.

With more compute and training budget, the natural next steps all point the same way. Confirm the low-rank structure on a second seed and on a larger model like Llama-3.1-8B. Add a native-speaker judge audit so the non-English harm numbers rest on human labels, not a translated auto-judge. Re-run the prevention track with refusal directions estimated from native prompts rather than machine translations, which is the most likely reason prevention failed rather than being impossible. Combine the repair with properly balanced, multilingual safety data so the model is both hard to tamper and genuinely multilingual-safe out of the box. Each of these is a budget question, not a research mystery.

The honest headline for the blue team is this: an English-only evaluation will certify a model that is unsafe in other languages, so evaluate in the attacker's language, always report over-refusal and output quality next to harm, and audit what your "safety" data actually contains. And when the gap shows up, you are not stuck. The damage is low-rank, and low-rank damage is repairable.

With more credits

In priority order:

  1. A second seed and a second model (Llama-3.1-8B) to confirm the low-rank repair and the cross-lingual gap generalize.
  2. A native-speaker judge audit to bound judge error on the headline Bengali number.
  3. A prevention sweep with native, non-translated refusal directions before calling prevention dead.

Team

README historyEdit history 5 revisions5 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2026-11-13 add paper PDF links to writeup 6519ac0 13 KB
    Loading...
  2. 2026-11-13 add research paper PDF cdd810a 12.6 KB
    Loading...
  3. 2026-11-13 writeup: add related work and honest contribution framing f4f3c62 12.6 KB
    Loading...
  4. 2026-11-13 writeup: cross-lingual tamper resistance (blue-team) c9fd289 11.1 KB
    Loading...
  5. 2026-11-13 initial commit 9345d7a 0 B
    Loading...
Download from Hugging Face

dhairyapandya/cross-lingual-tamper-resistance

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration