|
Download README.md from mpapucci/simple-score-small: direct link, hf CLI and curl.
- Browser
- Download file 3.9 kB
-
https://huggingface.co/mpapucci/simple-score-small/resolve/main/README.md
- Command line
-
hf download hf://mpapucci/simple-score-small/README.md
-
curl -L -o README.md https://huggingface.co/mpapucci/simple-score-small/resolve/main/README.md
3.9 kB
| license: mit | |
| language: | |
| - en | |
| library_name: simple-score | |
| base_model: microsoft/deberta-v3-small | |
| tags: | |
| - text-simplification | |
| - evaluation | |
| - metric | |
| - reference-free | |
| # SIMPLE-small | |
| **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 `small` model (microsoft/deberta-v3-small cross-encoder). Sizes: small, base, large. | |
| ## Usage | |
| ```bash | |
| pip install simple-score | |
| ``` | |
| ```python | |
| from simple_score import SIMPLE | |
| metric = SIMPLE.from_pretrained("small") # = "mpapucci/simple-score-small" | |
| 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 small --sources src.txt --candidates sys.txt`. | |
| With Hugging Face `evaluate`: `evaluate.load("mpapucci/simple-score", "small")`. | |
| ## 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.738 | 0.475 | 0.414 | 0.407 | 0.994 | | |
| 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 | | |
| |---|---|---|---|---|---|---| | |
| | .576 | .501 | .606 | .296 | -.142 | .537 | .467 | | |
| Mean (std) score on SimpEval 2022: genuine simplifications +.58 (.21), complexifications | |
| (source and simplification swapped) -.64 (.20), adversarial candidates -.56 (.35). | |
| 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 2e-5, batch 32, 5 epochs over all 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. | |