Skip to main content

Where MLSys·im Clicks in the Textbook

How first-principles physics connects chapters, study sheets, and lecture slides across the Machine Learning Systems series.

MLSys·im is the quantitative engine behind the Machine Learning Systems curriculum. Rather than treating single-chip kernels, distributed training clusters, interactive serving fleets, and cyber-physical control loops as disconnected subjects, MLSys·im models them with the same typed physical quantities—FLOPs, bytes, bandwidth, latency, energy, and failure rates.

Use this map in two ways:

  1. Follow a physical constraint across volumes (Seven Cross-Volume Threads) to see how one equation—such as the Roofline bound or KV-cache byte growth—evolves as systems scale up and out.
  2. Look up any textbook chapter (Chapter-by-Chapter Lookup) to jump straight to its companion MLSys·im solvers, hands-on tutorials, study sheet, and lecture slides.

Suggested workflow: Read the chapter section for the conceptual model → predict which ceiling binds → test your prediction with the paired MLSys·im tutorial or solver → check your understanding with the chapter’s study sheet.


Seven Cross-Volume Systems Threads

Each thread below traces one foundational systems constraint across the textbook series, pairing every chapter stop with its study sheet, lecture deck, and executable MLSys·im solvers.

1. Compute, Bandwidth & the Roofline Ceiling

Every ML workload is bounded by the slower of arithmetic throughput and data movement. Across the four volumes, that single ratio governs GPU kernels, cluster fabrics, reasoning token budgets, and real-time robot compute.

Vol I · Ch 11Hardware Acceleration

Single-chip arithmetic intensity, Tensor Cores, HBM bandwidth, and the ridge point.

Vol II · Ch 9Fleet Efficiency

Kernel fusion and SRAM tiling (FlashAttention IO complexity) across fleet accelerators.

Vol III · Ch 3Test-Time Compute

Inference-time compute scaling: reasoning steps and verification budgets per query.

Vol IV · Ch 3The Cognitive Brain

Onboard sensorimotor compute ceilings under hard millisecond control deadlines.

2. Two-Phase Inference & Stateful Memory

Autoregressive generation splits into compute-bound prefill and memory-bound decode, while retained state grows with horizon—from single-request KV caches to paged fleet pools, agent trajectories, and 3D spatial maps.

Vol I · Ch 13Model Serving

TTFT vs. ITL physics and per-token GQA KV-cache capacity on one accelerator.

Vol II · Ch 10Serving at Scale

PagedAttention fragmentation bounds, chunked prefill stalls, and M/M/c replica sizing.

Vol III · Ch 5KV Cache Management

Prefix-cache hit economics and append-only context growth across multi-turn agent loops.

Vol IV · Ch 9Spatial Memory

Bounded spatial memory, voxel raymarching traffic, and map freshness in physical environments.

3. Precision, Quantization & Fidelity Margins

Lowering bitwidth shrinks memory footprint and raises arithmetic intensity, but effective savings depend on group-scale overhead, hardware Tensor Core support, and how much error the downstream task or control loop can tolerate.

Vol I · Ch 10Model Compression

Group quantization (b_eff = b + b_scale/g), structured sparsity, and regime-dependent speedup.

Vol II · Ch 11Edge Intelligence

Fitting foundation and vision models inside edge DRAM, SRAM, and battery envelopes.

Vol III · Ch 2The Foundation Model

Capability-per-bit trade-offs when quantized models drive multi-step tool calling.

Vol IV · Ch 12Safety Enforcement

Worst-case perception error and latency margins inside physical safety envelopes.

4. Data Pipelines, Fabrics & Distributed Coordination

Fast silicon starves whenever host preprocessing, storage, network collectives, RPC sandboxes, or deterministic fieldbuses cannot deliver bytes in time.

Vol I · Ch 4Data Engineering

Storage read rates and CPU decode/augmentation pipelines feeding a local accelerator.

Vol II · Ch 6Distributed Training

4D parallelism (DP/TP/PP/EP), Ring/Tree AllReduce, pipeline bubbles, and MoE All-to-All.

