This paper introduces ZOQO, a method for training quantized models using zero-order optimization, reducing computational and memory needs. This is achieved by using quantized noise and a scaled learning rate, keeping all operations within a quantized format.
-----
https://arxiv.org/abs/2501.06736
Original Problem π€:
β Training large models like LLMs requires high computational and memory resources.
β Existing quantization methods often still rely on full-precision gradient calculations.
-----
Solution in this Paper π‘:
β ZOQO combines zero-order optimization with quantized training.
β It uses quantized noise for gradient sign estimation.
β It adjusts the learning rate to maintain quantized parameters.
β All operations, including updates, are performed in a quantized format.
-----
Key Insights from this Paper π¨βπ:
β ZOQO eliminates the need for full-precision calculations in both gradients and parameter updates.
β This reduces the computational burden and memory footprint, suitable for resource-constrained environments.
β Despite the inherent limitations of quantized and zero-order training, ZOQO achieves competitive performance.
-----
Results β¨:
β On black-box adversarial attacks, ZOQO's failure rates are comparable to full-precision methods on quantized models.
β For LLM fine-tuning with LoRA on SST2, ZOQO maintains non-trivial performance even with aggressive quantization (64.34% accuracy with 4-bit quantization).
β Memory peak usage during a single model update was 371.21 MB for ZOQO compared to 903.71 MB for full-precision and 583.83 MB for quantization-aware training.










