You open an article about AI and meet a wall of three-letter words: LLM, SLM, VLM, MoE, MLM, LCM, LAM, SAM. They are usually drawn as eight equal boxes, as if they were eight flavours of the same thing. They are not, and that is the main reason they are confusing.
An AI model is a program that has learned, from a huge number of examples, to turn an input into an output: a question into an answer, a photo into a description, a message into a label. The eight acronyms name different kinds of these programs, and a few of them are not kinds at all. This post is for anyone who keeps meeting the acronyms and wants to know what they mean. It explains each one from zero, says which are precise technical terms and which are closer to marketing, and ends with a table for choosing. By the end you will know which ones you might actually use and which you can safely ignore.
First, the words
These are the only terms you need to follow this post. Each one is explained again where it first appears.
- Model — a program that learned patterns from a huge number of examples and now produces an output (text, a label, the outline of an object) for an input.
- Training — showing a model a huge number of examples so that it adjusts its internal numbers and learns the patterns; it happens before anyone uses the model.
- Parameters — the internal numbers that training adjusts; a “large” or “small” model means one with many or few of them.
- Neural network — the structure almost all of today’s models are built from: many layers of simple calculations, each passing its numbers on to the next.
- Token — a small piece of text (a word or part of a word) that a language model reads and writes one at a time.
- Embedding (vector) — a list of numbers that stands for the meaning of a word, a sentence or a piece of an image.
- API — a defined way for one program to ask another for something; here, how your app sends a request to a model that runs on someone else’s computers.
The short answer
“AI model” is not one thing. Different models take different inputs (text, images, clicks) and produce different outputs (text, labels, outlines of objects, actions).
Think of a toolbox with messy labels. Some labels name a kind of tool (“screwdriver”). Some name how a tool is built inside (“ratchet mechanism”). One names a single branded product. And a couple are stickers that the shop put on for sales. The eight acronyms are exactly that mix:
- Kinds of tool (model classes): LLM (large language model), SLM (small language model), VLM (vision-language model, which also reads images), MLM (masked language model, built for understanding text rather than writing it).
- How a tool is built inside (a technique): MoE (mixture of experts).
- One specific product family: SAM (Segment Anything Model).
- Loose or research labels: LAM (large action model, mostly a product label) and LCM (Large Concept Model, a research direction).
Each acronym gets its own section below, so you do not need to remember these groups yet.
Why so many types exist
Imagine a made-up mobile banking app, Nova Bank. I will use it through the whole post. It wants six features:
- A support chat that answers questions in plain language.
- Automatic spending categories that work offline (without an internet connection), on the phone.
- “Photograph a paper bill and we fill in the payment form.”
- Sorting incoming messages: is this fraud, a lost card, or a general question?
- Cleanly cutting an ID document out of a photo of a messy desk.
- “Pay my electricity bill every month” — the app actually does it.
No single tool does all six well. A big chat model is too heavy and too expensive to categorise every transaction on a phone with no signal. A text model cannot see a photo. A model that sees photos cannot hand you a pixel-exact outline (pixels are the tiny dots an image is made of). Without different model types you end up hammering screws: it sort of works, slowly, expensively, and with worse results.
So the types exist because inputs, outputs, cost and speed pull in different directions. By the end of the post each feature will have its model type, and the table in “Which one do I need?” puts them side by side.
How each one works, step by step
I start with the types you are most likely to use (LLM, SLM, VLM, MLM), then the one branded product (SAM) and the sales label (LAM), and finish with the two you never choose yourself (MoE, LCM).
1. LLM — large language model
An LLM is a model trained on a huge amount of text: during training it read an enormous amount of writing and adjusted its parameters to get better at one small thing, predicting what comes next. Everything else grows out of that.
Take a Nova Bank customer who types: “Why was my card declined?”
- Tokens. The text is cut into small pieces called tokens — whole words or parts of words. The model works with pieces because any word, even a new one, can be built from them.
- Embeddings. Each token is replaced by a long list of numbers (a vector) that captures its meaning. Models can only calculate with numbers, not letters. The post on embeddings and vector databases explains these lists in depth.
- Transformer. These vectors pass through many layers of a neural network. A layer is one round of calculations that takes lists of numbers and hands slightly refined ones to the next layer; the particular arrangement of layers that today’s language models use is called a transformer. Its key trick, attention, lets every token “look at” the tokens before it and weigh which of them matter, so “declined” is understood in the context of “card”.
- Next-token prediction. The model outputs a probability (a percentage chance) for every token it knows. Example: “Your” 38%, “There” 21%, and so on (illustrative numbers).
- Repeat. One token is picked, added to the end of the text, and the whole thing runs again. And again. A paragraph is simply this loop run a few hundred times.
That loop explains two things beginners notice. Answers appear word by word because they are made word by word. And an LLM can state something false in a confident tone, because it is producing likely text, not looking facts up. That second weakness is why techniques like RAG exist (retrieval-augmented generation: the software first finds the relevant passages in your documents and gives them to the model along with the question).
Nova Bank: feature 1, the support chat.
2. SLM — small language model
An SLM is the same idea with far fewer parameters — the internal numbers a model learns during training. There is no official line between “small” and “large”; it is a relative word, and the line moves every year.
Two techniques help make models small. Both are worth knowing by name:
- Distillation: a small “student” model is trained to imitate the answers of a big “teacher” model. The idea goes back to a 2015 paper by Hinton, Vinyals and Dean.
- Quantization: each parameter is stored with less precision, like rounding 3.14159 to 3.1. The model file shrinks and runs faster, at the price of a small loss in quality.
Why bother? A small model can run on the phone itself (on-device), not on a company’s servers. That means it works offline, costs nothing for each question it answers, answers fast, and the customer’s data never leaves the device. The price is that it knows less and handles long, tricky reasoning worse.
Nova Bank: feature 2. Turning “UBER *TRIP 7Q2” into “Transport” is a narrow task. A small on-device model handles it, and no transaction leaves the phone. (Strictly speaking, this is a sorting task, so a small MLM-style model from section 4 would also fit; the point here is that the model is small enough to run on the phone.)
3. VLM — vision-language model
A VLM is a language model that can also take images as input. It still answers in text.
- The photo is cut into a grid of small squares (patches).
- An image encoder — a neural network that reads an image and turns it into numbers — turns each patch into a vector.
- A small connecting piece, often called a projector, converts those vectors into the same “format” as word embeddings. In the well-known research model LLaVA, this connector was a single simple layer.
- The language model then reads the image vectors and the text tokens as one long sequence of inputs and predicts the next token, as before.
Step 3 is the whole trick: the language model does not learn to “see”. The image is translated into something that looks like words to it.
What it does well: describing a picture, reading text in a photo, answering questions about a chart or a screenshot. Where to be careful: exact counting, tiny print, and precise positions are weaker, and it can misread a digit with full confidence. And a VLM does not create pictures — that is a different family, covered below.
Nova Bank: feature 3. The VLM reads the bill photo and returns the payee, amount and due date as text. Because one wrong digit moves real money, the app shows the fields for the customer to confirm.
4. MLM — masked language model
An MLM learns differently from an LLM. During training, some words in a sentence are hidden, and the model must guess them using the words on both sides. The famous example is BERT from Google (2018), which hides 15% of the tokens.
Seeing both sides makes these models good at understanding a piece of text: classifying it (sorting it into one of a fixed set of categories), finding names and amounts in it, or turning it into a vector for search. It also makes them poor at writing. There is no natural “keep going” loop, because the model was never trained to continue a text from left to right.
They are also small and cheap compared with chat models, which is why they are still widely used in production (the live systems that real customers use).
A naming warning: some infographics expand MLM as “multimodal language model”, meaning a model that takes several kinds of input, such as text and images. That is a different idea (closer to VLM). In the research literature, MLM almost always means masked language model.
Nova Bank: feature 4. A message like “someone took money from my account” must be tagged “possible fraud” in milliseconds, thousands of times a day. A small BERT-style classifier (a model that picks one label from a fixed list) fits; a chat model would be slower and cost far more.
5. SAM — Segment Anything Model
SAM is the branded product in the toolbox. It is not a category but one model family from Meta, introduced in 2023, built for segmentation: marking exactly which pixels belong to an object.
It has three parts:
- An image encoder processes the photo once — the heavy step.
- A prompt encoder takes your hint: a click on the object or a box around it. (In SAM the “prompt” is this hint, not a text message.)
- A light mask decoder — the part that produces the output — combines the two and returns a mask, the exact outline. If the hint is ambiguous (the shirt, or the whole person?), it returns several candidates with confidence scores (the model’s own estimate of how likely each one is to be right).
Because the heavy step runs once, you can click around the image and get new masks almost instantly. The original SAM outlines the object without telling you what it is. Later versions extended the idea to video (SAM 2) and to short text phrases as prompts (SAM 3).
Nova Bank: feature 5. The customer photographs an ID on a cluttered desk and taps the document on the screen; a segmentation model cuts it out precisely before anything else reads it.
6. LAM — large action model
In the toolbox picture from the start, this is one of the stickers the shop put on for sales. “Large action model” has no agreed technical definition. It became popular as a product term (the startup Rabbit used it for its r1 device), and companies that sell AI products use it for models or systems meant to do things in software rather than only write text. Salesforce, for instance, published a model series called xLAM, described as large action models for AI agent tasks — in practice, language models tuned to be good at calling functions (named pieces of code that each do one job).
Under the label you almost always find the same recipe:
- A language model (often an LLM or VLM) receives a goal and a list of tools — functions it is allowed to call, such as
get_billsorcreate_payment. - Instead of prose, it outputs a structured request, written in a fixed format that a program can read: “call
create_paymentwith this amount”. - Ordinary code executes the request and returns the result.
- The model looks at the result and decides the next step. This loop is what people call an agent.
So LAM is better understood as LLM + tools + a loop than as a new kind of model. If you want the real mechanics, start with AI agents and tool calling explained from zero, then read about the protocol that connects models to tools and, later, the more advanced post on agents and multi-agent systems.
Nova Bank: feature 6. The model plans “find the bill, check the balance, schedule the payment”, but the bank’s own code performs each step, enforces limits, and asks the customer to confirm.
7. MoE — mixture of experts
This section and the next are about labels you never pick yourself. If you only want to know what to use, you can skip to “What the list leaves out”.
This label is often explained wrongly. MoE is not a team of separate models talking to each other. It is a way of building the inside of one model — the ratchet mechanism, not the tool.
In a normal transformer, every token passes through every part of every layer. In an MoE model, some layers are split into several parallel blocks called experts. A tiny router looks at each token and sends it to only a few of them — often one or two. The rest stay idle for that token.
Why do this? The model can hold a lot of knowledge in total, but each token pays for only a fraction of the computation (the arithmetic the computer has to do). An explainer from Hugging Face, a popular site for sharing models, gives the open model Mixtral 8x7B as an example (an open model is one whose files anyone can download and run): about 47 billion parameters in total, with a per-token cost closer to a 12-billion-parameter model.
Two honest caveats. All experts must still be loaded in memory (kept in the computer’s working memory, ready to use), so MoE saves computation, not memory. And “expert” is a generous word: nobody assigns one block to law and another to cooking. The router learns its own split during training, and it is usually not something a human would recognise.
Nova Bank: nothing to build. Whether the chat model behind feature 1 uses MoE is the business of the provider (the company that runs the model and sells access to it). The app sees it only as price and speed.
8. LCM — Large Concept Model
This one is research, not something you can pick off a shelf. In December 2024, Meta’s research lab published Large Concept Models. The question behind it: humans plan in ideas, not in word fragments — could a model do the same?
Instead of predicting the next token, an LCM predicts the next concept. In the paper, a concept is simply one sentence, turned into a single vector by SONAR, an existing embedding model that, according to the authors, covers up to 200 languages in text and speech. A separate decoder (a part that turns vectors back into text) turns the predicted vector back into words. The paper reports experiments on summarization (shortening a long text) with models of 1.6 and 7 billion parameters, and describes itself as a feasibility study, an early test of whether the idea works at all.
It is an interesting direction, and it may or may not shape future products. As of November 2026 it does not belong in a “which model should I use” list.
A second naming warning: in image generation, LCM usually means Latent Consistency Model, a 2023 technique for producing images in very few steps. Same letters, unrelated idea.
Nova Bank: nothing to ship.
What the list leaves out
Four things you will meet in your first week that the eight acronyms skip:
- Embedding models. They turn text into a vector so that similar meanings land close together. They power search and RAG, and many descend from the MLM family. See embeddings and vector databases.
- Diffusion models. The main family behind image generation. They start from random noise and remove it step by step until a picture matching your text appears.
- Speech models. ASR (automatic speech recognition) turns audio into text; TTS (text-to-speech) does the reverse. Voice assistants chain them around a language model, or use a model that handles audio directly.
- Reasoning or “thinking” modes. Not a new model type: a language model is given room to write out intermediate steps before the final answer. Better on hard problems, slower and more expensive.
Which one do I need?
In the table, an encoder means a model (or part of one) that reads input and turns it into vectors, as MLMs do.
| Your task | Reach for | Nova Bank example |
|---|---|---|
| Chat, writing, summarising, explaining | LLM | Support chat |
| Works offline, private, or very cheap per request | SLM (distilled or quantized) | On-device spending categories |
| Questions about photos, scans, screenshots | VLM | Reading a paper bill |
| Search, sorting, tagging lots of text fast | MLM-style encoder or embedding model | Routing messages, fraud flags |
| Cutting objects out of images | Segmentation model such as SAM | Isolating an ID document |
| Carrying out steps in software | LLM with tools in an agent loop (“LAM”) | Scheduled bill payment |
| Making images | Diffusion model | Not needed here |
Notice what is missing from the first column: MoE and LCM. You never choose MoE; it is inside some of the models you choose. And LCM, as far as I know in November 2026, is not on offer as a product yet.
Notice also that Nova Bank uses five model types at once (the sixth feature, the “LAM”, is an LLM with tools). That is normal. Real products are a toolbox, not a single tool, and a lot of AI engineering is deciding which request goes to which model.
Common mistakes and misconceptions
- “These are eight kinds of the same thing.” They sit on different levels: classes, a technique, one product, and loose labels.
- “MoE means several models cooperating.” No. It is one model with routed internal blocks. Several separate models (agents) working together on one task is a multi-agent system — a different topic.
- “Bigger is always better.” For narrow, high-volume tasks, a small model or an encoder is often faster, cheaper and just as accurate. Measure it; do not assume.
- “A VLM can generate images.” A VLM reads images and writes text. Generation is usually done by diffusion models.
- “A LAM is a new breed of model that acts by itself.” The model only proposes an action as text. Your code performs it, and your code must hold the safety checks.
- “MLM and LCM mean one thing.” Both acronyms have a second common meaning. Check the context before arguing with anyone.
When you don’t need any of this
You do not need to memorise the list to use AI well. For most first projects, one hosted LLM (a model that runs on the provider’s servers) used through its API covers everything, and the right move is to start there and specialise only when cost, speed or privacy forces you to.
And sometimes you need no model at all. Calculating a balance, validating an account number, or applying a fee is exact logic: plain code is cheaper, faster and predictable. I wrote more about that judgement in when not to use AI tools.
How to get there
This part is for readers who want to start building. If you came only for the map, you can stop here.
A learning order I would suggest to a beginner:
- Basic Python (a programming language widely used for AI work). Enough to call an API and read the response it sends back.
- One LLM through an API. Project: a tiny FAQ bot for an imaginary bank. Print the token count of every request so tokens stop being abstract; token economics explains why they matter.
- Embeddings. Project: search over 50 FAQ entries by meaning rather than keywords. Then add the LLM on top and you have built RAG.
- Image input. Project: send a photo of a receipt to a VLM and get the total back as structured data (named fields a program can read, not free text). Count how often it is wrong.
- Tool calling (the model asking your code to run one of its functions). Project: give the model two fake functions that only pretend to do the work,
get_balanceandschedule_payment, and watch the loop. Now “LAM” has no mystery left. - A small model on your own laptop. Run an open SLM locally (on your own computer, with no internet service involved) and compare its answers with the big hosted one on the same ten questions.
- Measuring. Learn the basics of evals, repeatable tests that run your AI system on fixed inputs and check the answers, so that “which model is better?” becomes a test rather than an opinion.
SAM and MoE internals can wait until a project actually needs them.
Mini glossary
- Parameter — one of the numbers a model learns in training; model “size” is their count.
- Token — a small piece of text (a word or part of one) that a language model reads and writes.
- Embedding — a list of numbers representing the meaning of a token, sentence or image patch.
- Transformer — the network design behind almost all modern language models.
- Encoder / decoder — an encoder reads input into vectors (BERT); a decoder generates output step by step (chat models).
- Distillation — training a small model to imitate a large one.
- Quantization — storing a model’s numbers with less precision to make it smaller and faster.
- Router (gating) — the part of an MoE layer that picks which experts handle a token.
- Mask — in segmentation, the set of pixels that belong to one object; in an MLM, a hidden word to guess.
- Tool calling — a model outputting a structured request for your code to run a function.
Going deeper
Courses that turn this map into skills:
- Python Fundamentals — the starting point for every project above.
- Prompt Engineering & AI Workflow Automation — getting reliable results from LLMs.
- Building LLM-Powered Apps: RAG & Agents — embeddings, retrieval and tool-using agents.
- Building with Claude API — text, vision input and tool calling through one API.
- AWS Bedrock & AI Services for Developers — choosing among many hosted models in one place. For the platform decision itself, see Running Claude on AWS.
Related posts: RAG explained for beginners, embeddings and vector databases, the layers of an AI system, and The AI Engineer Roadmap.
Sources and further reading
- Devlin et al., BERT: Pre-training of Deep Bidirectional Transformers (2018) — the masked language model.
- Hugging Face, Mixture of Experts Explained — routers, experts and the compute/memory trade-off.
- Liu et al., Visual Instruction Tuning (LLaVA) (2023) — a clear example of connecting an image encoder to a language model.
- Kirillov et al., Segment Anything (2023) — the SAM paper.
- LCM team, Meta, Large Concept Models (2024) — language modelling in a sentence embedding space.
- Zhang et al., Salesforce, xLAM: A Family of Large Action Models (2024) — one vendor’s use of the “LAM” label.
This post is part of the “AI engineering from zero” series: The AI engineer roadmap · Vibe coder vs AI engineer vs AI solutions engineer · Embeddings and vector databases · RAG explained for beginners · AI agents and tool calling · The 7 layers of an AI system.
Part 3 of 7 in “AI engineering from zero”. Previous: Vibe Coder vs AI Engineer vs AI Solutions Engineer: Three Roles, Three Responsibilities · Next: Embeddings and Vector Databases Explained from Zero