AI by Hand ✍️

AI by Hand ✍️

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

AI by Hand ✍️ Seminars

Prof. Tom Yeh's avatar
Prof. Tom Yeh
Dec 18, 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)

Recently, I delivered a Frontier AI Seminar diving deep into **Gated Attention**, winner of the NeurIPS 2025 Best Paper Award.

When a paper wins Best Paper at NeurIPS, where the world’s top AI researchers gather every year, it’s not optional reading. It’s a must-study paper. These are the works that set the research agenda, and skipping them is how you quietly fall behind.

Here’s the outline of this seminar

  1. Introduction

  2. Preliminary: Multi-Head Softmax Attention

  3. Augmenting Attention Layer with Gating Mechanisms

  4. Experiments

  5. Analysis

Recordings

Scaled Dot Product Attention

I used the opportunity to review foundation topics, such as the Scaled Dot Product Attention. In this video clip, I break down scaled dot-product attention from first principles, showing how queries (Q) are compared against keys (K) to produce attention scores. We then walk step by step through scaling, softmax, and value weighting, with careful attention to matrix shapes, transposes, and where each number actually comes from.

Perplexity (PPL)

Since Gated Attention evaluates performance using Perplexity (PPL), I finally got to demystify this perplexing metric, pun intended. In this video clip, I framed perplexity as a measure of how many choices a model believes it has at each step. We walk through how softmax turns scores into probabilities, why a perfect perplexity of 1 means zero uncertainty, and how different choice distributions directly affect PPL and model performance.

Gated Attention

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