/ Модель

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

Контекст
512 токенов
Лицензия
Apache 2.0
Архитектура
distilbert · dense
Библиотека
transformers
Опубликована
7 мар 2024

DistilBERT-PromptInjectionDetectorForCVs

Классификация текстаТекст → label3 профессии

Дообученный DistilBERT классифицирует текст резюме и обнаруживает в нём попытки prompt injection.

68скачиваний за 30 дней0лайковвеса обновлены7 мар 2024

Бенчмарки

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

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

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

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

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

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

Модель DistilBERT от WithSecure дообучена для классификации резюме и выявления в них попыток prompt injection. Она предназначена для демонстрации защиты синтетического приложения по обработке CV и исследовательского изучения доменной настройки детектора. Модель принимает текст и выдаёт метку классификации; контекст ограничен 512 токенами. При обучении использовались примеры обычных резюме, атак prompt injection и резюме со встроенными атаками.

Модель не предназначена для непосредственного использования в production и не обеспечивает полной защиты: новые способы prompt injection могут обходить детектор. Распространяется по лицензии Apache-2.0.

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

  • проверка резюме на встроенные prompt injection-инструкции
  • классификация текста CV как обычного или содержащего атаку
  • демонстрация фильтра защиты LLM-приложения при обработке резюме

Ограничения

Модель создана как исследовательская демонстрация для синтетического приложения обработки резюме, а не для непосредственного применения в production. Она не решает проблему prompt injection полностью, и новые техники атак могут обходить детектор.

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

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

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

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

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

Открыть на Hugging Face

Model Card for DistilBERT-PromptInjectionDetectorForCVs

Model Overview

This model, leveraging the DistilBERT architecture, has been fine-tuned to demonstrate a strategy for mitigating prompt injection attacks. While it is specifically tailored for a synthetic application that handles CVs, the underlying research and methodology are intended to be applicable across various domains. This model serves as an example of how fine-tuning with domain-specific data can enhance the detection of prompt injection attempts in a targeted use case.

Research Context

The development of this model was part of broader research into general strategies for mitigating prompt injection attacks in Large Language Models (LLMs). The detailed findings and methodology are discussed in our research blog, with the synthetic CV application available here serving as a practical demonstration.

Training Data

To fine-tune this model, we combined a domain-specific dataset (legitimate CVs) with examples of prompt injections, resulting in a custom dataset that provides a nuanced perspective on detecting prompt injection attacks. This approach leverages the strengths of both:

The custom dataset includes legitimate CVs, pure prompt injection examples, and CVs embedded with prompt injection attempts, creating a rich training environment for the model.

Intended Use

This model is a demonstration of how a domain-specific approach can be applied to mitigate prompt injection attacks within a particular context, in this case, a synthetic CV application. It is important to note that this model is not intended for direct production use but rather to serve as an example within a broader strategy for securing LLMs against such attacks.

Limitations and Considerations

The challenge of prompt injection in LLMs is an ongoing research area, with no definitive solution currently available. While this model demonstrates a possible mitigation strategy within a specific domain, it is essential to recognize that it does not offer a comprehensive solution to the problem. Future prompt injection techniques may still succeed, underscoring the importance of continuous research and adaptation of mitigation strategies.

Conclusion

Our research aims to contribute to the broader discussion on securing LLMs against prompt injection attacks. This model, while specific to a synthetic application, showcases a piece of the puzzle in addressing these challenges. We encourage further exploration and development of strategies to fortify models against evolving threats in this space.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DistilBertForSequenceClassification
Ревизия весов
df397ef

0 моделей