Types of LLM 7 Categories With Examples and How to Choose

Ask ten people to explain the types of large language models (LLMs), and you may get ten different answers. One lists model families such as GPT, Gemini and Claude. Another compares open-weight and proprietary models. Someone else distinguishes chat models from reasoning models. Each answer describes a different dimension.
Table of contents
This guide separates those dimensions so you can compare models without mixing up architecture, access, behavior, size and input capabilities. You will learn what each category is useful for, where its trade-offs appear, and how to evaluate candidates against your own tasks. A practical 20-task scorecard at the end helps turn the shortlist into a decision.
Key takeaways
- “Type” is not a single label. A model can be described across several dimensions, including architecture, access, behavior, size and input.
- Decoder-only models are commonly used for generation; encoder-only models are useful for classification and representation tasks; encoder-decoder models handle text-to-text transformations.
- Open-weight and proprietary models differ in control, deployment responsibility and licensing. Performance varies by model and task, so avoid broad claims without a dated, comparable benchmark.
- A benchmark result applies to the tasks and conditions tested. Evaluate candidate models on representative examples from your own workflow.
- Start with the cheapest model that could work and upgrade only where it fails.
Quick Answer: What Are the Main Types of LLMs?
A large language model (LLM) is a neural network trained to model and generate language. Many modern systems also process code, images, audio or other inputs. LLMs can be grouped along several dimensions:
- By architecture: decoder-only, encoder-only, encoder-decoder (plus mixture-of-experts variants)
- By access: proprietary, open-weight, fully open-source
- By behavior: base, instruction-tuned (chat), and reasoning models
- By size: large models and small language models (SLMs)
- By input: text-only and multimodal
- By focus: general-purpose and domain-specific
- By knowledge source: standalone, or retrieval-augmented (RAG) and tool-using systems
These categories overlap rather than compete. A model may be decoder-only, open-weight, multimodal and reasoning-capable at the same time. Use the dimensions as a checklist, not as mutually exclusive boxes.

