Language AI Handbook

Content from the Language AI Handbook, covering natural language processing, language models, and AI-powered language applications.

409 items · Page 6 of 9

Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12
Language AI HandbookMachine Learning

Inverse Scaling: When Larger Language Models Perform Worse

Nov 9, 2025·84 min read

Explains why larger language models sometimes perform worse on specific tasks. Topics include distractor tasks, sycophancy, and U-shaped scaling patterns.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

LLM Emergence: Are Capabilities Real or Metric Artifacts?

Nov 8, 2025·44 min read

Examines whether LLM emergent capabilities are genuine phase transitions or measurement artifacts.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Chain-of-Thought Emergence: How LLMs Learn to Reason

Nov 7, 2025·43 min read

Explains how chain-of-thought reasoning emerges in large language models. Topics include CoT prompting techniques, scaling behavior.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

In-Context Learning Emergence: Scale, Mechanisms

Nov 6, 2025·53 min read

Explains how in-context learning emerges in large language models. Topics include scale thresholds, ICL vs fine-tuning, induction heads, and meta-learning.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Emergence in Neural Networks: Phase Transitions & Scaling

Nov 5, 2025·37 min read

Explains how LLMs suddenly acquire capabilities through emergence. Topics include phase transitions, scaling behaviors, and the ongoing metric artifact debate.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Predicting Model Performance: Scaling Laws & Forecasting

Nov 2, 2025·58 min read

Transform scaling laws into predictive tools for AI development. Topics include loss extrapolation, capability forecasting.

Open notebook
Language AI HandbookMachine Learning

Inference Scaling: Optimizing LLMs for Production Deployment

Oct 27, 2025·42 min read

Chinchilla-optimal training can be inefficient for deployment. Covers deliberate over-training, inference workloads, and total cost modeling for LLM systems.

Open notebook
Machine LearningLanguage AI Handbook

Data-Constrained Scaling: Training LLMs Beyond the Data Wall

Oct 26, 2025·39 min read

Examines data-constrained scaling for LLMs: repetition penalties, modified Chinchilla laws, synthetic data strategies, and optimal compute allocation.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Chinchilla Scaling Laws: Compute-Optimal LLM Training

Oct 22, 2025·56 min read

Explains how DeepMind's Chinchilla scaling laws changed LLM training by proving models should use 20 tokens per parameter for compute-optimal performance.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Power Laws in Deep Learning: Understanding Neural Scaling

Oct 21, 2025·69 min read

Explains how power laws govern neural network scaling. Topics include log-log analysis, fitting techniques, and how to predict model performance at any scale.

Open notebook
Language AI Handbook

mT5: Multilingual T5 Architecture & Cross-Lingual Transfer

Oct 20, 2025·46 min read

Explains how mT5 extends T5 to 101 languages using temperature-based sampling, the mC4 corpus, and 250K vocabulary for effective cross-lingual transfer.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

BART Pre-training: Denoising Strategies & Text Infilling

Oct 19, 2025·40 min read

Covers BART's denoising pre-training approach including text infilling, token masking, sentence permutation, and how corruption schemes enable generation.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

T5 Task Formatting: Text-to-Text NLP Unification

Oct 15, 2025·57 min read

Explains how T5 reformulates all NLP tasks as text-to-text problems. Topics include task prefixes, classification, NER.

Open notebook
Machine LearningLanguage AI HandbookData, Analytics & AI

Compute-Optimal Training: Model Size & Data Allocation

Oct 15, 2025·40 min read

Covers compute-optimal LLM training using Chinchilla scaling laws. Topics include the 20:1 token ratio, practical allocation formulas.

Open notebook
Language AI HandbookMachine Learning

T5 Pre-training: Span Corruption & Denoising Objectives

Aug 15, 2025·38 min read

Explains how T5 uses span corruption for pre-training. Topics include sentinel tokens, geometric span sampling, the C4 corpus.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

T5 Architecture and Text-to-Text Transfer Learning

Aug 14, 2025·51 min read

Covers T5's encoder-decoder architecture, relative position biases, span corruption pretraining, and text-to-text framework for unified NLP tasks.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

LLaMA Architecture: Design Philosophy and Training

Aug 6, 2025·50 min read

Covers LLaMA's architectural choices including RMSNorm, SwiGLU, and RoPE, plus training data strategies.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Qwen Architecture: Alibaba's Multilingual LLM Design

Aug 5, 2025·49 min read

Examines Qwen's architectural innovations including GQA, SwiGLU activation, and multilingual tokenization.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Unigram LLM Tokenization: EM Training

Aug 5, 2025·55 min read

Explains how the unigram LM tokenizer trains via the EM algorithm, uses Viterbi decoding for segmentation, and enables subword regularization.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Mistral Architecture: Sliding Window Attention

Aug 4, 2025·48 min read

Examines Mistral 7B's architectural innovations including sliding window attention, grouped query attention, and rolling buffer KV cache.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Grouped Query Attention: Memory-Efficient LLM Inference

Aug 3, 2025·39 min read

Covers GQA, the attention mechanism behind LLaMA 2 and Mistral. Topics include KV head sharing, memory savings, implementation, and quality tradeoffs.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Multi-Query Attention: Memory-Efficient LLM Inference

Aug 2, 2025·39 min read

Explains how Multi-Query Attention reduces KV cache memory by sharing keys and values across attention heads, enabling efficient long-context inference.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

The Vocabulary Problem

