/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Опубликована
23 апр 2022

aspire-biencoder-biomed-scib

ЭмбеддингиТекст → embedding3 профессии

Bi-encoder на основе SciBERT, который строит векторы заголовков и аннотаций биомедицинских статей для поиска и оценки сходства публикаций.

371скачиваний за 30 дней0лайковвеса обновлены3 окт 2022

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

allenai/aspire-biencoder-biomed-scib — модель bi-encoder на основе BERT, разработанная Sheshera Mysore, Arman Cohan и Tom Hope для оценки сходства научных документов. В работе она называется Specter-CoCite_Scib и предназначена прежде всего для поиска и ранжирования статей по их заголовкам и аннотациям в биомедицинской области. Модель инициализирована SciBERT и обучена на 1,2 млн пар совместно цитируемых биомедицинских статей с контрастивным обучением. Она формирует вектор документа на основе скалярного смешивания представлений токена CLS по слоям кодировщика.

Модель подходит для поиска релевантных научных публикаций по другой статье или аннотации. Архитектура — BERT, размер — 137,1 млн параметров, максимальная длина контекста — 512 токенов; доступен формат PyTorch. В карточке приведены результаты оценки на англоязычных наборах RELISH и TRECCOVID. Параметры scalar mix не включены в этот репозиторий, но доступны в полной версии модели. Обучение преимущественно на биомедицинских данных может снижать качество в других областях. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Overview

Model included in a paper for modeling fine grained similarity between documents:

Title: "Multi-Vector Models with Textual Guidance for Fine-Grained Scientific Document Similarity"

Authors: Sheshera Mysore, Arman Cohan, Tom Hope

Paper: https://arxiv.org/abs/2111.08366

Github: https://github.com/allenai/aspire

Note: In the context of the paper, this model is referred to as Specter-CoCite_Scib and represents a baseline bi-encoder for scientific document similarity. This model is similar in architecture to the allenai/specter model but is trained on co-citation data instead of citation data.

Model Card

Model description

This model is a BERT bi-encoder model trained for similarity of title-abstract pairs in biomedical scientific papers. The model is initialized with the SciBert model. This model inputs the title and abstract of a paper and represents it with a single vector obtained by a scalar mix of the CLS token at every layer of the SciBert encoder. These scalar mix parameters can be important for performance in some datasets. Importantly, these scalar mix weights are not included as part of this HF model, if you wish to use these parameters please download the full model at: aspire-biencoder-biomed-scib-full.zip.

Training data

The model is trained on pairs of co-cited papers in a contrastive learning setup. The model is trained on 1.2 million biomedical paper pairs. In training the model negative examples for the contrastive loss are obtained as random in-batch negatives. Co-citations are obtained from the full text of papers, for example - the papers in brackets below are all co-cited and each pairs title and abstracts would be used as a training pair:

The idea of distant supervision has been proposed and used widely in Relation Extraction (Mintz et al., 2009; Riedel et al., 2010; Hoffmann et al., 2011; Surdeanu et al., 2012) , where the source of labels is an external knowledge base.

Training procedure

The model was trained with the Adam Optimizer and a learning rate of 2e-5 with 1000 warm-up steps followed by linear decay of the learning rate. The model training convergence is checked with the loss on a held out dev set consisting of co-cited paper pairs.

Intended uses & limitations

This model is trained for document similarity tasks in biomedical scientific text using a single vector per document. Here, the documents are the title and abstract of a paper. With appropriate fine-tuning the model can also be used for other tasks such as classification. Since the training data comes primarily from biomedicine, performance on other domains may be poorer.

How to use

Follow instructions for use detailed on the model github repo: https://github.com/allenai/aspire#specter-cocite

Variable and metrics

This model is evaluated on information retrieval datasets with document level queries. Here we report performance on RELISH (biomedical/English), and TRECCOVID (biomedical/English). These are detailed on github and in our paper. These datasets represent a abstract level retrieval task, where given a query scientific abstract the task requires the retrieval of relevant candidate abstracts.

We rank documents by the L2 distance between the query and candidate documents.

Evaluation results

The released model aspire-biencoder-biomed-scib (and aspire-biencoder-biomed-scib-full) is compared against allenai/specter. aspire-biencoder-biomed-scib-full* is the performance reported in our paper by averaging over 3 re-runs of the model. The released models aspire-biencoder-biomed-scib and aspire-biencoder-biomed-scib-full are the single best run among the 3 re-runs.

TRECCOVIDTRECCOVIDRELISHRELISH
MAPNDCG%20MAPNDCG%20
specter28.2459.2860.6277.20
aspire-biencoder-biomed-scib-full*30.6062.0761.4378.01
aspire-biencoder-biomed-scib30.7460.1661.5278.07
aspire-biencoder-biomed-scib-full31.4563.1561.3477.89

Alternative models:

Besides the above models consider these alternative models also released in the Aspire paper:

aspire-biencoder-compsci-spec: If you wanted to run on computer science papers.

aspire-biencoder-biomed-spec: This is an alternative bi-encoder model identical to the above model, except that it is initialized with allenai/specter instead of SciBert. This usually under-performs the model released here.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertModel
Ревизия весов
38300db

0 моделей