Quick fire: probability, optimization and linear algebra for LLMs

MediumConcept20 minRERSMLEPro outline

The question

A rapid round of short questions. Answer each in a few sentences:

1. Show that minimizing cross-entropy against one-hot labels is the same as maximizing log-likelihood. 2. What is the gradient of softmax followed by cross-entropy with respect to the logits? 3. Why do we scale attention scores by one over the square root of the head dimension? 4. What does the rank of the attention score matrix tell you, and what bounds it? 5. Why does a learning rate that is too large cause divergence on a simple quadratic?

What the interviewer is looking for

  • Quick, correct answers without long detours
  • Gradient of softmax cross-entropy is probabilities minus one-hot
  • Variance argument for the square root scaling
  • Rank is bounded by the head dimension and sequence length
  • Uses a simple example to explain divergence

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Mistral AI question type: Probability, optimization and linear algebra fundamentals.

Reported in: datainterview.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Mistral AI question.