Papers
Topics
Authors
Recent
Search
2000 character limit reached

Unity VIM: Interaction-Based Variable Importance

Updated 18 January 2026
  • Unity VIM is a specialized variable importance metric for Unity Forests that detects pure interaction effects even when marginal signals are weak.
  • It computes importance by focusing on top out-of-bag impurity-reducing splits at jointly optimized tree roots, using local permutation tests.
  • Unity VIM overcomes limitations of traditional RF measures by reliably ranking covariates that only show predictive power in interaction-dependent contexts.

The Unity Variable Importance Measure (unity VIM) is a variable importance metric tailored to Unity Forests (UFOs), a random forest variant that improves detection and quantification of variables whose effects manifest mainly through interactions—especially those with little or no marginal predictive signal. By focusing on the top out-of-bag impurity-reducing splits in the shallow, jointly optimized roots of UFO trees, unity VIM quantifies each covariate’s importance according to its maximal local impact. Unlike classical random forest importance metrics, unity VIM is specifically crafted to identify and quantify “pure interactors,” i.e., covariates whose discriminative value is only revealed conditionally upon earlier splits on their interacting partners, rather than through main effects (Hornung et al., 11 Jan 2026).

1. Formal Definition and Mathematical Foundations

Let F={T1,,TT}\mathcal{F} = \{T_1, \ldots, T_T\} denote a Unity Forest composed of TT trees. Each tree TtT_t is constructed in two phases:

  • A joint root of depth at most DD (default D=3D=3) is selected from ncandn_{\text{cand}} random candidate roots grown on a random subset of prop_varp\text{prop\_var} \cdot p covariates.
  • The remainder of each tree is grown using standard CART.

Denote by \ell the internal nodes (non-leaf) in the root of each tree and by j{1,,p}j \in \{1, \ldots, p\} the index for each covariate. For each \ell, let TT0 (size TT1) and TT2 represent the in-bag and out-of-bag samples passing through TT3, respectively. Define TT4 as the impurity criterion: Gini for classification, variance for regression.

The in-bag split score at node TT5 (split on covariate TT6) is

TT7

For each covariate TT8, collect all such splits across all trees’ roots (total count TT9 for TtT_t0). Compute TtT_t1 and let TtT_t2 be the set of TtT_t3 splits for TtT_t4 with highest TtT_t5.

For all TtT_t6, compute the out-of-bag (OOB) impurity drop and its local permutation variant:

  • TtT_t7
  • TtT_t8 same, after permuting covariate TtT_t9 among DD0

The unity VIM for DD1 is then:

DD2

This definition targets the “power effect” of DD3 under the local context in which DD4 is most discriminative—either marginally or after interacting splits (Hornung et al., 11 Jan 2026).

2. Algorithmic Workflow and Implementation

The core UFO and unity VIM workflow proceeds in two stages, outlined precisely as follows.

UNITY FOREST Algorithm (model fitting):

  1. For each of DD5 trees: a. Subsample observations (fraction DD6) as in-bag, remainder is OOB. b. Randomly select DD7 covariates for the root. c. Generate DD8 candidate roots of depth DD9; in each, splits are made at random among chosen covariates. d. For each candidate root D=3D=30, compute total impurity drop D=3D=31. e. Select the candidate root maximizing D=3D=32 as the tree root. f. Grow the remainder of the tree using standard CART.

UNITY VIM Algorithm (importance computation):

  1. For each covariate D=3D=33, collect all root-level splits involving D=3D=34, storing D=3D=35.
  2. For each D=3D=36: a. Sort splits descending by D=3D=37. b. Take top D=3D=38 splits as D=3D=39. c. For each ncandn_{\text{cand}}0: i. Compute ncandn_{\text{cand}}1 and ncandn_{\text{cand}}2 using OOB data. ii. Accumulate ncandn_{\text{cand}}3. d. Set ncandn_{\text{cand}}4.
  3. Return ncandn_{\text{cand}}5.

Recommended defaults are ncandn_{\text{cand}}6, ncandn_{\text{cand}}7 (when ncandn_{\text{cand}}8, else ncandn_{\text{cand}}9), prop_varp\text{prop\_var} \cdot p0, prop_varp\text{prop\_var} \cdot p1, and prop_varp\text{prop\_var} \cdot p2 between 1000 and 20000 (Hornung et al., 11 Jan 2026).

3. Comparison with Classical Random Forest Importances

Standard random forest variable importance measures include:

  • Permutation Importance: Measures the increase in OOB error when a covariate prop_varp\text{prop\_var} \cdot p3 is permuted globally across OOB samples. Sensitive only to global or marginal effects; interactions without main effects are typically missed.
  • Mean Decrease Impurity (MDI, Gini decrease): Sums impurity drops at all splits on prop_varp\text{prop\_var} \cdot p4; biased toward variables with many split points and fails to recognize pure interactors.

