The roadmap says "Use AI to route support tickets." In planning, one engineer starts pricing an LLM API per token, another asks how many labeled tickets exist to train a classifier, and a third says a few keyword rules would cover most cases. They argue for an hour before realizing they pictured three different technologies, with different costs, data needs and failure modes. All three were, technically, proposing AI.
The common misconception
Many developers use "AI", "machine learning", "deep learning" and "LLM" as interchangeable names for one technology, and for understandable reasons:
The best-known AI products today, chatbots, really are all four at once: a chatbot runs an LLM, which is deep learning, which is machine learning, which is AI. With those examples everywhere, the circles start to look like one.
Even Google's Machine Learning Glossary, right after saying machine learning is formally a sub-field of AI, notes that some organizations now use the two terms interchangeably.
Product pages round everything up to "AI", the biggest word on the shelf.
So it's a half-truth: every LLM is AI, but plenty of AI isn't an LLM, and plenty of machine learning has no neural network in it. Blurring them makes you misjudge the data, the cost, the failure modes and the right tool.
What actually happens
The four terms nest like Russian dolls: AI contains machine learning, which contains deep learning, which contains LLMs. One question tells the layers apart: what does a human write, and what is learned from data?
AI is the goal, not a technique
Artificial intelligence is the broadest term. Google's glossary describes it as a program or model, not a person, that can solve sophisticated tasks. Notice that it says nothing about how.
Some of the oldest AI learns nothing at all. In a rule-based system, a person writes the logic and the program applies it. Knowledge-base projects such as Cyc had people enter facts about the world in a formal language for an inference engine to reason over. The Deep Learning textbook by Goodfellow, Bengio and Courville explains why that hit a wall: formal rules rich enough to describe the real world are very hard to write.
Machine learning: the rules are learned from examples
is the part of AI where the program gets its knowledge from data. Google describes it as training software, called a model, to make useful predictions or generate content. You supply examples with known answers, and training searches for the parameters (the weights and biases) that map inputs to answers.
Plenty of machine learning has no neural network: linear and logistic regression, decision trees, naive Bayes spam filters. Call it classic ML. It learns the mapping but not the inputs: a human still chooses the features. The Deep Learning book's example is logistic regression that learns well from a doctor's structured report but can't make useful predictions from the raw pixels of an MRI scan, where no single pixel says much.
Deep learning: the features are learned too
is machine learning with neural networks that stack several layers. Google's glossary draws the line precisely: a neural network has at least one hidden layer, and a deep model has more than one. Each layer works on the previous layer's output, building complex concepts from simpler ones. In the textbook's image example, the first hidden layer picks out edges, the next corners and contours, the next whole object parts.
That's the real difference from classic ML, not "more data" or "smarter". Google's Machine Learning Crash Course notes that a neural network learns the feature crosses it needs during training, so you don't have to find them by experiment. Feature design moves from the engineer to the training process.
LLMs: one branch of deep learning
A language model estimates how likely a token (a word, part of a word or a character) is to appear in a sequence of tokens. A is, at minimum, a language model with a very high number of parameters; informally, it's any Transformer-based language model, such as Gemini or GPT. The Transformer is a neural network architecture built from stacked self-attention layers, which is why LLMs sit inside deep learning. The reverse doesn't hold: the textbook's image model is deep learning but not a language model, and Google's glossary adds that many text models, such as text classifiers and sentiment models, aren't language models either.
Same task, three layers
To see the nesting, solve one problem three ways. This script predicts whether a tumor in scikit-learn's built-in breast cancer dataset is benign: with a hand-written rule, with classic ML and with a small deep network.
Python · three_layers.py
from sklearn.datasets import load_breast_cancerfrom sklearn.linear_model import LogisticRegressionfrom sklearn.model_selection import train_test_splitfrom sklearn.neural_network import MLPClassifierfrom sklearn.pipeline import make_pipelinefrom sklearn.preprocessing import StandardScalerX, y = load_breast_cancer(return_X_y=True) # 30 measurements per tumor; y = 1 means benignX_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42)# Rule-based: a human picked the feature (column 0, mean radius) and the threshold.rule = (X_test[:, 0] < 15).astype(int)print(f"rule {(rule == y_test).mean():.2f}")# Classic ML: training learns one weight per feature. No neural network.classic = make_pipeline(StandardScaler(), LogisticRegression())# Deep learning: a neural network with two hidden layers (16 and 8 neurons).deep = make_pipeline(StandardScaler(), MLPClassifier((16, 8), max_iter=1000, random_state=0))for name, model in [("classic", classic), ("deep", deep)]: model.fit(X_train, y_train) # training = searching for the weights print(f"{name:<9}{model.score(X_test, y_test):.2f}")# Output: rule 0.92, classic 0.98, deep 0.97
All three are AI. In the rule, the human did the learning: someone looked at the data and chose 15. The other two learned their weights from the training rows, and only the last one is deep learning. On 569 rows of tabular data, the deep network didn't beat logistic regression: the innermost circle isn't automatically the best tool.
Layer
What a human writes
What is learned from data
Example
Rule-based AI
The rules
Nothing
Keyword routing rules, Cyc
Classic ML
The features
The mapping from features to answer
Logistic regression, decision trees
Deep learning
The network architecture
The features and the mapping
A multilayer perceptron, a deep image model
LLM
Architecture and training setup
Parameters that predict likely tokens
Gemini, GPT
How to apply it in your project
Name the layer in the ticketReplace "use AI" with the actual approach: rules, a trained classifier, a deep model or an LLM call. Each implies different data, cost and tests.
Start with a rule if one worksGoogle's Rules of Machine Learning opens with "Don't be afraid to launch a product without machine learning." A simple heuristic also gives later models a baseline to beat.
Move to classic ML when the rules get complexThe same guide prefers machine learning over a complex heuristic, which becomes unmaintainable. With labeled tabular data, try logistic regression or gradient-boosted trees first.
Use deep learning when you can't write the featuresRaw images, audio and free text are where hand-designed features break down. Consider starting from a pre-trained model instead of training one from scratch.
Reach for an LLM when the task is languageSummarizing, drafting and extracting fields from messy text are where an LLM earns its cost. For a yes/no decision on structured data, it's rarely the first thing to try.
Key takeaways
AI contains machine learning, which contains deep learning, which contains LLMs: every LLM is all four, not the reverse.
What's learned from data sets the layer: nothing (rules), the mapping (classic ML) or the features too (deep learning).
"Deep" means more than one hidden layer, not "more advanced".
An LLM is a Transformer-based deep model that predicts tokens; generative AI cuts across the rings.
Choose the layer from the problem, and measure it against the simplest baseline.
التعليقات (0)