/ Модель

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

Контекст
514 токенов
Параметры
454 млн
Лицензия
BSD 3-Clause
Архитектура
roberta · dense
Опубликована
1 июн 2023

quip-512-mocha

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

RoBERTa-модель оценивает сходство предсказанного и эталонного ответов с учётом вопроса и контекста по шкале от 1 до 5.

274скачиваний за 30 дней4лайкавеса обновлены21 мар 2024

Бенчмарки

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

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

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

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

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

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

alirezamsh/quip-512-mocha — модуль оценки пересечения ответов для метрики QAFactEval, связанный с работой RQUGE. Модель разработана для оценки семантического сходства предсказанного ответа с эталонным с учётом вопроса и контекста. На вход подаются вопрос, эталонный ответ, предсказанный ответ и контекст в заданном формате; на выходе — оценка перекрытия ответов от 1 до 5.

Модель основана на RoBERTa и дообучена на наборе MOCHA, содержащем около 40 тысяч краудсорсинговых оценок результатов QA-моделей. Она предназначена для оценки ответов в системах вопросно-ответного поиска и анализа качества вопросов, созданных автоматически. Репозиторий содержит веса PyTorch и safetensors, число параметров — 454,1 млн, контекст — 514 токенов. В метаданных указан английский язык. Лицензия — BSD 3-Clause.

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

  • оценка качества ответов системы вопросно-ответного поиска
  • сравнение предсказанного ответа с эталонным
  • семантическая оценка перекрытия ответов с учётом контекста
  • оценка вопросов, созданных автоматически, в задачах QA

Ограничения

Модель выдаёт оценку по шкале 1–5 и обучена на оценках результатов QA-моделей из MOCHA; карточка не описывает её применимость за пределами этого сценария.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Answer Overlap Module of QAFactEval Metric

This is the span scorer module, used in RQUGE paper to evaluate the generated questions of the question generation task. The model was originally used in QAFactEval for computing the semantic similarity of the generated answer span, given the reference answer, context, and question in the question answering task. It outputs a 1-5 answer overlap score. The scorer is trained on their MOCHA dataset (initialized from Jia et al. (2021)), consisting of 40k crowdsourced judgments on QA model outputs.

The input to the model is defined as:

[CLS] question [q] gold answer [r] pred answer [c] context

Generation

You can use the following script to get the semantic similarity of the predicted answer given the gold answer, context, and question.

from transformers import AutoModelForSequenceClassification, AutoTokenizer
sp_scorer = AutoModelForSequenceClassification.from_pretrained('alirezamsh/quip-512-mocha')
tokenizer_sp = AutoTokenizer.from_pretrained('alirezamsh/quip-512-mocha')
sp_scorer.eval()

pred_answer = ""
gold_answer = ""
question = ""
context = ""

input_sp = f"{question} <q> {gold_answer} <r>" \
                   f" {pred_answer} <c> {context}"

inputs = tokenizer_sp(input_sp, max_length=512, truncation=True, \
                                   padding="max_length", return_tensors="pt")

outputs = sp_scorer(input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"])
print(outputs)

Citations

@inproceedings{fabbri-etal-2022-qafacteval,
    title = "{QAF}act{E}val: Improved {QA}-Based Factual Consistency Evaluation for Summarization",
    author = "Fabbri, Alexander  and
      Wu, Chien-Sheng  and
      Liu, Wenhao  and
      Xiong, Caiming",
    booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
    month = jul,
    year = "2022",
    address = "Seattle, United States",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.naacl-main.187",
    doi = "10.18653/v1/2022.naacl-main.187",
    pages = "2587--2601",
    abstract = "Factual consistency is an essential quality of text summarization models in practical settings. Existing work in evaluating this dimension can be broadly categorized into two lines of research, entailment-based and question answering (QA)-based metrics, and different experimental setups often lead to contrasting conclusions as to which paradigm performs the best. In this work, we conduct an extensive comparison of entailment and QA-based metrics, demonstrating that carefully choosing the components of a QA-based metric, especially question generation and answerability classification, is critical to performance. Building on those insights, we propose an optimized metric, which we call QAFactEval, that leads to a 14{\%} average improvement over previous QA-based metrics on the SummaC factual consistency benchmark, and also outperforms the best-performing entailment-based metric. Moreover, we find that QA-based and entailment-based metrics can offer complementary signals and be combined into a single metric for a further performance boost.",
}

@inproceedings{mohammadshahi-etal-2023-rquge,
    title = "{RQUGE}: Reference-Free Metric for Evaluating Question Generation by Answering the Question",
    author = "Mohammadshahi, Alireza  and
      Scialom, Thomas  and
      Yazdani, Majid  and
      Yanki, Pouya  and
      Fan, Angela  and
      Henderson, James  and
      Saeidi, Marzieh",
    editor = "Rogers, Anna  and
      Boyd-Graber, Jordan  and
      Okazaki, Naoaki",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2023",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.findings-acl.428",
    doi = "10.18653/v1/2023.findings-acl.428",
    pages = "6845--6867",
    abstract = "Existing metrics for evaluating the quality of automatically generated questions such as BLEU, ROUGE, BERTScore, and BLEURT compare the reference and predicted questions, providing a high score when there is a considerable lexical overlap or semantic similarity between the candidate and the reference questions. This approach has two major shortcomings. First, we need expensive human-provided reference questions. Second, it penalises valid questions that may not have high lexical or semantic similarity to the reference questions. In this paper, we propose a new metric, RQUGE, based on the answerability of the candidate question given the context. The metric consists of a question-answering and a span scorer modules, using pre-trained models from existing literature, thus it can be used without any further training. We demonstrate that RQUGE has a higher correlation with human judgment without relying on the reference question. Additionally, RQUGE is shown to be more robust to several adversarial corruptions. Furthermore, we illustrate that we can significantly improve the performance of QA models on out-of-domain datasets by fine-tuning on synthetic data generated by a question generation model and reranked by RQUGE.",
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей