Software Engineering

Insights on software development, engineering practices, architecture patterns, and the craft of building robust, scalable systems.

405 items · Page 3 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

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
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
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Reasoning Limitations: Failures, Shortcuts

Mar 6, 2026·56 min read

Examines systematic reasoning failures in LLMs including spurious correlations, reasoning shortcuts, negation failures.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Mathematical Reasoning in LLMs: Benchmarks, Training, Limits

Mar 5, 2026·54 min read

Explains how LLMs solve math problems, from grade-school word problems to competition math. Topics include chain-of-thought, process reward models, GRPO.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Reasoning Verification: Process Reward Models, Guided Search

Mar 4, 2026·57 min read

Explains how process reward models score each reasoning step, how verification-guided search selects correct chains.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Reasoning Strategies: Self-Consistency, Tree of Thought

Mar 3, 2026·49 min read

Explains how self-consistency, tree of thought, least-to-most prompting, and decomposition strategies improve language model reasoning accuracy and reliability.

Open notebook
Software EngineeringMachine LearningLanguage AI Handbook

MBPP: Python Code Generation Benchmark

Mar 3, 2026·53 min read

Examines the MBPP benchmark for Python code generation evaluation. Topics include crowd-sourced programming tasks, pass@k metrics, execution-based testing.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Chain-of-Thought Prompting: Zero-Shot, Fine-Tuning

Mar 3, 2026·52 min read

Explains how chain-of-thought prompting enables language models to reason step by step. Topics include few-shot CoT, zero-shot CoT, self-consistency.

Open notebook
Machine LearningLanguage AI HandbookSoftware Engineering

HumanEval: Functional Code Generation Evaluation with Pass@k

Mar 2, 2026·40 min read

Explains how HumanEval evaluates LLM code generation using functional correctness and the pass@k metric.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Text Generation Applications: Use Cases and Quality

Mar 2, 2026·57 min read

Examines LLM text generation for content creation, writing assistance, and code. Topics include quality dimensions, constraint verification, prompt design.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Reasoning Foundations: Types, LLMs, Failure Modes

Mar 2, 2026·58 min read

Examines deductive, inductive, abductive, and causal reasoning in LLMs, including how transformers support inference chains and where reasoning breaks down.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Conversational AI: Dialogue Systems and Chatbot Design

Mar 1, 2026·59 min read

Build intelligent dialogue systems with LLMs, covering conversation management, slot filling, memory strategies, and chatbot evaluation techniques.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Model Merging Applications: Multi-Task, Style

Feb 28, 2026·50 min read

Apply model merging to combine task fine-tunes, blend styles, compose capabilities, and evaluate merged models using normalized scores and Pareto analysis.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Structured Pruning: Head, Layer, and Width Pruning

Feb 27, 2026·48 min read

Explains how structured pruning removes entire attention heads, transformer layers, and feed-forward neurons to create smaller, faster models.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Pruning: Structured and Unstructured Methods

Feb 27, 2026·51 min read

Explains how weight pruning reduces neural network size by removing redundant parameters.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Guardrails: Input, Output, and Pipeline Design for LLMs

Feb 25, 2026·61 min read

Build multi-layer guardrail systems for LLM applications, covering input validation, output safety, PII detection, topic enforcement.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Differential Privacy: DP-SGD, Privacy Budgets, and LLMs

Feb 24, 2026·50 min read

Explains how differential privacy protects training data in language models, from the mathematical guarantee to DP-SGD, privacy budgets.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Knowledge Distillation: Teacher-Student Training for LLMs

Feb 24, 2026·45 min read

Explains how knowledge distillation transfers a large teacher model's learned knowledge to a smaller student through soft label supervision.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Uncertainty Quantification in Language Models

Feb 24, 2026·57 min read

Measure and communicate LLM confidence through calibration, verbalized uncertainty, semantic entropy, and trust-calibrated user interfaces.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Continual Learning Evaluation: BWT, FWT, and Benchmarks

Feb 23, 2026·56 min read

Covers continual learning evaluation with forward transfer, backward transfer, forgetting metrics.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Architecture Methods: Progressive Networks, Expert Expansion

Feb 22, 2026·46 min read

Examines architecture-based continual learning: progressive networks, PackNet, HAT masks, PathNet.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Replay Methods: Buffer, Pseudo-Rehearsal & Generative Replay

Feb 22, 2026·52 min read

Explains how experience replay buffers, pseudo-rehearsal, and generative replay prevent catastrophic forgetting in continual learning systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Classification Applications: Sentiment, Intent, and Scale

Feb 22, 2026·61 min read

