paper-with-me

홈 › Papers

The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models

2022-03-14 · Eldar Kurtic, Daniel Campos, Tuan Nguyen, Elias Frantar, Mark Kurtz, Benjamin Fineran, Michael Goin, Dan Alistarh

Transformer-based language models have become a key building block for natural language processing. While these models are extremely accurate, they can be too large and computationally intensive to run on standard deployments. A variety of compression methods, including distillation, quantization, structured and unstructured pruning are known to decrease model size and increase inference speed, with low accuracy loss. In this context, this paper's contributions are two-fold. We perform an in-depth study of the accuracy-compression trade-off for unstructured weight pruning of BERT models. We introduce Optimal BERT Surgeon (oBERT), an efficient and accurate weight pruning method based on approximate second-order information, which we show to yield state-of-the-art results in both stages of language tasks: pre-training and fine-tuning. Specifically, oBERT extends existing work on unstructured second-order pruning by allowing for pruning blocks of weights, and by being applicable at the BERT scale. Second, we investigate the impact of this pruning method when compounding compression approaches to obtain highly compressed but accurate models for deployment on edge devices. These models significantly push boundaries of the current state-of-the-art sparse BERT models with respect to all metrics: model size, inference speed and task accuracy. For example, relative to the dense BERT-base, we obtain 10x model size compression (in MB) with < 1% accuracy drop, 10x CPU-inference speedup with < 2% accuracy drop, and 29x CPU-inference speedup with < 7.5% accuracy drop. Our code, fully integrated with Transformers and SparseML, is available at https://github.com/neuralmagic/sparseml/tree/main/research/optimal_BERT_surgeon_oBERT.

📄 PDF Abstract BibTeX arXiv:2203.07259

Code (1)

neuralmagic/sparseml 공식 구현 pytorch

Tasks

CPUQuantization

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Pruning 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Attention 설명 없음
Residual Connection 설명 없음
Weight Decay 설명 없음

Similar Papers 제목 키워드 기반

SVD-Surgeon: Optimal Singular-Value Surgery for Large Language Model Compression

2026-06-22 · Mahmoud Safari, Frank Hutter arxiv

Large language models (LLMs) achieve remarkable performance across a wide range of tasks, but their deployment is constrained by substantial memory and compute requirements. Low-rank compression via singular value decomp…

Model Compression

The Iterative Optimal Brain Surgeon: Faster Sparse Recovery by Leveraging Second-Order Information

2024-08-30 · Diyuan Wu, Ionut-Vlad Modoranu, Mher Safaryan, Denis Kuznedelev 외

The rising footprint of machine learning has led to a focus on imposing \emph{model sparsity} as a means of reducing computational and memory costs. For deep neural networks (DNNs), the state-of-the-art accuracy-vs-spars…

HEMELB Acceleration and Visualization for Cerebral Aneurysms

2019-06-27 · Sahar Soheilian Esfahani, Xiaojun Zhai, Minsi Chen, Abbes Amira 외

A weakness in the wall of a cerebral artery causing a dilation or ballooning of the blood vessel is known as a cerebral aneurysm. Optimal treatment requires fast and accurate diagnosis of the aneurysm. HemeLB is a fluid …

GPU

Scalable and consistent embedding of probability measures into Hilbert spaces via measure quantization

2025-02-07 · Erell Gachon, Jérémie Bigot, Elsa Cazelles

This paper is focused on statistical learning from data that come as probability measures. In this setting, popular approaches consist in embedding such data into a Hilbert space with either Linearized Optimal Transport …

Quantization

States of confusion: Eye and Head tracking reveal surgeons' confusion during arthroscopic surgery

2021-06-11 · Benedikt Hosp, Myat Su Yin, Peter Haddawy, Ratthapoom Watcharporas 외

During arthroscopic surgeries, surgeons are faced with challenges like cognitive re-projection of the 2D screen output into the 3D operating site or navigation through highly similar tissue. Training of these cognitive p…

Diagnostic