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 61 of 62 · Wider ML toolkit

Calibration and temperature scaling

Medium

What does it mean for a model to be calibrated, how do you measure it, and how do you fix it?

Why this mattersA model can have high accuracy and still produce overconfident probabilities; calibration determines whether you can use model confidence for routing, abstention, or cascades.

1 · Start with the intuition

A calibrated model’s confidence matches its hit rate: of all predictions made with 80% confidence, about 80% are correct. Accuracy says how often you are right; calibration says whether your stated confidence can be trusted.

2 · How the mechanism works

Mechanism step 1 of 3 · no question to answer

Bin by confidence

Group predictions by their top-class probability.

Next, we will look at: Compare with accuracy. Move on when this operation makes sense.

Visualizing the behavior

Reliability diagram for the worked example

Derived
0.40.60.810.40.550.750.95mean confidence in binaccuracy in binon diagonalgap 0.05gap 0.15
  • perfect calibration
  • model
Points below the diagonal are overconfident. Temperature T > 1 would pull high-confidence predictions toward lower confidence, closer to the diagonal.