/ Модель

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

Лицензия
Своя лицензия
Базовая модель
gemma-4-31B-it
Библиотека
transformers
Опубликована
17 сен 2026

Gemma-4-31B-it-Cybersecurity-Safety-Repair

Изображение и текст → текст3 профессии

Мультимодальная Gemma 4 от Lexsi с настройкой безопасности для сокращения кибератакующих инструкций и оценки компромисса с полезностью защитных ответов.

158скачиваний за 30 дней5лайковвеса обновлены29 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Gemma-4-31B-it-Cybersecurity-Safety-Repair — это доработанная Lexsi Labs (Lithasa Technologies Pvt. Ltd.) версия мультимодальной инструкционно-настроенной модели Google Gemma 4 с 31 млрд параметров. Она поддерживает диалог и анализ изображений с выдачей текста; в метаданных указан английский язык, но длина контекста не приведена.

Модель изменена для снижения выдачи потенциально полезных злоумышленникам инструкций по кибербезопасности при сохранении части возможностей для легитимной защитной работы. В тестах README доля атакующих ответов снизилась на нескольких кибербезопасностных бенчмарках, а показатели инструкционного следования, математики и общих знаний остались близки к базовой модели.

Основное ограничение — заметный рост отказов на легитимные запросы по кибербезопасности: на CyberSecEval-FRR показатель отказов вырос с 21,2% до 49,3%. Разработчик позиционирует чекпойнт для исследований и оценки на собственных сценариях, не сертифицирует для развёртывания и распространяет доступ по ограниченной лицензии other с gated-доступом.

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

  • оценка снижения опасных ответов по кибербезопасности
  • тестирование отказов на запросы об эксплуатации уязвимостей
  • проверка полезности модели для легитимной защитной кибербезопасности
  • анализ изображений в диалоговом помощнике

Ограничения

На бенчмарке CyberSecEval-FRR отказы на легитимные запросы по безопасности выросли с 21,2% у базовой модели до 49,3%; разработчик рекомендует проверять собственные рабочие сценарии. Модель выпущена для оценки и не сертифицирована для развёртывания.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

Gemma-4-31B: Cybersecurity Safety Repair

A safety repair of google/gemma-4-31B-it that reduces attacker-useful cybersecurity output. Released gated for evaluation on your own workloads, not certified for deployment; see Results for the full safety/utility trade-off.

What we did

Lexsi turns a known safety failure into a controlled model change. Instead of retraining the whole model or wrapping it in a guard, router, or inference-time filter, we locate the specific behaviour in the weights, apply a bounded, circuit-restricted edit, and verify the fix holds without eroding the capabilities you depend on. You get one drop-in checkpoint: the safety change lives in the model and is served the way you serve it today, with nothing extra to run or maintain.

Every repair is a measured trade-off. We report the safety gain and its collateral effects on legitimate use and capability side by side (see Results), so you can decide whether to deploy from the evidence.

This checkpoint applies that approach to cybersecurity: reducing attacker-useful assistance while keeping the model useful for legitimate, defensive security work.

Built using the Lexsi Alignment and Safety Stack:

The repair workflow behind this checkpoint (Figure 2 of the paper). We fix the specification before intervention; verification tests both the intended gain and the behavioural blast radius before any deployment decision. The four libraries below implement it.

LibraryRole
CuratorKITCurates training data with source provenance
CircuitKITFinds and tests model circuits to guide targeted interventions
SafeTuneApplies and compares methods for correcting safety drift
AuditKITKeeps evaluation results comparable across models and interventions
Base modelgoogle/gemma-4-31B-it
Developed byLexsi Labs (Lithasa Technologies Pvt. Ltd.)
Model size31B parameters
Context length256K tokens (inherited from the base model)
Input / outputText and image in, text out (inherited); the repair was evaluated on text only
Contactsupport@lexsi.ai
Languagesen
LicenseApache 2.0 (base model) + LSAL v1.2 (modifications); see License
StatusGated evaluation release; not certified for deployment
Trade-offLarge drop in attacker-useful output; more caution on some legitimate requests (see Results)

Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "Lexsi/Gemma-4-31B-it-Cybersecurity-Safety-Repair"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")

messages = [{"role": "user", "content": "How do I configure fail2ban to block repeated SSH login attempts?"}]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)

out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

We evaluated with greedy decoding in bfloat16; the results below use that setting.

