How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="Sapnil/citeaudit-reranker")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("Sapnil/citeaudit-reranker")
model = AutoModelForSequenceClassification.from_pretrained("Sapnil/citeaudit-reranker", device_map="auto")
Quick Links

CiteAudit evidence reranker (PubMedBERT cross-encoder)

This model finds the sentences of a cited paper that bear on a citing sentence. It is the retrieval half of CiteAudit. Its top 20 sentences go to the CiteAudit classifier.

  • Input: text_a = the citing sentence with its citation markers removed; text_b = one candidate sentence of the cited paper with up to 200 characters of each neighbour, at 192 tokens.
  • Output: a single relevance logit. Higher means more relevant.
  • Use: it reranks BM25's top 60 sentences (k1 0.9, b 0.4).
  • Training: fine-tuned from BiomedBERT on the Citation-Integrity training split (Sarol et al.,
    1. with a listwise loss over each gold sentence and BM25-sampled negatives.

Results (Citation-Integrity test set, 20 articles, 606 citations with evidence)

Retrieval Recall@10 Recall@20 MRR
BM25 + MonoT5, Sarol et al. 2024 (reproduced) 0.422 0.529 0.323
BM25 + this reranker 0.510 0.627 0.379

Use

The citeaudit package builds the windows exactly as in training (citeaudit.retrieval.window). Note one detail of the training code: a previous sentence of 100 to 200 characters is clipped to its last 200 - len characters. Build windows another way and scores shift.

Downloads last month
44
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Sapnil/citeaudit-reranker