/ Модель

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

Контекст
4 096 токенов
Параметры
12,9 млрд
Размер весов
26 ГБ
Лицензия
MIT
Архитектура
llama · dense
Опубликована
26 ноя 2023

TIGERScore-13B

Генерация текстаТекст → текст7 профессий

TIGERScore-13B — модель TIGER-Lab для оценки сгенерированных текстов с объяснением и локализацией ошибок без необходимости в эталонном ответе.

93скачиваний за 30 дней18лайковвеса обновлены13 мар 2024

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

TIGERScore-13B — модель семейства LLaMA-2 от TIGER-Lab, предназначенная для оценки качества сгенерированного текста. Она принимает инструкцию, связанный с задачей контекст и проверяемый ответ, после чего формирует оценку и объяснимый разбор ошибок: указывает их расположение и аспект, объясняет проблему и назначает штрафные баллы. Общая оценка складывается из этих штрафов, начиная с нуля.

Модель обучена на TIGER-Lab/MetricInstruct, охватывающем шесть задач генерации текста и множество датасетов. Её применяют для оценки суммаризации, перевода, преобразования данных в текст, ответов на вопросы, математических ответов, следования инструкциям и генерации историй. TIGERScore заявлена как метрика без эталонного ответа, управляемая инструкциями и способная давать подробную атрибуцию ошибок.

Это плотная авторегрессионная модель LlamaForCausalLM на 12,9 млрд параметров с контекстом до 4096 токенов. Карточка сообщает о поддержке английского, китайского, русского и чешского языков. Весы доступны в формате safetensors; лицензия — MIT. Оценки модели могут зависеть от инструкции и предметной области; заявленные результаты относятся к экспериментам на перечисленных задачах и не гарантируют одинаковую корреляцию с человеческими оценками для произвольных текстов.

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

  • оценка качества автоматической суммаризации
  • проверка переводов без эталонного перевода
  • оценка ответов на вопросы и математических решений
  • проверка следования текстовым инструкциям
  • поиск и объяснение ошибок в сгенерированных историях
  • оценка преобразования структурированных данных в текст

Ограничения

Модель обучена на ограниченном наборе задач и датасетов, поэтому качество оценки для задач вне обучающего и проверенного распределения может отличаться. Контекст ограничен 4096 токенами.

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

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

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

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

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

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

Открыть на Hugging Face

TIGERScore

Project Page | Paper | Code | 🤗Demo | 🤗TIGERScore-7B | 🤗TIGERScore-13B

Introduction

We present TIGERScore, a Trained metric that follows Instruction Guidance to perform Explainable, and Reference-free evaluation over a wide spectrum of text generation tasks. Our metric is based on LLaMA-2, trained on our meticulously curated instruction-tuning dataset MetricInstruct which covers 6 text generation tasks and 23 text generation datasets.

Existing automatic metrics are lagging and suffer from issues like 1) Dependency on references, 2) Limited to specific domains, 3) Lack of attribution. Contrary to them, TIGERScore is designed to be driven by natural language instruction and provide detailed error analysis to pinpoint the mistakes in the generated text.

Specifically, TIGERScore takes an instruction, an associated input context along with a hypothesis output that might contain errors. Then, TIGERScore will evaluate this hypothesis output and list several errors, each consisting of the error location, aspect, explanation and penalty scores (score reduced, starting from 0). The sum of the reduced scores is taken as the overall rating of this output.

As a reference-free metric, its correlation can even surpass the best existing reference-based metrics. We believe TIGERScore demonstrates the possibility of building universal explainable metrics to evaluate any text generation task.

Training Data

The models are trained on the 🤗 MetricInstruct Dataset, which covers 6 text generation tasks and 22 text generation datasets. Check out the dataset card for more details.

Training Procedure

The models are fine-tuned with the MetricInstruct dataset using the original Llama-2 model as base models. The training procedure varies for different models based on their sizes. Check out our paper for more details.

Evaluation

Experiments show that TIGERScore surpasses existing baseline metrics in correlation with human ratings on all 6 held-in tasks and 1 held-out task, achiving the highest overall performance. We hope the emergence of TIGERScore can promote the research in the LLM community as a powerful, interpretable, and easy-to-use metric.

Kendall Results

Tasks⟶SummarizationTranslationData2TextLong-form QAMathQAInstruction FollowingStory-GenAverage
GPT-basedMetrics
GPT-3.5-turbo (few-shot)30.4532.330.3820.9158.5717.733.2627.65
GPT-4 (zero-shot)29.3235.3832.2635.8546.6349.525.6936.38
Reference-basedMetrics
BLEU8.7114.523.137.7317.2535.92-0.8915.19
ROUGE-2f10.6713.1924.7411.7318.0734.591.7816.4
InstructScore20.8640.4430.2115.64-3.8713.8713.518.66
GPTScore-ref10.818.7427.4722.1314.8625.412.7818.88
BARTScore-cnn (hypo-ref)1021.0627.0420.6719.0724.718.5820.16
BARTScore-para (hypo-ref)10.4124.928.4220.2414.126.1312.1119.47
BERTScore17.3931.5730.7417.79.4135.61220.63
BLEURT12.6936.1234.4823.112.8827.9419.1822.34
UniEval (summ)35.8916.0828.5629.3216.1511.9331.2224.17
COMET-2225.0142.7923.4324.66-4.5236.1727.5225.01
Reference-freeMetrics
BARTScore-para (src-hypo)29.127.0122.3218.8-2.214.2614.1513.35
BARTScore-cnn (src-hypo)26.639.423.6928.931.2319.0923.2918.89
Llama-2-13b-chat-0-shot25.2211.7923.4515.961.0819.521.5216.93
COMETKiwi11.8736.3719.0812.23-9.3826.4612.7815.63
GPTScore-src28.26.519.8127.6411.6420.0416.3618.6
TigerScore-7B28.7933.6532.4433.9319.9838.1329.7230.95
TigerScore-13B31.2936.536.4333.1721.5841.8435.3333.73
∆ (ours - best reference-free)+2+0+13+4+10+15+14+15
∆ (ours - best reference-based)-4-6+2+4+2+5+4+8

Pearson Results

Tasks⟶SummarizationTranslationData2TextLong-form QAMathQAInstruction FollowingStory-GenAverage
GPT-basedMetrics
GPT-3.5-turbo (few-shot)45.5343.7747.7629.8461.2615.367.835.9
GPT-4 (zero-shot)40.7533.9246.8349.354.9860.4537.7446.28
Reference-basedMetrics
BLEU11.6617.4734.2918.2118.1229.47-0.6418.37
ROUGE-2f16.0316.2635.8519.6620.6933.492.8820.69
InstructScore27.451.5547.2820.590.3620.9812.8125.85
GPTScore-ref13.4721.0548.733.418.2229.6618.9426.2
BARTScore-cnn (hypo-ref)16.6723.5645.0832.7823.0926.5727.6127.91
BARTScore-para (hypo-ref)19.7329.0447.8932.717.3330.217.7627.81
BERTScore26.2637.6548.2226.3911.1945.584.0828.48
BLEURT17.274354.3234.263.9839.1527.8931.41
UniEval (summ)53.2223.1151.1436.9517.6930.8744.8836.84
COMET-2235.3258.4643.8236.79-5.5849.6840.1236.94
Reference-freeMetrics
BARTScore-para (src-hypo)43.116.9637.8229.86-0.4119.3719.9922.38
BARTScore-cnn (src-hypo)39.729.5345.4341.483.2834.9733.5129.7
Llama-2-13b-chat-0-shot29.599.0941.3221.672.822.7121.1321.19
COMETKiwi14.2250.9123.6322.59-13.3534.4619.1221.65
GPTScore-src41.716.8241.1939.7913.9927.5923.2227.76
TigerScore-7B43.9537.749.1346.121.7738.2639.939.54
TigerScore-13B44.2141.5452.8744.7624.4147.5247.6643.28
∆ (ours - best reference-free)+1-9+7+5+10+20+14+13
∆ (ours - best reference-based)-9-17-2+9+1-2+3+6

Spearman Results

Tasks⟶SummarizationTranslationData2TextLong-form QAMathQAInstruction FollowingStory-GenAverage
GPT-basedMetrics
GPT-3.5-turbo (few-shot)38.5040.5340.2029.3366.4623.204.7734.71
GPT-4 (zero-shot)36.4643.8744.0448.9551.7158.5332.4845.15
Reference-basedMetrics
BLEU11.9819.7333.2911.3821.1246.61-1.1720.42
ROUGE-2f14.5317.8335.4916.8322.1244.562.3421.96
InstructScore26.3347.3043.9321.62-4.1516.1916.1323.91
GPTScore-ref14.7324.9539.4231.6018.2033.1418.2425.75
BARTScore-cnn(hypo-ref)13.6428.5336.1229.5723.3532.4926.6427.19
BARTScore-para (hypo-ref)17.1833.7240.7928.9417.2734.4717.4327.11
BERTScore23.6742.4143.7525.6011.5345.772.8827.95
BLEURT17.3048.4148.7633.263.5336.4627.5230.75
UniEval(summ)47.5221.9038.3841.8319.7816.0244.4632.84
COMET-2233.7556.3533.9235.28-5.5346.1339.2034.16
Reference-freeMetrics
BARTScore-para (src-hypo)38.689.6032.2626.86-2.705.9220.5518.74
BARTScore-cnn (src-hypo)35.5012.8334.3340.961.5025.4333.4826.29
Llama-2-13b-chat-0-shot28.5314.3829.2419.911.0821.3726.7820.18
COMETKiwi16.2748.4827.9018.05-11.4834.8618.4721.79
GPTScore-src37.418.9028.8239.4814.2526.4623.9125.61
TIGERScore-7B (ours)35.1141.5042.3947.1121.2343.5739.2638.60
TIGERScore-13B (ours)36.8144.9945.8846.2223.3247.0346.3641.52
Δ (ours - best reference-free)-2-3+12+5+9+14+13+16
∆ (ours - best reference-based)-9-11-3+5-0+0+2+7

