/ Модель

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

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

aspire-biencoder-biomed-spec

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

BERT-биэнкодер для получения векторных представлений и поиска похожих биомедицинских научных статей по заголовку и аннотации.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

allenai/aspire-biencoder-biomed-spec — BERT-биэнкодер от Allen Institute for AI для оценки сходства биомедицинских научных публикаций. Модель инициализирована энкодером SPECTER и дообучена на 1,2 млн пар совместно цитируемых биомедицинских статей в контрастивной постановке. На вход подаются заголовок и аннотация статьи, на выходе — один вектор документа, сформированный из представлений CLS по слоям энкодера.

Модель предназначена для поиска похожих статей и информационного поиска по биомедицинским публикациям, в том числе для поиска релевантных аннотаций по запросу в виде научной аннотации. В README описана оценка на RELISH и TRECCOVID. В этой версии отсутствуют параметры scalar mix, которые использовались при обучении и важны для качества; для наиболее полного варианта авторы указывают отдельный архив aspire-biencoder-biomed-spec-full. Модель обучена преимущественно на биомедицинских данных, поэтому в других областях её качество может быть ниже. Контекст — до 512 токенов; лицензия Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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_Spec 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 SPECTER encoder. 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 base 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-spec-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 1e-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-spec (and aspire-biencoder-biomed-spec-full) is compared against allenai/specter. aspire-biencoder-biomed-spec-full* is the performance reported in our paper by averaging over 3 re-runs of the model. The released models aspire-biencoder-biomed-spec and aspire-biencoder-biomed-spec-full are the single best run among the 3 re-runs.

TRECCOVIDTRECCOVIDRELISHRELISH
MAPNDCG%20MAPNDCG%20
specter28.2459.2860.6277.20
aspire-biencoder-biomed-spec-full*28.5960.0761.4377.96
aspire-biencoder-biomed-spec26.0754.8961.4778.34
aspire-biencoder-biomed-spec-full28.8760.4761.6978.22

Note that the absence of linear mixing parameters in the aspire-biencoder-biomed-spec hurts performance substantially compared to aspire-biencoder-biomed-spec-full in TRECCOVID - this dataset contains a larger candidate set than RELISH (~9000 vs 60). Consider the more performant Alternative models below for usage.

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-scib: This is an alternative bi-encoder model identical to the above model, except that it is initialized with SciBERT instead of SPECTER. The above model underperforms this model, allenai/aspire-biencoder-biomed-scib (even better, aspire-biencoder-biomed-scib-full) is recommended for use.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей