/ Модель

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

Контекст
512 токенов
Параметры
136 млн
Лицензия
Apache 2.0
Архитектура
splinter · dense

splinter-base

Ответы на вопросыТекст → текст4 профессии

Англоязычная предварительно обученная модель Splinter для извлечения ответов из текста в сценариях few-shot question answering.

34 273скачиваний за 30 дней1лайквеса обновлены17 авг 2021

Бенчмарки

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

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

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

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

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

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

Splinter-base — предварительно обученная модель семейства Splinter, представленная авторами исследования Few-Shot Question Answering by Pretraining Span Selection. Она предназначена для извлечения ответов из текста и сценариев вопросно-ответной системы с небольшим количеством примеров. Модель обучалась на текстах Wikipedia и BookCorpus с помощью задачи Recurring Span Selection, которая имитирует выбор фрагмента текста в ответ на вопрос. Архитектура — плотная трансформерная модель SplinterForQuestionAnswering с 135,5 млн параметров и контекстом до 512 токенов; модель чувствительна к регистру и рассчитана на английский язык.

В этой версии веса слоя Question-Aware Span Selection (QASS) не включены: при загрузке слой инициализируется случайно. Для использования с предварительно обученными весами QASS в README указан вариант tau/splinter-base-qass. Лицензия — Apache-2.0.

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

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

Ограничения

Модель чувствительна к регистру и имеет контекст до 512 токенов. Веса слоя QASS отсутствуют, поэтому этот слой инициализируется случайно; для варианта с его предобученными весами README указывает tau/splinter-base-qass.

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

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

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

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

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

Открыть на Hugging Face

Splinter base model

Splinter-base is the pretrained model discussed in the paper Few-Shot Question Answering by Pretraining Span Selection (at ACL 2021). Its original repository can be found here. The model is case-sensitive.

Note: This model doesn't contain the pretrained weights for the QASS layer (see paper for details), and therefore the QASS layer is randomly initialized upon loading it. For the model with those weights, see tau/splinter-base-qass.

Model description

Splinter is a model that is pretrained in a self-supervised fashion for few-shot question answering. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.

More precisely, it was pretrained with the Recurring Span Selection (RSS) objective, which emulates the span selection process involved in extractive question answering. Given a text, clusters of recurring spans (n-grams that appear more than once in the text) are first identified. For each such cluster, all of its instances but one are replaced with a special [QUESTION] token, and the model should select the correct (i.e., unmasked) span for each masked one. The model also defines the Question-Aware Span selection (QASS) layer, which selects spans conditioned on a specific question (in order to perform multiple predictions).

Intended uses & limitations

The prime use for this model is few-shot extractive QA.

Pretraining

The model was pretrained on a v3-8 TPU for 2.4M steps. The training data is based on Wikipedia and BookCorpus. See the paper for more details.

BibTeX entry and citation info

@inproceedings{ram-etal-2021-shot,
    title = "Few-Shot Question Answering by Pretraining Span Selection",
    author = "Ram, Ori  and
      Kirstain, Yuval  and
      Berant, Jonathan  and
      Globerson, Amir  and
      Levy, Omer",
    booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = aug,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.acl-long.239",
    doi = "10.18653/v1/2021.acl-long.239",
    pages = "3066--3079",
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей