Pathwise Feature Selection (PFS)
- Pathwise Feature Selection (PFS) is a family of methods that selects features along trajectories or graph paths, emphasizing local structures and global ranking.
- It integrates approaches like local graph estimation, global path aggregation via matrix power series, and distributed stepwise selection to address scalability and false discovery control.
- These techniques yield interpretable outputs such as weighted adjacency matrices, nested selected sets, and instance-specific acquisition trajectories, facilitating practical application in high-dimensional settings.
Pathwise Feature Selection (PFS) denotes a class of feature-selection procedures in which the basic selection object is not only an isolated feature score, but a path, trajectory, or path-indexed family of selected sets. In its most explicit current usage, PFS is a local graph estimation method that starts from a target set , iteratively applies nodewise feature selection, and propagates edgewise uncertainty along graph paths to recover a target-centered subgraph (Melikechi et al., 23 Jul 2025). In adjacent literatures, closely related ideas appear under different names: feature subsets represented as paths in a feature graph and summed to infinite length (Roffo et al., 2020), forward-backward stepwise trajectories computed in distributed form (Tsamardinos et al., 2017), threshold paths integrated by stability selection (Melikechi et al., 2024), and instance-wise acquisition trajectories trained with pathwise gradients (Aronsson et al., 6 May 2026). The term therefore has both a narrow meaning, tied to local graph estimation, and a broader methodological meaning covering several non-equivalent path-based formulations.
1. Terminological scope and core distinctions
PFS is not a single standardized label across the literature. The 2025 paper on local graph estimation explicitly presents pathwise feature selection as an alternative to full-graph estimation when the scientific goal is recovery of local structure around variables of interest (Melikechi et al., 23 Jul 2025). By contrast, earlier and parallel work uses other names while employing clearly path-based constructions. "Infinite Feature Selection" treats a subset of features as a path in a feature graph and scores each feature through its participation in paths of arbitrary length (Roffo et al., 2020). PFBP is a massively parallel redesign of forward-backward selection in which the selected set evolves along a greedy stepwise path with additions, deletions, and reruns (Tsamardinos et al., 2017). IPSS defines a path through nested thresholded feature sets and integrates stability over that threshold continuum (Melikechi et al., 2024). NM-PPG treats feature selection as a sequential acquisition trajectory and optimizes it with pathwise gradients (Aronsson et al., 6 May 2026).
| Path notion | Representative formulation | Representative paper |
|---|---|---|
| Graph path over features | Subsets scored as weighted paths, aggregated by | (Roffo et al., 2020) |
| Stepwise selection path | Forward additions and backward deletions of across iterations and runs | (Tsamardinos et al., 2017) |
| Threshold path | integrated over | (Melikechi et al., 2024) |
| Local graph path | Paths from targets with cumulative edge -values | (Melikechi et al., 23 Jul 2025) |
| Acquisition trajectory | Instance-wise mask sequence with STOP action | (Aronsson et al., 6 May 2026) |
This diversity makes several common misconceptions important to avoid. PFS is not synonymous with a lasso or regularization path: both PFBP and local-graph PFS are driven by conditional-independence or -value decisions rather than coefficient trajectories (Tsamardinos et al., 2017, Melikechi et al., 23 Jul 2025). It is also not necessarily a monotone or nested model sequence: PFBP includes backward deletions, so the full path of selected sets is not guaranteed to remain nested over an entire run (Tsamardinos et al., 2017). Conversely, pathwise need not mean sequential one-feature-at-a-time entry. Inf-FS does not follow one path at all; it performs a one-shot global aggregation over all possible paths encoded by matrix powers (Roffo et al., 2020).
2. PFS as local graph estimation
In its narrow and explicit sense, PFS is a method for estimating only the subgraph near a user-specified target set , rather than recovering a full conditional independence graph on all 0 variables (Melikechi et al., 23 Jul 2025). Let 1 have undirected conditional independence graph 2. For graph distance 3, the radius-4 ball around 5 is
6
with sphere 7. The associated local edge set is
8
so the local graph is 9 (Melikechi et al., 23 Jul 2025).
The algorithm grows this local graph outward one layer at a time. It initializes the current frontier and visited set at the targets,
0
and a weighted adjacency matrix
1
At each radius 2, every node 3 is treated as a response variable, and nodewise feature selection is used to compute edgewise 4-values 5 for all 6. If 7, the edge weight is updated symmetrically as
8
The method then computes, for each unvisited node, the lightest estimated path of length 9 from 0,
1
and admits only nodes satisfying
2
The new frontier is therefore restricted by cumulative path uncertainty rather than by edgewise screening alone (Melikechi et al., 23 Jul 2025).
The central theorem is path-specific. For a path 3 with distinct nodes, under Storey-type assumptions for each nodewise family and independence of 4 along the path, the probability that the selected path is not a true graph path is bounded by the sum of its edge 5-values: 6 This is a finite-sample path discovery guarantee, not a full local-graph FDR guarantee (Melikechi et al., 23 Jul 2025). The distinction is fundamental: the controlled discovery unit is the path, and the local scientific claim is that a retained node is connected to the targets through at least one low-uncertainty chain.
The method is designed for settings with 7 i.i.d. samples, possibly large 8, mixed data types, nonlinear relationships, and a small target set of primary scientific interest (Melikechi et al., 23 Jul 2025). Its implementation uses IPSS to generate edgewise 9-values, but the framework is modular in the sense that any nodewise selector producing appropriate 0-values may be substituted. This yields an output that is explicitly interpretable: a weighted local adjacency matrix 1, radius layers around 2, edge-specific 3-values, and lightest paths from the targets. The main limitation stressed by the paper is that deeper paths accumulate uncertainty additively, and the theorem controls path non-membership probability rather than exact local edge FDP (Melikechi et al., 23 Jul 2025).
3. Graph-based path aggregation and global ranking
A different pathwise formulation appears in "Infinite Feature Selection" (Roffo et al., 2020). Here, the feature set is encoded as a weighted, undirected, fully connected graph 4, in which node 5 corresponds to feature 6, and edge weight
7
expresses confidence that both 8 and 9 are good candidates to be selected together. A path
0
is interpreted as a subset of 1 features, and its weight is the product of edge weights,
2
If 3 is the set of all paths of length 4 from 5 to 6, the total contribution of all such paths is
7
The score of feature 8 at fixed path length 9 is
0
and aggregation over all lengths yields
1
To ensure convergence, the paper introduces a damping factor 2 and uses the regularized sum
3
with
4
Thus each feature is ranked by its total participation in weighted paths of all lengths up to infinity (Roffo et al., 2020).
The graph construction differs between the unsupervised and supervised variants. In Inf-FS5,
6
where 7 and 8, so high-variance and weakly correlated pairs receive large weight. In Inf-FS9, a feature-level score
0
is formed from a Fisher criterion, mutual information, and standard deviation, and the edge factorizes as
1
The unsupervised version therefore encodes redundancy explicitly through pairwise Spearman correlation, whereas the supervised version uses factorized node relevance (Roffo et al., 2020).
This method is pathwise in the sense of global path aggregation rather than sequential search. It does not trace one route through subset space; it effectively sums over all paths by matrix power series. The resulting procedure is a filter method that produces a global ranking, after which one either keeps a prescribed top 2 features or uses the proposed automatic cutoff based on 1D Mean Shift with automatic bandwidth selection (Roffo et al., 2020). The paper argues that the closed form reduces complexity from 3 to 4, and reports complexity 5 for Inf-FS6 and 7 for Inf-FS8 (Roffo et al., 2020). This formulation is therefore pathwise without being stepwise.
4. Stepwise trajectories and distributed path construction
PFBP, or Parallel, Forward-Backward with Pruning, is a Big-Data extension of forward-backward selection and is naturally interpreted as a pathwise method in the classical stepwise sense (Tsamardinos et al., 2017). Its path is the ordered evolution of the selected set 9 across forward additions, backward deletions, and multiple runs. In a forward phase, the algorithm repeatedly adds the variable with the smallest conditional-independence 0-value given the current 1, provided that 2-value is 3. In a backward phase, it repeatedly removes the selected variable with the largest 4-value conditional on 5, provided that 6-value is 7 (Tsamardinos et al., 2017).
The paper’s central contribution is operational rather than conceptual: it shows how to preserve this stepwise path semantics when both the number of samples and the number of features are too large for ordinary centralized model fitting. The data matrix is partitioned both by rows and by columns into blocks 8. Workers run local conditional-independence tests on the blocks, returning local 9-values and log-likelihood contributions. These are combined centrally by Fisher’s combined probability test,
0
which is distributed as 1 with 2 degrees of freedom (Tsamardinos et al., 2017). The path state therefore still depends on the current selected set 3, but the evidence for each path step is assembled from local summaries rather than from repeated global optimization.
Three pruning heuristics define how aggressively the path is shortened during computation. Early Dropping removes variables from future forward iterations in the current run if
4
Early Stopping removes variables from the current iteration if
5
Early Return truncates the current competition and commits to the current best if the likelihood-based criterion indicates that the best feature is probably good enough (Tsamardinos et al., 2017). The recommended thresholds are 6, 7, 8, 9, and minimum 00. These heuristics are described as asymptotically sound and are the main reason the algorithm achieves low communication cost and large-scale viability (Tsamardinos et al., 2017).
The pathwise interpretation is precise. Within a forward phase, the selected sets are nested: 01 Over the full algorithm, however, the path is not monotone because backward deletion may shrink 02, and reruns may allow previously dropped variables to re-enter contention (Tsamardinos et al., 2017). This distinguishes PFBP from purely monotone forward stagewise procedures.
The theoretical guarantees are formulated as Markov blanket recovery results under an independence oracle and faithfulness assumptions. If the distribution can be faithfully represented by a Bayesian network, then PFBP with two runs identifies the Markov blanket of the target 03. If the distribution can be faithfully represented by a directed maximal ancestral graph, then PFBP with no limit on the number of runs identifies the Markov blanket of 04 (Tsamardinos et al., 2017). This is stronger than a guarantee about a locally optimal greedy subset; it states that the iterative path, together with reruns after dropping, converges to the correct blanket under the stated assumptions.
5. Threshold paths, stability integration, and false discovery control
A third meaning of pathwise selection appears in integrated path stability selection (IPSS) (Melikechi et al., 2024). IPSS begins with an arbitrary feature importance function
05
and converts it into a path of nested selection sets by thresholding: 06 The path is therefore the family 07: large 08 selects few features, and smaller 09 admits more features (Melikechi et al., 2024). This is not a regularization path in the lasso sense and not a sequential add-one-feature path. It is a threshold path over ranked scores.
IPSS then applies disjoint half-subsampling. Across 10 iterations there are 11 half-samples, and the empirical selection frequency of feature 12 at threshold 13 is
14
This yields a stability curve 15. Rather than choosing one threshold, IPSS integrates stability over a threshold interval 16: 17 using
18
The corresponding efp score is
19
and the final selection at target expected false positives 20 is
21
Under the paper’s simultaneous-selection condition on null features, this construction satisfies finite-sample expected-false-positive control: 22 Approximate FDR control is then obtained via
23
leading to empirical 24-value estimation and the rule to choose the largest 25 such that
26
for target FDR level 27 (Melikechi et al., 2024).
The framework is nonparametric whenever the base importance score is nonparametric. The paper emphasizes two special cases: IPSSGB, which uses gradient boosting importance scores from XGBoost, and IPSSRF, which uses random forest importance scores from scikit-learn (Melikechi et al., 2024). The default measure is
28
so integration is performed on a log scale; the paper uses 29 for IPSSGB, 30 for IPSSRF, and usually 31 thresholds (Melikechi et al., 2024). In the PFS taxonomy, IPSS is best understood as a pathwise thresholding-and-aggregation procedure with finite-sample 32 control, rather than as a classical stepwise selector.
6. Instance-wise sequential selection and common structural themes
A fourth pathwise interpretation arises in active feature acquisition, where the selected subset is instance-dependent and order-dependent (Aronsson et al., 6 May 2026). NM-PPG formulates this setting as a finite-horizon POMDP. For each instance 33, the state of acquired features is encoded by a binary mask
34
and the observation is the masked representation
35
The action space is
36
where 37 acquire individual features and 38 is STOP. The objective is to minimize expected prediction loss plus acquisition cost,
39
with stopping either chosen by the policy or forced at horizon 40 (Aronsson et al., 6 May 2026).
The pathwise aspect is twofold. First, the subset is built along a trajectory
41
so later feature choices depend on earlier observed values. Second, training uses pathwise gradients through a differentiable relaxation of the full acquisition rollout. With Gumbel-Softmax, the relaxed action is
42
which induces a relaxed feature-selection vector 43, a soft mask update
44
and a survival mass
45
The relaxed full-path objective is
46
so gradients propagate from later losses back through earlier mask updates and action logits (Aronsson et al., 6 May 2026).
To align training with discrete deployment, the paper introduces a straight-through rollout: 47 The forward pass therefore follows hard acquisitions, while the backward pass uses the soft relaxation. Entropy regularization and staged temperature sharpening are added for stability (Aronsson et al., 6 May 2026). This is pathwise selection in a fully instance-wise sense: there is no global subset and no global feature ranking.
Taken together, these formulations show that PFS is best understood as a family of methods organized around a path object, but the meaning of that object varies substantially. In local graph estimation, the path is a chain from target variables through edges with additive 48-value uncertainty (Melikechi et al., 23 Jul 2025). In Inf-FS, it is a combinatorial path through a feature graph, aggregated globally in closed form (Roffo et al., 2020). In PFBP, it is the stepwise evolution of 49 under conditional-independence decisions and pruning (Tsamardinos et al., 2017). In IPSS, it is a threshold continuum over ranked scores with integrated stability (Melikechi et al., 2024). In NM-PPG, it is a sequential, cost-sensitive, instance-specific acquisition trajectory (Aronsson et al., 6 May 2026). A plausible implication is that the term is most precise when accompanied by the path semantics being used: graph path, stepwise path, threshold path, target-centered local path, or acquisition trajectory.