encyclopegia.org

LoRA (machine learning)

LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning technique for large language models and other deep neural networks. Introduced in 2021 by researchers at Microsoft, LoRA enables adaptation of pre-trained models to specific tasks while requiring significantly fewer computational resources and trainable parameters than traditional full model fine-tuning.

LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning technique for large language models and other deep neural networks. Introduced in 2021 by researchers at Microsoft, LoRA enables adaptation of pre-trained models to specific tasks while requiring significantly fewer computational resources and trainable parameters than traditional full model fine-tuning. ==Background== The development of increasingly large language models in the late 2010s and early 2020s created substantial computational challenges. GPT-1, released in 2018 with 117 million parameters, cost less than $50,000 to train. GPT-2, released in 2019 with 1.5 billion parameters, required $40,000 to train. By 2020, GPT-3 scaled to 175 billion parameters, with training costs estimated between $500,000 and $4.6 million. Training consumed approximately 1,287 megawatt-hours of electricity. GPT-4, released in 2023, required over $100 million to train and consumed approximately 50 gigawatt-hours of energy using 25,000 Nvidia A100 GPUs running for 90 to 100 days. GPT-5, released in August 2025, required individual training runs costing over $500 million each, with total training costs estimated between $1.25 billion and $2.5 billion. This created a barrier where adapting such models to specific tasks through traditional fine-tuning became prohibitively expensive for most researchers and organizations. ==Purpose== LoRA works by decomposing weight update matrices into lower-rank representations. Rather than updating all parameters in a neural network during fine-tuning, LoRA freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture. This approach is grounded in linear algebra and exploits the hypothesis that weight updates during fine-tuning have low "intrinsic rank," meaning the changes can be effectively represented with fewer parameters than the full weight matrix. When applied to GPT-3, LoRA reduced trainable parameters by approximately 10,000 times (from 175 billion to roughly 18 million) and GPU memory requirements during training by 3 times (from 1.2 terabytes to 350 gigabytes). The technique applies broadly to any dense layers in deep learning models, though it has been most extensively studied in the context of large language models. After training, LoRA adapter weights can be merged with the base model weights, resulting in no additional inference latency during deployment. LoRA has been widely adopted in post-training workflows, including integration with preference optimization methods such as direct preference optimization (DPO). Its parameter-efficient variations, such as QLoRA, enable fine-tuning of 30-billion-parameter models on a single 24 GB consumer GPU. ==Uses== A primary use of LoRA is creating customized versions of large models at dramatically reduced cost. The adapter weights trained through LoRA can be folded back into the original base model, producing a new full-scale specialized model for a far lower cost than retraining the entire model. This allows organizations to create domain-specific versions of models like GPT-3 (175 billion parameters) while only bearing the computational cost of training a small adapter (18 million parameters), rather than the prohibitive expense of full model retraining. Once merged, the resulting model can achieve performance comparable to traditional fine-tuning while requiring a fraction of the resources to create. Alternatively, organizations can maintain a single base model alongside multiple small LoRA adapters, each specialized for different tasks or domains. For example, a 175 billion parameter base model could be paired with separate 18 million parameter adapters for customer service, legal analysis, and medical applications. This approach dramatically reduces storage requirements compared to maintaining multiple full-scale fine-tuned models, as each adapter requires less than one percent of the storage space of a complete model. LoRA also enables dynamic adapter swapping, where different adapters can be loaded and applied to the same base model without reloading the entire model into memory. This allows systems to switch between specialized tasks efficiently. Multiple adapters can also be combined by merging their weight updates, either with each other or with the base model, to create models with blended capabilities. LoRA has also been applied to program repair, with RepairLLaMA demonstrating that parameter-efficient fine-tuning with repair-specific code representations outperforms both full-parameter fine-tuning and general-purpose models such as GPT-4. ==References==

