Zardini Lab
  • Research
  • People
  • Publications
  • Activities
  • Join
  • News
  • ACT 2027
Attention with Weights and a Residual ConnectionAttention with a Residual

Tutorial

  • AttentionScaled dot-product attention and its training step
  • Attention with Weights and a Residual ConnectionCausal self-attention with its projections, and its training step
  • Multi-Head AttentionCausal, each head with a query, a key and a value of its own
  • Grouped-Query AttentionQuery heads sharing key and value heads

Classic models

  • Attention Is All You NeedThe original transformer · Jun 2017
  • Mixtral-8x7BSparse mixture of experts · Dec 2023
  • DeepSeek-V3Latent attention, mixture of experts · Dec 2024

Modern models

  • Kimi K3Delta attention, attention residuals · Jul 2026
  • GLM-5.3Mixture of experts, sparse attention · Aug 2026
  • DeepSeek-V4.1-FlashText-only · Sep 2026
  • MiMo-V2.6-ProSliding-window attention, mixture of experts · Sep 2026
About the diagrams
PassForward
FP
Form
Notebook