Vol III · Ch 18Multi-Agent Coordination

Tool-sandbox serialization overhead and coordination fan-out across multi-agent graphs.

Vol IV · Ch 4The Nervous System

CAN-FD and EtherCAT cycle-time budgets linking sensors, compute, and actuators.

5. Fault Tolerance, Checkpointing & Recovery

At scale or over long horizons, component and step failures become routine. Analytical checkpointing and replay budgets separate net useful progress (goodput) from raw throughput.

Vol I · Ch 14ML Operations

Monitoring, silent degradation, and rollback contracts for single-service deployments.

Vol II · Ch 7Fault Tolerance

Series cluster MTBF (M/N) and Young-Daly optimal checkpoint waste.

Vol III · Ch 12Failure Recovery

Durable step journaling, retry amplification ceilings, and repair break-even in agents.

Human takeover budgets, supervisor queueing, and fail-operational fallback trajectories.

6. TCO, Energy, Carbon & Water

Deployability is bounded by dollars, megawatts, carbon intensity, and cooling water—from single-model lifecycle planning to hyperscale datacenters, agent task bills, and battery-constrained robots.

Vol I · Ch 3ML Lifecycle

Framing engineering targets around end-to-end lifecycle cost and deployment constraints.

Vol II · Ch 15Sustainable AI

Facility PUE, regional grid carbon intensity, embodied carbon, and site-based WUE.

Vol III · Ch 19Agent Economics

Amortizing prompt caching, tool invocations, and failed attempts into cost per solved task.

Vol IV · Ch 2The Physical Body

Actuator drivetrain losses, thermal derating, and onboard battery mission endurance.

7. Privacy, Security & Safety Envelopes

Responsible engineering translates normative requirements—differential privacy, untrusted tool isolation, and physical collision avoidance—into explicit compute, sample, latency, and distance budgets.

Subsampled Gaussian DP-SGD noise multipliers, clipping overhead, and subgroup sample sizing.

Vol II · Ch 13Security & Privacy

Confidential compute, multi-tenant isolation, and fleet-scale governance controls.

Vol III · Ch 9Agent Security

Prompt-injection exposure across untrusted observations, approval escrow, and sandboxes.

Vol IV · Ch 1The Causal Boundary

Kinematic stopping-distance envelopes and verified safety boundaries in the physical world.


Chapter-by-Chapter Lookup

Reading a specific chapter or preparing a lecture? Find the exact chapter below to launch its web text, study sheet, slide deck, and MLSys·im analytical models.

Volume I: Introduction to Machine Learning Systems

Ch Textbook Chapter Study Sheet & Slides Key Solvers MLSys·im Guide / Zoo
01 Introduction Study sheet · Slides SingleNodeModel 0 · Hello, Roofline
02 System Paradigms Study sheet · Slides SynthesisSolver 12 · Design Space Exploration
03 ML Lifecycle Study sheet · Slides EconomicsModel 8 · The $9M Question
04 Data Engineering Study sheet · Slides DataModel, TransformationModel 4 · Starving the GPU
05 Neural Computation Study sheet · Slides DenseNetworkModel, SingleNodeModel 0 · Hello, Roofline
06 Network Architectures Study sheet · Slides KvAttentionDesignModel, ServingModel 2 · Two Phases
07 ML Frameworks Study sheet · Slides EpochOverheadModel Composable Pipelines
08 Model Training Study sheet · Slides TrainingMemoryModel, ScalingModel 11 · Memory, Capacity & MoE
09 Data Selection Study sheet · Slides ScalingModel Datasets Zoo
10 Model Compression Study sheet · Slides CompressionModel 5 · Quantization
11 Hardware Acceleration Study sheet · Slides SingleNodeModel, WeightStreamingModel 1 · The Memory Wall · 10 · GPU vs. Wafer
12 Benchmarking Study sheet · Slides SensitivitySolver, SynthesisSolver 9 · Sensitivity Analysis
13 Model Serving Study sheet · Slides ServingModel, TailLatencyModel 2 · Two Phases · 3 · KV-Cache Tax
14 ML Operations Study sheet · Slides SequentialCanaryModel, TraceRetentionModel Ops Zoo
15 Responsible Engineering Study sheet · Slides ResponsibleEngineeringModel 7 · Geography Matters
16 Conclusion Study sheet · Slides SingleNodeModel, EconomicsModel 13 · Full-Stack Audit

