/ Модель

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

Контекст
512 токенов
Лицензия
MIT
Архитектура
distilbert · dense
Базовая модель
distilbert-base-uncased
Библиотека
transformers
Опубликована
13 июл 2026

distilbert-nppe

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

Дообученная DistilBERT-модель оценивает, является ли предложенный вариант ответа правильным в тестах с выбором ответа.

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

Бенчмарки

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

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

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

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

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

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

Модель Anurag Singh — дообученная версия DistilBERT для оценки вариантов ответа в тестах с выбором ответа. Для каждой пары «вопрос — вариант» она выполняет бинарную классификацию: оценивает вероятность того, что вариант верен. Чтобы выбрать ответ, варианты оценивают по отдельности и выбирают тот, у которого вероятность выше остальных.

Модель использует DistilBERT с шестью слоями трансформера, размером скрытого представления 768 и линейной классификационной головой. Она принимает текст на английском языке; указанная длина контекста — 512 токенов. Репозиторий содержит веса в формате Safetensors, библиотека для работы — Transformers. Лицензия — MIT.

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

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

  • Выбор наиболее вероятного ответа в тесте с вариантами A–E
  • Оценка правильности отдельного варианта ответа на вопрос
  • Создание учебного демонстратора классификации ответов
  • Эксперименты с бинарной классификацией вопросов и вариантов ответа

Ограничения

Обучение проводилось на частном проектном наборе данных, поэтому модель может плохо обобщать на другие темы и формулировки. Она оценивает пары «вопрос — вариант» независимо и требует дополнительной проверки перед применением в критически важных системах.

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

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

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

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

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

Открыть на Hugging Face

DistilBERT MCQ Correctness Classifier

Author: Anurag Singh
Framework: Hugging Face Transformers + PyTorch
Base Model: distilbert-base-uncased
Task: Binary classification for multiple-choice question answering


Model Description

This model is a fine-tuned DistilBERT model developed for the Smart MCQ Solver Challenge.

The original task contains a question with five answer options (A-E). The problem was converted into a binary classification task by creating one training example for each (question, option) pair.

  • Label 1: The option is correct.
  • Label 0: The option is incorrect.

During inference, the model predicts a probability for each option, and the option with the highest probability is selected as the final answer.


Problem Formulation

Original MCQ

Question: What is the capital of France?

  • A. Berlin
  • B. Madrid
  • C. Paris
  • D. Rome
  • E. Lisbon

Converted Binary Samples

InputLabel
Question: What is the capital of France? Option: Berlin0
Question: What is the capital of France? Option: Madrid0
Question: What is the capital of France? Option: Paris1
Question: What is the capital of France? Option: Rome0
Question: What is the capital of France? Option: Lisbon0

Model Architecture

This model is based on DistilBERT, a compressed version of BERT that retains most of BERT's language understanding capability while being significantly smaller and faster.

Architecture

                      text Question + Option Text
                                  ↓
                          DistilBERT Tokenizer
                                  ↓
                              Input IDs
                                  ↓
                      DistilBERT Encoder (6 Transformer Layers)
                                  ↓
                      Contextual Representation
                                  ↓
                      Classification Head (Linear Layer)
                                  ↓
                      Binary Correctness Score

Model Details

ComponentValue
Base Modeldistilbert-base-uncased
Transformer Layers6
Hidden Size768
Attention Heads12
Vocabulary Size30,522
Max Position Embeddings512
Classification HeadLinear layer (768 → 2)
Output Labels2 (incorrect, correct)

Input Representation

Each training sample is constructed as:

Question: <question> Option: <option>

The text is tokenized using the DistilBERT WordPiece tokenizer and converted into:

  • input_ids
  • attention_mask

Classification

The contextual representation produced by DistilBERT is passed to a linear classification head that outputs logits for two classes:

  • Class 0: Incorrect option
  • Class 1: Correct option

During inference, the probability of class 1 is used as the correctness score for each option. The option with the highest score among A-E is selected as the final answer.

distilbert_output

This model is a fine-tuned version of bert-base-uncased on the private dataset. It achieves the following results on the evaluation set:

  • Loss: 0.0985
  • Accuracy: 0.986
  • Precision: 0.9769
  • Recall: 0.9525
  • F1: 0.9646

Intended uses & limitations

Intended Uses

  • Multiple-choice question answering
  • Educational NLP applications
  • Research on transformer-based text classification
  • Binary text classification
  • Demonstration of parameter-efficient NLP models

Limitations

  • The model is trained only on the project dataset and may not generalize well to unrelated domains.
  • Performance depends on the quality and wording of the question and options.
  • The model evaluates each question-option pair independently and does not explicitly model relationships between all options simultaneously.
  • It is intended for educational and research purposes and should not be used in high-stakes decision-making systems without further validation.

Training and evaluation data

The model was trained on a multiple-choice question dataset where each question contained five candidate answers (A-E).

The original dataset was converted into a binary classification dataset by generating one training sample for every (question, option) pair.

Training labels:

  • 0 → Incorrect option
  • 1 → Correct option

Each input was tokenized using the DistilBERT tokenizer with appropriate padding and truncation before training.

Model performance was evaluated using:

  • Accuracy
  • Precision
  • Recall
  • F1-score
  • Validation Loss

Training procedure

Preprocessing

  • Combined each question with one candidate option to create the input text.
  • Tokenized the input using the DistilBERT WordPiece tokenizer.
  • Applied padding and truncation to a fixed maximum sequence length.
  • Converted labels into binary classes.

Fine-tuning

The model was fine-tuned using Hugging Face Transformers with the following configuration:

ParameterValue
Base Modeldistilbert-base-uncased
TaskBinary Sequence Classification
Loss FunctionCrossEntropyLoss
OptimizerAdamW
Learning Rate2e-5
Number of Labels2
FrameworkPyTorch + Hugging Face Transformers

The trained model predicts the probability that a candidate option is correct. For each MCQ, all options are scored independently, and the option with the highest probability is selected as the final answer.

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • train_batch_size: 32
  • eval_batch_size: 32
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • num_epochs: 5

Training results

The DistilBERT model achieved the best overall performance among the evaluated models in this project, outperforming both the custom BiLSTM and BERT models in terms of validation performance and Kaggle leaderboard score. The model was selected as the final submission because it provided the best balance between prediction accuracy, computational efficiency, and inference speed.

Training LossEpochStepValidation LossAccuracyPrecisionRecallF1
0.24791.02500.32840.94750.97430.75750.8523
0.21022.05000.24520.9520.87810.88250.8803
0.12793.07500.17810.9750.96050.91250.9359
0.11244.010000.15190.97750.94490.94250.9437
0.04855.012500.09850.9860.97690.95250.9646

Framework versions

  • Transformers 5.0.0
  • Pytorch 2.10.0+cu128
  • Datasets 4.8.5
  • Tokenizers 0.22.2

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей