Language AI Handbook

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

430 items · Page 1 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
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Comparing Architecture Families Fairly

Nov 17, 2026·64 min read

Learn how to compare Transformer, SSM, and hybrid architectures fairly with matched compute, bits per byte, roofline cost models, and clustered uncertainty.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Structured Prediction and Parsing Evaluation

Nov 17, 2026·84 min read

Master structured prediction for parsing: exact Eisner and CKY decoding, constrained inference, training objectives, and UAS, LAS, and F1 evaluation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Blockwise and Semi-Autoregressive Generation

Nov 17, 2026·42 min read

Explore semi-autoregressive block generation, blockwise parallel decoding, and exact speculative sampling with acceptance and residual repair rules.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Coreference Resolution

Nov 17, 2026·62 min read

Learn how resolvers group mentions into entity clusters, score antecedents, prune candidate pairs, and evaluate partitions with MUC, B-cubed, and CEAF.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Token-Free and Byte-Level Language Models

Nov 17, 2026·54 min read

Explore token-free byte-level language models: UTF-8 encoding, byte factorization, patching architectures like ByT5, CANINE, MEGABYTE, BLT, and fair evaluation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Argumentation, Stance, and Persuasion

Nov 17, 2026·63 min read

Separate argument structure, stance, quality, and persuasion. Learn claim-evidence graphs, target-conditioned stance metrics, and causal effect designs.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Discourse Relations and Coherence

Nov 17, 2026·60 min read

Learn how RST trees and PDTB relations model discourse, why entity-grid scores miss causal cycles, and how to diagnose coherence failures in generated reports.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Diffusion Language Models

Nov 17, 2026·45 min read

Learn how masked diffusion language models corrupt text with absorbing masks, bound likelihood, sample in parallel, and evaluate quality and compute.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Hybrid Attention and State Space Models

Nov 17, 2026·41 min read

Combine attention and state space layers in one stack. Compare KV cache growth, recurrent state, prefill arithmetic, and the Jamba ratio evidence.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

State Space Models for Language

Nov 17, 2026·38 min read

Learn how state space layers replace growing key-value caches with fixed recurrent state. Covers discretization, S4, Mamba, and SSD.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Dialogue Acts and Conversation Structure

Nov 17, 2026·37 min read

Learn how dialogue acts, turn-taking, grounding, and repair structure conversations, and how reply links and act labels improve dialogue state tracking accuracy.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Pragmatics, Implicature, and Presupposition

Nov 17, 2026·65 min read

Model scalar implicature, presupposition projection, and deixis with a finite RSA listener, then design paired probes for language models. Learn how context shifts inference.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Responsible Deployment: Staged Release, Access Control

Mar 29, 2026·57 min read

Deploy language models responsibly through staged rollouts, tiered access control, content filtering, and production monitoring systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Long-Form Generation: Outline, Hierarchy, and Coherence

Mar 28, 2026·47 min read

Covers long-form text generation with outline-based planning, hierarchical decomposition, entity tracking.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Test-Time Compute: Sampling, Refinement, Optimal Inference

Mar 27, 2026·53 min read

Covers test-time compute strategies: multiple sampling, iterative refinement, compute-optimal inference, and inference-time scaling laws for language models.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Learning Rate Warmup: Linear Warmup and Large Batch Training

Mar 24, 2026·58 min read

Explains how learning rate warmup stabilizes early training by gradually increasing the learning rate, with theory, linear warmup.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Deduplication: Exact, Near-Duplicate, and Substring Methods

Mar 22, 2026·50 min read

Explains how deduplication removes exact copies and near-duplicates from training corpora using SHA-256 hashing, Jaccard similarity over character shingles.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Hallucination Mitigation: RAG, Decoding, and Training

Mar 20, 2026·60 min read

Reduce LLM hallucination using retrieval augmentation, self-consistency decoding, DPO training, and calibrated uncertainty expression.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Mechanistic Interpretability: Circuits, Induction Heads

Mar 20, 2026·52 min read

Reverse-engineer transformer networks into human-understandable algorithms by identifying circuits, induction heads, and mechanistic discoveries.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Research Directions: Open Problems, Benchmarks

Mar 20, 2026·54 min read

Examines the open problems, promising research areas, benchmark gaps, and community priorities shaping the future of language AI.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Societal Implications of AI: Labor, Equity, Regulation

Mar 20, 2026·55 min read

Explains how language AI reshapes labor markets, widens or narrows access gaps, drives regulatory frameworks.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Alignment Challenges: Scalable Oversight, Goal Specification

Mar 20, 2026·54 min read

Examines the core alignment challenges facing modern LLMs: scalable oversight, alignment tax, goal mis-specification, reward hacking.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Hallucination Detection: NLI, Self-Consistency

Mar 19, 2026·51 min read

Covers four methods for detecting LLM hallucinations: entailment-based scoring, knowledge base verification, self-consistency checks.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Probing Classifiers: Decoding What Language Models Learn

Mar 19, 2026·52 min read

Explains how probing classifiers reveal what linguistic information is encoded in neural network representations.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Hallucination Types in Language Models

Mar 18, 2026·53 min read

