MLCrack

    LLMS & TRANSFORMERS · INTERVIEW QUESTION

    How do you evaluate LLMs? What benchmarks and metrics matter?

    🔴 advanced · Pre-training & Fine-tuning

    Hint: Think about perplexity, downstream tasks, human evaluation, and contamination.

    Answer

    Evaluation approaches:

    1. Perplexity: measures language modeling quality but doesn't correlate well with downstream performance.

    2. Benchmarks: MMLU (knowledge), HumanEval (code), GSM8K (math), TruthfulQA (factuality), MT-Bench (multi-turn chat).

    3. Human evaluation: pairwise comparisons (ELO ratings), Likert scales.

    Issues: benchmark contamination (training on test data), Goodhart's law (optimizing for metric ≠ actual quality), benchmark saturation, task-specific vs general evaluation.

    Best practice: use diverse benchmarks + human eval, check for contamination, evaluate on your specific use case, consider LLM-as-judge with calibration.