# A Comprehensive Overview of Large Language Models

Large language models are surveyed across training, adaptation, compression, and reasoning

Humza Naveed, Asad Ullah Khan, Shi Qiu, Muhammad Saqib, Saeed Anwar, Muhammad Usman and 3 more · arXiv · 2023-7-12

- **Problem** Full fine-tuning and deployment of LLMs with tens to hundreds of billions of parameters is too costly for many users, since GPT-3 alone needs five 80GB A100 GPUs.
- **Method** The authors survey parameter-efficient tuning, quantization and pruning as ways to cut running costs.
- **Results** The survey maps the existing LLM literature into one reference that covers background and frontier topics.

## Why full fine-tuning and serving get expensive

The efficiency problem starts with model size, because adapting a model of GPT-3's scale by updating every weight is costly. Storing GPT-3 at 175B parameters in FP16 means five 80GB A100 GPUs and 350GB of memory. That gap makes the cost of large models hard to reach for smaller organizations, so cheaper adaptation and serving methods matter.

## Tuning a small set of added parameters

The core idea is to keep the pre-trained weights fixed and train only a small added component. Adapter tuning inserts a module that downscales the features, applies a non-linearity and upscales them back inside transformer blocks. LoRA takes a different route: it learns low-rank matrices beside frozen weights, then fuses them with the original weights at inference, so no extra latency is added.

Prompt tuning needs even less, training only 0.001%-3% additional parameters for the cited method. Manual prompts are brittle, since changing one word can drop performance, which is why trainable prompt parameters were introduced.

Compared with full fine-tuning, PEFT does better when data are scarce, roughly matches it at medium data, and does worse when data are plentiful. So the right choice depends on how much labeled data is available for the target task.

## Shrinking weights with quantization and pruning

Post-training quantization needs little or no extra training, and it aims to keep performance close to the original. SmoothQuant moves quantization difficulty from activations onto the weights by smoothing activations, which yields INT8 values. OPTQ quantizes a model layer by layer and updates the remaining weights to offset the error it introduces.

Quantization-aware training goes further by fine-tuning the quantized model to recover lost accuracy. QLoRA combines this with LoRA, fine-tuning a 4-bit quantized model through LoRA using a 4-bit normal float.

Wanda prunes weights in each row by importance, and it needs no fine-tuning of the pruned model afterwards. Structured pruning removes groups of parameters, which speeds up inference on hardware. LLM-Pruner, for example, identifies groups of hidden states, removes the less important ones, and then fine-tunes the result with LoRA.

## Code generation results from the cited works

Codex generates 100 program versions for each description by repeated sampling. The authors tie this to programming being iterative, since programs are often debugged and updated before they meet the requirements.

AlphaCode ranks in the top 54.3% among over 5000 competitors in simulated Codeforces competitions. Its model family spans 300M to 41B parameters and uses multi-query attention to reduce memory and cache costs.

The fine-tuned StarCoder variant outperforms PaLM, LLaMA and LAMDA on the HumanEval and MBPP benchmarks. StarCoder reaches a context length of 8k by employing Flash attention.

## Open problems: cost, hallucination and reasoning

Training LLMs needs large computational resources, which raises production costs and energy use. Gains from extra compute slow down, following a power law of diminishing returns, when model and dataset size are held fixed.

LLMs can produce hallucinations, which are responses that sound plausible but are incorrect or do not match the given information. The paper separates these into input-conflicting, context-conflicting and fact-conflicting hallucinations.

Reasoning and planning remain weak, because LLMs mainly generate text by likelihood and offer no solid guarantees on reasoning.

## Paper info