Usage

TIGERScore can be easily loaded in 2 lines of codes, and provides a friendly scoring interface function.

To use TIGERScore, first install tigerscore with

pip install git+https://github.com/TIGER-AI-Lab/TIGERScore.git

Then load the tigerscore model variates according to you needs.

# set up scorer
from tigerscore import TIGERScorer
scorer = TIGERScorer(model_name="TIGER-Lab/TIGERScore-13B") # on GPU
# scorer = TIGERScorer(model_name="TIGER-Lab/TIGERScore-13B", quantized=True) # 4 bit quantization on GPU
# scorer = TIGERScorer(model_name="TIGER-Lab/TIGERScore-13B", use_vllm=True) # VLLM on GPU, Recommended for faster evaluation (0.2s per instance)
# scorer = TIGERScorer(model_name="TIGER-Lab/TIGERScore-13B-GGUF", use_llamacpp=True) # 4 bit quantization on CPU

After loading, you can easily get errors of the provided hypothesis output given the instruction and input context

# example  
instruction = "Write an apology letter."
input_context = "Reason: You canceled a plan at the last minute due to illness."
hypo_output = "Hey [Recipient],\n\nI'm really sorry for ditching our plan. I suddenly got an opportunity for a vacation so I took it. I know this might have messed up your plans and I regret that.\n\nDespite being under the weather, I would rather go for an adventure. I hope you can understand my perspective and I hope this incident doesn't change anything between us.\n\nWe can reschedule our plan for another time. Sorry again for the trouble.\n\nPeace out,\n[Your Name]\n\n---"
results = scorer.score([instruction], [hypo_output], [input_context])
print(results)

Results are a list of errors with detailed explanations and reasonable penalty scores:

[
    {
        "num_errors": 2,
        "score": -7.0,
        "errors": {
            "error_0": {
                "location": " \"I suddenly got an opportunity for a vacation so I took it.\"",
                "aspect": " Misunderstanding context",
                "explanation": " The error lies in the context of the reason for cancelling the plan. The original reason was due to illness, but in the incorrect output, it is stated that the cancellation was due to a vacation opportunity, which is a misunderstanding of the context. The correction would be to stick to the original reason for cancelling.",
                "severity": "Major",
                "score_reduction": "5.0"
            },
            "error_1": {
                "location": " \"I hope you can understand my perspective and I hope this incident doesn't change anything between us.\"",
                "aspect": " Inappropriate tone",
                "explanation": " The tone of this sentence is too casual and lacks regret or apology. It's important to maintain a formal and regretful tone in an apology letter. The sentence could be corrected to something like \"I hope you can find it in your heart to forgive me and let this incident not strain our relationship.\"",
                "severity": "Minor",
                "score_reduction": "2.0"
            }
        },
        "raw_output": " The model-generated output contains 2 errors, with a total score reduction of 7.0.\nError location 1: ..."
    }
]

Check more usage at our Github Usage Doc. Have Fun!

Citation

If you find our work useful, please cite our paper:

@article{jiang2023TIGERScore,
  title={TIGERScore: Towards Building Explainable Metric for All Text Generation Tasks},
  author={Dongfu Jiang, Yishan Li, Ge Zhang, Wenhao Huang, Bill Yuchen Lin, Wenhu Chen},
  journal={arXiv preprint arXiv:2310.00752},
  year={2023}
}

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.56.79
AI2 Reasoning Challenge (25-Shot)59.04
HellaSwag (10-Shot)82.79
MMLU (5-Shot)55.07
TruthfulQA (0-shot)40.38
Winogrande (5-shot)74.74
GSM8k (5-shot)28.73

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

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

GPU в ailist

Универсальный рантайм

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
77c4531

0 моделей