How Each Kind Works

Read the post
Where it sitsAI › Written rules Where it sitsAI › Machine learning Where it sitsAI › Machine learning Where it sitsAI › Machine learning › Deep learning Where it sitsAI › Machine learning › Deep learning Where it sits… › Deep learning › Generative AI Where it sitsA model in a harness, not a new kind income$50,000Written ruleif income> $40,000:rate = 20%tax = income× ratetax$10,000Deterministic: same input, same answer.Written by people; every step can be read. first guesslearned boundary1. People markpast emails2. Start with arough boundary3. Nudge it aftereach mistakemarked spammarked not spam Boundary fixedNew email landson the spam sidespamSame email, same answer. TOTAL 12.50label: 12.50marked by a personguess 9.99adjust layers12.50 ✓One of thousands; illustrativeGuess, check the label, adjust, repeat. TOTAL 640.00new receiptedgesshapesTrattoria14 Nov640.00fieldsEarly layers find edges, later ones shapes,the last one the fields it was trained on. The cat sat on themat41%sofa22%floor15%other22%matScores illustrativeThen again: score, pick, add, repeat.Ask again: it may pick sofa.Learned by predicting the next wordin huge amounts of text. Harnessmodel picksa stepharness runsa toolresultcomes backdone?checknot done:round againdone: stopThe model chooses; the harness acts and checks. Where it sitsAI › Written rules Where it sitsAI › Machine learning Where it sitsAI › Machine learning Where it sitsAI › Machine learning › Deep learning Where it sitsAI › Machine learning › Deep learning Where it sits… › Deep learning › Generative AI Where it sitsA model in a harness, not a new kind income$50,000Written ruleif income> $40,000:rate = 20%tax = income× ratetax$10,000Deterministic: same input, same answer.Written by people; every step can be read. first guesslearned boundary1. People markpast emails2. Start with arough boundary3. Nudge it aftereach mistakemarked spammarked not spam Boundary fixedNew email landson the spam sidespamSame email, same answer. TOTAL 12.50label: 12.50marked by a personguess 9.99adjust layers12.50 ✓One of thousands; illustrativeGuess, check the label, adjust, repeat. TOTAL 640.00new receiptedgesshapesTrattoria14 Nov640.00fieldsEarly layers find edges, later ones shapes,the last one the fields it was trained on. The cat sat on themat41%sofa22%floor15%other22%matScores illustrativeThen again: score, pick, add, repeat.Ask again: it may pick sofa.Learned by predicting the next wordin huge amounts of text. Harnessmodel picksa stepharness runsa toolresultcomes backdone?checknot done:round againdone: stopThe model chooses; the harness acts and checks.
  1. Written rules are the field’s oldest approach: conditions and calculations people write. Today a plain rules engine is usually just called software.
  2. Machine learning learns from examples people marked: it starts with a rough boundary and nudges it each time an example lands on the wrong side.
  3. Once trained, the boundary stays put: each new email is sorted by which side it falls on. Same email, same answer.
  4. Deep learning trains on thousands of labelled receipts: it guesses the total, checks the label, and adjusts its layers a little whenever it is wrong.
  5. Trained, its layers find edges, then shapes, then whole fields, and read a new receipt’s vendor, date and total.
  6. Generative AI writes by predicting the next token, a word or part of one, over and over. Answers can vary.
  7. An agent is a model in a loop: it picks a step, the harness runs the tool, and a check decides when it is done.

Drawn for Foundations chapter 1. Simplified on purpose; the scores are illustrative.