Diagram: AI, machine learning, deep learning, NLP, LLM
Five concepts are nested inside each other, and the diagram below shows how. The outer circle is “Artificial intelligence”: all the ways to teach a computer tasks that only a person used to do, including rules written by hand.
Inside it is the circle “Machine learning”: the program finds rules in data by itself. Inside machine learning is “Deep learning”: neural networks with many layers. Inside deep learning is “LLM”: large language models built on the transformer architecture.
A separate oval, “NLP: working with language”, crosses machine learning and deep learning and fully contains LLMs. Some NLP tasks are solved without neural networks: emails are sorted by topic with logistic regression, and dates and phone numbers are found in text with simple rules. So the oval goes beyond the deep learning circle.
Hence the short answer: an LLM is deep learning applied to language at a large scale. Every LLM belongs to NLP, but NLP is much wider than LLMs.
Machine learning: a model learns from examples
Machine learning (ML) differs from an ordinary program in that the rules are not written by hand. Tom Mitchell, in his 1997 textbook, defined it as the study of algorithms that become more accurate with experience on their own.
In practice, experience is your data with answers: sales history, requests marked “client left” or “stayed”, payments marked “overdue”. The model finds patterns in them and applies them to new cases.
Training goes like this: part of the data is set aside, the model is trained on the rest and tested on the part set aside. If it makes clearly more errors in the test than in training, the model has memorized the examples rather than found a pattern.
For tables of numbers, gradient boosting of decision trees is a common choice. Chen and Guestrin described the XGBoost library in 2016: data scientists widely use tree boosting, and the system handles billions of examples on modest resources.
Such a model solves the one task it was trained for. A demand forecast will not write an email, and a request classifier will not forecast demand.
NLP: tasks with text and speech
NLP (natural language processing) is the branch of AI about text and speech: sorting emails, extracting company details, translation, summaries, answering questions, speech recognition and speech synthesis.
Long before LLMs, these tasks were solved with classical methods. The draft 3rd edition of the Jurafsky and Martin textbook “Speech and Language Processing”, dated August 2026, still covers N-gram language models and logistic regression for text classification next to transformers.
Then neural networks arrived. In 2018 the BERT model was pre-trained on unlabeled text and fine-tuned for a specific task by adding one output layer; this way it set new records on 11 NLP tasks.
That is why NLP on the diagram does not match any one circle. It contains classical methods, deep learning and LLMs.
LLM: one model for many tasks
An LLM is trained on a huge body of text to predict the next token, a small piece of text. From this one task grows the ability to translate, summarize, classify and write code. The task is set in words in the prompt, and no separate model is needed for each task.
Russia’s National AI Development Strategy, in the 2024 edition set by a presidential decree, describes them the same way. It defines large foundation models as models “containing at least 1 billion” parameters and “used to perform a large number of different tasks”.
Unlike BERT, an LLM writes text itself instead of only labeling someone else’s. How a model gets from a question to an answer is explained step by step on the page on how a language model works.
This versatility has a price. An LLM needs graphics cards or payment for each token, and it can be wrong with confidence. So it is used where a task cannot be solved without understanding free text.
For a company, it means one service covers emails, contracts and client chat. But the quality of each task is tested separately, on your own examples and before launch.
When an ordinary ML model is enough
If the data sits in a table and the answer is a number or a class, an ordinary ML model is usually enough. A demand forecast, the chance a client will leave, the risk of a late payment, a machine breakdown from sensor data: these are tasks of predictive analytics.
Time-based forecasts have proven methods. The textbook by Hyndman and Athanasopoulos, “Forecasting: Principles and Practice” (3rd edition, 2021, free online), covers exponential smoothing, ARIMA models and regression.
Such a model works with numbers directly, shows which features affected the forecast, and needs no graphics card. You can retrain it on fresh data on an ordinary server.
An LLM is needed when the input or the output is free text: emails, contracts, calls, replies to clients. LeCun, Bengio and Hinton explain in their 2015 review why deep learning is stronger here: classical methods need a set of features designed by hand, while a multilayer network finds features in raw data by itself.
Task examples: what to use for what
A quarterly sales forecast from sales history: an ML model on time series. An LLM is not needed here.
Sorting incoming emails by department: with a large archive of labeled emails, an ML classifier fits. With no archive, an LLM will sort the emails by the category descriptions in the prompt.
Extracting company details from invoices and contracts in different formats: an LLM, with the result checked by rules, such as the checksum of a Russian tax ID.
Answers to clients from a knowledge base: an LLM with search over your documents, that is, RAG. Scoring a client from a form and payment history: an ML model, whose decision is easier to explain to an auditor.
The approaches are often combined: an LLM pulls data from emails and contracts, and an ML model makes a forecast from it. If the texts hold clients’ personal data, 152-FZ, Russia’s personal data law, applies: you cannot send such data to a cloud model abroad without meeting the law’s conditions, so the model runs on your own server. More on law and data.
Other terms on this topic are collected in the glossary, in the section on language models. How companies use LLMs in sales, support and documents is covered on the page on LLM for business.