/ Модель

Характеристики

Контекст
514 токенов
Параметры
152 млн
Лицензия
Apache 2.0
Архитектура
roberta · dense
Базовая модель
roberta-base-bne
Опубликована
25 сен 2025

RoBERTaSense-FACIL

Классификация текстаТекст → label6 профессий

Испанская RoBERTa-классификатор оценивает, сохраняет ли текст на лёгком для чтения языке смысл оригинала.

54скачиваний за 30 дней6лайковвеса обновлены24 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

RoBERTaSense-FACIL — испанская модель классификации текста, разработанная группой Ontology Engineering Group при Политехническом университете Мадрида. Она оценивает, сохраняет ли адаптация исходного текста смысл, принимая на вход пару текстов: оригинал и версию на лёгком для чтения испанском языке (Easy-to-Read, E2R). Модель основана на RoBERTa, содержит около 151,8 млн параметров и классификационную голову с двумя метками. Контекст — до 514 токенов; при парной токенизации в карточке указано усечение до 512 токенов.

Модель предназначена для автоматической проверки доступных адаптаций и как один из сигналов в конвейерах контроля качества. На отложенной выборке авторы сообщают accuracy 0,81, F1 0,84 и ROC-AUC 0,83. Она обучена на испанских парах текстов и может хуже работать на других жанрах и предметных областях; бинарная оценка упрощает пограничные случаи, поэтому для важных решений нужна проверка человеком. Базовая модель PlanTL-GOB-ES/roberta-base-bne объявлена устаревшей и больше не поддерживается. Лицензия модели — Apache-2.0.

Сценарии применения

  • проверка сохранения смысла при адаптации испанского текста на лёгкий для чтения язык
  • автоматическая оценка качества доступных испанских материалов
  • отбор адаптаций для экспертной проверки
  • контроль смысловой целостности пар «оригинал — адаптация» в конвейере доступности

Ограничения

Обучена для испанских адаптаций Easy-to-Read, поэтому на других языках, жанрах и предметных областях качество может снижаться. Бинарная классификация не отражает все пограничные случаи; базовая модель устарела, а для критичных решений рекомендуется проверка человеком.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Model Card for RoBERTaSense-FACIL

RoBERTaSense-FACIL (RoBERTa Fine-tuned for Accessible Comprehension In Language) is a Spanish RoBERTa model fine-tuned to assess meaning preservation in Easy-to-Read (E2R) adaptations. Given a pair of texts {original, adapted}, it predicts whether the adaptation preserves the meaning of the original.

The model is based on IsGarrido/roberta-base-bne, which preserves the Spanish RoBERTa-base-bne weights used as the base architecture for RoBERTaSense-FACIL.


🚀 How to Use

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

repo = "oeg/RoBERTaSense-FACIL"

tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo)
model.eval()

# Example pair
original = "Juan llegó tarde ya que perdió el autobús."
adapted = "Juan perdió el autobús. Por eso, Juan llegó tarde."

# Tokenization
inputs = tokenizer(
    original,
    adapted,
    return_tensors="pt",
    truncation=True,
    max_length=512
)

# Inference
with torch.no_grad():
    logits = model(**inputs).logits
    probs = torch.softmax(logits, dim=-1)

# Meaning-preservation score
meaning_score = probs[0, 1].item()

# Binary prediction using the evaluation threshold
predicted_class = (
    "PRESERVES_MEANING"
    if meaning_score >= 0.5
    else "DOES_NOT_PRESERVE"
)

print("Meaning Preservation Score:", meaning_score)
print("Predicted Class:", predicted_class)

The score assigned to PRESERVES_MEANING reflects the model's confidence in assigning the pair to the meaning-preserving class.

⚠️ The score is not a calibrated probability and should not be interpreted as the percentage of meaning preserved.

A decision threshold of 0.5 was used in the reported binary evaluation:

  • score >= 0.5 → PRESERVES_MEANING
  • score < 0.5 → DOES_NOT_PRESERVE

Model Description

  • Developed by: Ontology Engineering Group (UPM) / Authors: Isam Diab Lozano and Mari Carmen Suárez-Figueroa
  • Funded by: "Ayudas para la contratación de personal investigador predoctoral en formación para el año 2022" (Reference: PIPF-2022/COM-25762) by Comunidad de Madrid (Spain)
  • Model type: Encoder-only Transformer (RoBERTa) with a classification head
  • Language: Spanish (es)
  • License: Apache-2.0
  • Parameters: approximately 125M
  • Task: Binary meaning-preservation classification
  • Labels: 1 = PRESERVES_MEANING, 0 = DOES_NOT_PRESERVE
  • Fine-tuned from: IsGarrido/roberta-base-bne, revision 3d54a71

Uses

Direct Use

  • Automatic assessment of meaning preservation in Spanish Easy-to-Read adaptations.
  • Evaluation of original-adapted text pairs generated by automatic adaptation systems.
  • As a meaning-preservation signal in accessibility and text-adaptation evaluation pipelines.
  • Identification of adaptations that may require additional human inspection.
  • As one component of a broader multi-dimensional evaluation of Easy-to-Read adaptations.