These approaches are inherently limited in detecting covariates that only show discriminative power in the presence of certain ancestor splits. Standard forests’ top-level splits are chosen solely by maximizing local impurity reduction (marginal gain), so “pure” interactions—where no individual variable shows a main effect—are excluded from early splits and thus from major importance assignment. Both global permutation and MDI VIMs assign near-zero importance to those features.

Unity VIM directly overcomes these limitations by:

  • Forcing pure interactors into tree roots via random covariate subsampling and joint optimization,
  • Scoring variables based on their strongest “local context” splits rather than aggregating marginal effects or global permutations,
  • Concentrating attention on those subregions of feature space where interactions manifest.

This ensures that, for patterns such as the XOR, variables that would otherwise be missed are assigned high importance values (Hornung et al., 11 Jan 2026).

4. Identification of Pure Interactions: Illustrative Mechanism

Consider the canonical XOR problem with binary features prop_varp\text{prop\_var} \cdot p5 and prop_varp\text{prop\_var} \cdot p6. Neither prop_varp\text{prop\_var} \cdot p7 nor prop_varp\text{prop\_var} \cdot p8 reduces Gini impurity at the root in standard trees—the splits are locally non-discriminative and thus rarely selected. However, with a joint root of depth two (in UFO), candidate structures such as prop_varp\text{prop\_var} \cdot p9 split followed by \ell0, or vice versa, are eligible. Across many random roots, one matches the correct interaction; impurity is maximized with pure leaves.

Unity VIM for \ell1 or \ell2 is then determined by just those nodes where the split on \ell3 (conditional on \ell4) achieves maximal separation. When \ell5 is permuted only in the OOB samples reaching such nodes, its local discriminative capacity is destroyed, collapsing the impurity improvement—this “local” permutation directly reflects the real value of the interaction, unlike global permutations or cumulative impurity reductions (Hornung et al., 11 Jan 2026).

5. Computational Considerations and Hyperparameter Selection

Unity VIM is efficient with recommended hyperparameters for typical datasets up to a few hundred features and observations. The design leverages:

  • Parallelization at the node or covariate level (e.g., via multithreading in C++),
  • Storage of all tree roots’ split information before variable-based filtering and score aggregation,
  • Focus only on top 1% (default) of splits for each variable, minimizing memory and compute costs.

Key parameters include number of trees (\ell6), subsampling fractions, covariate sampling for root growth (\ell7), number of root candidates (\ell8), and the filter fraction (\ell9). Increasing root depth captures higher-order interactions but at cost of more candidate generation. Smaller datasets (j{1,,p}j \in \{1, \ldots, p\}0) may exhibit high variance; stability can be checked by comparing to permutation VIM.

Additionally, covariate-representative tree roots (CRTRs) can be used after VIM computation to visualize whether a covariate exerts its strongest effects marginally or interactively (Hornung et al., 11 Jan 2026).

6. Practical Implications, Context, and Significance

Unity VIM represents a major methodological advance for quantifying variable importance where high-order interactions dominate and marginal effects are weak or absent. Prior measures either miss or systematically down-weight “purely interactive” covariates. By focusing measurement on maximally local, context-specific discriminatory power, unity VIM enables:

  • Reliable detection of variables participating only in interactions,
  • Proper ranking of covariates when effect types differ across features,
  • Enhanced interpretability when paired with CRTRs.

In synthetic and real data experiments, unity VIM consistently identified truly interacting variables and outperformed conventional RF-based methods in discrimination and predictive performance (Hornung et al., 11 Jan 2026).

The broader significance encompasses variable importance needs in genomics, epidemiology, and high-dimensional feature selection, where interaction effects are common. Unity VIM occupies a distinct niche among recent VIM frameworks (e.g., targeted learning, conditional permutation, plug-in CATE-based metrics (Wang et al., 2024, Khan et al., 2022)) by adapting the tree-building process itself to optimize for detection of interaction effects at the core of importance assignment.

Table: Comparison of Unity VIM with Conventional RF Importances

Measure Splitting Mechanism Captures Pure Interactions Focus of Importance Scoring
Permutation VIM Global (OOB) Permutation No Overall OOB prediction error
MDI (Gini decrease) All splits (local, marginal) No Sum of all impurity reductions
Unity VIM Jointly optimized tree roots (UFO) Yes Top out-of-bag impurity drops post-filter

The mechanism of unity VIM provides context-sensitive variable scoring, thereby rectifying the failure of standard methods to reflect interaction-driven predictivity (Hornung et al., 11 Jan 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Unity Variable Importance Measure (VIM).