Skip to content

LLMs and Adjacent Concepts

At a glance undary clarification between large language models and NLP, deep learning, statistical language models, foundation models, agents, RAG systems, and AGI: who is a subset of whom, who is an application form of whom, and which "general intelligence" expectations actually fall short.

LLMs and Adjacent Concepts ​

One-sentence positioning: Large language models are a specific application form within the deep learning family, trained using language modeling as their paradigm. They inherit the full legacy of NLP, spawn new systems like agents and RAG, but their boundaries are far smaller than "artificial general intelligence." This paper places LLMs in a conceptual coordinate system and clarifies one by one "who contains whom, who depends on whom, and who is mistaken for whom."

I. Overview Table ​

ConceptIn one sentenceRelationship to LLMCommon misconception
Natural Language Processing (NLP)The research field of enabling machines to process human languageLLMs are the current dominant implementation method of NLPThinking "NLP = LLM," when NLP also includes tokenization, syntax, word embeddings, knowledge graphs, and more
Deep Learning (DL)A family of techniques using multi-layer neural networks for representation learningLLMs are one application form of deep learning on textThinking "deep learning = LLM," when DL also includes CNNs, RNNs, reinforcement learning agents, etc.
Statistical language modelEstimating text probability using statistical methods (n-gram, etc.)LLMs' direct ancestor — idea inherited, implementation upgradedThinking the two are unrelated, when "predicting the next word" shares a single lineage
Foundation ModelA large model pre-trained on massive data, adaptable to many tasks (including non-text)LLMs are the text branch of foundation models (there are also vision, multimodal, etc.)Treating "foundation model" as synonymous with LLM
AgentA system that uses an LLM as its brain, paired with tools and planning loopsLLMs are the core component/substrate of agentsThinking "using an LLM equals building an agent," when agents need orchestration, tools, and memory
RAG systemLLM + external retrieval, using retrieved results to assist generationRAG is an augmentation paradigm for LLMsThinking RAG is a different type of model, when it's actually a system built around an LLM
Artificial General Intelligence (AGI)General intelligence that reaches human-level performance on all tasksLLMs are one candidate route to AGI, far from AGI itselfEquating "ChatGPT is smart" with "AGI has been achieved"

A diagnostic tool

When concepts get confused, ask three questions: Is it a model or a system? Is it a family or an individual? What problem is it trying to solve? LLM = "model, individual, language task." Agent = "system, composed of LLMs, task execution." DL = "family, LLMs belong to it." AGI = "goal, not a specific product." After asking these three questions, most confusion dissolves automatically.

II. LLMs vs. Traditional NLP ​

1. Paradigm differences ​

Traditional NLP is "task decomposition + feature engineering": break language understanding into sub-tasks like tokenization, POS tagging, syntax parsing, named entity recognition — each task modeled separately with separate labeled data. LLMs are "unified paradigm + few-shot adaptation": one model, one pretraining objective, with downstream tasks handled via prompting, few-shot examples, or even zero-shot.

DimensionTraditional NLPLLM era
Task formOne model per taskOne model solves almost all text tasks
Data dependencyEach task needs a large amount of labeled dataPretraining uses unlabeled corpora; downstream needs little or no labeled data
Language unitWordToken (subword)
ContextLocal features (window, syntax tree)Long context + attention
Representative methodsCRF, SVM, LSTM+Attention, BERT fine-tuningGenerative pretraining + prompting/alignment
Upgrade methodChange model, add featuresAdd data, add parameters, change prompts

Traditional NLP's achievements haven't been discarded — they've been absorbed into the "implicit knowledge" of LLMs. Most post-training LLMs have internalized capabilities like tokenization, syntax, and entity recognition. Independent traditional NLP work mainly persists in three scenarios: resource-scarce languages, tasks requiring precise structured output (table extraction, information retrieval ranking), and scenarios with hard interpretability requirements.

A concrete example illustrates the difference. Named entity recognition (NER) is a classic sequence labeling task in traditional NLP: using BIO tags to mark "John went to New York yesterday" as "John=person, New York=location," requiring dedicated labeled data and models. An LLM's approach is to simply ask: "Extract person names and locations from this sentence," and the model gives an answer in seconds, with zero-shot adaptation to new entity types. The tradeoff: traditional methods are stable, controllable, and cheap; LLMs are flexible, general-purpose, but occasionally drift. Production systems often pair them as "LLM baseline + rules/small models as fallback."