Results

Base checkpoint (google/gemma-4-31B-it) vs. this repaired checkpoint, under the cybersecurity study's harness. The repair is a genuine safety gain on attacker-facing tasks, offset by a cost on one class of legitimate requests: a trade-off to weigh for your use case.

Safety: attacker-useful responses (%, lower is safer)

benchmarknbasethis checkpoint
FORTRESS50035.08.0
CySecBench12,66231.617.4
RedLineBench15389.570.6
CyberSecEval-MITRE1,0004.52.3
RMCBench47332.621.8
MalwareBench32019.09.0
BeaverTails (harmful)1,73311.58.7
TRIDENT (mean harm, 1–5)2,6521.541.38

Harmful-request refusal (%, higher is safer):

benchmarknbasethis checkpoint
SORRY-Bench9,24067.173.4
MultiJail (10 languages)3,15051.755.2

Multi-turn attacks (%, lower is safer):

checknbasethis checkpoint
CyMulTenSet, conversation ASR76258.140.4
CyMulTenSet, final-turn ASR76237.019.9
CSE4 phishing, assistance85695.096.1

Cost: refusal of legitimate requests (%, lower is better)

benchmarknbasethis checkpoint
CyberSecEval-FRR (legitimate security requests)75021.249.3
OR-Bench-Hard-1k1,31933.046.1
FORTRESS-benign5004.45.2
JailbreakBench-benign10059.063.0
XSTest2501.21.2

This is the trade-off to weigh. Refusal of everyday legitimate security requests (CyberSecEval-FRR) roughly doubles, and OR-Bench-Hard also rises, while FORTRESS-benign and XSTest barely move; a general-capability sweep misses the cost. Weigh this against the large attacker-useful reduction above when deciding where the checkpoint fits your use case.

Capability preserved (base → this checkpoint)

benchmarknbasethis checkpoint
IFEval (instruction following)54190.891.5
GSM8K (5-shot)1,31993.693.9
MMLU (generative)14,04285.785.6
IndicQA (token-F1 / EM)13,29573.4 / 52.573.4 / 52.7
Indic-Bias (stereotype-confirming, ↓)2,28022.421.6
WMDP-cyber (hazardous knowledge, ↓)1,98775.774.4
WMDP-bio (hazardous knowledge, ↓)1,27382.881.1
WMDP-chem (hazardous knowledge, ↓)40867.663.5

The accompanying report gives the full multi-benchmark picture, the judge protocol, and why domain-matched benign evaluation, not general-capability checks, surfaces the legitimate-request cost.

Intended use

Research and evaluation of attacker-useful output suppression. It is a candidate for general-purpose assistants whose users are not security professionals, once the operator has run its own benign-workload tests.

License

This is a derivative work of google/gemma-4-31B-it with selected weights modified. The NOTICE file states what was changed. Google releases the base model under the Apache License 2.0; a copy is included as LICENSE-APACHE-2.0.txt.

Lexsi's modifications (the weight correction, the recipe, and this card) are offered under the Lexsi Source Available License (LSAL) v1.2 (source-available, noncommercial). See the NOTICE file for details.

Please also follow Google's Gemma Prohibited Use Policy when using this model or anything derived from it.

Released gated for teams to evaluate and use. Dual-use: review the Results before deploying in your setting. Not independently audited.

Contact

Questions, errors in this card, and organizational-use acknowledgements (LSAL Section 1A): support@lexsi.ai

Citation

If you use this checkpoint, please cite it and the accompanying paper:

@misc{lexsi2026gemma4cyberrepair,
  title        = {Gemma-4-31B: Cybersecurity Safety Repair},
  author       = {Seth, Pratinav and Dhor, Ashim and Sadhu, Saisab and Bhattacharjee, Soham and Gosalia, Hem and
            Sankarapu, Vinay Kumar},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/Lexsi/Gemma-4-31B-it-Cybersecurity-Safety-Repair}}
}

@misc{lexsi2026lastmile,
  title  = {The Last Mile of Model Safety: Targeted Model Repair},
  author = {Seth, Pratinav and Dhor, Ashim and Sadhu, Saisab and Bhattacharjee, Soham and Gosalia, Hem and
            Sankarapu, Vinay Kumar},
  year   = {2026},
  note   = {Lexsi Labs white paper}
}

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

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

GPU в ailist

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

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
2a5e458

0 моделей