Lesson 2 of 4 in AI Training Foundations · 8m

Define the task and its success criteria

Google's Rules of Machine Learning opens with two rules that apply just as well to LLMs: don't be afraid to launch without machine learning, and design and implement metrics first [1]. If a regex, a lookup table or a short checklist does the job, ship that. If it doesn't, you need a way to tell good output from bad before any training starts.

The task spec

  • Job: one sentence. "Classify inbound support tickets into billing, bug, feature request or other."

  • Input: what the model receives, and its format.

  • Output: the exact shape you want back, such as one label, JSON with fixed keys, or a reply under 120 words.

  • Success criteria: how you'll score an answer, and the score that counts as good enough to ship.

  • Constraints: latency budget, cost ceiling, what the model must never do.

Accuracy alone is rarely enough. The HELM benchmark makes this point by scoring every model on several metrics at once, including accuracy, calibration, robustness, fairness, bias, toxicity and efficiency, because a model that wins on one often loses on another [2]. Write down which of those matter for your task.

Key takeaways

  • Decide how you'll score an answer before deciding how to produce one.
  • Specify the output format exactly; it makes grading possible.
  • Track more than one metric, and agree on the ship threshold up front.
Sources
  • Zinkevich, M. (2017). Rules of Machine Learning: Best Practices for ML Engineering. Google for Developers.
  • Liang, P. et al. (2022). Holistic Evaluation of Language Models. TMLR 2023 · arXiv:2211.09110.

Keep going with AI Training Foundations

This is one of 4 lessons in the course. Enroll to get the rest of the course, with an AI tutor that knows the material, flashcards and a certificate when you finish.

Enroll for free

More free lessons from this course