Boruta is a wrapper algorithm built around a random forest classifier that iteratively removes features proven to be statistically less important than random probes. It creates shadow features by shuffling the values of each original attribute, destroying their relationship with the target, and then compares the importance of real features against the maximum importance achieved among these randomized copies.
Glossary
Boruta

What is Boruta?
Boruta is an ensemble-based feature selection algorithm designed to identify all features relevant to a target variable, rather than finding a minimal optimal subset.
The algorithm performs a two-sided test of equality, retaining features that are significantly better than the best shadow feature and rejecting those that are significantly worse. After a fixed number of iterations or when all features are confirmed or rejected, Boruta outputs the all-relevant feature set, making it uniquely suited for biomarker discovery where understanding complex, redundant biological mechanisms is critical.
Key Characteristics of Boruta
Boruta is a wrapper algorithm built around a random forest classifier that identifies all features having a statistically significant relationship with the target variable, rather than finding a minimal optimal subset.
Shadow Feature Mechanism
The core innovation of Boruta is the creation of shadow features—shuffled copies of the original features that serve as randomized negative controls. For each real feature, the algorithm creates a corresponding shadow feature by permuting its values across samples, destroying any relationship with the target while preserving the marginal distribution. The random forest is then trained on the combined set of real and shadow features, and the Z-score of each real feature's importance is compared to the maximum Z-score among all shadow features. A feature is deemed confirmed if its importance statistically outperforms the best randomized feature over multiple iterations.
Iterative Statistical Testing
Boruta operates through a multi-round elimination process using binomial statistical tests:
- In each iteration, features with importance significantly lower than the maximum shadow importance are marked as rejected and removed
- Features significantly higher are marked as confirmed
- Features in the grey zone remain tentative and continue to the next round
- The algorithm terminates when all features are either confirmed or rejected, or a specified iteration limit is reached
- The default significance level uses a two-sided binomial test with p < 0.01, adjusted for multiple comparisons across iterations
All-Relevant vs. Minimal-Optimal
Unlike methods such as LASSO or Recursive Feature Elimination that seek a minimal-optimal set maximizing predictive accuracy, Boruta identifies the all-relevant feature set. This distinction is critical in biomarker discovery:
- A minimal-optimal set may discard features that are individually predictive but redundant with other selected features
- The all-relevant set retains every feature that carries information about the target, even if correlated with other predictors
- This property makes Boruta especially valuable for biological interpretation, where understanding all disease-associated variables matters more than building the most parsimonious model
Random Forest Foundation
Boruta leverages the random forest algorithm's native ability to capture non-linear relationships and feature interactions without parametric assumptions. The underlying importance metric is typically Mean Decrease in Accuracy (permutation importance) computed from out-of-bag samples. This foundation provides several advantages:
- Model-agnostic to data distributions—no assumptions of linearity or normality
- Automatically accounts for feature interactions through the ensemble of decision trees
- Handles mixed data types including continuous, categorical, and ordinal variables
- The randomness in bootstrap sampling and feature subset selection provides the variability needed for statistical comparison against shadow features
Tentative Feature Resolution
A distinctive aspect of Boruta is its handling of tentative features—variables that cannot be confidently classified as important or unimportant after the maximum iterations. The original algorithm offers two resolution strategies:
- TentativeRoughFix: Classifies all remaining tentative features as confirmed, erring on the side of inclusion for conservative biomarker discovery
- Tentative as rejected: A stricter approach that discards ambiguous features
- Modern implementations like BorutaShap replace the random forest importance with SHAP values, providing more consistent feature rankings and reducing the number of tentative features by using a more theoretically grounded importance metric
Computational Considerations
Boruta's exhaustive search approach carries computational costs that scale with dimensionality:
- Runtime complexity is approximately O(N * M * T * log(M)), where N is the number of iterations, M is the number of features, and T is the number of trees
- For datasets with thousands of features, runtime can extend to hours; the algorithm is best suited for datasets with hundreds to low thousands of features
- Parallelization across CPU cores can significantly reduce wall-clock time by distributing tree construction
- The BorutaPy Python implementation and Boruta R package both support multi-core execution and provide progress tracking for long-running selections
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the Boruta all-relevant feature selection algorithm, its mechanics, and its role in high-dimensional biomarker discovery.
The Boruta algorithm is an all-relevant feature selection wrapper method built around a Random Forest classifier. Its core mechanism involves creating randomly shuffled copies of all original features, called shadow features. In each iteration, a Random Forest is trained on the combined set of original and shadow features, and the importance score (typically Z-score or Mean Decrease Accuracy) of every real feature is compared to the maximum importance score achieved among the shadow features. A real feature is deemed 'important' only if it consistently outperforms the best random noise proxy over multiple iterations. Features that perform significantly worse are dropped, and the process repeats until all features are either confirmed or rejected, or a predefined iteration limit is reached. This statistical competition against randomness ensures that no feature with even a subtle, non-linear relationship to the target is prematurely discarded.
Boruta vs. Other Feature Selection Methods
Comparative analysis of Boruta against common feature selection approaches for high-dimensional biomarker data
| Feature | Boruta | LASSO | Recursive Feature Elimination | mRMR |
|---|---|---|---|---|
Selection Goal | All-relevant features | Sparse predictive subset | Optimal predictive subset | Maximally relevant, minimally redundant subset |
Handles Feature Interactions | ||||
Built-in Statistical Significance | ||||
Native Multicollinearity Handling | ||||
Output Type | Confirmed, tentative, rejected labels | Non-zero coefficient features | Ranked feature list | Ranked feature list |
Computational Cost | High | Low | Medium | Low |
Requires Target Variable | ||||
Shadow Feature Mechanism |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Explore complementary and competing algorithms in the high-dimensional feature selection landscape. Each method offers distinct trade-offs between stability, interpretability, and computational cost.
LASSO (L1 Regularization)
A foundational embedded method that performs simultaneous feature selection and regularization by penalizing the absolute size of coefficients. Unlike Boruta, LASSO selects a minimal predictive set rather than all relevant features.
- Shrinks irrelevant coefficients to exactly zero
- Produces a sparse, interpretable model
- Struggles with highly correlated feature groups
- Often used as a baseline before applying Boruta
Stability Selection
A robust framework that applies a selection algorithm like LASSO across many random subsamples of the data. Features consistently chosen across perturbations are deemed reliable.
- Controls the expected number of false positives
- Complements Boruta's all-relevant philosophy
- Computationally intensive due to resampling
- Particularly valuable for small-n-large-p biomedical datasets
Knockoff Filter
A statistical framework that creates synthetic 'knockoff' variables mimicking the correlation structure of original features. These serve as negative controls for rigorous false discovery rate estimation.
- Provides exact FDR control in finite samples
- Conceptually similar to Boruta's shadow features
- More formal statistical guarantees than Boruta
- Requires careful knockoff generation for complex data
SHAP Feature Selection
A model-agnostic approach using Shapley additive explanations to quantify each feature's marginal contribution to predictions. Features with highest mean absolute SHAP values are retained.
- Based on cooperative game theory
- Provides both global and local interpretability
- Computationally expensive for large feature sets
- Often used post-Boruta for deeper importance ranking
Minimum Redundancy Maximum Relevance (mRMR)
A filter method that selects features by maximizing relevance to the target while minimizing mutual information redundancy among selected features. Unlike Boruta, it explicitly penalizes correlated selections.
- Uses information-theoretic criteria
- Fast and model-independent
- Produces a compact, non-redundant set
- Complements Boruta when interpretability demands minimal overlap
Permutation Feature Importance
A model inspection technique that measures the decrease in model performance when a single feature's values are randomly shuffled. This breaks the feature-target relationship while preserving its distribution.
- Model-agnostic and intuitive
- Directly measures predictive impact
- Can be biased with correlated features
- Often compared against Boruta's shadow-based importance thresholds

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us