---
title: "Low-Rank Adaptation (LoRA) — 低ランク適応"
source: "https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C"
wiki: "systems-analysis.info/int"
article: "Low-Rank_Adaptation_(LoRA)_—_低ランク適応"
language: "ja"
categories:
  - "Category:Japanese"
  - "Category:Large language models"
  - "Category:Machine learning"
revision_id: 3939
wiki_created_at: 2026-09-06T23:28:14Z
wiki_modified_at: 2026-09-06T23:28:14Z
downloaded_at: 2026-09-07T22:59:48Z
---

# Low-Rank Adaptation (LoRA) — 低ランク適応

**Low-Rank Adaptation** (**LoRA**) は、パラメータ効率の良いファインチューニング（PEFT）手法であり、最小限の計算コストで大規模言語モデル (LLM) を新しいタスクに適応させることができます。この技術は、2021年に**エドワード・フー**（Edward Hu）とその同僚による論文で初めて発表されました<sup>[\[1\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-hu2021-1)</sup>。

LLaMAやGPTなどの大規模モデルの完全なファインチューニング（*full fine-tuning*）には膨大なリソースが必要であり、そのため、ほとんどの研究者や開発者にとってはアクセスが困難です。LoRAはこの問題を解決し、モデルのパラメータのごく一部のみをファインチューニングすることで、完全なファインチューニングに匹敵する高い品質とパフォーマンスを維持します<sup>[\[2\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-mao2024-2)</sup>。

## 動作原理

LoRAの基本的な考え方は、事前学習済みモデルの元の重みを変更せず、それに小さな「補正」行列を追加することです。巨大な重み行列 \`W\` を直接学習する代わりに、LoRAはその変化を2つの小さな低ランク行列の積として表現します。

形式的には、層の元の重み行列 \`W_0\` のサイズが \`d × k\` である場合、その更新は \`ΔW = BA\` として表されます。ここで、\`B\` は \`d × r\` 次元の行列、\`A\` は \`r × k\` 次元の行列です。ランク \`r\` はハイパーパラメータであり、\`d\` や \`k\` に比べて大幅に小さくなります（\`r \<\< d, k\`）。ファインチューニングの過程では、元の重み \`W_0\` は**凍結**され、行列 \`A\` と \`B\` のみが学習されます。最終的な重み行列は \`W = W_0 + BA\` として計算されます。

これにより、学習対象のパラメータ数を数千倍に削減できます。例えば、**GPT-3**（1750億パラメータ）のファインチューニングにおいて、LoRAは学習対象のパラメータ数を1万分の1に削減し、必要なGPUメモリを3分の1に減らします<sup>[\[1\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-hu2021-1)</sup>。

## 主な利点

- **リソースの節約**: 学習対象のパラメータ数が劇的に（90%以上）削減されるため、ビデオメモリ（VRAM）の消費量が大幅に減り、学習プロセスが高速化されます。
- **推論時の遅延なし**: 学習後、行列 \`B\` と \`A\` は、\`W = W_0 + BA\` を計算することで、元の重み行列 \`W_0\` に「マージ」できます。これにより、モデル使用時に追加の計算や遅延が発生しません<sup>[\[1\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-hu2021-1)</sup>。
- **モジュール性と迅速なタスク切り替え**: 学習済みのLoRAアダプタは、数メガバイト程度の小さなファイルです。これにより、異なるタスク用のアダプタを多数保存し、ベースモデルを変更することなく迅速に切り替えることが可能です<sup>[\[3\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-ibm_lora-3)</sup>。

## 制限と派生技術

LoRAは非常に効率的ですが、その低ランク性という性質は、大量の新しい情報を記憶する必要があるタスクにとっては制約となる可能性があります。この問題やその他の課題に対処するため、さまざまな派生技術が提案されています。

### QLoRA - 量子化低ランク適応

**QLoRA** (Quantized Low-Rank Adaptation) は、2023年に提案された最も人気のある派生技術の一つです。この手法は、LoRAとベースモデルの**4ビット量子化**を組み合わせたものです<sup>[\[4\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-dettmers2023-4)</sup>。これにより、メモリ要件がさらに削減され、数十億パラメータを持つモデル（例：65Bモデル）を単一のコンシューマ向けGPUでファインチューニングすることが可能になります。QLoRAを基に作成されたモデルの一つに**Guanaco**があり、これはChatGPTに匹敵する結果を示しました。

### その他の派生技術

- **MoRA** (High-Rank Updating): ランクの制約によりLoRAが十分な性能を発揮しないタスクのために提案されました。MoRAは、パラメータ効率を維持しつつ、高ランクの重み更新を可能にする手法を用いています<sup>[\[5\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-jiang2024-5)</sup>。

## 実装と応用

LoRA技術は、その効率性と統合の容易さから広く普及しました。その普及において中心的な役割を果たしたのは、**Hugging Face**社が提供する**PEFT** (Parameter-Efficient Fine-Tuning) ライブラリです。PEFTは、LoRAやその他のPEFT手法をTransformersエコシステムのモデルに適用するための統一されたインターフェースを提供します<sup>[\[6\]](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_note-hf_peft-6)</sup>。

LoRAは、主に以下の目的で活発に利用されています：

- チャットボットや対話システムの適応（例：LLaMA、Mistralのファインチューニング）。
- 特定分野におけるテキスト分類および生成モデルの構築。
- 特定のスタイルやデータ形式に合わせたモデルのパーソナライズ。

## 外部リンク

- <a href="https://huggingface.co/docs/peft/index" class="external text" rel="nofollow">Hugging FaceによるPEFTライブラリの公式ドキュメント</a>

## 参考文献

- Hu, E.J. et al. (2021). *LoRA: Low-Rank Adaptation of Large Language Models*. <a href="https://arxiv.org/abs/2106.09685" class="external text" rel="nofollow">arXiv:2106.09685</a>.
- Dettmers, T. et al. (2023). *QLoRA: Efficient Finetuning of Quantized LLMs*. <a href="https://arxiv.org/abs/2305.14314" class="external text" rel="nofollow">arXiv:2305.14314</a>.
- Zhang, Q. et al. (2023). *AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuning*. <a href="https://arxiv.org/abs/2303.10512" class="external text" rel="nofollow">arXiv:2303.10512</a>.
- Chen, Y. et al. (2023). *LongLoRA: Efficient Fine-Tuning of Long-Context Large Language Models*. <a href="https://arxiv.org/abs/2309.12307" class="external text" rel="nofollow">arXiv:2309.12307</a>.
- Mao, K. et al. (2024). *A Survey on LoRA of Large Language Models*. <a href="https://arxiv.org/abs/2407.11046" class="external text" rel="nofollow">arXiv:2407.11046</a>.
- Jiang, T. et al. (2024). *MoRA: High-Rank Updating for Parameter-Efficient Fine-Tuning*. <a href="https://arxiv.org/abs/2405.12130" class="external text" rel="nofollow">arXiv:2405.12130</a>.
- Liu, Z. et al. (2024). *ALoRA: Allocating Low-Rank Adaptation for Fine-Tuning Large Language Models*. <a href="https://arxiv.org/abs/2403.16187" class="external text" rel="nofollow">arXiv:2403.16187</a>.
- Liu, J. et al. (2025). *RoRA: Efficient Fine-Tuning of LLM with Reliability Optimization for Rank Adaptation*. <a href="https://arxiv.org/abs/2501.04315" class="external text" rel="nofollow">arXiv:2501.04315</a>.
- Albert, P. et al. (2025). *RandLoRA: Full-Rank Parameter-Efficient Fine-Tuning of Large Models*. <a href="https://arxiv.org/abs/2502.00987" class="external text" rel="nofollow">arXiv:2502.00987</a>.
- Tastan, N. et al. (2025). *LoFT: Low-Rank Adaptation That Behaves Like Full Fine-Tuning*. <a href="https://arxiv.org/abs/2505.21289" class="external text" rel="nofollow">arXiv:2505.21289</a>.

## 脚注

1.  <span id="cite_note-hu2021-1">↑ <sup>[1.0](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-hu2021_1-0)</sup> <sup>[1.1](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-hu2021_1-1)</sup> <sup>[1.2](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-hu2021_1-2)</sup> Hu, E.J., et al. «LoRA: Low-Rank Adaptation of Large Language Models». *arXiv:2106.09685*. <a href="https://arxiv.org/abs/2106.09685" class="external autonumber" rel="nofollow">[1]</a></span>
2.  <span id="cite_note-mao2024-2">[↑](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-mao2024_2-0) Mao, K., et al. «A Survey on LoRA of Large Language Models». *arXiv:2407.11046*. <a href="https://arxiv.org/abs/2407.11046" class="external autonumber" rel="nofollow">[2]</a></span>
3.  <span id="cite_note-ibm_lora-3">[↑](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-ibm_lora_3-0) Noble, Joshua. «What is LoRA (Low-Rank Adaption)?». *IBM Technology*. <a href="https://www.ibm.com/think/topics/lora" class="external autonumber" rel="nofollow">[3]</a></span>
4.  <span id="cite_note-dettmers2023-4">[↑](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-dettmers2023_4-0) Dettmers, T., et al. «QLoRA: Efficient Finetuning of Quantized LLMs». *arXiv:2305.14314*. <a href="https://arxiv.org/abs/2305.14314" class="external autonumber" rel="nofollow">[4]</a></span>
5.  <span id="cite_note-jiang2024-5">[↑](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-jiang2024_5-0) Jiang, Z., et al. «MoRA: High-Rank Updating for Parameter-Efficient Fine-Tuning». *arXiv:2405.12130*. <a href="https://arxiv.org/abs/2405.12130" class="external autonumber" rel="nofollow">[5]</a></span>
6.  <span id="cite_note-hf_peft-6">[↑](https://systems-analysis.info/int/Low-Rank_Adaptation_(LoRA)_%E2%80%94_%E4%BD%8E%E3%83%A9%E3%83%B3%E3%82%AF%E9%81%A9%E5%BF%9C#cite_ref-hf_peft_6-0) «LoRA (Low-Rank Adaptation)». *Hugging Face LLM Course*. <a href="https://huggingface.co/learn/llm-course/en/chapter11/4" class="external autonumber" rel="nofollow">[6]</a></span>