Out-of-Scope Use

  • Measuring readability or ease of understanding.
  • Assessing complete compliance with Easy-to-Read guidelines.
  • Determining whether a text is accessible to a particular reader.
  • Interpreting the score as a percentage of meaning preserved.
  • Clinical, legal, or other high-stakes decisions without human expert oversight.
  • Non-Spanish or substantially out-of-domain texts without prior validation or re-training.

Bias, Risks, and Limitations

  • Domain limitation: the model was developed for Spanish E2R adaptation; performance may degrade on other genres, domains, languages, or forms of rewriting.
  • Binary labels: meaning preservation is modelled as a binary distinction, although semantic equivalence may be gradual or ambiguous.
  • Synthetic negatives: the negative examples were generated using a controlled set of hard-negative strategies and do not cover every possible semantic error found in real automatic adaptations.
  • Model confidence: the output score is not calibrated and should not be interpreted as a probability or as a percentage of preserved meaning.
  • Human validation: validation against human judgements involved 36 text pairs and general native speakers of Spanish and therefore does not constitute exhaustive validation for all adaptation scenarios.
  • Easy-to-Read quality: a high meaning-preservation score does not imply compliance with Easy-to-Read guidelines or greater ease of understanding.

Recommendations

  • Use the model primarily with Spanish original-adaptation text pairs.
  • Use a threshold of 0.5 when reproducing the reported binary evaluation.
  • Interpret the output as model-based evidence rather than as a percentage of meaning preserved.
  • Keep a human-in-the-loop for borderline or critical cases.
  • Combine meaning-preservation assessment with expert- and user-based evaluation when assessing overall Easy-to-Read adaptation quality.
  • Validate performance before applying the model to substantially different domains or genres.

How to Get Started with the Model

See How to Use above. For pairwise inputs, encode the original and adapted texts as a sentence pair:

inputs = tokenizer(
    text_original,
    text_adapted,
    return_tensors="pt",
    truncation=True,
    max_length=512
)

Training Details

Training Data

Positive examples were obtained from ClearSim, a Spanish parallel corpus containing original texts and expert-validated Easy-to-Read adaptations.

An initial subset of 2,400 meaning-preserving original-adapted text pairs was selected from the corpus. Each source text was assigned to a source-text group so that all examples derived from the same original text could be kept in the same data partition.

Since the corpus provided expert-validated positive examples but no equivalent set of meaning-altering pairs, hard negatives were automatically generated.

  • Columns: text1 (original), text2 (candidate adaptation), Label (0/1), neg_type.
  • Labels: 1 = PRESERVES_MEANING, 0 = DOES_NOT_PRESERVE.
  • Negative types: shuffle, dropout, mismatch, paraphrase, and nli_contradiction.

Five strategies were used:

  1. Sentence Shuffle: sentences in an adaptation are reordered.
  2. Sentence Dropout: one or more sentences are removed from an adaptation.
  3. Mismatch: an original text is paired with an adaptation from a different source-text group.
  4. Paraphrase: fluent candidate adaptations containing controlled semantic alterations are generated.
  5. NLI Contradiction: candidate adaptations containing contradictions with respect to the original text are identified through Natural Language Inference.

Candidates retained as NLI contradictions were excluded from the generic paraphrase pool so that these categories remained mutually exclusive in the model-development dataset.

After dataset construction and quality controls, the final model-development dataset contained 4,436 text pairs:

ClassPairs
Meaning-preserving2,366
Meaning-altering2,070
Total4,436

The negative examples comprised:

Negative typePairs
Sentence Shuffle472
Sentence Dropout472
Mismatch472
Paraphrase472
NLI contradiction182
Total2,070

Data Partitioning

The dataset was partitioned at source-text-group level. No original text, adaptation, or negative example derived from the same source text occurred in more than one partition.

PartitionPairs
Training3,096
Validation666
Independent test674
Total4,436

The approximate distribution was 70/15/15.

There was no source-text-group overlap among the training, validation, and test partitions.

A separate human-validation subset containing 36 original-candidate pairs from 34 source-text groups was excluded from model development.

All random operations used a fixed seed of 42.

Training Procedure

Preprocessing

Pair tokenization was performed with truncation at 512 tokens:

tokenizer(
    text1,
    text2,
    truncation=True,
    max_length=512
)

Training Hyperparameters

  • Arguments:
    • num_train_epochs=5
    • per_device_train_batch_size=32
    • per_device_eval_batch_size=16
    • learning_rate=2e-5
    • weight_decay=0.01
    • warmup_ratio=0.1
    • evaluation_strategy="epoch"
    • save_strategy="epoch"
    • load_best_model_at_end=True
    • metric_for_best_model="roc_auc"
  • Random seed: 42
  • Loss: CrossEntropy (2 logits)

Model checkpoints were evaluated on the validation partition after each epoch. The checkpoint with the highest ROC-AUC was selected.

The independent test partition was held out from both model training and model selection and was used only for final evaluation of the selected checkpoint.


Model Selection

