simple-score-large / README.md
mpapucci's picture
Rename to SIMPLE Score (simple-score)
546a4b5 verified
|
Raw History Blame Contribute Delete
3.91 kB
---
license: mit
language:
- en
library_name: simple-score
base_model: microsoft/deberta-v3-large
tags:
- text-simplification
- evaluation
- metric
- reference-free
---
# SIMPLE-large
**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 `large` model (microsoft/deberta-v3-large cross-encoder). Sizes: small, base, large.
## Usage
```bash
pip install simple-score
```
```python
from simple_score import SIMPLE
metric = SIMPLE.from_pretrained("large") # = "mpapucci/simple-score-large"
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 large --sources src.txt --candidates sys.txt`.
With Hugging Face `evaluate`: `evaluate.load("mpapucci/simple-score", "large")`.
## 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.814 | 0.628 | 0.391 | 0.454 | 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 |
|---|---|---|---|---|---|---|
| .665 | .588 | .695 | .374 | -.069 | .531 | .461 |
Mean (std) score on SimpEval 2022: genuine simplifications +.66 (.25), complexifications
(source and simplification swapped) -.68 (.19), adversarial candidates -.56 (.34).
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 8, 5 epochs over a random quarter 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.