Volume II: Scaling Machine Learning Systems

Ch Textbook Chapter Study Sheet & Slides Key Solvers MLSys·im Guide / Zoo
01 Introduction Study sheet · Slides DistributedModel, EconomicsModel 13 · Full-Stack Audit
02 Compute Infrastructure Study sheet · Slides EconomicsModel, FacilityPowerModel 8 · The $9M Question · Silicon Zoo
03 Network Fabrics Study sheet · Slides TopologyModel, TransferLadderModel Distributed Training
04 Data Storage Study sheet · Slides StorageFootprintModel, TieredCheckpointModel 4 · Starving the GPU
05 Collective Communication Study sheet · Slides AllReduceAlgorithmModel, HierarchicalAllReduceModel Distributed Training
06 Distributed Training Study sheet · Slides DistributedModel, MoERoutingModel, ZeroShardingModel 6 · Scaling to 1000 GPUs · 11 · Memory, Capacity & MoE
07 Fault Tolerance Study sheet · Slides ReliabilityModel, CheckpointModel 6 · Scaling to 1000 GPUs
08 Fleet Orchestration Study sheet · Slides OrchestrationModel, PreemptionTaxModel 12 · Design Space Exploration
09 Fleet Efficiency Study sheet · Slides EfficiencyModel, GoodputModel 9 · Sensitivity Analysis · Differential Explainer
10 Serving at Scale Study sheet · Slides ContinuousBatchingModel, ServingCapacityModel 3 · KV-Cache Tax · 11 · Memory, Capacity & MoE
11 Edge Intelligence Study sheet · Slides CompressionModel, PrecisionDividendModel 5 · Quantization · Platforms Zoo
12 ML Operations at Scale Study sheet · Slides SpanCriticalPathModel, OutageCostModel Ops Zoo
13 Security & Privacy Study sheet · Slides ResponsibleEngineeringModel, PolicyComparisonModel Ops Zoo
14 Robust AI Study sheet · Slides SeriesFailureModel, TailLatencyModel 9 · Sensitivity Analysis
15 Sustainable AI Study sheet · Slides SustainabilityModel, WaterUseModel, PueRetrofitModel 7 · Geography Matters
16 Responsible AI Study sheet · Slides ResponsibleEngineeringModel Infrastructure Zoo
17 Conclusion Study sheet · Slides DistributedModel, SustainabilityModel, EconomicsModel 13 · Full-Stack Audit

Volume III: Agentic Machine Learning Systems