Three Transformer-based approaches were compared as candidate model-based metrics:

  1. MeaningBERT
  2. RoBERTa-base-bne, trained as a binary classifier
  3. RoBERTa-base-bne (regression), trained using an MSE objective

Their results on the independent test partition were:

ModelAccuracyF1 NegativeF1 PositiveROC-AUC
MeaningBERT0.6410.4980.7210.657
RoBERTa-base-bne0.9230.9130.9310.977
RoBERTa-base-bne (regression)0.6960.5270.7760.972

The binary RoBERTa-base-bne model achieved the strongest overall discriminative performance and was selected as RoBERTaSense-FACIL.

For the regression formulation, the reported binary Accuracy and F1 values were obtained by applying a threshold of 0.5 to the sigmoid-transformed regression output.


Evaluation

Testing Data, Factors & Metrics

Testing Data

The final model was evaluated on an independent test partition containing 674 text pairs.

The test set comprised:

  • 356 meaning-preserving pairs.
  • 318 meaning-altering pairs.

Source-text groups represented in this partition were excluded from training and model selection.

Factors

The independent test set contains examples derived from the five negative-generation strategies:

  • sentence shuffle;
  • sentence dropout;
  • mismatch;
  • paraphrase;
  • NLI contradiction.

Metrics

  • Accuracy
  • F1 for the negative class
  • F1 for the positive class
  • ROC-AUC

Results

RoBERTaSense-FACIL obtained:

  • Accuracy: 0.923
  • F1, negative class: 0.913
  • F1, positive class: 0.931
  • ROC-AUC: 0.977

The model correctly classified:

  • 273 of 318 meaning-altering pairs;
  • 349 of 356 meaning-preserving pairs.

Binary predictions were obtained using a fixed decision threshold of 0.5.


Human Validation

RoBERTaSense-FACIL was additionally validated against human judgements of meaning preservation.

The human-validation material comprised 36 original-candidate text pairs representing 34 source-text groups. These groups were excluded from the training, validation, and test partitions.

Respondents assessed the extent to which each pair conveyed the same information using a scale from 0 to 10. Pair-level mean scores were subsequently normalised to the [0,1] interval.

Complete Human-Validation Set

For the complete set of 36 pairs, RoBERTaSense-FACIL scores showed a statistically significant association with aggregated human judgements:

CorrelationValuep-value
Pearson0.4430.0068
Spearman0.5070.0016

Complementary Analysis

Manual verification identified five cases in which the intended negative transformation had not been successfully instantiated:

  • four pairs assigned to the Mismatch category corresponded to valid original-adaptation pairs;
  • one pair assigned to the Shuffle category did not modify the sentence order.

These cases were retained in the primary analysis because human respondents evaluated the semantic relationship between the texts independently of their automatically assigned transformation category.

A complementary analysis excluding these five cases contained 31 pairs:

CorrelationValuep-value
Pearson0.695<0.001
Spearman0.709<0.001

The stronger correlations obtained in this complementary analysis indicate that the quality of automatically generated evaluation examples can substantially affect estimates of human-model alignment.


Interpretation of the Score

RoBERTaSense-FACIL produces a softmax score associated with the PRESERVES_MEANING class.

For example:

Meaning Preservation Score: 0.93

means that the model assigns high confidence to the meaning-preserving class.

It does not mean that:

93% of the original meaning was preserved.

The score should therefore be interpreted as model-based evidence of meaning preservation, not as a calibrated probability or as a direct quantitative measure of semantic retention.

Meaning preservation constitutes only one dimension of adaptation quality. For Easy-to-Read evaluation, RoBERTaSense-FACIL scores should ideally be considered together with expert-based assessment of adaptation compliance and user-based assessment of perceived ease of understanding.


Technical Specifications

Model Architecture and Objective

  • Encoder-only RoBERTa architecture with a classification head (Linear(hidden → 2)).
  • Hidden size: 768.
  • Transformer layers: 12.
  • Attention heads: 12.
  • Vocabulary size: 50,262.
  • Objective: supervised cross-entropy over two classes.

Label Mapping

{
  "id2label": {
    "0": "DOES_NOT_PRESERVE",
    "1": "PRESERVES_MEANING"
  },
  "label2id": {
    "DOES_NOT_PRESERVE": 0,
    "PRESERVES_MEANING": 1
  }
}

Citation

BibTeX:

@software{robertasense_facil_2025,
  title  = {RoBERTaSense-FACIL: Meaning Preservation for Easy-to-Read in Spanish},
  author = {Diab-Lozano, Isam and Suárez-Figueroa, Mari Carmen},
  year   = {2025},
  url    = {https://huggingface.co/oeg/RoBERTaSense-FACIL}
}

APA:

Diab-Lozano, Isam, & Suárez-Figueroa, Mari Carmen. (2025). RoBERTaSense-FACIL: Meaning Preservation for Easy-to-Read in Spanish. Hugging Face. https://huggingface.co/oeg/RoBERTaSense-FACIL

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
RobertaForSequenceClassification
Ревизия весов
689e7ed

0 моделей