/ Модель

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

Контекст
512 токенов
Параметры
212 млн
Лицензия
Своя лицензия
Архитектура
deberta-v2 · dense
Базовая модель
deberta-v3-base
Библиотека
transformers
Опубликована
31 июл 2026

piibench-deberta-sch

Разметка токеновТекст → label

Иерархическая модель на базе DeBERTa-v3-base для обнаружения и BIO-разметки персональных данных в тексте.

9скачиваний за 30 дней0лайковвеса обновлены31 июл 2026

Бенчмарки

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

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

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

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

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

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

Это модель для обнаружения персональной и иной чувствительной информации (PII) в тексте, разработанная для экспериментов PIIBench. Она построена на энкодере DeBERTa-v3-base с 211,6 млн параметров и включает иерархическую классификацию: сначала грубую классификацию сущностей, затем разметку токенов в формате BIO, учитывающую распределение грубых классов. Модель относится к семейству DeBERTa и доступна в формате safetensors; контекст ограничен 512 токенами.

Модель предназначена для выделения и классификации типов PII в тексте. В README приведены результаты на экспериментальной версии PIIBench с 82 типами сущностей: F1 около 0,589 на тестовой выборке из 100 002 записей. Авторы отмечают, что простая модель с прямой тонкой настройкой показала лучший итоговый результат на полном тестовом разбиении; этот чекпойнт опубликован отдельно. Для загрузки модели требуется пользовательский код архитектуры и параметр trust_remote_code=True. Лицензия указана как other, поэтому конкретные условия использования следует сверить с карточкой репозитория.

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

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

Ограничения

В описанном эксперименте F1 составляет около 0,589, а простая модель прямой тонкой настройки показала лучший итоговый результат. Контекст ограничен 512 токенами; для корректной загрузки требуется trust_remote_code=True.

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

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

Открыть на Hugging Face

PIIBench Source-Conditioned Hierarchical DeBERTa

This is the source-conditioned hierarchical comparison model trained for the follow-up PIIBench experiments. It uses a DeBERTa-v3-base encoder, a coarse entity classification head, and a fine BIO classification head conditioned on the coarse distribution.

The simpler directly fine-tuned model was the final overall winner on the full held-out experiment test split and is published separately as Pritesh-2711/piibench-deberta-base.

Paper

This model is released with the paper:

Fine-Tuning Over Architectural Complexity: Broad-Coverage PII Detection on PIIBench with DeBERTa
arXiv: https://arxiv.org/abs/2605.25816
Hugging Face Papers: https://huggingface.co/papers/2605.25816

This repository corresponds to the source-conditioned hierarchical DeBERTa comparison model evaluated in the paper.

Results

The reported evaluation uses the later prepared PIIBench experiment variant with 82 retained entity types and a held-out test split of 100,002 records. It is not the earlier 48-type Hub dataset release.

Held-Out EvaluationRecordsF1PrecisionRecall
Corrected heldout subset5,0000.58990.55650.6274
Complete experiment test split100,0020.58940.55600.6270

Full-test SHA-256: 65f8edc86399ba3f9e4ba44591d4583f9271f5d1df20e30a913305049559df77

Usage

This model includes custom architecture code. Load it with trust_remote_code=True.

It was trained with a prepended source token. For arbitrary input where the source dataset is unknown, use the general source token:

from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline

model_id = "Pritesh-2711/piibench-deberta-sch"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForTokenClassification.from_pretrained(
    model_id,
    trust_remote_code=True,
)

pipe = pipeline("token-classification", model=model, tokenizer=tokenizer)
result = pipe("[SRC=general] Contact me at jane@example.com.")
print(result)

Transformers may print an informational warning that custom model classes are not in its built-in token-classification support list. The model is loaded correctly when its class is HierarchicalPIIModel; the warning does not mean that a standard DeBERTa classifier head has been substituted.

When evaluating known PIIBench source records, use their associated source token, for example [SRC=nvidia_nemotron] or [SRC=gretel_finance].

Important Note

Calling:

pipeline("token-classification", model="Pritesh-2711/piibench-deberta-sch")

without trust_remote_code=True does not instantiate the hierarchical head and must not be used to reproduce the reported results.

Related Resources

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
HierarchicalPIIModel
Ревизия весов
71552ac

0 моделей