Views
No views yet
abacus-cheat-tell-v3 detects whether a passage from pre-modern mathematical texts contains anachronistic language or concepts (i.e., ideas that could not have existed at the time of writing). This is a core component of the ABACUS "no-cheating" protocol: any model trained on pre-modern corpora that produces post-1930 concepts is flagged.ModernBertForSequenceClassification (answerdotai/ModernBERT-base, 149M params)
Labels: 0 = authentic, 1 = anachronism
Warm-started from: idirectships/abacus-cheat-tell-v2| Metric | v2 (baseline) | v3 | Delta |
|---|---|---|---|
| F1 | 0.6522 | 0.7368 | +0.0846 |
| Accuracy | 0.5429 | 0.7143 | +0.1714 |
| Precision | n/a | 0.6667 | - |
| Recall | n/a | 0.8235 | - |
abacus-cheat-tell-eval-v3 train split (140 balanced examples) and uses explicit anachronism metadata with insertion position. v2 was trained on an unknown dataset of similar size over 4 epochs.idirectships/abacus-cheat-tell-eval-v3 train splitidirectships/abacus-cheat-tell-v2 (warm-start from v2 weights)anachronism (label=1) likely contains post-1930 mathematical terminology embedded in a historical context, indicating contaminated training data.1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4tok = AutoTokenizer.from_pretrained("idirectships/abacus-cheat-tell-v3")
5mdl = AutoModelForSequenceClassification.from_pretrained("idirectships/abacus-cheat-tell-v3")
6mdl.train(False)
7
8def classify(text):
9 inputs = tok(text, return_tensors="pt", truncation=True, max_length=512)
10 with torch.no_grad():
11 logits = mdl(**inputs).logits
12 label_id = logits.argmax(-1).item()
13 score = torch.softmax(logits, dim=-1)[0][label_id].item()
14 return {"label": ["authentic", "anachronism"][label_id], "score": round(score, 4)}
15
16print(classify("Archimedes calculated pi using a polygon approximation method."))
17# -> {'label': 'authentic', 'score': ...}
18
19print(classify("Newton's discovery of quantum entanglement in 1687 led to..."))
20# -> {'label': 'anachronism', 'score': ...}