AI by Hand ✍️

AI by Hand ✍️

Agent Hallucination (Nov 12, 2025)

AI by Hand ✍️ Seminars

Prof. Tom Yeh's avatar
Prof. Tom Yeh
Nov 12, 2025
∙ Paid

Library › Seminar Series 2025

  1. Draw DeepSeek (Feb 20, 2025)

  2. LLaMA 1 → 2 → 3 → 4 (May 14, 2025)

  3. Scaling LLMs by Hand ✍️ in JAX (Aug 13, 2025)

  4. GPU by Hand ✍️ Together (Nov 2, 2025)

  5. Agent Hallucination (Nov 12, 2025)

  6. Gated Attention ~ NeurIPS 2025 Best Paper (Dec 18, 2025)

Ever wonder why a huge AI model can sound like a top expert one moment, and then confidently make things up the next?

In this seminar, we stop treating AI like a mysterious black box and look directly at how it actually works. We break down, step by step, the logic and math behind AI agents, and why hallucinations happen.

Key Highlights:

  • Hallucination: We analyze a real-world agent log to pinpoint exactly where things go wrong. Is it a RAG failure? A tool-calling error? Or a fundamental LLM logic gap?

  • Mitigation: Learn to implement and calculate mitigation strategies by hand, including:

  • Evolution: A visual breakdown of how we moved from basic LLMs to RAG, and finally to the multi-step Agents of today.

  • Deep-Dive Math: We peel back the transformer architecture to look at Softmax layers and attention mechanisms. You’ll see exactly how “Sink Tokens” can prevent models from forcing a wrong answer when no right answer exists.

Here’s a preview of the material I prepared for this seminar:

Special thanks to Ofer Mendelevitch and Vectara for hosting this seminar!

Feedback

Recording & Workbook

Become a paid subscriber to access the full recording and the associated Excel workbook.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 Tom Yeh · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture