Downloads · 30 days
12
30% of all-time downloads
daxmavy/claim-samepoint-scorer
claim-samepoint-scorer is a text classification model from daxmavy. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
A cross-encoder that scores how fully two claims make the same underlying point, on a graded 1–5 scale (1 = different / no match, 5 = the same claim). Built for measuring document↔summary claim similarity in an LLM po…
Downloads · 30 days
12
30% of all-time downloads
All-time downloads
40
Public
Parameters
355M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
A cross-encoder that scores how fully two claims make the same underlying point, on a graded 1–5 scale (1 = different / no match, 5 = the same claim). Built for measuring document↔summary claim similarity in an LLM political-bias study (UK political-opinion texts).
roberta-large-mnli (355M), regression head (num_labels=1) → continuous score in ~[1, 5].Given (claim A, claim B), the model's single logit is a same-point strength ≈ 1–5:
| score | meaning |
|---|---|
| 5 | same claim (paraphrase, or a faithful generalisation/specific-instance) |
| 4 | same point, broadened/narrowed |
| 3 | partial overlap |
| 2 | same topic & side but a different point (a reason/mechanism/consequence B adds) |
| 1 | different claim / unrelated / opposite |
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tok = AutoTokenizer.from_pretrained("daxmavy/claim-samepoint-scorer")
model = AutoModelForSequenceClassification.from_pretrained("daxmavy/claim-samepoint-scorer").eval()
a = "There is often snobbery surrounding private education."
b = "Private schools contribute to social elitism."
enc = tok(a, b, truncation=True, max_length=160, return_tensors="pt")
with torch.no_grad():
score = model(**enc).logits.squeeze().item() # ~1..5; higher = more the same point
print(round(score, 2))
The score is symmetric, so score(a, b) ≈ score(b, a). For a 1–5 label, calibrate with isotonic
regression on a small labelled set (recommended) or simply round-and-clip.
Evaluated against human 1–5 labels, post-stratified to the study's main-experiment population (NLI-survivor region):
| metric | value |
|---|---|
| weighted Spearman ρ vs human | 0.711 |
| weighted QWK (isotonic-calibrated) | 0.779 |
| weighted MAE (1–5 scale) | 0.52 |
| input-order symmetry, mean|score(a,b)−score(b,a)| | 0.089 |
| as a filter: match-recall @ 6.72% keep-rate | 100% (vs 4-NLI-mean 80.5%) |
| 5×5 confusion: exact-match / within-±1 | 63.7% / 90% |
It recovers ~90% of the 27B teacher's ranking at ~1/70th the parameters, and outperforms an NLI mean-of-4 and SBERT-cosine on the post-filter ranking task.
Trained for a University of Oxford thesis on LLM political bias (document selection + summarisation).