paper-with-me

홈 › Papers

Tailored-LLaMA: Optimizing Few-Shot Learning in Pruned LLaMA Models with Task-Specific Prompts

2024-10-24 · Danyal Aftab, Steven Davy

Large language models demonstrate impressive proficiency in language understanding and generation. Nonetheless, training these models from scratch, even the least complex billion-parameter variant demands significant computational resources rendering it economically impractical for many organizations. With large language models functioning as general-purpose task solvers, this paper investigates their task-specific fine-tuning. We employ task-specific datasets and prompts to fine-tune two pruned LLaMA models having 5 billion and 4 billion parameters. This process utilizes the pre-trained weights and focuses on a subset of weights using the LoRA method. One challenge in fine-tuning the LLaMA model is crafting a precise prompt tailored to the specific task. To address this, we propose a novel approach to fine-tune the LLaMA model under two primary constraints: task specificity and prompt effectiveness. Our approach, Tailored LLaMA initially employs structural pruning to reduce the model sizes from 7B to 5B and 4B parameters. Subsequently, it applies a carefully designed prompt specific to the task and utilizes the LoRA method to accelerate the fine-tuning process. Moreover, fine-tuning a model pruned by 50\% for less than one hour restores the mean accuracy of classification tasks to 95.68\% at a 20\% compression ratio and to 86.54\% at a 50\% compression ratio through few-shot learning with 50 shots. Our validation of Tailored LLaMA on these two pruned variants demonstrates that even when compressed to 50\%, the models maintain over 65\% of the baseline model accuracy in few-shot classification and generation tasks. These findings highlight the efficacy of our tailored approach in maintaining high performance with significantly reduced model sizes.

📄 PDF Abstract BibTeX arXiv:2410.19185

Code (0)

등록된 구현이 없습니다.

Tasks

Few-Shot LearningSpecificity

Methods 이 논문이 사용한 방법론

Pruning 설명 없음
LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

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…

Bypass Back-propagation: Optimization-based Structural Pruning for Large Language Models via Policy Gradient

2024-06-15 · Yuan Gao, Zujing Liu, Weizhong Zhang, Bo Du 외

In contrast to moderate-size neural network pruning, structural weight pruning on the Large-Language Models (LLMs) imposes a novel challenge on the efficiency of the pruning algorithms, due to the heavy computation/memor…

GPUNetwork Pruning

Efficient Shapley Value-based Non-Uniform Pruning of Large Language Models

2025-05-03 · Chuan Sun, Han Yu, Lizhen Cui, Xiaoxiao Li

Pruning large language models (LLMs) is a promising solution for reducing model sizes and computational complexity while preserving performance. Traditional layer-wise pruning methods often adopt a uniform sparsity appro…

Train Small, Infer Large: Memory-Efficient LoRA Training for Large Language Models

2025-02-19 · Jun Zhang, Jue Wang, Huan Li, Lidan Shou 외

Large Language Models (LLMs) have significantly advanced natural language processing with exceptional task generalization capabilities. Low-Rank Adaption (LoRA) offers a cost-effective fine-tuning solution, freezing the …

GPUQuantization

Lag-Llama: Towards Foundation Models for Probabilistic Time Series Forecasting

2023-10-12 · Kashif Rasul, Arjun Ashok, Andrew Robert Williams, Hena Ghonia 외

Over the past years, foundation models have caused a paradigm shift in machine learning due to their unprecedented capabilities for zero-shot and few-shot generalization. However, despite the success of foundation models…

DecoderProbabilistic Time Series ForecastingTime SeriesTime Series Forecasting+1