Ch Textbook Chapter Study Sheet & Slides Key Solvers MLSys·im Guide / Zoo
01 Introduction Study sheet · Slides HorizonCompoundingModel, AcceptedTaskCostModel Agent Zoo
02 The Foundation Model Study sheet · Slides ModelCallModel, ContextAdmissionModel 2 · Two Phases
03 Test-Time Compute Study sheet · Slides InferenceScalingModel, BestOfNPoolModel 8 · The $9M Question
04 Context Engineering Study sheet · Slides ContextBudgetModel, CompactionCadenceModel 3 · KV-Cache Tax
05 KV Cache Management Study sheet · Slides PagedAllocationModel, PrefixRebuildModel 3 · KV-Cache Tax
06 Long-Term Memory Study sheet · Slides RetrievalPayloadModel, AnnFootprintModel Agent Scenarios
07 Tool Calling Study sheet · Slides BlindRetryModel, ToolCatalogSelectionModel Agent Scenarios
08 Agent Sandboxes Study sheet · Slides SyscallTaxModel, SandboxPoolReserveModel Agent Scenarios
09 Agent Security Study sheet · Slides InjectionExposureModel, PolicyComparisonModel Agent Scenarios
10 The Agent Harness Study sheet · Slides ApprovalEscrowModel, TrajectoryBudgetMeterModel Agent Zoo
11 Durable Execution Study sheet · Slides GroupCommitModel, CheckpointTraceModel 6 · Scaling to 1000 GPUs
12 Failure Recovery Study sheet · Slides RepairBreakEvenModel, RetryAmplificationModel Agent Scenarios
13 Agent Evaluation Study sheet · Slides BinomialIntervalsModel, PairedComparisonModel Statistics Scenarios
14 Operating Agents Study sheet · Slides SpanCriticalPathModel, SequentialCanaryModel Ops Zoo
15 Trajectory Curation Study sheet · Slides FailureTriageModel, RunSplitLeakageModel Agent Scenarios
16 Trajectory Fine-Tuning Study sheet · Slides TargetMaskModel, SequencePackingModel Training Scenarios
17 Reinforcement Learning from Verifiable Rewards Study sheet · Slides RewardCompositionModel, ContinuationForkCostModel Agent Scenarios
18 Multi-Agent Coordination Study sheet · Slides DeficitRoundRobinModel, CohortAttemptCostModel Agent Zoo
19 Agent Economics Study sheet · Slides AcceptedTaskCostModel, PrefixCacheBillModel 8 · The $9M Question
20 Conclusion Study sheet · Slides AcceptedTaskCostModel, HorizonCompoundingModel Agent Zoo

Volume IV: Physical AI: Machine Learning Systems That Sense and Act

Ch Textbook Chapter Study Sheet & Slides Key Solvers MLSys·im Guide / Zoo
01 The Causal Boundary Study sheet · Slides StoppingBudgetModel, PhaseLagBudgetModel Embodied Zoo
02 The Physical Body Study sheet · Slides BrakingCeilingsModel, HubDriveElectricalModel Actuators Zoo
03 The Cognitive Brain Study sheet · Slides ProposerTrafficModel, DecoderFamiliesModel Embodied Zoo
04 The Nervous System Study sheet · Slides CanFdBusModel, EtherCatCycleModel Robotics Scenarios
05 Physical Data Study sheet · Slides ReplayBufferModel, InputDemandModel 4 · Starving the GPU
06 Policy Training Study sheet · Slides TrainingMemoryModel, DistributedModel 11 · Memory, Capacity & MoE
07 Closed-Loop Evaluation Study sheet · Slides VlaEvaluationModel, OnsetTrialModel Robotics Scenarios
08 Sensor Perception Study sheet · Slides ObservationAgeModel, LidarSweepAgeModel Sensors Zoo
09 Spatial Memory Study sheet · Slides HostMapSizingModel, RaymarchTrafficModel Robotics Scenarios
10 Grounded Intent Study sheet · Slides IntentCadenceModel, IntentLeaseExpiryModel Robotics Scenarios
11 Trajectory Planning Study sheet · Slides TwoLinkJointRateModel, JerkLimitedStopModel Robotics Scenarios
12 Safety Enforcement Study sheet · Slides StoppingBudgetModel, TractionLossModel Embodied Zoo
13 Workload Placement Study sheet · Slides ResponseTimeModel, ProposerTrafficModel 12 · Design Space Exploration
14 Supervisory Intervention Study sheet · Slides TakeoverBudgetModel, SupervisorQueueModel Robotics Scenarios
15 Adversarial Verification Study sheet · Slides DetectionShortfallModel, EstimatorConsistencyModel Robotics Scenarios
16 Deployment Release Study sheet · Slides SequentialCanaryModel, BinomialIntervalsModel Robotics Scenarios
17 Responsible Physical AI Study sheet · Slides StoppingBudgetModel, ResponsibleEngineeringModel Embodied Zoo
18 Engineering Physical AI Study sheet · Slides StoppingBudgetModel, PhaseLagBudgetModel Embodied Zoo
Back to top