2. Why "LLM became the synonym for NLP in the 2020s" ​

One noteworthy phenomenon: after 2020, the submission topics at major NLP conferences (ACL, EMNLP, NAACL), industrial job positions, and academic hiring have been almost entirely dominated by LLMs. There are three reasons:

  1. Capability coverage: LLMs have matched or exceeded dedicated models on most language tasks, replacing the old task-by-task checklist with "one model eats all."
  2. Engineering unification: Teams only need to maintain one "data + pretraining + alignment + inference" pipeline, rather than maintaining separate labeling and model systems for each task (compare with the lifecycle in Overall Architecture Anatomy).
  3. Talent market: Job titles shifted from "NLP engineer" to "large model algorithm engineer." The skill tree moved from "feature engineering" to "prompting, fine-tuning, evaluation, RAG/Agent orchestration." See Careers & JD.

Be careful with wording

"Saying 'LLM replaced NLP' is an exaggeration. More accurately: LLM replaced most of NLP's application-layer implementations, but NLP as a discipline studying the nature of language (language structure, semantics, pragmatics, multilingual, low-resource) still exists independently — only its outputs now mostly appear in the form of "providing data, evaluation, and constraints for LLMs."

III. LLMs vs. Deep Learning ​

1. Deep learning is a much larger family ​

Deep learning (DL) is a family of techniques using multi-layer neural networks to automatically learn representations from data. Its members include:

DL branchRepresentativeProcessing target
Convolutional networks (CNN)ResNet, EfficientNetImages, video, audio
Recurrent networks (RNN/LSTM/GRU)Early machine translation, speech recognitionSequential data
TransformerGPT, BERT, Llama, Vision TransformerPrimarily text, extended to vision/audio/multimodal
Generative modelsGAN, diffusion models (Stable Diffusion)Image and audio generation
Reinforcement learning (RL)AlphaGo, PPO in RLHFDecision sequences

LLMs are one application form of deep learning: they use deep learning's tools (neural networks, backpropagation, large-scale distributed training), but they have their own paradigm characteristics — pretrained language modeling + alignment. Conversely, most of deep learning has nothing to do with LLMs: image classification, object detection, speech synthesis, recommendation systems, and RL gaming are not LLMs.

text
Artificial Intelligence (AI)
└─ Machine Learning (ML)
   ├─ Traditional methods: decision trees, SVM, Bayesian
   └─ Deep Learning (DL)
      ├─ CNN → vision
      ├─ RNN → sequence
      ├─ Transformer
      │  ├─ Text pretraining → Large Language Models (LLMs) ★ This book's topic
      │  ├─ Vision Transformer (ViT) → vision
      │  └─ Multimodal Transformer → multimodal large models
      ├─ Diffusion models → image generation
      └─ Reinforcement learning → games, control

2. An easily overlooked inheritance point ​

Almost all of an LLM's "underlying muscle" comes from deep learning's historical accumulation: backpropagation (1980s), word embeddings (2013 Word2Vec), attention mechanism (2014 introduced to machine translation), residual connections and batch normalization (2015 ResNet), sequence modeling (LSTM). LLMs are not an exception to DL; they are the culmination of DL in the direction of "language modeling + ultra-large scale." Understanding this explains why many deep learning-era techniques (learning rate scheduling, gradient clipping, distributed parallelism) are reused intact in large model training. See Pretraining.

IV. LLMs vs. Statistical Language Models ​

Statistical language models are the direct ancestors of LLMs. Both share the same core goal: estimating the probability of a text sequence. The difference is in implementation and scale:

DimensionStatistical language model (n-gram, etc.)Neural language model / LLM
Probability sourceCount frequency of n-grams in corpusNeural network's prediction of the next token
GeneralizationUnseen n-grams get zero probability (needs smoothing)Words share representations in vector space, enabling generalization
Context lengthn (usually ≤ 5)Thousands to hundreds of thousands of tokens
ParametersCount table of vocabulary × nBillions to hundreds of billions
Core capabilityLocal co-occurrence statisticsCompress world knowledge through the surrogate task of next-word prediction

