Abstract
This paper presents a case study of the architecture underlying modern Large Language Models (LLMs) and surveys the principal
techniques used to fine-tune them for downstream and domain-specific use. Beginning with the decoder-only Transformer—token and positional
embeddings, masked multi-head self-attention, position-wise feed-forward sublayers, residual connections and Layer Normalization—the paper classifies
fine-tuning approaches into full fine-tuning, parameter-efficient fine-tuning (PEFT) methods (LoRA, QLoRA, adapters, prompt/prefix tuning), and
alignment-oriented methods (instruction tuning, RLHF, RLAIF and DPO). The methods are compared on trainable-parameter footprint, memory
requirements and typical deployment scenarios, and an illustrative case of LoRA-based domain adaptation for medical text summarisation is analysed.
Practical applications in healthcare, legal analysis, customer support, software engineering, education, finance and scientific research are reviewed,
followed by a critical discussion of challenges including catastrophic forgetting, hallucination, bias, computational cost, privacy and evaluation difficulty.
The study is literature-based and does not report new experiments; it concludes with future directions in memory-efficient optimisation, higher-capacity
low-rank methods, federated fine-tuning, improved alignment and multimodal adaptation.