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:
-
Perplexity: measures language modeling quality but doesn't correlate well with downstream performance.
-
Benchmarks: MMLU (knowledge), HumanEval (code), GSM8K (math), TruthfulQA (factuality), MT-Bench (multi-turn chat).
-
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.
Related questions
- Explain the difference between LoRA, full fine-tuning, and prompt tuning. When would you use each?
- What is the difference between encoder-only, decoder-only, and encoder-decoder transformers?
- Explain the tokenization strategies used in LLMs: BPE, WordPiece, and SentencePiece.
- What is the scaling laws relationship between model size, data, and compute?
- Explain the self-attention mechanism in detail. What are Q, K, V and why do we use scaled dot-product attention?