Model evaluation measures performance on a use case using data independent of training data. Turlay compares a rigorous evaluation process to a test suite in a continuous integration pipeline, and says it helps teams track performance and safety.
How to evaluate a model for your use case
Speaker
Emmanuel Turlay, CEO of Sematic, the company behind Airtrain, explains how to evaluate language models for a specific use case.
Text can differ from a reference without being wrong, which makes language models harder to score with standard metrics. BLEU measures token overlap and is used for translation and summarization, but it does not capture qualities such as intelligibility or grammar. ROUGE measures recall of token sequences and is mainly used for summarization.
Turlay describes benchmarks such as GLUE, HellaSwag, TriviaQA, and ARC, which test general language understanding, common-sense inference, knowledge, and science reasoning. They help compare models on standardized tasks, but do not show how a model will perform on an application's own inputs, such as extracting symptoms or ingredients or producing JSON for an API.
A scoring model can grade another model's outputs against criteria and a numerical scale defined in a prompt. Teams can run this scoring prompt over an evaluation dataset and examine the resulting score distribution. Turlay gives politeness in professional email sign-offs as an example: “Please let us know at your earliest convenience” scores higher than “Tell me ASAP.”
Turlay says GPT-4 was the strongest grading model they had found at the time, though costly at scale, while FLAN-T5 offered a speed and correctness trade-off. Airtrain lets teams upload a dataset, choose models, define properties to measure, and visualize metric distributions to support comparisons, including between Llama 2, Falcon, FLAN-T5, and a custom model.
Takeaways
- Treat evaluation as a repeatable part of model development, using data independent of training.
- Use BLEU, ROUGE, and public benchmarks as reference points, not proof of performance on your own task.
- Build task-specific scoring criteria around your application's inputs and outputs.
- Run scoring across a dataset and compare score distributions before choosing a model.
- Account for the cost and speed of the model used to grade outputs.
Mentioned in this talk
Search inside this talk
What was claimed 5
- built
“the company behind Airtrain”
YouTube Unverified1 source· Talk
- ceo ofEmmanuel Turlay CEO of
Sematic
CEO“I'm Emmanuel, CEO of Sematic”
YouTube Unverified1 source· Talk
- metricFLAN-T5: Good trade-off between speed and correctness for grading
“FLAN-T5 offers a good trade-off between speed and correctness”
YouTube Unverified1 source· Talk
- metricGPT-4: Best grading model at the time, but costly for scoring large datasets
“the best grading model at this time is still GPT-4, but it can be quite costly”
YouTube Unverified1 source· Talk
- feature
Airtrain: Upload a dataset, select models to compare, describe properties to measure, and visualize metric distributions“you can upload your data set, select the models you want to compare, describe the properties you want to measure, and visualize metric distributions”
YouTube Unverified1 source· Talk











