Text Classification
Transformers
Safetensors
English
bert
citation-integrity
biomedical
cross-encoder
reranking
text-embeddings-inference
Run this model with HF Jobs
Run Sapnil/citeaudit-reranker on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Sapnil/citeaudit-reranker. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Sapnil/citeaudit-reranker on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Sapnil/citeaudit-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sapnil/citeaudit-reranker with Transformers:
# 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") - Notebooks
- Google Colab
- Kaggle
File size: 1,654 Bytes
9861712 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ---
license: mit
language: en
library_name: transformers
pipeline_tag: text-classification
base_model: microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext
tags:
- citation-integrity
- biomedical
- cross-encoder
- reranking
---
# 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](https://github.com/SapnilPatel/CiteAudit). Its top 20 sentences go to the
[CiteAudit classifier](https://huggingface.co/Sapnil/citeaudit-nli).
- **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.,
2024) 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](https://github.com/SapnilPatel/CiteAudit) 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.
|