AI Glossary / AI and machine learning / Intermediate
Recursive feature elimination
Definition
Recursive feature elimination is a feature selection method that trains a model, drops the features it finds least useful, trains again, and repeats until only the strongest set remains.
What it means
Most datasets carry passengers: columns that add noise, cost and confusion but no predictive power. Recursive feature elimination, RFE, removes them in rounds rather than all at once, because a feature's usefulness can only be judged against the company it keeps.
The recursion matters. Eliminating the single weakest feature changes what every other feature is worth, so the method re-fits and re-ranks after each removal instead of trusting one ranking from the start.
The output is both a pruned feature set and a full ranking, from the last feature standing to the first one dismissed.
How it works
Train a model that exposes feature importance or coefficients on all candidate features.
Rank the features and remove the weakest one, or the weakest small batch.
Retrain on what remains and rank again, since importances shift as company changes.
Repeat until the target number of features remains.
Choose the target number by cross-validation, not by taste, so the cut point is justified by held-out performance.
Keep the full removal ranking, not only the survivors, so later projects can revisit near-miss features cheaply.
Three practical examples
- Trimming two hundred survey-derived columns to the twenty that actually predict churn, making the model cheaper and easier to explain.
- Reducing sensor channels on a production line before deploying a model to a low-powered edge device.
- Cleaning a credit application table where many fields duplicate each other, so compliance reviews have fewer variables to defend.
Think of it this way
Think of a football squad trimmed over a season. Each round, the coach cuts the weakest player given the current squad, then watches how the team plays before the next cut. Cutting everyone doubtful at once would break combinations that only work together.
Worked example
the knee of the curve
Suppose a retailer has one hundred and twenty candidate columns for a demand model. The figures are illustrative.
RFE removes ten at a time, refitting after each round, and validation accuracy holds steady down to thirty columns, then falls off a cliff below fifteen.
The team keeps thirty features, capturing nearly all the accuracy of the full set at a quarter of the data-collection effort.
The general lesson: the curve of accuracy against feature count, not any single ranking, is the deliverable, and the knee of that curve is the decision.
Illustrative case study
A manufacturing firm collected four hundred sensor streams but could afford to maintain only fifty channels. RFE against a failure-prediction model showed performance plateauing at around sixty features, and the eliminated streams turned out to duplicate each other or measure ambient conditions with no bearing on failures. The maintenance budget for sensors was cut by two thirds without losing prediction quality. Engineers also noted a side benefit: with fewer inputs, tracing why the model fired became a job of minutes rather than days.
Common misconceptions and mistakes
- RFE finds the best possible feature set. It is greedy and model-dependent; a different model can dismiss a different set.
- Eliminated features are useless. They may carry real signal that the chosen model family cannot use, or signal masked by a correlated survivor.
- It removes the need for domain judgment. Subject experts should see the cut list, because keeping a defensible, stable feature can beat a marginally stronger odd one.
- RFE is slow and therefore impractical. It costs extra training runs, but those are offline, one-off costs compared with permanently cheaper production models.
Business use
Use it when data collection or maintenance has a real per-column cost, so dropping features saves money directly.
Run it with the model you actually intend to ship, since the ranking inherits that model's biases.
Always plot performance against the number of features and present the knee; the curve persuades stakeholders better than a bare list.
Revisit selections when data drifts, because yesterday's passengers can become tomorrow's signal.
Use it before signing data-licensing deals: paying for feeds the model provably does not need is a recurring cost for nothing.
Pair the cut list with a stability check across time periods, because a feature that barely survives one quarter and vanishes the next is not one to build processes around.
People also ask
What is recursive feature elimination?
A selection method that repeatedly trains a model, removes its weakest features, and retrains, until only the most useful target number remains.
Why not rank features once and cut?
Importances depend on which other features are present, so after each removal the ranking must be recomputed to stay honest.
What are its limits?
It is greedy, tied to the chosen model's notion of importance, and it can drop genuinely useful features that are correlated with stronger ones.
How does RFE differ from simple importance filtering?
Filtering ranks features once and cuts; RFE re-ranks after every removal, because importance depends on which other features remain.
Check your understanding
What is recursive feature elimination, and why is the recursion necessary?
Answer: It is feature selection by repeated rounds: fit a model, drop the weakest features, refit, and continue until the target number survives. The recursion is necessary because a feature's importance depends on the features around it, so a single one-off ranking misjudges features whose value changes as their companions leave.
Related terms
- Feature Selection
- Cross-validation
- Dimensionality
- feature importance
- model complexity
- wrapper method
Learn next
AI for Business Owners helps you weigh the cost of data collection against model value in decisions like this: https://aiforbusinessandlife.com/academy/ai-for-business-owners [C2]
More in AI and machine learning
- Real-Time Machine Learning - Real-time machine learning is the practice of making predictions on live data within tight time budgets, usually milliseconds to seconds, so the answer...
- Reasoning system - A reasoning system is a computational system that derives conclusions, explanations or decisions from represented information using defined inference...
- Reciprocal human machine learning - Reciprocal human machine learning, or RHML, is an approach to human - AI collaboration designed so that both the person and the machine improve through...
- Recursive self-improvement - Recursive self-improvement is a process in which an AI system contributes to improving itself, and the resulting version participates in further improvement...
- Regression fallacy - The regression fallacy is the mistake of attributing a change after an unusually high or low observation entirely to an intervention while overlooking...
- Regressor chains - A regressor chain is a method for predicting several numerical outputs by arranging individual regression models in an ordered sequence.
Sources
[S24] scikit-learn documentation, Glossary of Common Terms and API Elements; [S19] scikit-learn documentation, Metrics and scoring. Full URLs are in the source ledger. Verified 11 October 2026.
Previous: Recursive best-first search Next: Recursive indexing