/ Модель

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

Контекст
512 токенов
Параметры
155 млн
Лицензия
CC BY 4.0
Архитектура
deberta-v2 · dense
Базовая модель
deberta-v3-small
Библиотека
transformers
Опубликована
30 сен 2026

piilo-deberta-v3-small

Разметка токеновТекст → label4 профессии

Англоязычная модель DeBERTa-v3-small для обнаружения персональных идентификаторов в ученических текстах перед их передачей языковым моделям.

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

Бенчмарки

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

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

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

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

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

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

edshield/piilo-deberta-v3-small — англоязычная модель токеновой классификации, разработанная для проекта edshield и предназначенная для поиска персональных идентификаторов в текстах учащихся до передачи текста языковой модели. Она основана на DeBERTa-v3-small и дообучена на корпусе PIILO. Модель размечает семь типов данных в формате BIO: имена учащихся, электронные адреса, имена пользователей, идентификационные номера, номера телефонов, персональные URL и почтовые адреса.

Модель рассчитана на работу как часть edshield: библиотека дополняет её правилами, перекрывающимися окнами для длинных документов, распространением найденных имён и проверкой результата. При прямом использовании через Transformers она выдаёт только метки токенов. Контекст составляет 512 токенов, размер по метаданным — 155 млн параметров. Модель дообучена на корпусе из 6 807 эссе взрослых изучающих язык; проверка на детских текстах проводилась только на синтетических данных.

На отложенной выборке PIILO связка правил и модели обнаружила все 165 идентификаторов, но точность составила 0,642; на сложном синтетическом наборе для текстов в стиле K-12 не было обнаружено 319 из 1 433 идентификаторов. Авторы предупреждают, что модель не удаляет все персональные данные и сама по себе не подтверждает соответствие FERPA, COPPA или другим требованиям. Лицензия — CC BY 4.0.

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

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

Ограничения

Проверка на реальных текстах детей не проводилась; на сложном синтетическом наборе K-12 пропущено около 22% идентификаторов. На выборке PIILO точность невысока, а прямой запуск модели выдаёт только метки токенов и не включает дополнительные проверки edshield.

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

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

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

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

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

Открыть на Hugging Face

piilo-deberta-v3-small

A token-classification model that finds personal identifiers in student writing. It is the model layer of edshield, a library that removes student identifiers from text on the device, before the text reaches any language model.

DeBERTa-v3-small (142M parameters) fine-tuned on the PIILO corpus. Seven labels, in BIO form: NAME_STUDENT, EMAIL, USERNAME, ID_NUM, PHONE_NUM, URL_PERSONAL, STREET_ADDRESS.

Use

The model is meant to be used through edshield, which adds rules, overlapping windows for long documents, name propagation, policies and a check that nothing it acted on is left in the output.

pip install "edshield[hf]"
import os
os.environ["EDSHIELD_ALLOW_DOWNLOAD"] = "1"   # edshield downloads nothing unless told to

from edshield import deidentify
text = "Hi, this is Marcus. My email is marcus.t2012@gmail.com and my Discord is @marcus_hoops."
print(deidentify(text, policy="coppa").deidentified_text)

After the first run the model is in the local Hugging Face cache and the variable is no longer needed. The model also loads with transformers directly (AutoModelForTokenClassification), in which case you get token labels only.

For the browser, see edshield/piilo-deberta-v3-small-onnx.

Results

Span-level, measured with edshield's eval/evaluate.py on 680 PIILO essays held out from training, in the corpus's natural mix (581 of them contain no identifier). The detector is edshield's rules plus this model, which is how the model is used. "Got through" counts identifiers that no flag of any label touched, so they would remain in the output.

Test setDetectorPrecisionRecallF5Got through
PIILO held-out, 680 essaysRules + this model0.6421.0000.9790 of 165
PIILO held-out, 680 essaysRules only0.5380.3880.392101 of 165
K-12 synthetic, hardRules + this model319 of 1,433 (22%)
K-12 synthetic, hardRules only1,100 of 1,433 (77%)
Rules + this model, by labelPrecisionRecalln
NAME_STUDENT0.6561.000143
URL_PERSONAL0.3811.0008
ID_NUM0.7001.0007
EMAIL1.0001.0004
USERNAME1.0001.0002
STREET_ADDRESS0.5001.0001

Read these with caution:

  1. There is no measurement on real writing by children. PIILO is writing by adult online learners. The K-12 sets are synthetic and were written by the same people who wrote the detector.
  2. On child-style text about one identifier in five gets through. What gets through on the hard set is mostly lowercase schools and towns, ages in chat shorthand, spoken dates and streets without a house number.
  3. The PIILO set is small. 143 of its 165 identifiers are names; most other types have fewer than ten examples, so their rows say little.
  4. Precision is low on purpose. Most false alarms are names of people other than the essay's author, which PIILO does not label but which a privacy tool should remove.
  5. Some development choices were made on the validation set. Three fixes for false alarms were chosen by reading false alarms on these same 680 essays.

The full reports and the breakdown by identifier type are in the repository under eval/results/ and in docs/COVERAGE.md.

What this model is not

It is not a compliance certificate, and using it does not by itself make a product meet FERPA, COPPA or any other law. Those laws place duties on the school or the operator: consent, notice, contracts, retention, security, and the judgement that a record is de-identified. This model is one technical safeguard inside that. It does not remove all personal information. Review a sample of output from your own students' writing before relying on it.

Never test it by pasting real student data into a hosted service. Use synthetic samples.

Training

Base modelmicrosoft/deberta-v3-small
DataPIILO corpus, 6,807 essays. 680 held out for validation. Training used the rest, keeping every essay with an identifier and 30% of those without, plus synthetic documents for the rare labels: 4,430 documents in all
Epochs3
Learning rate2e-5, 10% warm-up, weight decay 0.01
Batch size2
Context1,024 tokens, stride 128
LossCross-entropy with the O class weighted 0.15, to favour recall
Precisionfp32
HardwareOne GTX 1060 6 GB, about 42 minutes

Scripts: training/prepare_piilo.py and training/train.py in the repository.

Licence and attribution

The weights are released under CC BY 4.0, the licence of the training data.

Trained on the PIILO corpus (the dataset of the Kaggle competition "The Learning Agency Lab - PII Data Detection"), created by The Learning Agency Lab with Vanderbilt University and released under CC BY 4.0.

The base model, DeBERTa-v3-small, is by Microsoft and released under the MIT licence. The edshield code is Apache-2.0.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DebertaV2ForTokenClassification
Ревизия весов
5effafd

0 моделей