Fig. 5 | Scientific Reports

Fig. 5

From: Fine-tuned large language models with structured prompts enable efficient construction of lung cancer knowledge graphs

Fig. 5The alternative text for this image may have been generated using AI.

The mechanism of Low-Rank Adaptation (LoRA) for parameter-efficient fine-tuning. Instead of updating the original pretrained weights (W), LoRA introduces two small, low-rank matrices (A, B). The input (x) passes through both the frozen original path and the trainable “side branch” (AB). The outputs are then added together. Only matrices A and B are updated during training, drastically reducing the number of trainable parameters.

Back to article page