🤖 AI Summary
To address high memory consumption and computational overhead in large language model (LLM) inference, this paper proposes Thanos—a hardware-friendly, block-wise structured pruning algorithm. Methodologically, Thanos introduces the first adaptive block-level masking mechanism, enabling dynamic *n:m* sparsity patterns while preserving weight block locality, fine-grained importance awareness, and hardware-aligned sparse structure generation. It integrates block-wise sparsity modeling, adaptive importance estimation, and hardware-aware optimization to balance flexibility and deployment efficiency. Experimental results demonstrate that Thanos achieves state-of-the-art performance among structured pruning methods across multiple LLMs, with significantly lower accuracy degradation than existing structured approaches—and even outperforms mainstream unstructured pruning techniques. On typical GPUs, it delivers up to 2.3× inference speedup and 45% reduction in GPU memory usage.
📝 Abstract
This paper presents Thanos, a novel weight-pruning algorithm designed to reduce the memory footprint and enhance the computational efficiency of large language models (LLMs) by removing redundant weights while maintaining accuracy. Thanos introduces a block-wise pruning strategy with adaptive masks that dynamically adjust to weight importance, enabling flexible sparsity patterns and structured formats, such as $n:m$ sparsity, optimized for hardware acceleration. Experimental evaluations demonstrate that Thanos achieves state-of-the-art performance in structured pruning and outperforms existing methods in unstructured pruning. By providing an efficient and adaptable approach to model compression, Thanos offers a practical solution for deploying large models in resource-constrained environments.