BLAST: Block-Level Adaptive Structured Matrices for Efficient Deep Neural Network Inference

Changwoo Lee, Soo Min Kwon, Qing Qu, Hun-Seok Kim

Abstract

As foundation models like Llama-3 and Vision Transformers (ViT) grow in scale, their deployment on edge devices and mid-range GPUs becomes increasingly constrained by memory and computational requirements. While weight matrices in these models exhibit significant redundancy, existing compression techniques often face a trade-off between hardware efficiency and representational accuracy. This paper introduces BLAST (Block-Level Adaptive STructured) matrices, a novel framework that achieves high compression ratios and hardware-friendly execution by sharing basis vectors across blocks while maintaining block-specific diagonal scaling. BLAST demonstrates superior performance across vision, language, and generative tasks, offering up to a 2x compression ratio with minimal accuracy loss and significant real-world speedups on standard GPU hardware.

1. Introduction

The massive parameter counts of modern deep neural networks (DNNs) present a significant barrier to efficient inference. Traditional methods to mitigate this, such as low-rank decomposition (SVD) or sparse matrices, often fall into two categories: rigid structures that are fast on hardware but lack the flexibility to maintain model accuracy, and flexible structures that capture complex patterns but suffer from fragmented memory access patterns on GPUs.

BLAST addresses this "Goldilocks" problem by proposing a structured matrix factorization that is mathematically flexible enough to learn the underlying data distribution while remaining compatible with Batched Matrix Multiplication (BMM) for high-speed execution.

2. The BLAST Framework

The core innovation of BLAST lies in its block-level factorization. A weight matrix $A$ is partitioned into a grid of $b \times b$ blocks. Each individual block $A_{i,j}$ is represented as:

$$A_{i,j} = U_i S_{i,j} V_j^T$$

This structure incorporates two key design principles:

  • Factor Sharing: To minimize parameter count, $U_i$ is shared across all blocks in the same row, and $V_j$ is shared across all blocks in the same column. This global-local hybrid approach drastically reduces redundancy.
  • Adaptive Diagonal Scaling: Unlike standard low-rank methods, BLAST includes $S_{i,j}$, a small diagonal matrix unique to each block. This provides the necessary "adaptivity," allowing the model to emphasize specific features within different regions of the weight matrix.

2.1 Optimization and Training

BLAST supports both training from scratch and the compression of pre-trained models. For the latter, the authors introduce Preconditioned Gradient Descent (PrecGD). Standard gradient descent often struggles during compression if the target rank is not perfectly aligned with the original weight distribution. PrecGD makes the optimization process robust, enabling the discovery of high-quality factors even when the underlying rank is unknown.

3. Hardware-Algorithm Co-design

BLAST is specifically engineered for modern GPU architectures. By sharing the $U$ and $V$ factors, the computation can be grouped into large, efficient chunks using Batched Matrix Multiplication (BMM). This avoids the "fragmented" memory access common in sparse methods, ensuring that theoretical FLOP reductions translate into actual wall-clock time savings.

4. Experimental Results

The authors evaluated BLAST across a diverse set of benchmarks, including ImageNet-1k, WikiText, and various zero-shot reasoning tasks.

4.1 Vision and Generative Models

In Vision Transformers (ViT-Base) on ImageNet, BLAST achieved 79.3% accuracy, surpassing the dense baseline of 78.7% while utilizing only 27.8% of the FLOPs. In generative tasks using Diffusion Transformers (DiT), BLAST significantly outperformed standard SVD. At 50% compression, BLAST maintained a Fréchet Inception Distance (FID) of 10.45, whereas SVD-compressed models collapsed to an FID of 48.07, suffering from severe visual artifacts.

4.2 Large Language Models (LLMs)

When applied to Llama-7B, BLAST maintained higher accuracy on reasoning benchmarks (PIQA, HellaSwag, etc.) compared to Monarch or standard low-rank methods at 50% parameter compression. On an NVIDIA A100 GPU, this compression resulted in a 32% to 35% reduction in runtime during text generation.

5. Discussion and Limitations

While BLAST offers significant improvements, the matrix-vector product involves three sequential steps ($V$, then $S$, then $U$), which can slightly limit peak hardware utilization compared to a single dense operation. Additionally, the current implementation uses a uniform rank $r$ across all layers. Future work exploring adaptive rank allocation—assigning more parameters to critical layers—is expected to further enhance efficiency.

6. Conclusion

BLAST provides a powerful new tool for model compression, bridging the gap between structural rigidity and hardware efficiency. By combining shared basis vectors with block-specific scaling, it enables the deployment of high-performance foundation models on resource-constrained hardware without the typical performance penalties associated with aggressive compression.

Summary updated

BibTeX
@inproceedings{lee2024blast,
  author = {Changwoo Lee and Soo Min Kwon and Qing Qu and Hun-Seok Kim},
  title = {{BLAST: Block-Level Adaptive Structured Matrices for Efficient Deep Neural Network Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=n0arS0DDot},
}
Figure