paper-with-me

Papers

Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning

2023-10-10 · Mengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi Chen

The popularity of LLaMA (Touvron et al., 2023a;b) and other recently emerged moderate-sized large language models (LLMs) highlights the potential of building smaller yet powerful LLMs. Regardless, the cost of training such models from scratch on trillions of tokens remains high. In this work, we study structured pruning as an effective means to develop smaller LLMs from pre-trained, larger models. Our approach employs two key techniques: (1) targeted structured pruning, which prunes a larger model to a specified target shape by removing layers, heads, and intermediate and hidden dimensions in an end-to-end manner, and (2) dynamic batch loading, which dynamically updates the composition of sampled data in each training batch based on varying losses across different domains. We demonstrate the efficacy of our approach by presenting the Sheared-LLaMA series, pruning the LLaMA2-7B model down to 1.3B and 2.7B parameters. Sheared-LLaMA models outperform state-of-the-art open-source models of equivalent sizes, such as Pythia, INCITE, OpenLLaMA and the concurrent TinyLlama models, on a wide range of downstream and instruction tuning evaluations, while requiring only 3% of compute compared to training such models from scratch. This work provides compelling evidence that leveraging existing LLMs with structured pruning is a far more cost-effective approach for building competitive small-scale LLMs

📄 PDF Abstract BibTeX arXiv:2310.06694

Code (2)

princeton-nlp/llm-shearing 공식 구현 pytorch
hexuandeng/drpruning pytorch

Tasks

Language ModelingLanguage ModellingQuestion AnsweringSentence Completion

Methods 이 논문이 사용한 방법론

Pythia Pythia is a suite of decoder-only autoregressive language models all trained on public data seen in the exact same order and ranging in size from 70M to 12B parameters. The…
Pruning 설명 없음

Similar Papers 제목 키워드 기반

DarwinLM: Evolutionary Structured Pruning of Large Language Models

2025-02-11 · Shengkun Tang, Oliver Sieberling, Eldar Kurtic, Zhiqiang Shen 외

Large Language Models (LLMs) have achieved significant success across various NLP tasks. However, their massive computational costs limit their widespread use, particularly in real-time applications. Structured pruning o…

Model Compression

Sneaking Syntax into Transformer Language Models with Tree Regularization

2024-11-28 · Ananjan Nandi, Christopher D. Manning, Shikhar Murty

While compositional accounts of human language understanding are based on a hierarchical tree-like process, neural models like transformers lack a direct inductive bias for such tree structures. Introducing syntactic ind…

Inductive Bias

RoRA: Efficient Fine-Tuning of LLM with Reliability Optimization for Rank Adaptation

2025-01-08 · Jun Liu, Zhenglun Kong, Peiyan Dong, Changdi Yang 외

Fine-tuning helps large language models (LLM) recover degraded information and enhance task performance. Although Low-Rank Adaptation (LoRA) is widely used and effective for fine-tuning, we have observed that its scaling…

Tactile Image-to-Image Disentanglement of Contact Geometry from Motion-Induced Shear

2021-09-08 · Anupam K. Gupta, Laurence Aitchison, Nathan F. Lepora

Robotic touch, particularly when using soft optical tactile sensors, suffers from distortion caused by motion-dependent shear. The manner in which the sensor contacts a stimulus is entangled with the tactile information …

DisentanglementObject Reconstruction

GQSA: Group Quantization and Sparsity for Accelerating Large Language Model Inference

2024-12-23 · Chao Zeng, Songwei Liu, Shu Yang, Fangmin Chen 외

With the rapid growth in the scale and complexity of large language models (LLMs), the costs of training and inference have risen substantially. Model compression has emerged as a mainstream solution to reduce memory usa…

GPULanguage ModelingLanguage ModellingLarge Language Model+2