/ Модель

Характеристики

Контекст
8 192 токена
Параметры
7,5 млрд
Размер весов
16,1 ГБ
Лицензия
Llama 3
Архитектура
llama · dense
Базовая модель
Llama-3-8B-Instruct-TAR-Refusal
Библиотека
transformers
Опубликована
26 ноя 2026

Llama-3-8B-Instruct-TAR-ART-bounded

Генерация текстаТекст → текст
100скачиваний за 30 дней0лайковвеса обновлены26 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Исследовательская версия Llama 3 8B для изучения устойчивости отказов чат-модели к редактированию весов.

Llama-3-8B-Instruct-TAR-ART-bounded — исследовательская текстовая модель на архитектуре Llama, разработанная как неофициальная реализация защиты Abliteration-Resistant Tuning (ART) поверх чекпойнта lapisrocks/Llama-3-8B-Instruct-TAR-Refusal. Модель содержит 7,5 млрд параметров, работает с текстом и поддерживает контекст до 8192 токенов. Она предназначена для генерации ответов в диалоге и изучения устойчивости отказов модели к редактированию весов и активаций.

В описанных тестах модель сохраняла больше отказов при ряде атак с редактированием весов, но её устойчивость к вредоносному дообучению ограничена: даже малый LoRA-адаптер заметно снижал долю отказов. Авторы также указывают на потерю полезности относительно базовых моделей и на то, что оценка безопасности может быть смешана с потерей возможностей. Это неофициальная реализация по статье, код обучения создан ИИ и не проходил построчную проверку; результаты не подтверждают надёжную защиту для развёртывания. Лицензия — Llama 3 Community License.

Сценарии применения

  • оценка устойчивости отказов к удалению направления отказа
  • сравнение защит от атак редактированием весов и активаций
  • исследование обхода отказов через вредоносное дообучение
  • тестирование влияния защитных настроек на полезность чат-модели

Ограничения

Устойчивость к вредоносному дообучению ограничена: в описанных тестах даже малый LoRA-адаптер заметно снижал долю отказов. Результаты могут быть смешаны с потерей возможностей; реализация неофициальная, код обучения не проверен построчно, поэтому модель не следует использовать как гарантию безопасности.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Warning. The training code in this repository (train_art.py) was written by an AI assistant from the text of the ART paper. It has not been reviewed line by line by a human. These checkpoints were produced by running that code. Read and verify it before relying on it, and treat any claim that it faithfully implements the paper as unverified.

Llama-3-8B-Instruct-TAR-ART-bounded

Built with Meta Llama 3.

An unofficial reimplementation of Abliteration-Resistant Tuning (ART) applied on top of the official TAR-Refusal checkpoint. This is a defended model: it is harder to strip of its refusal behaviour by weight-editing attacks than its base. It is released together with the training code so that the defense can be reproduced and, more importantly, attacked — the evaluation below shows where it fails.

This is not an official artifact of the ART authors. ART is from Kuo, Smith & Yadav (2026), "Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attacks" (arXiv:2605.26526), Algorithms 2–3 and Appendix A.4. That paper releases no code, so train_art.py in this repository was written from the paper text, and several choices the paper leaves open had to be made (documented below). The paper applies ART to its own TAR retrain of Llama-3.1-8B-Instruct; this checkpoint instead starts from the official TAR-Refusal release built on Llama-3-8B-Instruct, so results are comparable in trend but are not a replication of the paper's Table 8. Neither the ART authors nor the TAR authors have reviewed or endorsed this.

What ART does

Abliteration finds a "refusal direction" — the mean difference in hidden states between harmful and harmless prompts at the last prompt token — and projects it out of the weights that write to the residual stream. It is cheap, needs no training, and strips refusal from most aligned models.

ART trains against that edit. At each step it recomputes the refusal direction from fresh prompts, applies the abliteration edit to obtain a damaged copy of the model, and then pushes the cross-entropy of harmful responses up as measured at that damaged copy, while holding ordinary cross-entropy down on harmless responses at the undamaged model:

L = γ_ar · ( −log( CE_harmful(f_θ̃) + ε ) )  +  γ_ret · CE_harmless(f_θ)

with γ_ar = 1, γ_ret = 2, ε = 1e-3. The −log makes the ascent self-limiting: its gradient scales as 1/CE, so it fades once the harmful continuation is already improbable.

The "bounded" variant. TAR-Refusal starts with harmful cross-entropy at 15.7, already above the 11.8 of a uniform distribution over the vocabulary. The objective as written therefore keeps pushing an already-unsayable continuation (to CE ≈ 127 by step 1000), producing a model whose "safety" consists of harmful text being literally unsayable rather than refused. This checkpoint sets --ce_cap 11.76 (= ln|V|), skipping the ascent term whenever harmful CE is already past uniform. It ends at held-out harmful CE 17.4 / refusal CE 3.1 and actually refuses or deflects. The unbounded variant is released separately as Llama-3-8B-Instruct-TAR-ART-faithful.