Explains how transformer models power sentiment analysis, topic classification, and intent detection.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Content Filtering: Classification, Rules, and Evaluation

Feb 22, 2026·60 min read

Explains how classification-based and rule-based content filters protect language model deployments.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Regularization Methods: EWC and Synaptic Intelligence

Feb 22, 2026·48 min read

Explains how Elastic Weight Consolidation and Synaptic Intelligence protect critical parameters to prevent catastrophic forgetting in continual learning.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

LLM Evaluation Fundamentals: Goals, Design, and Metrics

Feb 21, 2026·59 min read

Design reliable LLM evaluations with representative test sets, suitable metrics, and controls for contamination, overfitting, and misleading averages.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Continual Learning: Catastrophic Forgetting and Scenarios

Feb 19, 2026·57 min read

Covers the continual learning problem, why neural networks catastrophically forget sequential tasks, and the three canonical learning scenarios.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Sparse Autoencoders: Dictionary Learning for LLM Features

Feb 16, 2026·59 min read

Explains how sparse autoencoders decompose language model activations into interpretable features using overcomplete dictionaries, sparsity constraints.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Attribution and Citation: Sourcing LLM Outputs

Feb 16, 2026·50 min read

Explains how language models link generated claims to source documents, evaluate citation accuracy with NLI, and measure attribution precision and recall.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

LLM Cost Management: Modeling, Optimization & Allocation

Feb 14, 2026·40 min read

Covers LLM cost management with token-based cost modeling, optimization techniques like caching and quantization, cost allocation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Quality Monitoring: Drift Detection

Feb 14, 2026·55 min read

Monitor LLM output quality in production: track BLEU, BERTScore, and semantic metrics, detect drift with KS tests and CUSUM, catch regressions with A/B testing.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Monitoring LLM Systems: Metrics, Logging, Alerting

Feb 13, 2026·46 min read

Monitor production LLM systems with metrics collection, structured logging, dashboard design, alerting rules, and concept drift detection.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Logit Lens: Reading Transformer Hidden States

Feb 12, 2026·45 min read

Explains how the logit lens projects transformer hidden states into vocabulary space to reveal how predictions evolve.

Open notebook
Language AI HandbookMachine LearningSoftware EngineeringData, Analytics & AI

LLaVA: Visual Instruction Tuning

Feb 11, 2026·58 min read

LLaVA connects a frozen vision encoder to a language model through a projection layer. Covers visual instruction tuning, architecture, data, and evaluation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Attention Visualization: Extracting and Interpreting Weights

Feb 11, 2026·51 min read

Extract attention weights from transformer models, visualize head patterns, measure head entropy, and understand the key caveats.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Caching for LLMs: Prompt, Semantic, and Invalidation

Feb 11, 2026·52 min read

Covers LLM caching strategies including prompt caching with KV reuse, semantic caching with embedding similarity, cache invalidation policies.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Model Routing: Selection, A/B Testing, Cascades & Strategies

Feb 10, 2026·53 min read

Route LLM requests intelligently across model tiers using rule-based, difficulty-based, and cascade strategies, plus A/B testing to validate routing decisions.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Auto-Scaling LLMs: Metrics, Policies, Production Strategies

Feb 10, 2026·54 min read

Auto-scale LLM serving infrastructure using GPU utilization, queue depth, and TTFT metrics. Topics include horizontal vs vertical scaling.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Throughput Optimization: Batch Size, GPU Utilization

Feb 6, 2026·58 min read

Covers LLM throughput optimization with continuous batching, batch size tuning, parallelism strategies, and measuring tokens-per-second under real workloads.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Latency Optimization: TTFT, Batching, Speculative Decoding

Feb 6, 2026·52 min read

Covers LLM serving latency from TTFT to TPOT. Topics include KV cache management, continuous batching, speculative decoding, streaming responses.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Model Serving: Frameworks, Loading

Feb 6, 2026·57 min read

Serve language models in production: weight loading strategies, tensor parallelism, request batching, rate limiting.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Agent Evaluation: Metrics, Benchmarks and Safety Standards

Feb 6, 2026·52 min read

Evaluate AI agents with task completion metrics, trajectory analysis, and safety testing. Topics include WebArena, SWE-bench, GAIA, and OSWorld benchmarks.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Agent Memory Systems: From Context to Persistent Storage

Feb 5, 2026·52 min read

Explains how AI agents manage short-term context and long-term memory. Examines vector databases, retrieval algorithms.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Probing Layers in Transformer Models

Feb 5, 2026·55 min read

Explains how layer probing maps linguistic properties across BERT layers, from surface features in lower layers to semantic content in upper layers.

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