- **Authors**: Humza Naveed, Asad Ullah Khan, Shi Qiu, Muhammad Saqib, Saeed Anwar, Muhammad Usman, Naveed Akhtar, Nick Barnes, Ajmal Mian
- **Venue**: arXiv · Preprint
- **First published**: 2023-7-12
- **Added**: 2026-11-12
- **Updated**: 2024-10-17
- **Version**: v10
- **arXiv**: 2307.06435
- **Category**: cs.CL
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2307.06435v10) · [PDF ↗](https://arxiv.org/pdf/2307.06435v10)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Humza Naveed, Asad Ullah Khan, Shi Qiu, Muhammad Saqib, Saeed Anwar, Muhammad Usman, Naveed Akhtar, Nick Barnes, Ajmal Mian (2023). A Comprehensive Overview of Large Language Models. arXiv:2307.06435v10. https://arxiv.org/abs/2307.06435v10

**BibTeX**

```
@misc{naveed2023comprehensive,
  title = {{A Comprehensive Overview of Large Language Models}},
  author = {Humza Naveed and Asad Ullah Khan and Shi Qiu and Muhammad Saqib and Saeed Anwar and Muhammad Usman and Naveed Akhtar and Nick Barnes and Ajmal Mian},
  year = {2023},
  eprint = {2307.06435},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.06435v10}
}
```

## Other paper commentary

- [The Curious Case of Neural Text Degeneration](https://refivu.com/en/papers/71a193c3-9d38-4eb3-b0de-39d943c746b0-the-curious-case-of-neural-text-degeneration.md)
- [A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT](https://refivu.com/en/papers/188edd2a-83fb-45cc-adcf-4ddabef4e43b-a-prompt-pattern-catalog-to-enhance-prompt-engineering.md)
- [BLOOM: A 176B-Parameter Open-Access Multilingual Language Model](https://refivu.com/en/papers/e5a30d68-220d-4a9f-9cf2-26d76639a605-bloom-a-176b-parameter-open-access-multilingual-language.md)
- [The Pile: An 800GB Dataset of Diverse Text for Language Modeling](https://refivu.com/en/papers/1672f861-b9aa-408b-8aba-b2d5d642c8c9-the-pile-an-800gb-dataset-of-diverse-text.md)
- [Gemma 2: Improving Open Language Models at a Practical Size](https://refivu.com/en/papers/aaf9911d-9b96-4e9e-be15-d3cdb554211a-gemma-2-improving-open-language-models-at-a.md)
- [A Survey on Large Language Model based Autonomous Agents](https://refivu.com/en/papers/9d1600e9-9099-49ab-b9f8-7e2c2083c79f-a-survey-on-large-language-model-based-autonomous.md)
- [PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volume](https://refivu.com/en/papers/ad6f8625-4b03-4079-ad4e-a2126c614f62-pwc-net-cnns-for-optical-flow-using-pyramid.md)
- [CvT: Introducing Convolutions to Vision Transformers](https://refivu.com/en/papers/4d0c84cf-05bb-4f74-822e-0b8fbc635203-cvt-introducing-convolutions-to-vision-transformers.md)
- [Stable Video Diffusion: Scaling Latent Video Diffusion Models to Large Datasets](https://refivu.com/en/papers/82291bd9-5c41-4b81-bfde-a025a948f4b9-stable-video-diffusion-scaling-latent-video-diffusion-models.md)
- [Methods for Interpreting and Understanding Deep Neural Networks](https://refivu.com/en/papers/beae0f88-5d82-43a5-a727-e94025cff266-methods-for-interpreting-and-understanding-deep-neural.md)
- [VMamba: Visual State Space Model](https://refivu.com/en/papers/4032560e-3e65-4a0f-b564-34cb12bd1c92-vmamba-visual-state-space-model.md)
- [Learning Multi-Domain Convolutional Neural Networks for Visual Tracking](https://refivu.com/en/papers/5b8779fe-6230-4bef-9d38-11634c64c64a-learning-multi-domain-convolutional-neural-networks-for.md)

## Terms in this paper

- [Transformer](https://refivu.com/en/terms/48e8be2570bc-transformer)
- [self-attention](https://refivu.com/en/terms/426589b81077-self-attention)
- [LoRA](https://refivu.com/en/terms/bee764895c36-lora)
- [MMLU](https://refivu.com/en/terms/3036c0ba5adb-mmlu)
- [Large Language Models](https://refivu.com/en/terms/f2404476b183-large-language-models)
- [Codex](https://refivu.com/en/terms/1afc2735b086-codex)
- [RoPE](https://refivu.com/en/terms/e4cc5cfc6ebf-rope)
- [Pruning](https://refivu.com/en/terms/143c3e7dde1f-pruning)
- [Byte Pair Encoding (BPE)](https://refivu.com/en/terms/01ca65833b58-byte-pair-encoding-bpe)
- [hallucinations](https://refivu.com/en/terms/d409eeeeb3c7-hallucinations)
- [post-training quantization](https://refivu.com/en/terms/7a204ed53df1-post-training-quantization)
- [Quantization](https://refivu.com/en/terms/67ead3b2fe4e-quantization)
- [Quantization-Aware Training](https://refivu.com/en/terms/de119edf0c80-quantization-aware-training)
- [Tokenization](https://refivu.com/en/terms/a90afb6902b4-tokenization)
- [Adapter tuning](https://refivu.com/en/terms/07d96daa3c19-adapter-tuning)
- [ALiBi](https://refivu.com/en/terms/39fd00702695-alibi)
- [Mixture-of-Experts (MoE)](https://refivu.com/en/terms/2f85b581e2a0-mixture-of-experts-moe)
- [prompt tuning](https://refivu.com/en/terms/f130a9785756-prompt-tuning)
- [CodeGen](https://refivu.com/en/terms/155caa824153-codegen)
- [Galactica](https://refivu.com/en/terms/82bd6a866225-galactica)
- [LLM-Pruner](https://refivu.com/en/terms/7d7a24efd7ad-llm-pruner)
- [QLoRA](https://refivu.com/en/terms/242a88ee7f8c-qlora)
- [Wanda](https://refivu.com/en/terms/6edd023c4de6-wanda)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/4e2425c0-8669-49f7-80be-dd35ce0a70b2-a-comprehensive-overview-of-large-language-models)
