AI Glossary / AI foundations / Intermediate
Model architecture
Definition
Model architecture is the structural design of an AI model: how its components are arranged, how they connect, and how information flows through them from input to output. It is not the same as the trained model itself, which also includes the learned values called weights. People sometimes use the word loosely to mean a model family, such as a transformer, or a specific named design.
What it means
Think of architecture as the blueprint, and the trained model as the finished building. The blueprint fixes the number of layers, how they link, and what kind of operation each one performs. Two models can share one blueprint and still behave very differently, because each was trained on different data and holds different weights.
For a business reader, architecture explains why some models suit some jobs. A design built to read text in sequence is a natural fit for documents and chat. A design built to scan grid-like data is a natural fit for images. A simple, small design may be enough for scoring loan applications, and cheaper to run and easier to explain.
How it works
An architecture is built from layers. Each layer takes numbers in, applies a calculation controlled by adjustable weights, and passes numbers on. The architecture decides how many layers there are, how wide each one is, and which layers feed into which. It also fixes the type of calculation. A feedforward layer mixes all inputs. A convolutional layer looks at small neighboring patches. An attention layer lets each part of the input weigh every other part, which is the core idea of the transformer design.
During training, the architecture stays fixed while the weights change. The model makes predictions, a loss function measures the error, and an optimizer nudges the weights to reduce it. Settings chosen before training, such as the number of layers or the size of each layer, are called hyperparameters. They are part of the architectural decision and are set by people, not learned.
Choices have trade-offs. More layers and wider layers usually give more capacity to learn complex patterns, but they raise training cost, memory use, and response time. Some designs, such as mixture-of-experts, activate only part of the model for each input to save compute. Practice varies, and the best choice depends on the data, the task, and the budget.
Three practical examples
- Finance team: An accounts team wants to flag unusual invoices. A small tabular model, such as a shallow neural network or a tree-based design, works on columns like amount, vendor, and date. It trains quickly, runs on modest hardware, and its reasoning is easier to review than a very large model.
- Retailer: A retailer sorts product photos into categories. A convolutional or vision-transformer architecture suits this because it is designed to find patterns in pixels. A text-only language model would be the wrong blueprint for the job.
- Support desk: A support desk drafts replies to customer emails. A transformer-based language model fits, since its attention layers handle long passages of text. The team picks a hosted model and never designs the architecture, but knowing it is a transformer helps them understand limits such as a fixed context window.
Think of it this way
Architecture is like the floor plan of a factory: it decides how many stations there are, what each station does, and how work moves between them. The analogy stops working because a factory floor plan is drawn by people for a known product, while a model's behavior also depends heavily on the data it learned from, which no floor plan captures.
Worked example
A team compares two designs for a text classification task. Design A has 4 layers and about 10 million weights. Design B has 24 layers and about 300 million weights. Weights are numbers that must be stored and calculated.
Suppose each weight takes 4 bytes of memory. Design A needs 10,000,000 x 4 = 40,000,000 bytes, about 40 megabytes. Design B needs 300,000,000 x 4 = 1,200,000,000 bytes, about 1.2 gigabytes. Design B needs 1,200 / 40 = 30 times the memory.
Now suppose Design A scores 88 percent accuracy on the team's test set and Design B scores 90 percent. The extra 2 points cost 30 times the memory plus slower responses. If each wrong label costs the business little, Design A is the sensible pick. If errors are expensive, the extra 2 points may justify Design B. The numbers are invented, but the comparison method is real: measure quality, size, and cost together.
Illustrative case study
Fictional case: Harbor Lane Supply, a mid-sized wholesaler, wanted to sort incoming supplier emails into six queues. The analyst started with the largest language model available, because bigger seemed safer. Accuracy was good, but each batch took too long and the monthly bill was higher than the saved labor.
The analyst then tested a much smaller transformer fine-tuned on 3,000 of the company's own labeled emails. Accuracy dropped slightly on rare email types but stayed high on the common ones. Cost fell sharply and responses became near-instant.
The problem surfaced when the small model mislabeled urgent shipping delays as routine. The team fixed it by adding a rule that sent any email containing delay-related terms to a person, and by retraining with more delay examples. They kept the smaller architecture, added a human check, and reviewed results monthly.
Common misconceptions and mistakes
A bigger architecture is always better. Larger designs often cost more and respond slower, and on narrow tasks a smaller design can match them. Test on your own data before assuming size helps.
Architecture and model are the same thing. The architecture is the design, while the model is the design plus its learned weights. Two models with one architecture can perform very differently.
Choosing an architecture is only a technical matter. It affects cost, speed, privacy options, and how explainable the results are, so business owners should be part of the decision.
Newer architectures replace older ones completely. Older, simpler designs remain widely used because they are cheap, fast, and well understood for many structured-data tasks.
Business use
Most organizations do not design architectures. They choose among existing ones, or buy a hosted model. To start, write down the task, the data type, the acceptable error rate, and the response time you need. Then shortlist two or three options and test them on a sample of your own data, comparing accuracy, speed, and cost side by side.
Measure quality on a held-out test set, cost per thousand requests, response time, and how easily outputs can be reviewed. Risks include paying for capacity you do not need, depending on one vendor's design, and choosing a model whose limits, such as a short context window, fit poorly with your documents. Record the choice and the reasons so it can be revisited when the task or the available options change.
People also ask
Is model architecture the same as an algorithm?
Not exactly. An algorithm is a procedure, such as the training method, while architecture is the structure the procedure works on. The two are chosen together but describe different things.
Do I need to understand architecture to use AI tools?
Not in detail. A basic grasp helps you ask better questions about cost, speed, and limits when comparing vendors or models.
Can the architecture be changed after training?
Usually not without retraining. Changing the structure changes what the weights mean, so the model generally has to be trained again or adapted through techniques such as fine-tuning a similar design.
Check your understanding
What is the difference between architecture and weights?
Answer: Architecture is the fixed design of layers and connections. Weights are the learned numbers inside that design, set during training.
In the worked example, how much more memory does Design B need than Design A?
Answer: Design A needs about 40 megabytes and Design B about 1.2 gigabytes, so Design B needs 30 times more.
Why might a small architecture be the better business choice?
Answer: It can be cheaper, faster, and easier to review, and if it meets the required accuracy the extra size of a larger design adds cost without enough benefit.
Which settings are fixed before training starts?
Answer: Hyperparameters such as the number of layers and the size of each layer are set by people before training begins.
Related terms
- Neural network
- Transformer
- Parameter
- Weight
- Fine-tuning
- Context window
- Inference
- Parameters
- Weights
- Hyperparameters
Learn next
Pick one task in your own work and list the data type, the error you can tolerate, and the speed you need. Then read the entries on transformers, parameters, and fine-tuning to see how those needs map to design choices.
More in AI foundations
- Memorization (AI models) - Memorization in AI models is when a trained model stores and can reproduce specific pieces of its training data, such as exact sentences, images or records...
- Model - A model is a structured representation used to describe relationships, generate predictions, simulate behavior, or support reasoning about a system.
- Model alignment - Model alignment is the work of making an AI model behave in line with the goals, values and rules its builders and users intend.
- Model compression - Model compression is a set of techniques that make a trained AI model smaller, faster or cheaper to run while keeping most of its accuracy.
- Model evaluation - Model evaluation is the practice of measuring how well an AI or machine learning model performs on a defined task, using data and criteria chosen before the...
- Model family - A model family is a group of AI models from the same developer that share a common design and training approach but come in different sizes, speeds, prices...
Sources
Google, Machine Learning Glossary: https://developers.google.com/machine-learning/glossary Goodfellow, Bengio and Courville, Deep Learning: https://www.deeplearningbook.org/ ISO, ISO/IEC 22989 Artificial intelligence concepts and terminology: https://www.iso.org/standard/74296.html The sources were consulted for standard definitions of architecture, layers, weights, and hyperparameters; the examples, analogy, worked example, and case are original educational illustrations. Checked 5 Nov 2026.
Previous: Model alignment Next: Model assertion