TL;DR
MicroScopiQ is a novel algorithm-architecture co-design that achieves ultra-low bit-width quantization (~2.36 bits) for foundational models without sacrificing accuracy. By intelligently pruning unimportant weights to make room for high-precision outlier bits, it maintains perfectly aligned memory and enables a simple, high-throughput hardware accelerator design.
What Problem Does This Paper Address?
Quantizing large foundational models (FMs) down to ultra-low precisions (like 2-bit or 4-bit) is an effective way to reduce their massive memory and energy footprints. However, FMs contain "outliers"—rare, large-magnitude weights and activations that are absolutely critical to the model’s accuracy.
Existing hardware-software co-design methods handle outliers in one of two flawed ways:
- High-precision separation: They keep outliers at full 16-bit precision and store them separately from low-precision inliers. This preserves accuracy but creates unaligned memory accesses and requires complex hardware.
- Forced low-precision: They force outliers into the same low bit-width as inliers using alternative data formats. This keeps memory aligned but severely degrades accuracy at ultra-low bit-widths. Furthermore, some of these methods rely on the rigid assumption that outliers are never adjacent to each other—an assumption that breaks down in modern models.
MicroScopiQ breaks this mutual exclusivity between accuracy and hardware efficiency.
Methods
MicroScopiQ introduces a unified post-training quantization (PTQ) framework that pairs structured pruning with outlier-aware quantization:
- The Bit-Borrowing Strategy: For a given block of weights, outliers are quantized at twice the precision of inliers (e.g., 4-bit vs. 2-bit). To maintain a strict, uniform bit-budget per block and ensure aligned memory, MicroScopiQ uses Hessian matrix information to identify and completely prune the least important inlier weights. The bits freed up by these pruned slots are then redistributed to store the lower-significant bits (LSBs) of the high-precision outliers.
- Microscaling (MX) Formats: The framework utilizes the Open Compute Project (OCP) Microscaling data format. Inliers are quantized using MX-INT, while outliers leverage MX-FP (floating-point) to exploit its higher dynamic range.
- Hardware Accelerator & ReCoN: Supporting split outlier bits across different physical locations can easily overwhelm standard processing elements (PEs). To solve this, the authors designed a homogeneous systolic array of simple INT-based PEs paired with a novel Redistribution and Coordination Network-on-Chip (ReCoN). ReCoN is a time-multiplexed butterfly network that intercepts the partial sums, reorders them based on a hardware-managed permutation list, and seamlessly reconstructs the floating-point outlier values without complicating the core compute engine.
Datasets
The authors evaluated MicroScopiQ across a diverse set of models and benchmarks:
- Large Language Models (LLMs): OPT, LLaMA-2, LLaMA-3, Phi-3, and Mixtral. Evaluated using WikiText2 for perplexity and downstream tasks like BoolQ, HellaSwag, PIQA, ARC-c, MMLU, and Winogrande.
- Vision-Language Models (VLMs): OpenFlamingo, VILA, and LlaVa, evaluated on COCO captioning, VQAv2, VizWiz, TextVQA, and GQA.
- Non-Transformer Models: CNNs (ResNet50, VGG16) and State Space Models (VMamba, Vim) evaluated on ImageNet.
- Calibration: 256 random samples from the PILE dataset were used for FM calibration.
Key Insights and Ideas
- Pruning for Budgeting, Not Just Compression: Traditionally, pruning is used to make models smaller by introducing sparsity. MicroScopiQ flips this concept: it uses pruning as a mechanism to balance a strict block-level bit-budget, acting as a "buffer" to absorb high-precision outlier bits.
- Adjacent Outliers Matter: The authors discovered that modern FMs exhibit a high density of contiguous outliers (>0.5% on average, peaking over 2%). Naive outlier-handling techniques that prune adjacent values to act as format identifiers suffer massive accuracy drops because they inadvertently destroy critical outlier data.
- Decoupling Routing from Compute: By pushing the complexity of outlier reconstruction into a specialized, time-multiplexed NoC (ReCoN), the main systolic array remains entirely homogeneous and hardware-efficient.
Key Results
- Ultra-Low Bit-width with High Accuracy: MicroScopiQ achieves state-of-the-art compression, bringing models down to an effective weight bit-width of ~2.36 bits with near-lossless accuracy. At W2A16 configurations, it outperforms competitive baselines like SDQ and OmniQuant, delivering up to a 2.04 decrease in perplexity on WikiText2.
- Massive Hardware Speedups: The MicroScopiQ hardware accelerator delivers up to 3× faster inference and 2× lower energy consumption compared to existing outlier-aware architectures like GOBO and OliVe.
- Superior Compute Density: It achieves a 2× higher compute density ($TOPS/mm^2$) than OliVe and 14× higher than GOBO due to its low compute overhead (only 8.63%).
Limitations and Future Work
- Calibration Dependency: As a PTQ method, MicroScopiQ relies on a small calibration dataset (e.g., 256 samples from the PILE). While effective, performance can still be sensitive to the choice of calibration data depending on the downstream target domain.
- Dynamic Activations: While the paper successfully mitigates activation outliers by migrating their difficulty to the weights (using a SmoothQuant-style approach), it does not directly apply the structured pruning/bit-redistribution mechanism to activations due to their highly dynamic, runtime-dependent nature. Extending this co-design to handle dynamic activation sparsity remains an open area for future research.
Summary updated