Responsible Deployment: Staged Release, Access Control
Deploy language models responsibly through staged rollouts, tiered access control, content filtering, and production monitoring systems. Read full notebook
Personal website of Michael Brenndoerfer - Data & AI, Software Engineering, Private Equity, Technology, and more
Deploy language models responsibly through staged rollouts, tiered access control, content filtering, and production monitoring systems. Read full notebook
Covers long-form text generation with outline-based planning, hierarchical decomposition, entity tracking. Read full notebook
Covers test-time compute strategies: multiple sampling, iterative refinement, compute-optimal inference, and inference-time scaling laws for language models. Read full notebook
Explains how learning rate warmup stabilizes early training by gradually increasing the learning rate, with theory, linear warmup. Read full notebook
Explains how deduplication removes exact copies and near-duplicates from training corpora using SHA-256 hashing, Jaccard similarity over character shingles. Read full notebook
Reduce LLM hallucination using retrieval augmentation, self-consistency decoding, DPO training, and calibrated uncertainty expression. Read full notebook
Reverse-engineer transformer networks into human-understandable algorithms by identifying circuits, induction heads, and mechanistic discoveries. Read full notebook
Examines the open problems, promising research areas, benchmark gaps, and community priorities shaping the future of language AI. Read full notebook
Explains how language AI reshapes labor markets, widens or narrows access gaps, drives regulatory frameworks. Read full notebook
Examines the core alignment challenges facing modern LLMs: scalable oversight, alignment tax, goal mis-specification, reward hacking. Read full notebook
Covers four methods for detecting LLM hallucinations: entailment-based scoring, knowledge base verification, self-consistency checks. Read full notebook
Explains how probing classifiers reveal what linguistic information is encoded in neural network representations. Read full notebook
Explains how language models hallucinate: intrinsic and extrinsic hallucination, factual errors, fabrication, and inconsistency with NLI-based detection. Read full notebook
Examines the structural causes of LLM hallucinations: training data noise, exposure bias, knowledge gaps, and generation pressure in language models. Read full notebook
Explains how language models cause harm through stereotyping, erasure, and demeaning associations, with measurement methods and concrete examples. Read full notebook
Examines emerging language model capabilities including in-context learning, chain-of-thought reasoning, world models, planning and agency. Read full notebook
Covers the key mathematical definitions of algorithmic fairness, from demographic parity to equalized odds. Read full notebook
Examines efficient transformer architectures, hardware co-design, inference optimizations like speculative decoding. Read full notebook
Examine the physical, statistical, and economic limits of LLM scaling, the data wall crisis, and architectural innovations like MoE and inference-time compute. Read full notebook
Practical techniques for reducing demographic bias in language models: data balancing, embedding debiasing, adversarial training. Read full notebook
Measure bias in language models using embedding association tests, generation metrics, classification fairness measures, and standard benchmarks. Read full notebook
Write model cards that communicate intended use, training data, evaluation results, and limitations for responsible AI deployment. Read full notebook
Explains how language models inherit demographic, cultural, and occupational bias from training data, and why they amplify these biases beyond the data. Read full notebook
Explains how token-level watermarking embeds hidden statistical signals into LLM outputs, enabling cryptographically verifiable attribution and AI provenance. Read full notebook
Design reliable LLM judge prompts using explicit criteria, few-shot examples, and chain-of-thought formatting to maximize evaluation accuracy. Read full notebook
How language models memorize training data, methods for measuring extractable memorization, PII risks in web-scale corpora, and practical privacy mitigations. Read full notebook
Explains how position bias, verbosity bias, and sycophancy distort LLM evaluation. Measure swap consistency, detect length effects. Read full notebook
How RETRO trains language models with retrieval from scratch, using chunked cross-attention to integrate a 2T-token database and cut parameter needs 25x. Read full notebook
Build LLM-as-Judge evaluation pipelines: prompt design, judge model selection, calibration against human annotations, and bias mitigation. Read full notebook
Process reward models score individual reasoning steps instead of final answers alone. Covers training data, credit assignment, math tasks, and limitations. Read full notebook
Explains how Constitutional AI trains safer LLMs using constitutional principles, AI-driven critique and revision, and RLAIF preference labeling. Read full notebook
Evaluate language models with pairwise comparisons and Elo ratings, including preference aggregation, confidence intervals, bias, and significance tests. Read full notebook
Covers chance-corrected agreement metrics for NLP annotation reliability. Calculate Cohen's kappa, Fleiss' kappa, and Krippendorff's alpha with Python examples. Read full notebook
Examines o1-style reasoning models, test-time compute scaling, process reward models, and open research questions shaping the frontier of AI reasoning. Read full notebook
Design rigorous human evaluations for language models. Topics include interface design, annotation paradigms, annotator selection. Read full notebook
Covers benchmark saturation in AI evaluation. Explains why static metrics hit ceiling effects, lose statistical power, and how dynamic benchmarks solve this. Read full notebook
Examines systematic reasoning failures in LLMs including spurious correlations, reasoning shortcuts, negation failures. Read full notebook
Explains how benchmark contamination affects LLM evaluation accuracy. Topics include detection methods including n-gram matching, MinHash. Read full notebook
Explains how LLMs solve math problems, from grade-school word problems to competition math. Topics include chain-of-thought, process reward models, GRPO. Read full notebook
Explains how TruthfulQA tests AI truthfulness by identifying imitative falsehoods. Read full notebook
Explains how process reward models score each reasoning step, how verification-guided search selects correct chains. Read full notebook
Explains how self-consistency, tree of thought, least-to-most prompting, and decomposition strategies improve language model reasoning accuracy and reliability. Read full notebook
Examines the MBPP benchmark for Python code generation evaluation. Topics include crowd-sourced programming tasks, pass@k metrics, execution-based testing. Read full notebook
Explains how chain-of-thought prompting enables language models to reason step by step. Topics include few-shot CoT, zero-shot CoT, self-consistency. Read full notebook
Explains how HumanEval evaluates LLM code generation using functional correctness and the pass@k metric. Read full notebook
Examines LLM text generation for content creation, writing assistance, and code. Topics include quality dimensions, constraint verification, prompt design. Read full notebook
Examines deductive, inductive, abductive, and causal reasoning in LLMs, including how transformers support inference chains and where reasoning breaks down. Read full notebook
GSM8K tests grade-school mathematical reasoning with multi-step word problems. Covers dataset structure, answer scoring, and known benchmark limitations. Read full notebook
Build intelligent dialogue systems with LLMs, covering conversation management, slot filling, memory strategies, and chatbot evaluation techniques. Read full notebook
Apply model merging to combine task fine-tunes, blend styles, compose capabilities, and evaluate merged models using normalized scores and Pareto analysis. Read full notebook