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

MLE vs MAP vs full Bayesian inference

Medium

How do MLE, MAP, and Bayesian inference differ, and where does weight decay fit in?

Why this mattersViewing point estimates (MLE, MAP) alongside full posterior averaging clarifies what L2 regularization assumes and why a confident point prediction is not a calibrated uncertainty.

1 · Start with the intuition

MLE picks the parameters that make the data most likely. MAP also multiplies by a prior and picks the peak of the posterior. Full Bayesian inference keeps the whole posterior and averages predictions over it. Regularizers like L2 are priors in disguise.

2 · How the mechanism works

Mechanism step 1 of 3 · no question to answer

Likelihood only

MLE: argmax p(D | θ).

Next, we will look at: Add a prior. Move on when this operation makes sense.

Visualizing the behavior

Prior Beta(2, 2) and posterior Beta(5, 2) after 3 heads

Derived
01200.250.50.751coin bias pdensitymean 0.714MAP = 0.8
  • prior 6p(1 − p)
  • posterior 30p⁴(1 − p)
The posterior is skewed, so its peak (MAP) and its mean differ. MLE would sit at p = 1, where this posterior density is 0.