File size: 3,896 Bytes
d9dd7ba 78d981c d9dd7ba 78d981c d9dd7ba 78d981c d9dd7ba 78d981c d9dd7ba 78d981c d9dd7ba 78d981c d9dd7ba 78d981c d9dd7ba | 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | ---
license: mit
language:
- en
library_name: simple-score
base_model: microsoft/deberta-v3-base
tags:
- text-simplification
- evaluation
- metric
- reference-free
---
# SIMPLE-base
**SIMPLE Score** (SImplicity Metric via Preference LEarning) is a reference-free learned metric
for sentence simplification. For a source sentence and a candidate simplification it returns
- a **score** `mu` in (-1, 1): +1 = highly successful simplification, 0 = verbatim copy of
the source, -1 = unrelated or degenerate text (negative = unsuccessful, including
complexifications);
- an **uncertainty** `sigma` (> 0.05): the model's confidence in that score. Lower sigma
means more reliable; it is a confidence signal, not an estimate of human disagreement.
This is the `base` model (microsoft/deberta-v3-base cross-encoder). Sizes: small, base, large.
## Usage
```bash
pip install simple-score
```
```python
from simple_score import SIMPLE
metric = SIMPLE.from_pretrained("base") # = "mpapucci/simple-score-base"
out = metric.score(
["The feline perched upon the mat in a state of repose."],
["The cat sat on the mat."],
)
print(out.mu, out.sigma)
```
From the command line: `simple-score score --model base --sources src.txt --candidates sys.txt`.
With Hugging Face `evaluate`: `evaluate.load("mpapucci/simple-score", "base")`.
## Results
SimpEval 2022 (Maddela et al., 2023): pairwise accuracy and Kendall tau over 484 human
preference pairs; Pearson/Spearman with 360 human ratings; adversarial beat-rate (genuine
simplification scored above a copy / truncation / shuffle / random sentence /
over-deletion of the source, averaged).
| Pairwise acc. | Kendall tau | Pearson | Spearman | Beat-rate |
|---|---|---|---|---|
| 0.781 | 0.562 | 0.427 | 0.448 | 0.989 |
Pearson correlation with human ratings on Simplicity-DA (Alva-Manchego et al., 2021) and
Structural Simplicity (Sulem et al., 2018):
| SDA fluency | SDA meaning | SDA simplicity | SS grammaticality | SS meaning | SS simplicity | SS structural |
|---|---|---|---|---|---|---|
| .624 | .584 | .680 | .439 | .009 | .483 | .396 |
Mean (std) score on SimpEval 2022: genuine simplifications +.64 (.26), complexifications
(source and simplification swapped) -.67 (.20), adversarial candidates -.54 (.36).
The checkpoint was selected by pairwise accuracy on SimpEval 2022, the same data as the
first table, so those numbers are optimistic; the other benchmarks were not used for
selection.
## Training
A cross-encoder over `[CLS] source [SEP] candidate [SEP]` with two linear heads,
`mu = tanh(W h)` and `sigma = softplus(W' h) + 0.05`, trained with
- a Thurstone (Case III) pairwise loss, `-log Phi((mu_pos - mu_neg - m) / sqrt(sigma_pos^2 + sigma_neg^2))`,
on 507,940 preference pairs built from ASSET, OneStopEnglish, Newsela and SimpEval PAST
(original vs. simplification, more vs. less simplified, human-preferred vs. dispreferred
with rating margin `m`, simplification vs. unrelated sentence);
- a Gaussian negative log-likelihood (weight 0.7) on 2,400 SimpEval PAST human ratings plus
synthetic anchors (copies = 0, degenerate rewrites < 0, unrelated text = -1).
Hyperparameters: AdamW, learning rate 1e-5, batch 16, 5 epochs over a random half of the
pairs per epoch, linear warmup over 6% of steps, max length 512. The training code and a
recipe to rebuild the data from the original sources are in the
[simple-score repository](https://github.com/michelepapucci/simple-score).
## Limitations
- Sentence-level, English, mostly news and Wikipedia; behaviour may differ in other
domains or for other reader populations.
- Insertion/elaboration-heavy simplifications are rare in the training data; both `mu` and
`sigma` are less reliable on them.
- `sigma` is reasonably but not perfectly calibrated (temperature scaling helps).
## Citation
Citation will be added upon publication.
|