{
  "name": "AI for Knowledge Workers, Part 3: Inside the LLM Engine for Corporate Document Reviewers",
  "badge": "AI FOR KNOWLEDGE WORKERS · PART 03 / 09",
  "children": [
    {
      "name": "Ch. 01: Why Corporate Reviewers Must Look Inside the Engine",
      "children": [
        {
          "name": "Core Principle: An LLM is a sequential token-probability engine built from Transformer blocks—never an exact engineering database."
        },
        {
          "name": "Corporate Specs & Design Audits",
          "children": [
            {
              "name": "Part 2 applied 5-part specifications and clean-session red-teaming to Project Work Statements, RFIs, and integrator designs."
            },
            {
              "name": "Rule / Formula: 5-Part Spec + Clean Window → Structured Review"
            }
          ]
        },
        {
          "name": "Sequential Token Predictor",
          "children": [
            {
              "name": "An LLM transforms numerical vectors across stacked Transformer blocks to score candidate next tokens one step at a time."
            },
            {
              "name": "Rule / Formula: Input Tokens → Transformer Blocks → Token Odds"
            }
          ]
        },
        {
          "name": "Why Engine Mechanics Matter",
          "children": [
            {
              "name": "Understanding weights, tokens, attention, and memory caches shows corporate reviewers exactly where design summaries fail."
            },
            {
              "name": "Rule / Formula: Engine Literacy → Accurate Spec & Table Audits"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 02: Layers, Fixed Width, Parameters & Nonlinearity",
      "children": [
        {
          "name": "Core Principle: Model depth and vector width stay fixed at build time regardless of corporate document length."
        },
        {
          "name": "Stacked Depth & Fixed Width",
          "children": [
            {
              "name": "Depth counts stacked Transformer blocks; Width fixes internal vector size (e.g., 4,096 numbers) independently of prompt length."
            },
            {
              "name": "Rule / Formula: Network Shape = Depth (L Blocks) × Fixed Width"
            }
          ]
        },
        {
          "name": "Stored Numerical Multipliers",
          "children": [
            {
              "name": "Parameters encompass every learned number in the checkpoint; weights scale feature connections alongside biases and norm scales."
            },
            {
              "name": "Rule / Formula: Layer Math: y = Activation(Input × Weight + Bias)"
            }
          ]
        },
        {
          "name": "Evaluating Conditional Rules",
          "children": [
            {
              "name": "Without nonlinear gates between matrices, 100 stacked layers collapse into one flat rule unable to test conditional exceptions."
            },
            {
              "name": "Rule / Formula: Nonlinear Gates → Multi-Clause Exception Logic"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 03: Weight Superposition & Why Ungrounded Metrics Drift",
      "children": [
        {
          "name": "Core Principle: Pre-trained weights store compressed statistical directions—never an indexed corporate spec table."
        },
        {
          "name": "Superposition Hypothesis, Not SQL",
          "children": [
            {
              "name": "Interpretability research models dense weights as overlapping geometric directions rather than isolated spreadsheet cells."
            },
            {
              "name": "Rule / Formula: Shared Weight Directions ≠ Exact Table Lookup"
            }
          ]
        },
        {
          "name": "How 250 ms Drifts to 2.5 Seconds",
          "children": [
            {
              "name": "Hypothetical demo: without attached source text, lossy weight recall blends nearby latency patterns and turns 250 ms into 2.5 s."
            },
            {
              "name": "Rule / Formula: Ungrounded Memory Recall → 10× Threshold Drift"
            }
          ]
        },
        {
          "name": "Attach Primary Baseline Tables",
          "children": [
            {
              "name": "Never rely on model weights to remember internal standards; paste verified corporate requirement tables into Prompt Context."
            },
            {
              "name": "Rule / Formula: Verified Source Table in Context → Grounded Draft"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 04: Tokenizing Corporate Tables, Numbers & Units",
      "children": [
        {
          "name": "Core Principle: Saved tokenizers split prose (~0.75 words/token) and fracture tables, decimals, and units into subwords."
        },
        {
          "name": "Prose vs. Engineering Tables",
          "children": [
            {
              "name": "Tokenizers map text to ~128,000 vocabulary IDs (~0.75 words/token in prose), splitting table borders and symbols much finer."
            },
            {
              "name": "Rule / Formula: 100 Prose Words ≈ 133 Tokens (Higher in Tables)"
            }
          ]
        },
        {
          "name": "Numbers & Units Split Apart",
          "children": [
            {
              "name": "Hypothetical demo: table entries like '2,500 ms', '0.0%', and 'v4.2' split across separate digit, punctuation, and unit tokens."
            },
            {
              "name": "Rule / Formula: '2,500 ms' → Multiple Subword & Digit Token IDs"
            }
          ]
        },
        {
          "name": "Layer-by-Layer Vector Refinement",
          "children": [
            {
              "name": "Each token ID selects a base numerical vector that updates across layers depending on surrounding words like 'shall' or 'goal'."
            },
            {
              "name": "Rule / Formula: Token ID → Base Embedding → Contextual Vector"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 05: Q/K/V Self-Attention Across Long Design Documents",
      "children": [
        {
          "name": "Core Principle: Self-attention computes scaled Query-Key dot products to route distant design context in one step."
        },
        {
          "name": "Direct Position Comparisons",
          "children": [
            {
              "name": "Transformer self-attention compares every token directly against prior tokens instead of squeezing context through recurrence."
            },
            {
              "name": "Rule / Formula: Path Distance Across 150 Design Pages = 1 Step"
            }
          ]
        },
        {
          "name": "Scaled Dot-Product Blending",
          "children": [
            {
              "name": "Queries score relevant Keys via scaled dot products; softmax normalizes weights to 1.0 to combine corresponding Value vectors."
            },
            {
              "name": "Rule / Formula: Attention(Q, K, V) = softmax(Q × Kᵀ / √dₖ) × V"
            }
          ]
        },
        {
          "name": "Linking Spec to Design Table",
          "children": [
            {
              "name": "Hypothetical demo: a Query on the ≤ 250 ms PWS limit matches Keys on a sample integrator Table 4 holding a 2,500 ms timer."
            },
            {
              "name": "Rule / Formula: Demo match: PWS ≤ 250 ms Query ↔ Table 4 Key"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 06: Causal Masking, MLP Banks & Phantom Citations",
      "children": [
        {
          "name": "Core Principle: Autoregressive next-token sampling without external lookup lets associative MLP weights invent phantom citations."
        },
        {
          "name": "Left-to-Right Token Commitment",
          "children": [
            {
              "name": "Causal masking enforces left-to-right visibility; without grounded retrieval or scripts, autoregressive decoding has no external fact check."
            },
            {
              "name": "Rule / Formula: Position t Attends Only to Tokens 1..t"
            }
          ]
        },
        {
          "name": "Two-Thirds of Block Parameters",
          "children": [
            {
              "name": "Feed-forward layers store statistical phrase completions, matching familiar engineering prefixes to probable version numbers."
            },
            {
              "name": "Rule / Formula: Engineering Prefix + MLP Weights → Probable Digits"
            }
          ]
        },
        {
          "name": "Fabricated Interface Spec v9.9",
          "children": [
            {
              "name": "Hypothetical demo: given corporate interface spec v4.2, ungrounded pattern completion invents plausible but fake spec v9.9."
            },
            {
              "name": "Rule / Formula: Require verbatim design quotes or flag UNKNOWN"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 07: Context Window Budgets & Rotary Position Encoding",
      "children": [
        {
          "name": "Core Principle: Your Context Window is one shared token pool where RoPE tracks relative distance between table cells."
        },
        {
          "name": "One Finite Token Ceiling",
          "children": [
            {
              "name": "System rules, loaded skills, chat history, uploaded TRPs/PWS/design docs, and generated review tables share one token pool."
            },
            {
              "name": "Rule / Formula: Total Pool = Rules + Skills + Docs + Chat + Output"
            }
          ]
        },
        {
          "name": "Preserving Table & Clause Order",
          "children": [
            {
              "name": "RoPE rotates Query and Key coordinates by token index so attention distinguishes adjacent table cells from distant paragraphs."
            },
            {
              "name": "Rule / Formula: RoPE Attention Score Tracks Offset (m − n)"
            }
          ]
        },
        {
          "name": "300 Design Pages Fill Capacity",
          "children": [
            {
              "name": "Three hundred dense integrator design or RFI pages average 150k–200k tokens before adding reviewer follow-ups and output tables."
            },
            {
              "name": "Rule / Formula: 300 Technical Pages ≈ 180k Tokens + Output Room"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 08: KV Cache Memory & Lost-in-the-Middle Dilution",
      "children": [
        {
          "name": "Core Principle: KV caching reuses exact activations, yet 300 unchunked pages trigger empirical middle-context recall drops."
        },
        {
          "name": "Saved Key-Value Activations",
          "children": [
            {
              "name": "The KV Cache stores per-layer Key and Value vectors for every prompt token in memory so decoding avoids re-reading prior pages."
            },
            {
              "name": "Rule / Formula: KV Cache Memory Grows Linearly With Tokens (N)"
            }
          ]
        },
        {
          "name": "Empirical Mid-Context Recall Drop",
          "children": [
            {
              "name": "KV caching is exact math, yet long-context benchmarks show distractor pages lower recall on requirements buried in middle chapters."
            },
            {
              "name": "Rule / Formula: Exact KV Cache ≠ Uniform 300-Page Recall"
            }
          ]
        },
        {
          "name": "Section-by-Section Paired Audits",
          "children": [
            {
              "name": "Pair one corporate PWS subsystem block (such as network failover) with only the matching integrator design chapters and tables."
            },
            {
              "name": "Rule / Formula: Focused Section Pairs → High Midpoint Recall"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 09: Prefill vs. Decode Latency on Corporate Reviews",
      "children": [
        {
          "name": "Core Principle: Inference splits into parallel compute-bound Prefill on inputs and sequential memory-bound Decode."
        },
        {
          "name": "Upfront Document Ingestion",
          "children": [
            {
              "name": "Processes all prompt and design tokens in parallel to populate the KV Cache; attention compute scales quadratically with N."
            },
            {
              "name": "Rule / Formula: Time-to-First-Token Driven by O(N²) Prefill"
            }
          ]
        },
        {
          "name": "One Output Token Per Pass",
          "children": [
            {
              "name": "Streams model weights and KV Cache from memory on every step to emit one token—making verbose output essays the main bottleneck."
            },
            {
              "name": "Rule / Formula: Total Time = Prefill + (Output Tokens × Step)"
            }
          ]
        },
        {
          "name": "Request Structured Table Rows",
          "children": [
            {
              "name": "Specify concise Markdown or CSV verification columns instead of multi-page narrative summaries to cut sequential decode wait."
            },
            {
              "name": "Rule / Formula: Compact Verification Matrix → 3×–5× Faster Runs"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 10: Logits, Softmax Sampling & Temperature Limits",
      "children": [
        {
          "name": "Core Principle: Near-zero Temperature removes sampling randomness—yet never replaces primary-source verification."
        },
        {
          "name": "Scoring Candidate Next Tokens",
          "children": [
            {
              "name": "The final projection scores ~128,000 vocabulary tokens as logits and scales by Temperature (T) before softmax computes odds."
            },
            {
              "name": "Rule / Formula: T > 0: softmax(Logits / T) | T → 0⁺: argmax"
            }
          ]
        },
        {
          "name": "Repeatable Corporate Audits",
          "children": [
            {
              "name": "Higher T aids open RFI brainstorming; setting T near zero selects the top token consistently during integrator table extraction."
            },
            {
              "name": "Rule / Formula: Design Verification Matrices → Set Low T (≈ 0)"
            }
          ]
        },
        {
          "name": "Deterministic ≠ Source-Verified",
          "children": [
            {
              "name": "Hypothetical demo: if missing context makes '2.5 s' the top logit over '250 ms', greedy T = 0 repeats that error across runs."
            },
            {
              "name": "Rule / Formula: Low Temp + Source Verification = Trusted Audit"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 11: Training Stages vs. Frozen Enterprise Inference",
      "children": [
        {
          "name": "Core Principle: Corporate prompts create ephemeral KV Cache activations—model weights update only during training."
        },
        {
          "name": "When Model Weights Actually Change",
          "children": [
            {
              "name": "Parameters update only in Self-Supervised Pre-Training, full or optional LoRA SFT, and offline DPO or online RLHF alignment."
            },
            {
              "name": "Rule / Formula: Pre-Training + Full/LoRA SFT + DPO/RLHF"
            }
          ]
        },
        {
          "name": "Frozen Weights ≠ Zero Storage",
          "children": [
            {
              "name": "Frozen weights prevent parameter updates on your files, while KV/prefix caches follow TTLs and workspace files persist until deleted."
            },
            {
              "name": "Rule / Formula: Frozen Weights (ΔW=0) ≠ Zero File or Log Storage"
            }
          ]
        },
        {
          "name": "Audit Five Separate Data Controls",
          "children": [
            {
              "name": "Audit training opt-out, cache TTLs, stateful vector/thread files, safety log windows, and eligible stateless ZDR separately."
            },
            {
              "name": "Rule / Formula: Check 5: Train · Cache · Files · Logs · ZDR Scope"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 12: Deterministic Verification & Bridge to Part 4",
      "children": [
        {
          "name": "Core Principle: Pair Skills and Persistent Agents with exact unit math and registry checks—next, the Big 4 Frontier."
        },
        {
          "name": "Context Rubrics & Saved State",
          "children": [
            {
              "name": "Skills inject reusable corporate checklists into context; Persistent Agents save multi-chapter review state without weight tuning."
            },
            {
              "name": "Rule / Formula: Skills + Persistent Agents → ΔW = 0 Automation"
            }
          ]
        },
        {
          "name": "Pair Extraction With Exact Math",
          "children": [
            {
              "name": "Combine chunked low-Temperature table extraction with deterministic unit normalization, completeness checks, and spec lookups."
            },
            {
              "name": "Rule / Formula: Chunked Pass + Unit Math + Index Check = Verified"
            }
          ]
        },
        {
          "name": "Big 4 Frontier Platform Matrix",
          "children": [
            {
              "name": "Dr. Ada and Dr. Alan return to the studio desk to compare OpenAI, Anthropic, Google, and xAI for corporate document workflows."
            },
            {
              "name": "Rule / Formula: Part 4: OpenAI · Anthropic · Google · xAI Review"
            }
          ]
        }
      ]
    }
  ]
}