Explains how language models hallucinate: intrinsic and extrinsic hallucination, factual errors, fabrication, and inconsistency with NLI-based detection.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Hallucination Causes: Why Language Models Fabricate Facts

Mar 18, 2026·54 min read

Examines the structural causes of LLM hallucinations: training data noise, exposure bias, knowledge gaps, and generation pressure in language models.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Representation Harms: Stereotyping, Erasure, and Bias

Mar 17, 2026·54 min read

Explains how language models cause harm through stereotyping, erasure, and demeaning associations, with measurement methods and concrete examples.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Capability Frontiers: Emerging AI, World Models, Planning

Mar 17, 2026·54 min read

Examines emerging language model capabilities including in-context learning, chain-of-thought reasoning, world models, planning and agency.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Fairness Metrics: Demographic Parity, Equalized Odds

Mar 16, 2026·61 min read

Covers the key mathematical definitions of algorithmic fairness, from demographic parity to equalized odds.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Efficiency Frontiers: Architecture, Hardware, and Inference

Mar 16, 2026·44 min read

Examines efficient transformer architectures, hardware co-design, inference optimizations like speculative decoding.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Scaling Frontiers: Limits

Mar 15, 2026·40 min read

Examine the physical, statistical, and economic limits of LLM scaling, the data wall crisis, and architectural innovations like MoE and inference-time compute.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Bias Mitigation: Debiasing, CDA, and Fair Fine-tuning

Mar 15, 2026·56 min read

Practical techniques for reducing demographic bias in language models: data balancing, embedding debiasing, adversarial training.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Bias Measurement: WEAT, Stereotype Scores, Fairness Metrics

Mar 14, 2026·59 min read

Measure bias in language models using embedding association tests, generation metrics, classification fairness measures, and standard benchmarks.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Model Cards: Documentation, Intended Use, and Limitations

Mar 13, 2026·54 min read

Write model cards that communicate intended use, training data, evaluation results, and limitations for responsible AI deployment.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Bias in Language Models: Sources, Types and Amplification

Mar 13, 2026·53 min read

Explains how language models inherit demographic, cultural, and occupational bias from training data, and why they amplify these biases beyond the data.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

LLM Watermarking: Schemes, Detection, and Robustness

Mar 13, 2026·65 min read

Explains how token-level watermarking embeds hidden statistical signals into LLM outputs, enabling cryptographically verifiable attribution and AI provenance.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Evaluation Prompt Engineering: Designing Reliable LLM Judges

Mar 12, 2026·59 min read

Design reliable LLM judge prompts using explicit criteria, few-shot examples, and chain-of-thought formatting to maximize evaluation accuracy.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Memorization and Privacy in Language Models

Mar 11, 2026·56 min read

How language models memorize training data, methods for measuring extractable memorization, PII risks in web-scale corpora, and practical privacy mitigations.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Position Bias in LLM Judges: Measurement and Mitigation

Mar 11, 2026·46 min read

Explains how position bias, verbosity bias, and sycophancy distort LLM evaluation. Measure swap consistency, detect length effects.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Retrieval-Augmented Training: RETRO Architecture

Mar 11, 2026·40 min read

How RETRO trains language models with retrieval from scratch, using chunked cross-attention to integrate a 2T-token database and cut parameter needs 25x.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

LLM-as-Judge: Scalable AI Evaluation with Language Models

Mar 10, 2026·55 min read

Build LLM-as-Judge evaluation pipelines: prompt design, judge model selection, calibration against human annotations, and bias mitigation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Process Reward Models: PRM Training, Math Reasoning

Mar 10, 2026·52 min read

Process reward models score individual reasoning steps instead of final answers alone. Covers training data, credit assignment, math tasks, and limitations.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Constitutional AI: Principles, Critique, Revision

Mar 9, 2026·55 min read

Explains how Constitutional AI trains safer LLMs using constitutional principles, AI-driven critique and revision, and RLAIF preference labeling.

Open notebook
Machine LearningLanguage AI Handbook

LLM Preference Evaluation: Pairwise Comparisons and Elo

Mar 9, 2026·59 min read

Evaluate language models with pairwise comparisons and Elo ratings, including preference aggregation, confidence intervals, bias, and significance tests.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Cohen, Fleiss & Krippendorff: IAA Metrics & Implementation

Mar 8, 2026·47 min read

Covers chance-corrected agreement metrics for NLP annotation reliability. Calculate Cohen's kappa, Fleiss' kappa, and Krippendorff's alpha with Python examples.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Reasoning Frontiers: o1 and Test-Time Compute

Mar 7, 2026·57 min read

Examines o1-style reasoning models, test-time compute scaling, process reward models, and open research questions shaping the frontier of AI reasoning.

Open notebook
Language AI HandbookMachine Learning

Human Evaluation Design: Interface, Instructions & Cost

Mar 7, 2026·56 min read

Design rigorous human evaluations for language models. Topics include interface design, annotation paradigms, annotator selection.

Open notebook
Language AI HandbookMachine LearningData, Analytics & AI

Benchmark Saturation: AI Evaluation Metrics, Ceiling Effects

Mar 6, 2026·55 min read

Covers benchmark saturation in AI evaluation. Explains why static metrics hit ceiling effects, lose statistical power, and how dynamic benchmarks solve this.

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