In its global attention layers, Gemma 4 sets the Key and Value matrices to be identical, allowing only one to be stored in cache, which effectively halves memory requirements for those layers without significant quality impact.
Open the full topic