/ Модель

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

Контекст
514 токенов
Параметры
659 млн
Лицензия
MIT
Архитектура
xlm-roberta · dense
Базовая модель
multilingual-e5-large
Библиотека
setfit
Опубликована
16 мар 2025

setfit

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

Многоязычная SetFit-модель классифицирует рассказы PSE по мотивам достижения, аффилиации, власти или их отсутствия.

360скачиваний за 30 дней0лайковвеса обновлены23 июн 2025

Бенчмарки

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

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

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

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

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

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

Automated Motive Coder — модель классификации текста, разработанная на базе SetFit и дообученной intfloat/multilingual-e5-large. Она использует XLM-RoBERTa для построения текстовых представлений и классификатор OneVsRestClassifier с оценивателями SGDClassifier. Модель обучена методом few-shot learning: сначала контрастивно дообучается Sentence Transformer, затем на его признаках обучается классификационная голова.

Модель относит рассказы PSE к четырём классам: достижение (ach), аффилиация (aff), власть (pow) и отсутствие этих мотивов (null). Она предназначена для автоматической разметки таких рассказов и анализа мотивов в текстовых данных. Поддерживает многоязычные входные тексты; максимальная длина последовательности — 512 токенов, размер модели — 658,7 млн параметров. Лицензия — MIT.

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

  • Разметка рассказов PSE по мотиву достижения
  • Выявление мотива аффилиации в текстах PSE
  • Выявление мотива власти в рассказах
  • Определение рассказов без целевых мотивов
  • Автоматизация анализа мотивов в корпусе PSE

Ограничения

Модель предназначена для четырёх классов мотивов в рассказах PSE, поэтому её результаты не следует считать универсальной классификацией произвольных текстов. Максимальная длина последовательности составляет 512 токенов.

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

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

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

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

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

Открыть на Hugging Face

Automated Motive Coder with intfloat/multilingual-e5-large as base

This is a SetFit model that can be used for Text Classification. This SetFit model uses a finetuned version of intfloat/multilingual-e5-large as the Sentence Transformer embedding model. A OneVsRestClassifier instance with SGDClassifier estimators is used for classification.

The model has been trained using an efficient few-shot learning technique that involves:

  1. Fine-tuning a Sentence Transformer with contrastive learning.
  2. Training a classification head with features from the fine-tuned Sentence Transformer.

Model Details

Model Description

Model Sources

Uses

Direct Use for Inference

First install the SetFit library:

pip install setfit

Then you can load this model and run inference.

from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("automatedMotiveCoder/setfit")
# Run inference
preds = model("I loved the spiderman movie!")

When using the predict_proba() method, the predicted probabilities for all classes might not sum to 1. This is because the model loaded uses a One-vs-Rest classification approach, which means the model treats each class as a binary classification problem. As a result, the probabilities are independent, and their sum may exceed or fall below 1.

For more details on how to use this model, see our blogpost.

Versioning

The most recent version is the version at submission to the NLPSI workshop at the ICWSM 2025 in Kopenhagen.

For all Versions see this table:

Commit-HashSemVerComment
738833d1.0.0Version at submission

To use the model with a specific version, add the revision argument to the model-loading:

from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("automatedMotiveCoder/setfit",
                                    revision="738833d") # Version 1.0.0

Training Details

Framework Versions

  • Python: 3.10.12
  • SetFit: 1.0.3
  • Sentence Transformers: 3.3.1
  • Transformers: 4.46.3
  • PyTorch: 2.3.1+cu121
  • Datasets: 2.21.0
  • Tokenizers: 0.20.3
  • Scikit-learn: 1.6.1

Citation

BibTeX

@inproceedings{bredeAutomaticallyCodingImplicit2025,
  title = {Automatically {{Coding Implicit Motives}} in {{Picture Story Exercises}}: {{The Automated Motive Coder}}},
  shorttitle = {Automatically {{Coding Implicit Motives}} in {{Picture Story Exercises}}},
  author = {Brede, Max and Sch{\"o}nbrodt, Felix and Hagemeyer, Birk and Lerche, Veronika},
  year = {2025},
  month = jun,
  publisher = {ICWSM},
  address = {US},
  urldate = {2025-06-23},
  abstract = {The Picture Story Exercise (PSE) is a projective measure in personality psychology where individuals create narratives based on ambiguous images. Traditionally, the coding of these narratives has been labor-intensive. We introduce the Automated Motive Coder (AMC), which employs recent advances in natural language processing and machine learning to automate the coding of PSE narratives. Trained on an extensive dataset, the AMC demonstrates accuracy comparable to expert coders for both original and translated texts. The model offers support for multiple languages that were absent in prior methods while improving in accuracy and speed. To illustrate its effectiveness, we tested and successfully replicated the established psychological effect of gender difference in the affiliation motive. The AMC can be utilized through established machine learning tools, offering a pragmatic and reliable method for coding across several languages. This tool provides an option to reduce the workload involved in PSE coding, promoting efficiency and consistency in motive assessment.},
  langid = {english}
}

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

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

GPU в ailist

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

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

Модели SetFit требуют отдельного рантайма.

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

0 моделей