Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Large Language Models: A Survey

Large language model work is surveyed across families, methods, datasets and metrics

  • Problem Findings arrive within weeks, so teams struggle to pick a build recipe for their own tasks.
  • Method The authors trace LLMs through four waves, from n-gram models to Transformers, then sort techniques by where they apply.
  • Results On MATH, Galactica scored 20.4%, compared to 8.8% for PaLM 540B.

Why choosing an LLM recipe is hard

LLMs are the latest step in a long chain of language-modeling changes. The chain begins with n-gram models, which estimate a word's probability from the words just before it and need smoothing for unseen sequences. Neural language models later mapped words to embedding vectors, so that semantic similarity became a distance between vectors.

The authors group these changes into four waves, each with its own starting point and pace.

The difficulty is speed: findings and model releases arrive within weeks or months. Teams building LLM-powered systems therefore struggle to find the right recipe for their own tasks. The authors aim the survey at students, researchers and developers, and it covers architectures, training steps, augmentation and evaluation.

How Transformer LLMs gain general ability

The key change is self-attention, which lets every word weigh how much it influences each other word, all in parallel. Recurrent networks can't spread their computation across a sequence as widely, so Transformers train far more in parallel. That parallelism made very large pre-training runs on large text collections practical on GPUs.

Pre-training runs on unlabeled Web-scale text with a general objective such as word prediction. Fine-tuning then adapts the pre-trained model to one task using a small labeled set. LLMs push this recipe to tens to hundreds of billions of parameters, as in PaLM, LLaMA and GPT-4. Beyond size, the authors point to emergent abilities such as in-context learning, instruction following and multi-step reasoning, which smaller models lack.

Early Transformer models split into encoder-only, decoder-only and encoder-decoder families. BERT, an encoder-only model, pairs an embedding module with a stack of Transformer encoders and a fully connected output layer. It is pre-trained with masked language modeling and next sentence prediction, and then fine-tuned with a classifier layer.

RoBERTa keeps this family but changes training choices, such as dropping the next-sentence objective and using larger batches and learning rates.

Adapting models cheaply with LoRA

The key idea of LoRA is to freeze the pre-trained weight matrix and learn a low-rank update beside it. The method rests on an observation from prior work: the gap between fine-tuned and pre-trained weights often has low intrinsic rank, so a low-rank matrix can approximate it well. Because only the small update is trained, the technique is much faster and more memory-efficient, and the resulting weights come out at a few hundred MBs.

The rank \(r\) is much smaller than \(\min(d, k)\), so \(B\) and \(A\) hold far fewer parameters than the full matrix.

\(A\) starts from random Gaussian values and \(B\) starts from zero, so \(\Delta W = BA\) is zero when training begins. The update is then scaled by a factor built from a constant \(\alpha\) and the rank \(r\), as the paper writes it. In a Transformer, LoRA usually targets the attention matrices \(W_q\), \(W_k\), \(W_v\) and \(W_o\) and leaves the MLP modules frozen.

Cost can also be cut by shrinking the model, and knowledge distillation does this by training a smaller student from a larger model. The authors list response, feature and API distillation as three ways to transfer that knowledge. API distillation raises concerns because the teacher is often not openly available and its paid API limits how predictions may be used.

Quantization lowers weight precision to shrink a model and speed it up, and dynamic post-training quantization is slower than static because it computes its range at runtime.

Prompting for step-by-step reasoning

The main idea of Chain of Thought prompting is to make reasoning steps explicit rather than leaving them implicit. LLMs are strong at predicting tokens but aren't built for explicit reasoning, so the prompt guides them through the steps. The technique was introduced by Google researchers.

Zero-shot CoT asks the model to think step by step, with no worked examples. Manual CoT supplies hand-written step-by-step examples as templates, and the authors report it to be more effective than zero-shot CoT. Its drawback is that results depend on choosing diverse examples, and writing them by hand is error prone and hard to scale. That drawback is the motivation the survey gives for automatic CoT.

Tree of Thought branches into several thought trees, each one a different line of reasoning. Each branch is then assessed for validity and relevance, and the most coherent outcome is selected. The authors note this helps where a single line of reasoning may not suffice. The survey gives no dataset or score for the zero-shot versus manual comparison, so its support is a qualitative description.

What the reported numbers show

Galactica, trained on a large scientific corpus, scored 41.3% on mathematical MMLU, compared to 35.7% for Chinchilla. On MATH it scored 20.4%, compared to 8.8% for PaLM 540B. The two comparisons use different baselines, so each one checks Galactica against a different reference model. Read together, they show a gain on math tasks against those two baselines, not a general reasoning gain.

Their finding is that, for compute-optimal training, model size and training tokens should grow in equal proportion. They tested this with Chinchilla, a 70B model that uses the same compute as Gopher but is trained on 4% more data. The 4% is extra data relative to the Gopher setup, not a change in model size.

The largest GLaM has 1.2 trillion parameters, about 7x GPT-3, and used 1/3 of the energy needed to train GPT-3. The authors also report that it needs half the inference computation and performs better across 29 NLP tasks in zero, one and few-shot settings. RETRO conditions on retrieved chunks from a 2-trillion-token database and reaches performance comparable to GPT-3 and Jurassic-1 on the Pile with 25% fewer parameters.

Each of these efficiency numbers is attributed to the work that reports it, and the survey gives no shared protocol across them.

Where LLMs still fail

On their own, LLMs keep no memory, so they can't recall what was sent in an earlier prompt. They are stochastic, so the same prompt can produce different responses, although temperature can narrow the variation. They also hold stale information and can't reach external data, and their size means costly GPU machines and sometimes poor latency.

They split it into intrinsic hallucinations, which contradict the source material, and extrinsic ones, which can't be verified against it. What counts as the reference depends on the task, since dialogue uses world knowledge and summarization uses the input text. Instruct tuning and RLHF push outputs toward facts, but the probabilistic nature of LLMs remains.

This discussion gives no measured failure rates, only the authors' definitions and descriptions. Metric choice matters too: ROUGE and BLEU mainly capture intrinsic cases, while FactScore sums the accuracy of atomic facts with equal weight.

Paper info

Authors
Shervin Minaee, Tomas Mikolov, Narjes Nikzad, Meysam Chenaghlu, Richard Socher, Xavier Amatriain, Jianfeng Gao
Venue
arXiv · Preprint
First published
2024-2-9
Added
2026-11-12
Updated
2025-3-23
Version
v3
arXiv
2402.06196
Category
cs.CL · cs.AI
Original paper terms
CC BY 4.0
What we show
Paper info and commentary

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

Shervin Minaee, Tomas Mikolov, Narjes Nikzad, Meysam Chenaghlu, Richard Socher, Xavier Amatriain, Jianfeng Gao (2024). Large Language Models: A Survey. arXiv:2402.06196v3. https://arxiv.org/abs/2402.06196v3

BibTeX
@misc{minaee2024large,
  title = {{Large Language Models: A Survey}},
  author = {Shervin Minaee and Tomas Mikolov and Narjes Nikzad and Meysam Chenaghlu and Richard Socher and Xavier Amatriain and Jianfeng Gao},
  year = {2024},
  eprint = {2402.06196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.06196v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up