Aug 2, 2025·48 min read

Explains why traditional word-level approaches fail with diverse text, from OOV words to morphological complexity.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Phi Models: How Data Quality Beats Model Scale

Aug 1, 2025·42 min read

Examines Microsoft's Phi model family and how textbook-quality training data enables small models to match larger competitors.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

WordPiece: BERT's Subword Tokenization Algorithm Explained

Aug 1, 2025·48 min read

Explains how WordPiece differs from BPE by using a likelihood objective for merges. Topics include the PMI score, greedy tokenization, ## prefix notation.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

LLaMA Components: RMSNorm, SwiGLU, and RoPE

Jul 31, 2025·42 min read

Examines LLaMA's core architectural components: pre-norm with RMSNorm for stable training, SwiGLU feed-forward networks for expressive computation.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Repetition Penalties: Preventing Loops in LLM Generation

Jul 30, 2025·56 min read

Repetition, frequency, and presence penalties alter token probabilities to reduce loops. Covers n-gram blocking, tuning, and effects on generated text.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Constrained Decoding

Jul 29, 2025·41 min read

Constrained decoding uses token masks and grammars to produce valid JSON, SQL, and regular-expression matches from language models.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Autoregressive Generation: How GPT Produces Text

Jul 28, 2025·77 min read

Covers mechanics of autoregressive generation in transformers, including the generation loop, KV caching for efficiency, stopping criteria.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Nucleus Sampling: Adaptive Top-p Text Generation for LLMs

Jul 27, 2025·42 min read

Explains how nucleus sampling dynamically selects tokens based on cumulative probability, solving top-k limitations for coherent and creative text generation.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Top-k Sampling: Controlling Language Model Text Generation

Jul 26, 2025·52 min read

Top-k sampling limits each generation step to the k most probable tokens. Covers probability renormalization, diversity, failure modes, and tuning.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

In-Context Learning Without Fine-Tuning

Jul 25, 2025·51 min read

Explains how large language models learn new tasks from prompt demonstrations without weight updates.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Decoding Temperature

Jul 24, 2025·55 min read

Explains how temperature scaling reshapes probability distributions during text generation, with mathematical foundations, implementation details.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

ELECTRA: Efficient Pre-training

Jul 23, 2025·42 min read

Explains how ELECTRA achieves BERT-level performance with 1/4 the compute by detecting replaced tokens instead of predicting masked ones.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

GPT-2: Scaling Language Models for Zero-Shot Learning

Jul 22, 2025·52 min read

Examines GPT-2's architecture, model sizes, WebText training, and zero-shot capabilities that changed language modeling through scale.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

BERT Fine-tuning: Classification, NER & Question Answering

Jul 21, 2025·44 min read

Covers BERT fine-tuning for downstream NLP tasks. Topics include task-specific heads, hyperparameter tuning, and strategies to prevent catastrophic forgetting.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

GPT-1: Generative Pretraining for Language Understanding

Jul 20, 2025·68 min read

GPT-1 paired generative pretraining with task-specific fine-tuning. Covers its architecture, objective, benchmark results, and role in transfer learning.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

GPT-3: Scale, Few-Shot and In-Context Learning

Jul 19, 2025·93 min read

Examines GPT-3's 175B parameter architecture, the emergence of few-shot learning, in-context learning mechanisms.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

DeBERTa: Disentangled Attention and Enhanced Mask Decoding

Jul 18, 2025·61 min read

Covers DeBERTa's disentangled attention mechanism that separates content and position representations.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

BERT Pre-training: MLM, NSP & Training Strategies Explained

Jul 17, 2025·42 min read

Covers BERT pre-training covering masked language modeling, next sentence prediction, data preparation, hyperparameters.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

ALBERT: Parameter-Efficient BERT with Factorized Embeddings

Jul 16, 2025·42 min read

Explains how ALBERT reduces BERT's size by 18x using factorized embeddings and cross-layer parameter sharing while maintaining competitive performance.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

RoBERTa: Robustly Optimized BERT Pretraining Approach

Jul 15, 2025·55 min read

Explains how RoBERTa surpassed BERT using the same architecture by removing Next Sentence Prediction, implementing dynamic masking.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

BERT Architecture: Embeddings, Attention and Encoder Layers

Jul 14, 2025·52 min read

Examines the BERT architecture in detail covering model sizes (Base vs Large), three-layer embedding system, bidirectional attention patterns.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

BERT Contextual Embeddings: Extraction and Use

Jul 13, 2025·53 min read

Covers BERT representation extraction with [CLS] token usage, layer selection strategies, pooling methods, and the frozen vs fine-tuned trade-off.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Prefix Language Modeling

Jul 12, 2025·40 min read

Covers prefix LM, the hybrid pretraining objective that enables bidirectional prefix understanding with autoregressive generation.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Denoising Objectives: BART's Corruption Strategies for LLMs

Jul 11, 2025·47 min read

Explains how BART trains language models using diverse text corruptions including token deletion, shuffling, sentence permutation.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Replaced Token Detection

Jul 10, 2025·58 min read

Explains how replaced token detection trains language models 4x more efficiently than masked language modeling.

Open notebook
Data, Analytics & AILanguage AI HandbookMachine Learning

Span Corruption: T5's Pretraining Objective for Seq2Seq

Jul 9, 2025·51 min read

Explains how span corruption works in T5, including span selection strategies, geometric distributions, sentinel tokens.

Open notebook
Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12