References

  1. RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair · retrieved 2026-06-16 · rev 1378611563
    Cite this reference

    MLA "RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair." Silva, André; Fang, Sen; Monperrus, Martin (2025). 2026-06-16. https://ieeexplore.ieee.org/document/11039501/. Accessed 25 November 2026.

    Chicago "RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair." Silva, André; Fang, Sen; Monperrus, Martin (2025). 2026-06-16. https://ieeexplore.ieee.org/document/11039501/.

    APA Silva, André; Fang, Sen; Monperrus, Martin (2025). (2026). RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair. Retrieved November 25, 2026, from https://ieeexplore.ieee.org/document/11039501/

  2. von Csefalvay, Chris (2026). Post-Training: A Practical Guide for AI Engineers and Developers . No Starch Press. pp. 23, 149– 152. ISBN 978-1-7185-0520-9 . Wikipedia revision 1378611563, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1378611563
    Cite this reference

    MLA "von Csefalvay, Chris (2026). Post-Training: A Practical Guide for AI Engineers and Developers . No Starch Press. pp. 23, 149– 152. ISBN 978-1-7185-0520-9 . Wikipedia revision 1378611563, retrieved 2026-11-18." von Csefalvay, Chris (2026). 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 25 November 2026.

    Chicago "von Csefalvay, Chris (2026). Post-Training: A Practical Guide for AI Engineers and Developers . No Starch Press. pp. 23, 149– 152. ISBN 978-1-7185-0520-9 . Wikipedia revision 1378611563, retrieved 2026-11-18." von Csefalvay, Chris (2026). 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA von Csefalvay, Chris (2026). (2026). von Csefalvay, Chris (2026). Post-Training: A Practical Guide for AI Engineers and Developers . No Starch Press. pp. 23, 149– 152. ISBN 978-1-7185-0520-9 . Wikipedia revision 1378611563, retrieved 2026-11-18. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  3. What is the cost of training large language models? · retrieved 2026-01-21 · rev 1378611563
    Cite this reference

    MLA "What is the cost of training large language models?." 2026-01-21. https://www.cudocompute.com/blog/what-is-the-cost-of-training-large-language-models. Accessed 25 November 2026.

    Chicago "What is the cost of training large language models?." 2026-01-21. https://www.cudocompute.com/blog/what-is-the-cost-of-training-large-language-models.

    APA encyclopegia.org. (2026). What is the cost of training large language models?. Retrieved November 25, 2026, from https://www.cudocompute.com/blog/what-is-the-cost-of-training-large-language-models

  4. All You Need to Know About GPT-5 & OpenAI's 2025 Roadmap · retrieved 2026-01-21 · rev 1378611563
    Cite this reference

    MLA "All You Need to Know About GPT-5 & OpenAI's 2025 Roadmap." 2026-01-21. https://felloai.com/2025/02/all-you-need-to-know-about-gpt-5-openais-2025-roadmap/. Accessed 25 November 2026.

    Chicago "All You Need to Know About GPT-5 & OpenAI's 2025 Roadmap." 2026-01-21. https://felloai.com/2025/02/all-you-need-to-know-about-gpt-5-openais-2025-roadmap/.

    APA encyclopegia.org. (2026). All You Need to Know About GPT-5 & OpenAI's 2025 Roadmap. Retrieved November 25, 2026, from https://felloai.com/2025/02/all-you-need-to-know-about-gpt-5-openais-2025-roadmap/

  5. The Cost of AI: Breakdown of Investments in Training, Infrastructure and More · retrieved 2026-01-21 · rev 1378611563
    Cite this reference

    MLA "The Cost of AI: Breakdown of Investments in Training, Infrastructure and More." 2026-01-21. https://www.forwardfuture.ai/p/the-cost-of-ai-breakdown-of-investments-in-training-infrastructure-and-more. Accessed 25 November 2026.

    Chicago "The Cost of AI: Breakdown of Investments in Training, Infrastructure and More." 2026-01-21. https://www.forwardfuture.ai/p/the-cost-of-ai-breakdown-of-investments-in-training-infrastructure-and-more.

    APA encyclopegia.org. (2026). The Cost of AI: Breakdown of Investments in Training, Infrastructure and More. Retrieved November 25, 2026, from https://www.forwardfuture.ai/p/the-cost-of-ai-breakdown-of-investments-in-training-infrastructure-and-more

  6. OpenAI GPT-5 is costing $500 Million per training run and still failing · retrieved 2026-01-21 · rev 1378611563
    Cite this reference

    MLA "OpenAI GPT-5 is costing $500 Million per training run and still failing." 2026-01-21. https://www.fanaticalfuturist.com/2025/05/openai-gpt-5-is-costing-500-million-per-training-run-and-still-failing/. Accessed 25 November 2026.

    Chicago "OpenAI GPT-5 is costing $500 Million per training run and still failing." 2026-01-21. https://www.fanaticalfuturist.com/2025/05/openai-gpt-5-is-costing-500-million-per-training-run-and-still-failing/.

    APA encyclopegia.org. (2026). OpenAI GPT-5 is costing $500 Million per training run and still failing. Retrieved November 25, 2026, from https://www.fanaticalfuturist.com/2025/05/openai-gpt-5-is-costing-500-million-per-training-run-and-still-failing/

  7. a b c d e f g h Hu, Edward J.; Shen, Yelong; Wallis, Phillip; Allen-Zhu, Zeyuan; Li, Yuanzhi; Wang, Shean; Wang, Lu; Chen, Weizhu (2022). LoRA: Low-Rank Adaptation of Large Language Models . International Conference on Learning Representations. Wikipedia revision 1378611563, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1378611563
    Cite this reference

    MLA "a b c d e f g h Hu, Edward J.; Shen, Yelong; Wallis, Phillip; Allen-Zhu, Zeyuan; Li, Yuanzhi; Wang, Shean; Wang, Lu; Chen, Weizhu (2022). LoRA: Low-Rank Adaptation of Large Language Models . International Conference on Learning Representations. Wikipedia revision 1378611563, retrieved 2026-11-18." a b c d e f g h Hu, Edward J. 2026-11-17. https://openreview.net/forum?id=nZeVKeeFYf9. Accessed 25 November 2026.

    Chicago "a b c d e f g h Hu, Edward J.; Shen, Yelong; Wallis, Phillip; Allen-Zhu, Zeyuan; Li, Yuanzhi; Wang, Shean; Wang, Lu; Chen, Weizhu (2022). LoRA: Low-Rank Adaptation of Large Language Models . International Conference on Learning Representations. Wikipedia revision 1378611563, retrieved 2026-11-18." a b c d e f g h Hu, Edward J. 2026-11-17. https://openreview.net/forum?id=nZeVKeeFYf9.

    APA a b c d e f g h Hu, Edward J. (2026). a b c d e f g h Hu, Edward J.; Shen, Yelong; Wallis, Phillip; Allen-Zhu, Zeyuan; Li, Yuanzhi; Wang, Shean; Wang, Lu; Chen, Weizhu (2022). LoRA: Low-Rank Adaptation of Large Language Models . International Conference on Learning Representations. Wikipedia revision 1378611563, retrieved 2026-11-18. Retrieved November 25, 2026, from https://openreview.net/forum?id=nZeVKeeFYf9

  8. What is LoRA (Low-Rank Adaption)? · retrieved 2026-01-21 · rev 1378611563
    Cite this reference

    MLA "What is LoRA (Low-Rank Adaption)?." a b "What is LoRA (Low-Rank Adaption)?". 2026-01-21. https://www.ibm.com/think/topics/lora. Accessed 25 November 2026.

    Chicago "What is LoRA (Low-Rank Adaption)?." a b "What is LoRA (Low-Rank Adaption)?". 2026-01-21. https://www.ibm.com/think/topics/lora.

    APA a b "What is LoRA (Low-Rank Adaption)?". (2026). What is LoRA (Low-Rank Adaption)?. Retrieved November 25, 2026, from https://www.ibm.com/think/topics/lora

  9. AI Cheat Sheet: Large Language Foundation Model Training Costs · retrieved 2026-01-21 · rev 1378611563
    Cite this reference

    MLA "AI Cheat Sheet: Large Language Foundation Model Training Costs." a b "AI Cheat Sheet: Large Language Foundation Model Training Costs". 2026-01-21. https://www.pymnts.com/artificial-intelligence-2/2025/ai-cheat-sheet-large-language-foundation-model-training-costs/. Accessed 25 November 2026.

    Chicago "AI Cheat Sheet: Large Language Foundation Model Training Costs." a b "AI Cheat Sheet: Large Language Foundation Model Training Costs". 2026-01-21. https://www.pymnts.com/artificial-intelligence-2/2025/ai-cheat-sheet-large-language-foundation-model-training-costs/.

    APA a b "AI Cheat Sheet: Large Language Foundation Model Training Costs". (2026). AI Cheat Sheet: Large Language Foundation Model Training Costs. Retrieved November 25, 2026, from https://www.pymnts.com/artificial-intelligence-2/2025/ai-cheat-sheet-large-language-foundation-model-training-costs/

  10. Optimization could cut the carbon footprint of AI training by up to 75% · retrieved 2026-01-21 · rev 1378611563
    Cite this reference

    MLA "Optimization could cut the carbon footprint of AI training by up to 75%." 2026-01-21. https://news.umich.edu/optimization-could-cut-the-carbon-footprint-of-ai-training-by-up-to-75/. Accessed 25 November 2026.

    Chicago "Optimization could cut the carbon footprint of AI training by up to 75%." 2026-01-21. https://news.umich.edu/optimization-could-cut-the-carbon-footprint-of-ai-training-by-up-to-75/.

    APA encyclopegia.org. (2026). Optimization could cut the carbon footprint of AI training by up to 75%. Retrieved November 25, 2026, from https://news.umich.edu/optimization-could-cut-the-carbon-footprint-of-ai-training-by-up-to-75/

  11. LoRA (machine learning) · retrieved 2026-10-20 · rev 1378611563
    Cite this reference

    MLA "LoRA (machine learning)." Wikipedia. 2026-10-20. https://en.wikipedia.org/w/index.php?oldid=1378611563. Accessed 25 November 2026.

    Chicago "LoRA (machine learning)." Wikipedia. 2026-10-20. https://en.wikipedia.org/w/index.php?oldid=1378611563.

    APA Wikipedia. (2026). LoRA (machine learning). Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378611563

Cite this article

MLA

"LoRA (machine learning)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/lora-machine-learning. Accessed 25 November 2026.

Chicago

"LoRA (machine learning)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/lora-machine-learning.

APA

encyclopegia.org. (2026). LoRA (machine learning). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/lora-machine-learning

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date2018Wikipedia
release date2019Wikipedia
release date2023Wikipedia
release date2025Wikipedia

Related articles

Internet Archive Wayback Machine

article · references available

automated teller machine

stub · references available

lazy learning

stub · references available

explanation-based learning

stub · references available

Z-machine

stub · references available

watch timing machine

stub · references available

deep learning

stub · references available

vending machine

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378611563 · 0.5 · snapshot enwiki-001378611563

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.