/ Модель

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

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

aspire-contextualsentence-multim-biomed

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Модель tsAspire разработана Шешерой Майсором, Арманом Коханом и Томом Хоупом для поиска и оценки детального сходства между биомедицинскими научными публикациями. Это BERT-модель с 137,1 млн параметров, обученная представлять заголовок и аннотацию статьи набором контекстных векторов предложений. При кодировании предложения учитывают контекст всего заголовка и аннотации; при сравнении модель сопоставляет предложения документов с помощью расстояния Васерштейна, формируя разреженное выравнивание между ними.

Модель предназначена для поиска релевантных статей по аннотации или выбранным предложениям из документа, а также для ранжирования кандидатов по тематическому сходству. Она обучена на 1,2 млн пар биомедицинских статей, связанных совместным цитированием, и оценивалась на наборах TRECCOVID и RELISH. Контекст составляет до 512 токенов. Для получения векторов и ранжирования требуется дополнительный код поверх Transformers.

Модель ориентирована на англоязычные биомедицинские тексты; качество в других областях может быть ниже. README также указывает, что при дополнительной настройке модель можно применять для классификации документов или предложений. Лицензия — Apache 2.0.

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

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

Ограничения

Модель обучена преимущественно на биомедицинских статьях, поэтому качество в других областях может быть ниже. Для вычисления контекстных векторов предложений и ранжирования требуется дополнительный код.

Для каких профессий подходит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 tsAspire and represents the papers proposed multi-vector model for fine-grained scientific document similarity.

Model Card

Model description

This model is a BERT based multi-vector model trained for fine-grained similarity of biomedical papers. This model inputs the title and abstract of a paper and represents a paper with a contextual sentence vectors obtained by averaging the token representations of individual sentences - the whole title and abstract are encoded with cross-attention in the encoder block before obtaining sentence embeddings. The model is trained by minimizing an Wasserstein/Earth Movers Distance between sentence vectors for a pair of documents - in the process also learning a sparse alignment between sentences in both documents. Test time behavior ranks documents based on the Wasserstein Distance between all sentences of documents or a set of query sentences and a candidate documents sentences.

Training data

The model is trained on pairs of co-cited papers with their sentences aligned by the co-citation context 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 pair of papers 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 fine-grained document similarity tasks in biomedical scientific text using multiple vectors per document. The model allows multiple fine grained sentence-to-sentence similarities between documents. The model is well suited to an aspect conditional task formulation where a query might consist of sentence_s_ in a query document and candidates must be retrieved along the specified sentences. 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 document or sentence level classification. Since the training data comes primarily from biomedical, performance on other domains may be poorer.

How to use

This model can be used via the transformers library, and some additional code to compute contextual sentence vectors and to make multiple matches using optimal transport.

View example usage and sample document matches in the model github repo: examples/demo-contextualsentence-multim.ipynb

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. In using this model we rank documents by the Wasserstein distance between the query sentences and a candidates sentences.

Evaluation results

The released model aspire-contextualsentence-multim-biomed is compared against allenai/specter. aspire-contextualsentence-multim-biomed* is the performance reported in our paper by averaging over 3 re-runs of the model. The released models aspire-contextualsentence-multim-biomed is the single best run among the 3 re-runs.

TRECCOVIDTRECCOVIDRELISHRELISH
MAPNDCG%20MAPNDCG%20
specter28.2459.2860.6277.20
aspire-contextualsentence-multim-biomed*30.9262.2362.5778.95
aspire-contextualsentence-multim-biomed31.2562.9962.2478.65

Alternative models:

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

aspire-contextualsentence-multim-compsci: If you wanted to run on computer science papers and want to use a model trained to match multiple sentences between documents.

aspire-contextualsentence-singlem-biomed: If you wanted to run on biomedical papers and want to use a model trained to match single sentences between documents.

aspire-contextualsentence-singlem-compsci: If you wanted to run on computer science papers and want to use a model trained to match single sentences between documents.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей