Gemma's QAT: Near Original Quality at 4-bit

Google DeepMind's Quantization-Aware Training (QAT) for Gemma 4 integrates 4-bit quantization directly into training, allowing models like the 31B variant to reduce VRAM by ~66-72% while preserving nearly BF16 performance, unlike traditional post-training methods.

The top 3

  1. Gemma's 4-bit QAT Outperforms Post-Training Quantization: Gemma's Quantization-Aware Training (QAT) integrates quantization directly into the training process, significantly reducing quality degradation compared to standard Post-Training Quantization (PTQ) at 4-bit. For instance, Gemma 3 QAT reduced the Q4_0 perplexity drop by 54% in llama.cpp evaluations. This method helps maintain model performance, leading to better quality and fewer errors in complex tasks like code generation.
  2. Gemma's Mobile QAT Schema: 2-bit Layers for Edge Devices: Gemma 4 QAT introduces a specialized "Mobile Optimized Quantization Schema" to enhance execution on edge hardware. This schema utilizes techniques like static activations, channel-wise quantization, and targeted 2-bit compression for token generation layers while maintaining higher precision in core reasoning layers. This enables models such as Gemma 4 E2B to operate efficiently with approximately 1GB of memory.
  3. 72% RAM Reduction, 2x Faster Inference on Edge Devices: Gemma 4 QAT models achieve a remarkable 72% reduction in memory footprint and deliver up to 2x faster inference speeds on mobile-class NPUs compared to their BF16 full-precision counterparts. This significant optimization enables larger models, such as Gemma 4 26B-A4B, to run locally on consumer GPUs with as little as 16GB of RAM, making advanced AI more accessible on everyday devices.

Sources

Open the full topic