/ Модель

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

Контекст
514 токенов
Параметры
454 млн
Лицензия
MIT
Архитектура
roberta · dense
Базовая модель
roberta-large
Библиотека
transformers
Опубликована
17 мар 2026

yelp-sentiment-roberta-large

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

Дообученная RoBERTa-large определяет отрицательную, нейтральную или положительную тональность англоязычных отзывов.

119скачиваний за 30 дней0лайковвеса обновлены20 окт 2026

Бенчмарки

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

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

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

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

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

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

Zhoyang дообучил RoBERTa-large для классификации англоязычных отзывов о ресторанах и других компаниях по трём классам тональности: отрицательная (1–2 звезды), нейтральная (3 звезды) и положительная (4–5 звёзд). Модель построена на архитектуре RoBERTa и содержит 454,1 млн параметров; она принимает текст и выдаёт оценки классов. Контекст ограничен 514 токенами, а в примере запуска используется максимум 512 токенов.

Модель предназначена для автоматической сортировки отзывов, анализа обратной связи клиентов и направления неоднозначных предсказаний на проверку человеком. В README сообщается о точности 93,76% на исходном тесте из 40 000 отзывов и 92,40% на отдельном публичном наборе из 500 отзывов; эти результаты относятся к указанным выборкам и не гарантируют качество на других данных. Нейтральные отзывы и отзывы на границе двух и трёх звёзд распознаются хуже; модель не предсказывает точную оценку, отток клиентов или эффект бизнес-решений. Лицензия — MIT.

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

  • Определение тональности отзывов о ресторанах
  • Сортировка клиентских отзывов на положительные, нейтральные и отрицательные
  • Выявление отзывов, требующих ручной проверки
  • Анализ обратной связи клиентов о компаниях и услугах

Ограничения

Нейтральные отзывы распознаются заметно хуже положительных и отрицательных, особенно на границе оценок 2–3 звезды. Результаты тестов относятся к конкретным выборкам и не подтверждают обобщение на другие компании, группы клиентов или рабочие условия.

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

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

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

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

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

Открыть на Hugging Face

Yelp sentiment RoBERTa-large

I fine-tuned RoBERTa-large for three-class English review sentiment: Negative (1–2 stars), Neutral (3 stars), and Positive (4–5 stars).

Interactive Space · Public evaluation set

Original training-run evaluation: 40,000 reviews

My original training run achieved 93.76% accuracy and 0.9389 weighted F1 on the full 40,000-review held-out test set. The separate, publicly reproducible 500-review evaluation below achieves 92.40% accuracy and 0.9201 weighted F1 with raw predictions and provides the complete calibration and triage benchmark.

Class / metricPrecisionRecallF1
Negative0.93930.92610.9327
Neutral0.69340.76610.7280
Positive——0.9731
OverallAccuracy: 93.76%—Weighted F1: 0.9389

Positive Precision and Recall were not logged in the original training run.

Labels

IDMeaningRating bin
0Negative1–2 stars
1Neutral3 stars
2Positive4–5 stars

Inference

from transformers import pipeline
classifier = pipeline(
    "text-classification", model="Zhoyang/yelp-sentiment-roberta-large",
    revision="2e39ef29d577aa84cfe70596020eb40e708b88a0", top_k=None,
    truncation=True, max_length=512,
)
scores = classifier("The food was okay, but the service was slow.")

These are raw model class scores. They do not identify five-star probabilities, churn risk, or the value of an intervention. The model parameters are unchanged by post-hoc calibration.

Training details

I trained the 355M-parameter FacebookAI/roberta-large model on an NVIDIA RTX A4000 via Paperspace Gradient. The Yelp Academic dataset contained 499,229 reviews, with 239,870 selected for training and 40,000 held out for testing. I used a 512-token limit and class-weighted loss: Negative 3.0 / Neutral 8.0 / Positive 1.5.

Across seven controlled iterations from BERT-base, increasing the token limit from 256 to 512 produced the largest single-step weighted-F1 gain (+0.012).

Iteration History

VersionKey ChangeWeighted F1Neutral F1
v1BERT-base baseline0.8810.514
v3RoBERTa-base0.8920.573
v4max_len 256→5120.9040.604
v6RoBERTa-large0.9120.612
FinalEDA-driven class weights0.93890.728

Public 500-row benchmark

I evaluated all 500 reviews in Zhoyang/yelp-sentiment-3class-eval. Raw predictions achieve 92.40% accuracy and 0.9201 weighted F1. OOF (out-of-fold) calibration results use five-fold cross-fitting. Temperature scaling improves NLL and ECE on this sample; temperature plus bias does not improve classification accuracy.

PolicyAccuracyWeighted F1Macro F1NLLBrierECE
Raw softmax92.40%0.92010.83450.23720.12000.0364
Inverse-weight sensitivity baseline92.80%0.92120.83000.27190.12300.0494
OOF temperature92.40%0.92010.83450.21840.11680.0147
OOF temperature + bias92.20%0.91760.82880.22360.11880.0159

