ai ml9 min read

Differential Transformer V2

  • Transformer
  • FlashAttention
  • Gemma 3n

AI Summary

Differential Transformer V2 (DIFF V2) improves upon the original architecture by removing per-head RMSNorm and refining the differential attention mechanism to enhance training stability and performance in large-scale LLM pretraining.

Key Takeaways

  • DIFF V2 eliminates the per-head RMSNorm used in V1, reducing gradient norm spikes and numerical instability.
  • The architecture uses a projected λ for each token and head to control context RMS, effectively eliminating attention sinks.
  • By maintaining KV head counts while doubling query heads, the model achieves performance gains without requiring custom attention kernels.

Why it matters

DIFF V2 addresses numerical instability and gradient spikes found in large-scale training while maintaining decoding speeds comparable to standard Transformers, offering a more robust alternative for high-learning-rate training regimes.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.