The "predicting the next word" idea of statistical language models is fully inherited by LLMs, which is the continuity repeatedly emphasized in Language Modeling and Brief History. The difference is simply: statistical models are "counting," neural models are "understanding" — the former memorizes co-occurrence frequencies, the latter compresses those frequencies into composable knowledge representations.

V. LLMs vs. Foundation Models ​

"Foundation model" is a concept proposed by the Stanford team in the 2021 paper On the Opportunities and Risks of Foundation Models: models pre-trained on massive data that can serve as starting points for countless downstream tasks. Its relationship with LLMs is genus-species:

text
Foundation Models
├─ Text: Large Language Models (LLMs) — GPT, Llama, Qwen, DeepSeek
├─ Vision: CLIP, SAM, Vision Transformers
├─ Audio: Speech recognition/generation foundation models
├─ Code: Codex, CodeLlama (usually also counted as LLM variants)
└─ Multimodal: GPT-4o, Gemini, LLaVA (see [Multimodal LLMs](/case-studies/multimodal-llm))

Key distinction: foundation models are "capability suppliers" (providing general-purpose representations and generation), while LLMs are the most mature branch among them, with language as the core. In everyday speech, the two are often used interchangeably ("foundation model company" usually means an LLM company), but in rigorous discussion, just remember "LLM ⊂ foundation model." The three shared features of foundation models — pretraining, scale, and adaptability — are the source of the "key components" in What Is a Large Language Model.

VI. LLMs vs. Agents: LLM + Tools = Agent System Substrate ​

This is the most error-prone point in concept clarification: LLMs and agents are not at the same level.

  • An LLM is a model: It takes text in and outputs text. It has no "action" capability — it can't browse the web, call APIs, or log actions (unless simulating via text).
  • An agent is a system: It uses an LLM as its "brain," with external tools (function calling), memory, and planning loops, forming a "perceive → think → act → observe" closed loop.
text
Typical agent loop (ReAct pattern):

User request ──→ LLM (brain) ──→ Decide to call a tool
                ↑                     │
                │              Tool execution (search/code/API)
                │                     │
                └── Observe results ──┘
              (Feed tool output back to the LLM, continue reasoning)
DimensionLLMLLM-based Agent
EssenceSingle modelModel + tools + memory + control loop
Can it act?Only outputs textCan call external tools, perform actions
Stateful?No (each call independent)Yes (has memory: conversation history / long-term memory)
Error impactWrong outputWrong actions, potentially cascading consequences
RepresentativeGPT-4, LlamaAutoGPT, Devin, Manus, etc.

One-line memory trick

"LLMs are the brain; agents are brain + hands + feet + notepad." Without an LLM, an agent has no reasoning core; without tools and loops, an LLM is just a talking model. The full expansion of agents is at Agents with LLMs; its boundary with an "agent handbook," risks (prompt injection, runaway behavior, cost) are specifically addressed on that page.

VII. LLMs vs. RAG Systems ​

RAG (Retrieval-Augmented Generation) is a system paradigm built around LLMs, not a different type of model: it combines an LLM's generation capability with an external knowledge base's retrieval capability.

text
RAG flow (simplified):
User question ──→ Retriever: Find relevant passages from the knowledge base / vector store
                    │
                    └──→ Prompt assembly: question + relevant passages ──→ LLM ──→ Answer with evidence
