LoRA: Low-Rank Adaptation of Large Language Models

计算机科学 推论 变压器 适应(眼睛) 延迟(音频) 秩(图论) 语言模型 实施 并行计算 人工智能 程序设计语言 数学 电压 电信 物理 量子力学 组合数学 光学
作者
J. Edward Hu,Yelong Shen,Phillip Wallis,Zeyuan Allen-Zhu,Yuanzhi Li,Shean Wang,Wang, Lu,Chen, Weizhu
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:2415
标识
DOI:10.48550/arxiv.2106.09685
摘要

An important paradigm of natural language processing consists of large-scale pre-training on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example -- deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tuned with Adam, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times. LoRA performs on-par or better than fine-tuning in model quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, despite having fewer trainable parameters, a higher training throughput, and, unlike adapters, no additional inference latency. We also provide an empirical investigation into rank-deficiency in language model adaptation, which sheds light on the efficacy of LoRA. We release a package that facilitates the integration of LoRA with PyTorch models and provide our implementations and model checkpoints for RoBERTa, DeBERTa, and GPT-2 at https://github.com/microsoft/LoRA.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
sky发布了新的文献求助10
刚刚
sheg完成签到,获得积分10
3秒前
伶俐半芹完成签到 ,获得积分10
3秒前
燕子发布了新的文献求助10
4秒前
4秒前
科目三应助赵小胖采纳,获得30
5秒前
斯文馒头发布了新的文献求助10
5秒前
轻松含双完成签到,获得积分10
7秒前
lin完成签到,获得积分10
9秒前
修仙中应助签儿儿儿采纳,获得10
9秒前
22222关注了科研通微信公众号
10秒前
Leon完成签到,获得积分10
10秒前
dolphin完成签到,获得积分10
11秒前
11秒前
11秒前
隐形曼青应助豆腐鱼采纳,获得10
11秒前
我是老大应助绝尘采纳,获得10
13秒前
13秒前
13秒前
14秒前
李荣号发布了新的文献求助10
15秒前
guan完成签到,获得积分10
16秒前
旦堡发布了新的文献求助10
17秒前
18秒前
张张发布了新的文献求助30
18秒前
Sean发布了新的文献求助10
19秒前
虎王发布了新的文献求助10
20秒前
小庄庄庄完成签到,获得积分10
20秒前
千早爱音完成签到 ,获得积分10
20秒前
刘书章发布了新的文献求助10
21秒前
自由的问蕊完成签到,获得积分10
21秒前
haimianbaobao完成签到 ,获得积分0
21秒前
22秒前
此木完成签到,获得积分10
22秒前
23秒前
23秒前
吃了就会胖完成签到 ,获得积分10
25秒前
lvlv发布了新的文献求助10
26秒前
xiaobaiyang发布了新的文献求助100
26秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Principles of town planning: translating concepts to applications 1000
Navigating Normative Orders. Interdisciplinary Perspectives 800
1 Peter and Christ's Descent to the Dead in Its Early Christian Reception 700
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7740588
求助须知:如何正确求助?哪些是违规求助? 9289179
关于积分的说明 20194410
捐赠科研通 7318705
什么是DOI,文献DOI怎么找? 3306476
关于科研通互助平台的介绍 2458738
邀请新用户注册赠送积分活动 2316607