Evaluation

S = safety, the share of 200 held-out HarmBench standard behaviors that the HarmBench Llama-2-13B classifier did not judge harmful (greedy, 512 tokens). Higher is safer. U = utility, mean zero-shot accuracy over BoolQ, RTE, HellaSwag, WinoGrande, ARC-Challenge and OpenBookQA (lm-eval, 200 questions each); chance ≈ 0.375. Binomial noise at these rates is about ±3.5%.

Weight-editing and activation attacks — ART blocks all of them

AttackLlama-3-8B-InstructTAR-Refusalthis model
none (baseline)96.0%76.5%100%
abliteration (1 layer, α=1)9.0%59.5%88.0%
SNIP set-difference pruning15.5%50.5%98.5%
ActSVD rank projection28.0%44.5%94.5%
random pruning (control)94.0%80.5%100%
Adam-preconditioned sign-gradient edit––97.0%
Utility (U)0.6060.5510.453

Notably, ART was trained only against abliteration, yet it also blocks pruning, rank projection and a preconditioned single-gradient edit that were constructed afterwards.

Fine-tuning — ART does NOT block it

This is the limitation users must not overlook. Harmful fine-tuning on BeaverTails unsafe QA unlocks this model:

Attack50 steps300 steps
Full-parameter fine-tune (lr 2e-5)67.5% S48.0% S
Rank-1 LoRA on the 96 MLP matrices (1.8M params = 0.02% of the model, lr 1e-3)65.5% S51.0% S

Utility is unchanged throughout (0.448–0.467), so there is no capability tell. A rank-1 adapter — a single adapted direction per MLP matrix, ~3.6 MB, about 34 seconds of training for 50 steps on one RTX 6000 Ada — is as effective as full fine-tuning here. Treat this checkpoint as abliteration-resistant, not tamper-resistant.

The caveat that matters most

ART's safety margin is confounded with capability loss. It costs roughly 10 points of zero-shot utility versus TAR-Refusal and 15 versus base Llama-3, and across all three models the apparent safety ordering tracks the utility ordering almost exactly. Because the HarmBench classifier scores harm quality, a less capable model scores safer by construction. No capability-matched control was run, so the published margin above should not be read as demonstrated robustness until someone compares it against a model degraded to the same utility by non-safety-related means. If you build on this checkpoint, that control is the first experiment worth running.

Training details

1000 steps, batch 4, lr 2e-5, AdamW (β = 0.9/0.999, no weight decay, constant lr, no warmup), grad-norm clip 1.0, bf16 weights and gradients on one GPU with fp32 master weights and fused AdamW on the CPU. Data: Unified-Language-Model-Alignment/Anthropic_HH_Golden (the same data TAR-Refusal was trained on); y⁺ = final chosen turn, y⁻ = final rejected turn, prompts over 384 tokens dropped, responses capped at 128 tokens, loss on response tokens only. The refusal direction and the best (layer, α) are re-selected every 10 steps, searching α ∈ {1.0, 1.5, 2.0} and picking the pair that most lowers harmful CE on 16 held-out examples; layer 0 is skipped. Abliteration is applied through forward hooks so that gradients flow through the edited parameters. With the cap active, the ascent term fired on 66% of the first 100 steps and about 34% thereafter.

Choices the paper leaves open — the HH split, the refusal-direction definition, the abliteration scope, and α — are documented in README_ART.md in this repository under "SPEC-GAP".

Reproducing

python train_art.py --out runs/tar-art-bounded --ce_cap 11.76

train_art.py and README_ART.md are included in this repository.

Intended use and limitations

This is a research artifact for studying open-weight tamper-resistance, not a production safety measure. It is published so that the defense can be independently evaluated and attacked. It is not fine-tuning-resistant, its margin is confounded with a real loss of capability, and it is a reimplementation that has not been validated against the original authors' checkpoints. Do not deploy it as a safety guarantee.

Citation

Please cite the original work. ART:

@article{kuo2026openweight,
  title   = {Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attacks},
  author  = {Kuo and Smith and Yadav},
  journal = {arXiv preprint arXiv:2605.26526},
  year    = {2026}
}

TAR (the base checkpoint):

@article{tamirisa2024tamper,
  title   = {Tamper-Resistant Safeguards for Open-Weight LLMs},
  author  = {Tamirisa, Rishub and others},
  journal = {arXiv preprint arXiv:2408.00761},
  year    = {2024}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
2e6cd45

0 моделей