DimensionBare LLMRAG system
Knowledge sourceStatic knowledge learned during pretrainingDynamically injected external documents / databases
Knowledge timelinessBefore the training cutoff dateIndex can be updated at any time
TraceabilityHard (don't know where knowledge came from)Can provide retrieval basis (cited sources)
Hallucination mitigationLimitedSignificant (answers constrained by retrieved content)
Best forGeneral Q&A, creative writingPrivate knowledge, real-time info, citation-required scenarios

Key clarification: RAG does not change the LLM itself (model weights stay the same). It changes "what input you feed the model." It's a complementary adaptation route to fine-tuning (changing the model). Trade-offs are detailed in RAG and the "long context vs. RAG" trade-off in Context and Long Contexts.

VIII. LLMs vs. AGI: Why "LLM ≠ General Intelligence" ​

This is the most important and most easily derailing clarification. AGI (Artificial General Intelligence) refers to general intelligence that reaches or exceeds human-level performance on all cognitive tasks. LLMs still have multiple structural distances from it:

DimensionLLM statusAGI requirementsGap
Task scopePrimarily language, extending to multimodalLanguage + perception + action + planning + social…Large (see boundaries in Multimodal LLMs)
World model"Shadow world" implicitly captured in language statisticsReal causal modeling of the physical worldLarge
Learning methodOne-time pretraining + limited continual learningLifelong learning, sample-efficientLarge
Initiative and goalsNo intrinsic goals, only "follows instructions"Self-set and pursue goalsLarge
ReliabilityHallucination, instability, uncalibrated confidenceHighly reliable, verifiableLarge
AlignmentHelpfulness/honesty/safety still require manual tuningInternalized value alignmentUnsolved

Why the illusion that "LLMs are close to AGI"?

Because language is the largest carrier of human thought, a model that excels at language and can connect tools easily creates the illusion that "it has thoughts." But fluent language ≠ understanding (a model can perfectly simulate viewpoints without holding them), and task versatility ≠ generality (it's "pattern matching under sample coverage," not "adaptive intelligence for any novel task"). Treating LLM capabilities as a precursor to AGI is reasonable optimism; treating them as AGI already achieved is a dangerous misjudgment — see Safety and Risks for safety implications.

IX. Why LLMs Became the Synonym for NLP in the 2020s ​

To close the loop on the opening observation: LLMs "took over" NLP in the 2020s not because they eliminated NLP's problems, but because they provided a unified, scalable solution path — pretraining + alignment + prompt adaptation. This path's three advantages (broad capability coverage, engineering unification, talent and ecosystem concentration) overwhelmed the traditional "task-specific model" route. But this doesn't mean the boundaries disappear:

  • At the system level, LLMs are just a component — agents, RAG, evaluation, and deployment are all complete engineering efforts themselves. See Overall Architecture Anatomy.
  • At the research level, NLP's open problems (low-resource languages, long documents, faithfulness, interpretability) have not disappeared; they've become new challenges of the LLM era. See Frontier Progress.
  • At the capability level, the gap between LLMs and AGI isn't just "make it a bit bigger." It's a qualitative leap in learning methods, world models, and reliability.

A closing diagram

DL ⊃ Transformer ⊃ LLM ⊂ foundation model; LLMs are NLP's dominant implementation; LLM + tools + memory = agent substrate; LLM + retrieval = RAG system; LLMs are one candidate route to AGI. Remember these four sentences, and your conceptual coordinate system is set.

X. Comprehensive Test: Ten Scenarios ​

Ground the clarification in scenarios. Test whether you've truly distinguished these concepts. First, decide for each scenario which category it belongs to and what technology to use, then check the answer:

ScenarioCorrect classificationCriterion
Build a sentiment analysis APINLP task, can use LLM prompting or a dedicated small modelThe task definition is NLP; implementation can take many forms
Use BERT for text vector retrievalEncoder model, belongs to deep learning, not LLM (no generation capability)Look at architecture and training objective, not just "depth"
Let the model search the web and answerRAG or Agent (LLM + retrieval/tools)External actions = system, not a bare model
Let the model plan tasks and operate software autonomouslyAgentPlanning loop and tool execution
Judge "whether models will eventually surpass humans"AGI discussionInvolves definitions of general intelligence, not a specific engineering task
Use n-gram to analyze textStatistical language modelCount frequency, no neural network
Fine-tune Llama for legal Q&ALLM + fine-tuningThe model itself is an LLM; fine-tuning is the adaptation method
Joint Q&A on images + textMultimodal foundation modelBeyond pure LLM; see Multimodal LLMs
Conversational bot (no external tools)LLM (conversational form)No external actions; still a model application
Company says it's a "foundation model company"Foundation model / LLM vendorGenus-species relationship; colloquial interchangeability is normal

The takeaway: most scenarios are not "either LLM or something else," but "which layer is LLM at, and what system is it paired with." Being able to accurately say "this scenario = LLM + some system" means you've graduated from concept clarification.

Further Reading ​

References ​