TensoriumInterview preparation
← Home

Core concepts · 62 topics

A guided path through the ideas behind modern LLMs.

Read the stages in order: how text becomes a prediction, what happens inside the Transformer block, how a model learns, then serving, scale, and post-training. Every topic names what to know first, then gives the intuition, the math with concrete numbers, the common misconception, and a self-check. Already comfortable with the basics? Switch to By area and jump straight to a topic.

New to machine learning? Start here instead.

These topics work best as a refresher; they assume ideas like probability and loss. Begin with three short beginner lessons (tokens, embeddings, next-token prediction), then the visual walkthrough for attention and the Transformer.

Finish line: You can explain how text becomes a prediction and what training does to improve that prediction.

Topic 50 of 62 · Post-training

Reward gains vs real improvement

Hard

Your RL-tuned model’s reward-model score climbed 30%, but you need to decide whether to ship it. What evidence do you require?

Why this mattersOptimizing against a learned reward model or autograder eventually exploits its blind spots (such as verbosity or formatting), requiring independent held-out slices.

1 · Start with the intuition

A learned reward model (or LLM judge) is an imperfect proxy for human utility. When you optimize a policy directly against that proxy—Goodhart’s Law—the policy eventually discovers out-of-distribution quirks that score high on the reward model without actually helping users, such as extreme verbosity, sycophantic phrasing, markdown bullet stuffing, or repetitive formatting. A rising training reward only proves the optimizer worked; shipping requires independent, bias-controlled evaluation across held-out slices.

2 · How the mechanism works

Mechanism step 1 of 3 · no question to answer

Separate optimizer proxy from eval

Never use the training reward model as your sole ship criterion; evaluate with independent verifiers, task benchmarks, and blinded human/judge pairs.

Next, we will look at: Control position & length confounds. Move on when this operation makes sense.

Visualizing the behavior

Goodhart’s law: the proxy keeps rising, true quality peaks

Illustrative
012340246810optimization against the proxy (e.g. KL from the initial policy)score (arbitrary units)overoptimization begins
  • proxy reward-model score
  • true (gold) quality
This is the qualitative shape Gao et al. measured with a gold reward model standing in for humans. Beyond some point, gains on the proxy come from exploiting its errors. Numbers are illustrative.

Paired comparison against a baseline (100 prompts)

Derived
Candidate vs baseline100 pairs
55
15
30
  • Wins (55)
  • Ties (15)
  • Losses (30)
Counting ties as half a win: (55 + 7.5) / 100 = 62.5%. With per-pair scores of 1, ½ and 0, the standard error is ≈ 4.4 points, so the 95% interval is roughly 54–71%.