How do data drift and concept drift differ?
- Authors
- Name
- Amit Shekhar
- Published on
Data Drift means the input data has changed while the rule stays the same, whereas Concept Drift means the rule connecting input to output has changed.
In this blog, we will learn about how Data Drift and Concept Drift differ. We will also see what drift is, what each kind of drift means, how they differ, how to detect them, and how to fix them.
We will cover the following:
- What is Drift?
- What is Data Drift?
- What is Concept Drift?
- How do Data Drift and Concept Drift differ
- How do we detect these drifts
- How do we fix these drifts
I am Amit Shekhar, Founder @ Outcome School, I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.
I teach AI and Machine Learning at Outcome School.
Let's get started.
What is Drift?
The word drift means slowly moving away from where something started.
Think of a small boat on a river. We park it near the shore. We do not touch it. But after one hour, the water has slowly pushed it far away. The boat drifted.
In Machine Learning, drift means the real world slowly moves away from the world the model learned from, which is its training data. The model stays the same. But the world changes around it.
When the world changes, the model starts making mistakes. Its predictions become less accurate over time. The model is not broken. It is out of date.
Now, there are two main kinds of drift. One is Data Drift. The other is Concept Drift. They sound similar, but they are different. We will learn about each of them in detail.
What is Data Drift?
Let's start with Data Drift.
Data Drift means the input data has changed, but the rule connecting input to output stays the same.
The input is the information we give the model to make a prediction. For a house price model, the input is things like the size of the house, the number of rooms, and the location.
Now, suppose we built our model using houses from a small town. Most houses there were small, around 1000 square feet. The model learned from small houses.
After two years, the town grows. Now people are building large houses, around 3000 square feet. We keep using the same model.
Here, we can see that the input has changed. Earlier the model saw small houses. Now it sees large houses. The kind of data flowing in is different from the kind of data it learned on.
This is Data Drift. The input numbers shifted to a new range.
Notice one thing. The basic rule did not change. A bigger house still costs more. A house in a better area still costs more. The relationship between size and price is still the same. Only the input values moved into a new area the model rarely saw before.
So, the model gets confused not because the rule changed, but because it is now seeing inputs that look unfamiliar.
Let's take a simple real example. A clothing shop has a model that predicts how many jackets it will sell. It was trained on data from winter months. Now summer arrives. The temperature data flowing in is completely different. The cold-weather inputs the model expected are gone. This is Data Drift.
Planning your move into AI?
No matter which tech domain you work in today, with your effort, you can transition to these roles:
- AI Engineer
- Forward Deployed Engineer
- AI Agent Engineer
- Harness Engineer
- Voice AI Engineer
- AI Architect
- LLM Engineer
- LLM Inference Engineer
- Gen AI Engineer
- MLOps Engineer
- ML Engineer
- Deep Learning Engineer
Our AI and Machine Learning Program at Outcome School takes you there.
What is Concept Drift?
Now, let's learn about Concept Drift.
Concept Drift means the rule connecting input to output has changed, even if the input looks the same.
The concept is the hidden rule the model learned. It is the relationship between the input and the correct answer.
Let me give an example. Suppose we built a model years ago to predict if an email is spam. Back then, spam emails often had words like "free money" and "win a prize". So the model learned a rule: if the email says "free money", mark it as spam.
Now, spammers got smart. They stopped using those obvious words. They started writing emails that look like normal messages from a friend. The words look normal. The input looks like a regular email.
But the truth has changed. An email that looks normal can now be spam. The old rule no longer works. The relationship between the words and the answer has changed.
This is Concept Drift. The meaning behind the data shifted.
Let's take another example. Suppose a bank has a model that decides who will repay a loan. It learned this during a time when the economy was healthy and most people had jobs.
Now a recession hits. Many people lose their jobs. A person who looked safe before, with the same income and same age on paper, may no longer be safe to lend to. The input numbers look the same. But the real meaning changed. A "safe" customer is no longer safe.
That is Concept Drift.
So, here is the key difference. In Data Drift, the input changes. In Concept Drift, the rule changes.
A quick note for you
No matter which tech domain you work in, get familiar with these topics:
- LLM
- RAG
- MCP
- Agent
- Fine-tuning
- Quantization
We put it all together in one video:
AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, and Quantization
No need to stop reading - bookmark it and watch later when you get time. Future you will thank you.
Now, let's get back to the topic.
How do Data Drift and Concept Drift differ
Now that we have learned about both, let's place them side by side.
Let's see both cases side by side as below:
DATA DRIFT
Input changes, the rule stays the same
Old input ----> [ same rule ] ----> output
New input ----> [ same rule ] ----> output
(input moved) (unchanged)
CONCEPT DRIFT
Input looks the same, the rule changes
Same input ----> [ old rule ] ----> right answer
Same input ----> [ new rule ] ----> different answer
(unchanged) (rule moved)
Here, we can see that in Data Drift the input moves while the rule inside the box stays the same. In Concept Drift the input looks the same, but the rule inside the box has changed, so the same input now gives a different correct answer.
Let me tabulate the differences between Data Drift and Concept Drift for your better understanding.
| Point | Data Drift | Concept Drift |
|---|---|---|
| What changes | The input data | The rule between input and output |
| Input data | Looks new and different | Often looks the same as before |
| The hidden rule | Stays the same | Changes |
| House price example | Town starts building bigger houses | A new tax law changes how price is decided |
| Spam example | People write longer emails | Spammers change their tricks |
| Easy to notice | Easier, because input numbers shift | Harder, because input looks normal |
Here, we can notice one important thing. Concept Drift is harder to catch.
In Data Drift, the input numbers move, so we can see something changed just by looking at the data. In Concept Drift, the input can look perfectly normal. Everything seems fine. But the predictions quietly go wrong. We only find out when we compare predictions to real outcomes.
One more thing to notice. Both drifts can happen at the same time. The inputs and the rule can change together. So we must always watch for both.
How do we detect these drifts
Now, the question is: how do we know that drift is happening?
We do not wait for users to complain. We watch our model all the time. This watching is called monitoring. Monitoring means keeping an eye on how the data and the predictions behave over time.
To catch Data Drift, we compare the new incoming data with the old training data. We ask one question. Does the new data look like the old data?
For example, we can track the average value of an input. Let's say the average house size in training was 1000 square feet. If the average in the new data slowly climbs to 2500 square feet, we have a clear signal of Data Drift. The input has moved.
There are statistical tools that compare the shape of old data with the shape of new data. We measure how far the new data has moved from the old data. If the gap grows large, we raise an alert.
To catch Concept Drift, we cannot only look at the input, because the input may look normal. Instead, we must look at how correct the model is. This is called the model accuracy. Accuracy means how often the model gets the answer right.
So, we keep checking the model's predictions against what really happened. If the model used to be right 95 times out of 100, and now it is right only 70 times out of 100, something has changed. When the input data still looks normal, this is often a sign of Concept Drift.
Here, we can see that the two drifts need two different ways of watching.
- For Data Drift, we watch the input data and see if it moved.
- For Concept Drift, we watch the accuracy and see if it dropped.
This is how we detect the drifts in practice.
To learn Monitoring and Logging, along with Evaluation and Testing, check out our AI and Machine Learning Program at Outcome School.
How do we fix these drifts
So, we found drift. Now, the next question is: how do we fix it?
The main answer is the same for both. We retrain the model. Retraining means teaching the model again using fresh, recent data so it learns the new world.
For Data Drift, we collect recent data that includes the new range of inputs. For example, we add the bigger houses to the training set. The model then learns to handle large houses too.
For Concept Drift, we collect recent data with the correct, updated answers. The model then learns the new rule. The spam model learns the new tricks. The loan model learns the new economy.
We have a detailed blog on Continual Learning in LLMs that explains how a model keeps learning from new data without forgetting what it already learned.
We do not retrain randomly. We retrain when our monitoring tells us drift has crossed a safe limit. This is where monitoring and fixing work together.
Some teams retrain on a fixed schedule, like once a month. Some teams retrain only when an alert fires. The right choice depends on how fast our world changes based on our use case. A stock market model may need very frequent retraining. A model that reads handwriting may need it rarely.
So, the cycle goes like this. We monitor. We detect drift. We retrain with fresh data. We deploy the updated model. Then we monitor again.
Here is the cycle as below:
+--------------------+
| Monitor |
| (watch data and |
| accuracy) |
+--------------------+
|
↓
+--------------------+
| Detect drift |
| (drift crossed the |
| safe limit) |
+--------------------+
|
↓
+--------------------+
| Retrain with fresh |
| data |
+--------------------+
|
↓
+--------------------+
| Deploy the updated |
| model |
+--------------------+
|
+-----> back to Monitor (loop again)
Here, we can see that this is a continuous loop. We move from monitoring to detecting, then to retraining, then to deploying, and then we go back to monitoring again.
Stay updated: Subscribe to our newsletter to get our latest AI and Machine Learning blogs straight to your inbox.
Frequently Asked Questions
Does drift mean the model is broken?
No. When drift happens, the model is not broken, it is out of date. The model stays the same, but the real world slowly moves away from the training data it learned from. Because of this, its predictions become less accurate over time, and we fix it by retraining the model with fresh, recent data.
Why is concept drift harder to detect than data drift?
Concept Drift is harder to detect because the input can look perfectly normal. In Data Drift, the input numbers move, so we can see the change just by looking at the data. In Concept Drift, the predictions quietly go wrong, and we only find out when we compare the predictions to real outcomes and see the accuracy drop.
Can data drift and concept drift happen at the same time?
Yes. Both drifts can happen at the same time, because the inputs and the rule connecting input to output can change together. This is why we must always watch for both: we watch the input data to catch Data Drift, and we watch the accuracy to catch Concept Drift.
How often should we retrain a model to handle drift?
It depends on how fast our world changes based on our use case. Some teams retrain on a fixed schedule, like once a month, and some retrain only when a monitoring alert fires. A stock market model may need very frequent retraining, while a model that reads handwriting may need it rarely.
That's it for now.
Thanks
Amit Shekhar
Founder @ Outcome School
You can connect with me on:
Follow Outcome School on:
