/ Модель

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

Контекст
514 токенов
Параметры
95,2 млн
Лицензия
Apache 2.0
Архитектура
roberta · dense
Базовая модель
distilroberta-base
Библиотека
transformers
Опубликована
4 окт 2026

DISTO

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

DISTO оценивает, насколько правдоподобны варианты-отвлекающие ответы в вопросах на понимание англоязычного текста.

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

Бенчмарки

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

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

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

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

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

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

DISTO — модель Bilal Ghanem для оценки правдоподобия вариантов-отвлекающих ответов в заданиях по чтению с выбором ответа. Она принимает статью, вопрос, правильный ответ и до трёх дистракторов, а затем оценивает каждый вариант с учётом контекста: оценка от 0 до 1, где более высокое значение означает более правдоподобный дистрактор. Эталонные варианты для сравнения не требуются.

Модель основана на distilroberta-base с регрессионной головой на один выход; к токенизатору добавлены семь специальных токенов. Она обучена на датасетах CosmosQA, DREAM, MCScript, MCTest, QuAIL, RACE и SciQ. Максимальная длина входа — 512 токенов; при превышении лимита обрезается только статья. Для одного дистрактора остальные позиции заполняют специальным токеном [EMPT].

DISTO предназначена для оценки и отбора дистракторов при создании учебных тестов и вопросов на понимание прочитанного. На тестовой выборке авторы сообщают MAE 0,0286 и корреляцию Пирсона 0,966; в исследовании корреляция с оценками людей зависела от типа дистракторов. Модель проверялась только на английском языке и максимум на трёх дистракторах на вопрос; оценка контекстной согласованности не заменяет проверку преподавателем. Лицензия — Apache-2.0.

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

  • оценка правдоподобия дистракторов в тестах по чтению
  • отбор вариантов ответа для вопросов с множественным выбором
  • сравнение качества сгенерированных дистракторов
  • поиск слабых или неправдоподобных вариантов ответа

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

DISTO

DISTO is a learned metric for the quality of distractors in multiple-choice reading comprehension questions. Given an article, a question, the correct answer and up to three distractors, it returns a score in [0, 1]: higher means the distractors are more plausible in context. It needs no reference distractors.

How to run

Option 1: the disto package (recommended)

pip install git+https://github.com/bilalghanem/DISTO.git
from disto import DistoScorer

scorer = DistoScorer("bilalghanem/DISTO")  # downloads the model from the Hub

article = "The Nile is the longest river in Africa. It flows north through Egypt into the Mediterranean Sea."
question = "Where does the Nile flow into?"
answer = "The Mediterranean Sea"

# Score the whole set of up to three distractors in one pass
print(scorer.score(article, question, answer, ["The Red Sea", "The Atlantic Ocean", "Lake Victoria"]))  # ~0.99

# A distractor that copies the answer or is unrelated scores low
print(scorer.score(article, question, answer, ["The Mediterranean Sea", "A bowl of soup", "Tuesday"]))  # ~0.01

# Score a single distractor
print(scorer.score(article, question, answer, ["The Red Sea"]))  # ~0.997

# Score each distractor on its own and average, as in the paper
scores = scorer.score_each(article, question, answer, ["The Red Sea", "The Atlantic Ocean", "Lake Victoria"])
print(sum(scores) / len(scores))

Option 2: plain transformers

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("bilalghanem/DISTO")
model = AutoModelForSequenceClassification.from_pretrained("bilalghanem/DISTO").eval()

text = (
    "[QUES] Where does the Nile flow into? "
    "[ANS] The Mediterranean Sea "
    "[DIS1] The Red Sea [DIS2] The Atlantic Ocean [DIS3] Lake Victoria "
    "[ART] The Nile is the longest river in Africa. It flows north through Egypt into the Mediterranean Sea."
)
inputs = tokenizer(text, truncation=True, max_length=512, return_tensors="pt")
with torch.no_grad():
    score = torch.sigmoid(model(**inputs).logits).item()  # the sigmoid is not part of the model
print(score)

To score a single distractor with plain transformers, fill the other two slots with [EMPT]:

text = (
    "[QUES] Where does the Nile flow into? "
    "[ANS] The Mediterranean Sea "
    "[DIS1] The Red Sea [DIS2] [EMPT] [DIS3] [EMPT] "
    "[ART] The Nile is the longest river in Africa. It flows north through Egypt into the Mediterranean Sea."
)
inputs = tokenizer(text, truncation=True, max_length=512, return_tensors="pt")
with torch.no_grad():
    print(torch.sigmoid(model(**inputs).logits).item())  # ~0.997

Input format

The input is [QUES] question [ANS] answer [DIS1] d1 [DIS2] d2 [DIS3] d3 [ART] article. Fill missing distractors with [EMPT] (the paper's single-distractor setting is one distractor in [DIS1] and [EMPT] in the other two). Put the article last, since only the article is cut at 512 tokens. The Hub inference widget does not build this format or apply the sigmoid, so use one of the options above.

Model details

  • Architecture: distilroberta-base with a single-output regression head (RobertaForSequenceClassification, num_labels=1) and a sigmoid applied to the logit. Seven special tokens are added to the tokenizer.
  • Max input length: 512 tokens (the article comes last and is the only part truncated).
  • Training: MSE loss, AdamW, learning rate 3e-5, batch size 20, early stopping on validation loss.
  • Training data: CosmosQA, DREAM, MCScript, MCTest, QuAIL, RACE and SciQ. Good distractors have a target of 1; negative samples are built by copying the answer, drawing a random distractor, taking the farthest point of the distractor's k-means cluster, or rewriting a distractor with BERT [MASK] filling.

Evaluation

Held-out test split of the release (66,322 instances): MAE 0.0286, Pearson correlation 0.966.

In the paper, DISTO correlates with Amazon Mechanical Turk ratings of distractor quality at Pearson 0.81 on gold and negatively sampled distractors, and between 0.28 and 0.75 on distractors produced by five distractor generation models.

Limitations

  • The score reflects consistency with the context, learned from English reading-comprehension datasets. It is not a replacement for review by an educator.
  • Human agreement on this task is only moderate (Fleiss' kappa 0.45 in the paper's study).
  • Only English has been tested, and only up to three distractors per question.

Citation

@inproceedings{ghanem2024disto,
  title     = {{DISTO}: Textual Distractors for Multiple Choice Reading Comprehension Questions Using Negative Sampling},
  author    = {Ghanem, Bilal and Fyshe, Alona},
  booktitle = {Proceedings of the 17th International Conference on Educational Data Mining},
  pages     = {6--17},
  year      = {2024},
  doi       = {10.5281/zenodo.12729766}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
RobertaForSequenceClassification
Ревизия весов
48d9f81

0 моделей