Limits that remain after improving a language model
The following weaknesses are documented, reproducible findings from published evaluations of current systems, not speculative concerns — each […]
Original companion articles exploring the mathematics and engineering of large language models.
The following weaknesses are documented, reproducible findings from published evaluations of current systems, not speculative concerns — each […]
A hallucination is a model output that is fluent, confident in presentation, and factually incorrect — a fabricated […]
The standard evaluation landscape. Extrinsic evaluation of LLMs is organized around a small number of benchmark families, each […]
An extrinsic evaluation instead measures a model against some downstream use it was never directly optimized to minimize […]
A separate empirical thread in the scaling-laws literature concerns not smooth loss curves but discontinuous jumps in specific […]
Parts I through III built a decoder-only Transformer and derived every piece of its forward pass; this discussion, […]
Running this prints one line per layer, each reporting the vocabulary token the projected logits currently favor most […]
Imitation learning is the right tool when there is a well-defined correct output to imitate. […]
What changes is which positions contribute to the loss. […]
The practical consequence for streaming and long-context inference is direct: a sliding-window cache-eviction policy that naively drops the […]
Encoder block. An encoder block, in the style of BERT (Devlin et al., 2019) or the encoder half […]
Natural language relationships are not one-dimensional in this way. […]
Attention gives a sequence decoder access to a weighted combination of source representations at each output step. This […]
Chapter 7 (Attention: Mathematical Foundations) will derive scaled dot-product attention in full. […]
The BPE and Unigram algorithms above both assume a base alphabet of Unicode characters. […]
BPE’s merge criterion — raw pair frequency — is simple but not the only reasonable one. […]
Scaling laws describe how language model loss falls as you increase parameters, training data, and compute. They guide […]
Deep transformers need normalization to train stably. LayerNorm was the original choice. Many modern models use RMSNorm, which […]
Perplexity is the standard intrinsic metric for language models. It is a simple transformation of cross-entropy, and it […]
Attention by itself has no sense of word order. Rotary position embeddings, or RoPE, add order by rotating […]
← Back to Blog & Articles Speculative decoding uses a faster draft model to propose several tokens, then asks the […]
← Back to Blog & Articles Direct Preference Optimization turns paired preferences into a classification-like objective. It increases the relative […]
← Back to Blog & Articles Low-rank adaptation, or LoRA, keeps a pretrained weight matrix fixed and learns a compact […]
← Back to Blog & Articles Parameter counting reveals where model memory and compute are concentrated. The reliable method is […]
← Back to Blog & Articles A language model does not receive words directly. It receives token identifiers produced by […]
← Back to Blog & Articles The scaling factor in attention is not decorative. It keeps dot products in a […]