allenai / aspire-contextualsentence-singlem-compsci

huggingface.co
Total runs: 136
24-hour runs: 0
7-day runs: 3
30-day runs: -1.9K
Model's Last Updated: 2022年10月3日
feature-extraction

Introduction of aspire-contextualsentence-singlem-compsci

Model Details of aspire-contextualsentence-singlem-compsci

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 computer science 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 leveraging a novel form of textual supervision which leverages co-citation contexts to align the sentences of positive examples. Test time behavior ranks documents based on the smallest L2 distance of sentences between documents or the smallest L2 distance between a set of query sentences and a candidate document.

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 computer science 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 with the abstracts sentence aligned using the co-citation context. Here the context notes why the cited papers are similar:

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 computer science scientific text using multiple vectors per document. The model allows fine grained similarity by establishing sentence-to-sentence similarity between documents. The model is most well suited to an aspect conditional task formulation where a query might consist of sentence in a query document and candidates must be retrieved along this 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 computer science, 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.

View example usage in the model github repo: https://github.com/allenai/aspire#tsaspire

Variable and metrics

This model is evaluated on information retrieval datasets with document level queries. Performance here is reported on CSFCube (computer science/English). This is detailed on github and in our paper . CSFCube presents a finer-grained query via selected sentences in a query abstract based on which a finer-grained retrieval must be made from candidate abstracts.

In using this sentence level model we rank documents by the minimal L2 distance between the query sentences and a candidate abstract.

Evaluation results

The released model aspire-contextualsentence-singlem-compsci is compared against allenai/specter , a bi-encoder baseline and all-mpnet-base-v2 a strong non-contextual sentence-bert baseline model trained on ~1 billion training examples. aspire-contextualsentence-singlem-compsci * is the performance reported in our paper by averaging over 3 re-runs of the model. The released models aspire-contextualsentence-singlem-compsci is the single best run among the 3 re-runs.

CSFCube aggregated CSFCube aggregated
MAP NDCG%20
all-mpnet-base-v2 34.64 54.94
specter 34.23 53.28
aspire-contextualsentence-singlem-compsci * 40.26 60.71
aspire-contextualsentence-singlem-compsci 41.33 61.46

Alternative models:

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

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

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

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.

Runs of allenai aspire-contextualsentence-singlem-compsci on huggingface.co

136
Total runs
0
24-hour runs
1
3-day runs
3
7-day runs
-1.9K
30-day runs

More Information About aspire-contextualsentence-singlem-compsci huggingface.co Model

More aspire-contextualsentence-singlem-compsci license Visit here:

https://choosealicense.com/licenses/apache-2.0

aspire-contextualsentence-singlem-compsci huggingface.co

aspire-contextualsentence-singlem-compsci huggingface.co is an AI model on huggingface.co that provides aspire-contextualsentence-singlem-compsci's model effect (), which can be used instantly with this allenai aspire-contextualsentence-singlem-compsci model. huggingface.co supports a free trial of the aspire-contextualsentence-singlem-compsci model, and also provides paid use of the aspire-contextualsentence-singlem-compsci. Support call aspire-contextualsentence-singlem-compsci model through api, including Node.js, Python, http.

aspire-contextualsentence-singlem-compsci huggingface.co Url

https://huggingface.co/allenai/aspire-contextualsentence-singlem-compsci

allenai aspire-contextualsentence-singlem-compsci online free

aspire-contextualsentence-singlem-compsci huggingface.co is an online trial and call api platform, which integrates aspire-contextualsentence-singlem-compsci's modeling effects, including api services, and provides a free online trial of aspire-contextualsentence-singlem-compsci, you can try aspire-contextualsentence-singlem-compsci online for free by clicking the link below.

allenai aspire-contextualsentence-singlem-compsci online free url in huggingface.co:

https://huggingface.co/allenai/aspire-contextualsentence-singlem-compsci

aspire-contextualsentence-singlem-compsci install

aspire-contextualsentence-singlem-compsci is an open source model from GitHub that offers a free installation service, and any user can find aspire-contextualsentence-singlem-compsci on GitHub to install. At the same time, huggingface.co provides the effect of aspire-contextualsentence-singlem-compsci install, users can directly use aspire-contextualsentence-singlem-compsci installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

aspire-contextualsentence-singlem-compsci install url in huggingface.co:

https://huggingface.co/allenai/aspire-contextualsentence-singlem-compsci

Url of aspire-contextualsentence-singlem-compsci

aspire-contextualsentence-singlem-compsci huggingface.co Url

Provider of aspire-contextualsentence-singlem-compsci huggingface.co

allenai
ORGANIZATIONS

Other API from allenai

huggingface.co

Total runs: 91.7K
Run Growth: 78.6K
Growth Rate: 85.70%
Updated: 2023年10月18日
huggingface.co

Total runs: 91.3K
Run Growth: 63.3K
Growth Rate: 69.57%
Updated: 2025年1月6日
huggingface.co

Total runs: 77.3K
Run Growth: -517.1K
Growth Rate: -669.13%
Updated: 2024年10月10日
huggingface.co

Total runs: 63.3K
Run Growth: 51.7K
Growth Rate: 81.63%
Updated: 2024年10月10日
huggingface.co

Total runs: 61.6K
Run Growth: -50.5K
Growth Rate: -81.96%
Updated: 2024年12月4日
huggingface.co

Total runs: 23.0K
Run Growth: 7.7K
Growth Rate: 33.79%
Updated: 2024年8月14日
huggingface.co

Total runs: 8.5K
Run Growth: 3.3K
Growth Rate: 36.78%
Updated: 2024年7月16日
huggingface.co

Total runs: 6.4K
Run Growth: 3.3K
Growth Rate: 51.01%
Updated: 2024年10月10日
huggingface.co

Total runs: 6.1K
Run Growth: -21.5K
Growth Rate: -354.06%
Updated: 2024年7月3日
huggingface.co

Total runs: 5.1K
Run Growth: -17.0K
Growth Rate: -321.48%
Updated: 2024年7月16日
huggingface.co

Total runs: 3.7K
Run Growth: 1.7K
Growth Rate: 44.61%
Updated: 2024年5月14日
huggingface.co

Total runs: 2.5K
Run Growth: -163
Growth Rate: -6.49%
Updated: 2024年12月4日
huggingface.co

Total runs: 1.7K
Run Growth: -110
Growth Rate: -6.43%
Updated: 2024年7月16日
huggingface.co

Total runs: 895
Run Growth: 878
Growth Rate: 98.10%
Updated: 2023年1月24日
huggingface.co

Total runs: 502
Run Growth: -100
Growth Rate: -21.23%
Updated: 2023年1月24日
huggingface.co

Total runs: 486
Run Growth: 256
Growth Rate: 52.67%
Updated: 2024年2月12日
huggingface.co

Total runs: 374
Run Growth: 354
Growth Rate: 94.65%
Updated: 2024年6月13日
huggingface.co

Total runs: 313
Run Growth: -437
Growth Rate: -139.62%
Updated: 2024年4月30日
huggingface.co

Total runs: 297
Run Growth: 159
Growth Rate: 53.54%
Updated: 2024年4月19日