The five dials that help compare LLMs: architecture, access, behavior, size and input
Why “Type” Is Confusing (and a Better Mental Model)
Many guides mix up model families (such as GPT, Gemini and Claude), architectures (how a model processes information), and deployment choices (such as hosted or self-hosted). These labels answer different questions. Understanding the distinction helps you shortlist models based on the work they need to do, rather than choosing by name alone.
Start with the task and constraints. Then compare architecture, access, behavior, size and input capabilities. Treat the categories as a starting point; validate the final choice with real examples.
Architecture: Decoder-Only, Encoder-Only and Encoder-Decoder
The Transformer architecture, introduced in the 2017 paper “Attention Is All You Need,” underpins many modern language models. Encoder-only, decoder-only and encoder-decoder designs use Transformer components in different ways.
1. Decoder-Only (Autoregressive) Models
Decoder-only models generate sequences by predicting the next token from the preceding context. They are widely used for writing, conversation, coding, summarization and general-purpose assistants. Exact architecture varies by model, so verify technical details in the model card or provider documentation.
- Best for: writing, conversation, coding, summarization and general assistants.
- They can produce fluent but incorrect or unsupported statements. For factual tasks, use source retrieval, citations where available, and human or automated verification.
This is the type most people mean when they say “LLM” today.
2. Encoder-Only (Masked) Models
Encoder-only models such as BERT and RoBERTa build contextual representations of input text, commonly using masked-language-model training. They are useful for classification, semantic matching, entity recognition, search relevance and sentiment analysis, but are not designed primarily for open-ended text generation.
- Best for: classification, search relevance, entity recognition, spam filtering, sentiment analysis.
- Watch out for: they are not chatbots. You would not ask BERT to draft a newsletter.
These models remain useful for focused tasks where compact representations, predictable labels or efficient inference matter more than generating long responses.
3. Encoder-Decoder (Sequence-to-Sequence) Models
Encoder-decoder models such as T5 use an encoder to represent the input and a decoder to generate an output. This sequence-to-sequence design is useful for translation, summarization and other text transformation tasks.
- Best for: translation, summarization, rewriting.
- Suitability depends on the specific model and workload. Compare output quality, latency, cost and deployment requirements rather than assuming one architecture always wins.
Dense vs. Mixture-of-Experts (MoE)
Dense and mixture-of-experts (MoE) describe different ways of using model parameters. In a dense model, the model’s parameter network is generally used for each token. An MoE model routes tokens through selected expert sub-networks, which can reduce active computation relative to the total parameter count. Actual speed and cost depend on implementation, hardware and serving setup.
If you include parameter counts or context-window figures for specific MoE models, cite the official model card or technical report and state the version and access date. These specifications change, and total parameters should not be confused with active parameters per token.
Access: Proprietary, Open-Weight and Open-Source Models
Access affects control, deployment effort, data handling, licensing and cost. It does not, by itself, determine answer quality.
Proprietary models are typically provided through a vendor’s application or API, with model internals and weights not generally available to customers. They may reduce infrastructure work, but pricing, data-retention terms, rate limits and feature availability vary by provider. Name only after checking current official documentation.
Open-weight models make trained weights available for download under a stated license. They may allow local deployment, customization and greater infrastructure control, but teams still need to manage hosting, security, updates and evaluation. Check the license and usage restrictions for the exact model version.
“Open-weight” and “open-source” are not interchangeable. A project may release weights without releasing all training data, code or reproducibility details. Describe what is actually available and link to the license and model documentation.
Self-hosting can increase control over data and deployment, but it does not automatically guarantee privacy, security or compliance. Those depend on configuration, access controls, logging, vendor terms and operational practices.
How Big Is the Open vs. Proprietary Gap?
Benchmark comparisons are useful only when the models are tested on comparable tasks, prompts, versions and settings. When summarizing a third-party comparison, identify the publisher, publication or update date, evaluation method and limitations.
| Task | Gap |
|---|---|
| Coding assistants and agents | Small |
| Math and reasoning | Small |
| General chat | Small |
| Multimodal (image and video) | Moderate to large |
| Extreme long context with high reliability | Moderate |
Model performance changes over time and differs by workload. Treat published rankings as evidence for a shortlist, not a universal verdict.
Behavior: Base, Instruction-Tuned and Reasoning Models
Architecture is only one influence on behavior. Pre-training, instruction tuning, preference optimization, system prompts, tools and inference settings can all affect how a model responds.
4. Base Models
A base model is trained to predict the next token and is often used as a foundation for further adaptation. Without instruction tuning or suitable prompting, it may continue a text pattern instead of directly answering a question.
5. Instruction-Tuned (Chat) Models
Instruction-tuned models are adapted to follow instructions and respond conversationally. Training may include supervised examples and preference-based methods, but the exact process differs by provider and should not be assumed unless documented.
6. Reasoning Models
Reasoning-oriented models are optimized for tasks that benefit from additional problem-solving computation, such as multi-step mathematics, planning or complex coding. They may improve performance on difficult tasks, but can add latency and cost. Test whether the improvement matters for your workload.
Some products offer adjustable reasoning effort or combine fast responses with more deliberate problem-solving. Verify the behavior and available controls in current provider documentation rather than relying on a model-family label alone.
Size: Large Models vs. Small Language Models
Small language models (SLMs) are relatively compact models that may offer lower latency, lower serving cost or local deployment for suitable tasks. These benefits depend on the hardware, quantization, context length and workload. Compare quality and total cost—not parameter count alone.
Choose an SLM when:
- The task is narrow, such as classification, extraction or short replies.
- Latency matters, for example in autocomplete or voice.
- Data must stay on the device for privacy or compliance.
- You will run millions of requests and per-call cost adds up.
A larger model may be a better fit for open-ended tasks or complex inputs, but size is not a guarantee of quality. Test the smallest candidate that meets your accuracy, safety and reliability requirements.
Input: Text-Only vs. Multimodal LLMs
Multimodal models accept or generate more than text, such as images, audio or video. Depending on the system, they may interpret charts, extract information from documents, transcribe speech or answer questions about visual content. PDF support may be implemented through text extraction, image processing or both.
Typical uses include:
- Extracting fields from invoices and receipts
- Reading dashboards and screenshots to explain a problem
- Summarizing recorded meetings
- Answering questions about diagrams or product photos
Choose multimodal capability when the workflow genuinely requires it. Check supported formats, file-size limits, accuracy on your inputs, privacy terms and cost. Do not assume every model supports every modality.
Focus: General-Purpose vs. Domain-Specific Models
General-purpose models are designed to handle a broad range of tasks. Domain-specific models are trained, fine-tuned or configured for a narrower field, such as finance, medicine, law or software development.
A specialized model may handle domain terminology and formats well, but specialization does not guarantee better performance. Compare it with a strong general-purpose model on representative, appropriately reviewed examples.
In regulated or high-impact settings, use appropriate human review, access controls, audit trails and clear limits on automated decisions. Model selection is only one part of a safe system.
7. Retrieval-Augmented and Tool-Using Systems
Retrieval-augmented generation (RAG) is a system design pattern, not a model architecture. It retrieves relevant material from a defined source such as internal documents or a maintained knowledge base and supplies that material to a model when generating an answer.
RAG can make answers more grounded in supplied sources and easier to audit, but it does not eliminate hallucinations. Retrieval quality, source freshness, chunking, permissions and citation handling all affect results.
Consider RAG when answers must reflect private documents or frequently updated information. Consider fine-tuning when you need the model to learn recurring patterns, style or task behavior. They solve different problems and can be combined when evaluation supports the added complexity.
When a model can call tools such as APIs, search, calculators or code execution, it becomes part of a tool-using workflow. “Agent” usually describes a system that can select and execute steps toward a goal; the term is used inconsistently, so explain the actual capabilities rather than relying on the label.
Do the Categories Actually Predict Quality?
Research comparing broad model categories can help frame a decision, but results depend on the benchmark, task selection, model versions and evaluation method. If reporting a study, link directly to the paper and accurately state what it tested. Do not generalize a result from one task to all model performance.
The practical takeaway is simple: use categories to narrow the options, then run controlled tests on your own use cases. Record model version, prompt, settings and date so the comparison can be repeated.
Comparison Table: Which Type Does What?
| Type | Best for | Main trade-off | Current examples |
|---|---|---|---|
| Decoder-only | Writing, chat, code | Can hallucinate | GPT-6.1, Claude Sonnet 5.5, Gemma 4 |
| Encoder-only | Classification, search, NER | Cannot write long text | BERT, RoBERTa |
| Encoder-decoder | Translation, summaries | Narrower scope | T5 |
| Proprietary | Top performance, no operations | Cost, less control | GPT-6.1, Claude Fable 5.1, Gemini 3.1 Pro |
| Open-weight | Privacy, customization | You manage hosting and operations | gpt-oss, DeepSeek V4, GLM, Kimi K3, Qwen |
| Reasoning | Math, planning, complex coding | Slower, more expensive | DeepSeek V4, MiniMax M3, hybrid flagships |
| SLM | Speed, on-device use, low cost | Potentially narrower capabilities | Phi-4, Gemma |
| Multimodal | Images, audio, documents | Potentially higher cost | GPT-6.1, Gemini, Claude |
| RAG system | Fresh, grounded answers | Added complexity | Command A+ with your own data |
How to Choose the Right LLM 5 Questions
Answer these in order.
- What is the task? Writing or chat points to decoder-only. Labeling or search ranking points to encoder-only. Translation or summarizing points to encoder-decoder or a strong chat model.
- How hard is the thinking? Multi-step logic, math or planning justifies a reasoning model. Routine drafting does not.
- Where can the data go? Sensitive data may require an open-weight model you host yourself, or a vendor with strict contractual terms.
- What inputs do you have? Images, audio or PDFs call for a multimodal model.
- What is your budget per task? Estimate cost on real examples, not on a benchmark chart. A small model that delivers most of the quality for a fraction of the price often wins at scale.
A practical rule of thumb: start with the cheapest model that could plausibly work, test it on your own examples, and upgrade only where it fails.
Free Tool: The 20-Task Test Scorecard
Public benchmarks may not match your documents, users or edge cases. Build a small, repeatable evaluation using real tasks and safe, representative data.
- Collect 20 representative tasks, such as summaries, extraction, support replies or code fixes. Remove personal, confidential or regulated data unless your testing process is approved for it.
- Run each task through two or three shortlisted models using identical prompts.
- Score each answer from 1 to 5 on task-specific criteria—for example, factual accuracy, completeness, instruction-following and usefulness. Define the scoring rubric before comparing outputs.
- Record cost, latency, failure rate and any human-review time. For factual tasks, track unsupported claims and whether cited sources actually support the answer.
- Compare results across models and choose the lowest-cost option that meets your quality, safety and reliability thresholds. Keep examples of failures to guide prompt or workflow improvements.
Save the test set, scoring rubric, model versions and results. Re-run the evaluation when the model, prompt, retrieval source or application changes.
Common Mistakes When Picking an LLM
- Choosing by leaderboard alone. Public benchmarks rarely match your documents, tone or edge cases.
- Using a flagship reasoning model for every task. You pay for thinking you do not need.
- Treating “open-source” as free. Hosting, monitoring and security work still cost real money.
- Skipping grounding. If answers must be factual and current, plan for retrieval from the start.
- Ignoring licenses. Open-weight does not always mean unrestricted commercial use.
- Locking in too early. Model names and rankings change within months. Keep prompts and tests portable.
Where LLM Categories Are Heading
LLM capabilities and product labels change quickly. Models increasingly combine multiple capabilities, but the useful skill is still matching a model and system design to a real task, then validating that choice with repeatable evidence.
Glossary
- Token: a unit of text or other data processed by a model; it may be smaller or larger than a word.
- Context window: the amount of input and conversation context a model can consider in one request, subject to the product’s limits.
- Hallucination: generated content that is false, unsupported or inconsistent with the available evidence.
- Fine-tuning: additional training that adapts a model to examples or a target behavior.
- RLHF: reinforcement learning from human feedback, one approach used in aligning model behavior.
- Open weights: released model parameters that can be downloaded and used under the applicable license.
Record the model version, test date and results so future comparisons remain meaningful.
For retrieval-based systems, verify that retrieved passages support the answer and that users can access the underlying sources.
Assess factual accuracy, completeness, latency, cost and failure handling not just fluency.
Test the same representative examples with identical instructions and comparable settings.
Check the model card, supported inputs, context limits, license and data-retention terms.
Write down the task, expected output and what counts as an error.
A Practical Checklist Before You Choose an LLM
Conclusion
LLM categories are best understood as overlapping dimensions, not competing camps. Match architecture to the task, access model to your control and governance needs, behavior to task complexity, and model size to quality and cost requirements.
Next step: list your three highest-value use cases, define what a good answer means for each, and test two or three candidate models using the same prompts and scoring rubric. Revisit the choice when your requirements or model versions change.