Raw per-class performance on these 500 rows

ClassSupportPrecisionRecallF1
Negative1150.93100.93910.9351
Neutral500.69230.54000.6067
Positive3350.94780.97610.9618

Raw confusion matrix

Rows are true three-class labels; columns are predictions.

True / predictedNegativeNeutralPositive
Negative10861
Neutral62717
Positive26327

Error breakdown by original rating

Original starsnRaw errorsRaw error rateOOF temp+bias error rate
18511.18%1.18%
230620.00%20.00%
3502346.00%48.00%
48555.88%5.88%
525031.20%1.20%

Errors are concentrated at the 2–3-star boundary: raw error rates are 20.00% and 46.00%, compared with 1.18% for 1-star and 1.20% for 5-star reviews. These are errors against the three-class sentiment target, not five-star prediction errors.

Human review capacity and held-out threshold routing

I route low-margin predictions to review, using the gap between the two highest class probabilities. Each fold learns its calibrated margin thresholds on the other four folds, then applies them to held-out reviews. The reference budget therefore need not equal the observed flagged share.

Reference budgetOOF flagged shareAuto-route nAuto-route error rateErrors in review queue
0%0.0%5007.80%0
5%4.8%4765.46%13
10%9.4%4534.86%17
15%15.2%4243.77%23
20%20.0%4002.75%28
25%24.6%3772.12%31
30%30.8%3461.73%33

Retrospective batch ranking with an exact review budget

For a fixed batch, ranking by ascending top-two margin selects exactly the requested number of reviews. This answers a different capacity question from reference-threshold routing. Both tables report errors only among automatically routed reviews; reviewer corrections are not measured.

Exact review budgetReview nRaw auto-route error rateOOF temp+bias auto-route error rate
0%07.60%7.80%
5%255.26%5.26%
10%504.44%4.67%
15%753.76%4.00%
20%1002.50%3.00%
25%1252.13%2.13%
30%1501.71%1.71%

Final reference calibration parameters

{
  "temperature": 1.54,
  "logit_bias": [
    -0.2700000000000001,
    -0.5399999999999999,
    0.0
  ]
}

I fit these reference parameters on all 500 reviews for the Space. Their performance on new reviews has not been independently evaluated; the OOF results above evaluate the cross-fitting procedure. The Space defaults to raw scores, with experimental calibration available as an option.

Evaluation method

I used model revision 2e39ef29d577aa84cfe70596020eb40e708b88a0 with float32 inference, a 512-token limit, and batch size 8. The public CSV is pinned to dataset revision a2aa98f96cc2e829904f47984747667d3be53663; its SHA-256 is ce6d53e65b0f229a81d807aec6e1899dd9fa8f253d8ea215c5b2873affbfb3eb.

Calibration uses five label-stratified folds and seed 20261020. Each review is excluded from fitting its own calibrator and routing thresholds. I minimize NLL with a coordinate/grid search and apply softmax((log(p_raw) + logit_bias) / temperature), fixing the Positive bias to zero for identifiability. Temperature-only calibration fixes all biases to zero; temperature plus bias shares one temperature across classes.

Class-weighted training can shift class probabilities. The inverse-weight comparison uses temperature 1 and bias [-log(3/1.5), -log(8/1.5), 0]. This is a sensitivity baseline motivated by ideal weighted cross-entropy, rather than an assumed correction for this fitted model.

NLL uses natural logs. Multiclass Brier is the mean sum of squared errors across all three classes. ECE uses ten equal-width bins of top-label confidence. Lower values are better for these three metrics.

Limitations

  • The 500 reviews follow fixed star quotas drawn from early source test rows, rather than a random sample of the entire split. Their 23% / 10% / 67% class mix is a reference composition, not an estimate of production prevalence or the original 40,000-review class mix. Source test membership alone does not establish independence from my original training and evaluation splits.
  • Small slices, especially the 30 two-star reviews, have substantial sampling uncertainty; ECE is also sensitive to sample size and binning. Business, customer, and timestamp identifiers are unavailable, so this benchmark cannot establish generalization across those groups. Cross-fitting reduces calibration leakage but does not turn an exploratory benchmark into an untouched final test.
  • The Space uses calibration and thresholds fitted on the full reference set. Future review rates and accuracy can differ, and calibration is not guaranteed to help. Star-level error rates describe the three-class target, not complaint severity.
  • Human reviewer accuracy has not been measured. A perfect-reviewer calculation would be a scenario upper bound. This benchmark measures no churn, retention uplift, revenue, or pricing outcomes.

Citation

Developed as part of Georgia Tech OMSA Practicum, Spring 2026 — PathSynch Labs Pod C.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей