AWQ's 1D Grid Search for Optimal Scaling
AWQ's calibration search optimizes scaling factors by performing a rapid grid search over a single hyperparameter, 'alpha' (typically 20 values between 0 and 1), minimizing reconstruction error on a small calibration dataset of around 128 samples.
The top 3
- AWQ's Accuracy Edge from 1D Scaling Optimization: AWQ's 1D grid search significantly enhances accuracy in low-bit LLMs by systematically finding optimal per-channel scaling factors. This process minimizes the reconstruction error of layer outputs, ensuring critical weights are preserved effectively, which allows AWQ to achieve up to 75% memory reduction with minimal accuracy degradation compared to FP16 models.
- 1D Grid Search: Balancing Speed and Precision: While general grid searches can be computationally intensive, AWQ's application of a 1D grid search for scaling factors offers an efficient balance. It exhaustively explores a targeted, continuous range for a single parameter, guaranteeing the optimal scale is found for minimal reconstruction error without the prohibitive cost of multi-dimensional hyperparameter tuning.
- Core Objective: Minimizing Layer Output Reconstruction Error: The fundamental goal of AWQ's 1D grid search is to minimize the layer-output reconstruction error on a small calibration dataset. This is achieved by evaluating various scaling factors and selecting the one that produces the least divergence (e.g., Mean Squared Error or Kullback-Leibler divergence) between the original and quantized layer outputs.
Sources
Open the full topic