When a sparse model selects a handful of genes to tell 14 tumor types apart, rerunning it on a slightly different sample often returns a different gene list. The usual fix is stability selection: refit the selector on many random subsamples and keep only the features that are picked often. That recipe was built for a single yes/no or continuous outcome. In a multiclass problem it counts, for each feature, how often it enters the model at all. That single count hides the question that matters. A feature may be the only reliable way to separate two rare, easily confused tumor types while doing nothing for the other twelve. Its overall selection frequency is then dominated by noise from the common classes, and the feature gets dropped.
This note proposes to resolve selection stability by class pair. We fit one joint multiclass sparse model per subsample. For every feature we then record which pairs of classes it actually separates in that fit, and we keep a feature if it is stably useful for at least one pair. The key theoretical claim is a sharper version of a known result. The known result says multiclass generalization, measured on the whole confusion matrix, degrades with the size $m^*$ of the rarest class (Confusion Matrix Stability Bounds for Multiclass Classification). We claim that selection stability for pair $(a,b)$ degrades only with $\min(m_a, m_b)$. If that holds, the minority-class penalty falls only on the pairs that involve the minority class, and it can be budgeted there instead of spread across the whole feature list.
Core Claim
In imbalanced multiclass feature selection, instability is not uniform. It concentrates on features whose job is to separate confusable pairs that involve small classes. Pooled selection frequencies average this structure away. Frequencies computed per pair, from a single joint model and checked against a within-pair label-permutation null, recover minority-discriminating features at a controlled false-positive rate. They should also give more reproducible signatures than pooled, one-versus-all, or oversampling-based pipelines.
To make this concrete, write the joint model as a weight matrix $W \in \mathbb{R}^{k \times d}$, with one row per class and one column per feature. This is the column-sparse multiclass parameterization used by ShareBoost: Efficient multiclass learning with feature sharing. Feature $j$ separates classes $a$ and $b$ in a fit when the gap between their weights on that feature is large. Across $B$ subsamples, the pair-resolved selection frequency is
$$\hat\pi_j^{ab} = \frac{1}{B}\sum_{s=1}^{B} \mathbf{1}\big[\,|W^{(s)}_{aj} - W^{(s)}_{bj}| > \tau\,\big],$$
where $W^{(s)}$ is the fit on subsample $s$ and $\tau$ is a small threshold. The threshold is set relative to the scale of that fit's weights. A feature is retained for pair $(a,b)$ when $\hat\pi_j^{ab}$ exceeds a pair-specific cutoff. The final signature is the union of retained features over all pairs.
The conjectured stability statement is that the variance of $\hat\pi_j^{ab}$ under resampling, and the probability that the pair's retained set changes when one training point is replaced, scale as
$$O\!\left(1/\sqrt{\min(m_a, m_b)}\right),$$
where $m_a$ and $m_b$ are the training counts of classes $a$ and $b$. This form is expected for the following reason. In a well-specified joint model, the weight difference $W_{aj}-W_{bj}$ is driven by the points of classes $a$ and $b$ near their shared decision boundary. Replacing a point outside those classes moves it only through the shared normalization, so the bounded-difference argument behind the confusion-matrix bound localizes to the pair.
Research Program
The work has three parts.
Part 1: measurement. We first establish that the phenomenon is real. On multiclass microarray data and on controlled vision subsets, we fit a multinomial group-lasso (column-sparse $W$) and a ShareBoost-style greedy selector on many class-stratified subsamples. We then measure how selection changes are distributed across class pairs. The specific question comes from Gap 3 in our reading of Approximate Leave-one-out Cross Validation for Regression with ℓ1 Regularizers. That paper shows the number of active-set changes under leave-one-out grows only like $p^{0.43}$ to $p^{0.52}$ for $\ell_1$ linear regression with Gaussian designs. Nobody has checked the multiclass analogue. We will measure how this count scales with the feature dimension $p$ and with the number of classes $k$. We will also measure whether the changes cluster on pairs involving small classes. If the changes are spread evenly over pairs, the core claim is wrong and we stop.
Part 2: method. We build pair-resolved stability selection with a calibration step that addresses a known negative result. Stability Selection for Structured Variable Selection shows that under group and structured input-output penalties, a true signal inflates the selection frequency of correlated null features. This "breaks symmetry," and the textbook false-positive bounds become unreliable in both directions. Pairs that share a class are exactly such a dependency structure, so we do not rely on the exchangeability-based bound alone. For each pair we build an empirical null by permuting labels only among the points of classes $a$ and $b$, leaving the rest of the data intact, and refitting. The cutoff for pair $(a,b)$ is set so that the expected number of null features passing under this permutation stays below a per-pair budget. The permutation keeps the joint model, the feature correlations, and the other classes fixed. It therefore absorbs the asymmetric dependencies that break the standard bound. We will report both the standard bound and the permutation-calibrated rate, so the size of the symmetry-breaking correction is visible.
Part 3: theory. We extend confusion stability to the selection event. Confusion Matrix Stability Bounds for Multiclass Classification proves, for dense Lee–Lin–Wahba and Weston–Watkins SVMs, that the operator norm of the confusion-matrix deviation concentrates at rate $1/\sqrt{m^*}$ via a matrix bounded-difference inequality. It analyzes no sparse regularizer and no active set. We target a pairwise statement for a strongly convex elastic-net-regularized multinomial model, whose small ridge term gives uniform stability of the weights. The statement bounds the probability that the pair-$(a,b)$ selection indicator flips under single-point replacement, using the weight margin $|W_{aj}-W_{bj}|-\tau$ and a stability constant that depends on $\min(m_a,m_b)$. We treat the pure-$\ell_1$ and greedy cases empirically only. The result would say in which pairs the $m^*$ bottleneck bites, which the global bound cannot.
Baselines
The naive reference point is a multinomial lasso with the penalty chosen by 10-fold cross-validation on cross-entropy, run once on the full training set. It is what most practitioners do. Stability Selection for Structured Variable Selection reports that cross-validation-tuned selection yields models in which more than half of selected variables are false positives. So on synthetic data we expect it to lose badly on false-discovery rate, and it anchors the scale of any improvement.
The strongest pooled competitor is standard stability selection on the same joint column-sparse multinomial model. It uses the same number of subsamples, the same class-stratified subsampling (half of each class per draw), and the same regularization grid, but thresholds the pooled frequency of feature $j$ entering any row of $W$. This is the most direct test of our key ingredient. It sees exactly the same fits as our method and differs only in whether frequencies are resolved by pair. Beating it on minority-pair recall at matched false-discovery rate, or matching recall at lower false-discovery rate, is the bar. As an existence reference on the binary end, Sparse learning and stability selection for predicting MCI to AD conversion using baseline ADNI data runs this style of procedure with 1,000 bootstrap subsamples and sparse logistic regression, reporting an AUC of 0.8587 for its 15-feature signature. With $k=2$ there is only one pair, so our method reduces exactly to theirs. We will rerun ADNI as a correctness check that we recover a comparable AUC.
The strongest existing multiclass imbalanced pipeline is IEFS from Iterative ensemble feature selection for multiclass classification of imbalanced microarray data. It binarizes one-versus-all, iterates SMOTE oversampling with mRMR or FCBF filters, and votes with SVM or $k$-NN base classifiers. It was designed around the minority-erasure "siren pitfall" on GCM, ALL-AML-3, and Thyroid, which are our main benchmarks. The file reports no scalar accuracy for IEFS on GCM (results appear only in figures), only that it finds 10–30 gene signatures. So we will reimplement it, match the signature size to our method's, and use the same outer splits. We also include ShareBoost as the strongest joint-sparse accuracy baseline. It reports 0.47% MNIST error with about 300 features (ShareBoost: Efficient multiclass learning with feature sharing). We run it both alone and wrapped in pooled stability selection, to separate greedy-selection volatility from pooling.
Two ablations isolate the ingredients. The first keeps pair resolution but replaces permutation calibration with the textbook exchangeability bound; this shows how much the symmetry-breaking correction matters. The second keeps permutation calibration but pools over pairs; this shows how much pair resolution matters.
Why not just…?
Why not just run one-versus-all stability selection per class and take the union? One-versus-all merges every other class into a single "rest" group. Two different problems follow. ShareBoost: Efficient multiclass learning with feature sharing observes on Char74k that one-versus-rest selection makes feature counts grow roughly linearly as classes go from 2 to 36, while joint sharing grows mildly. Iterative ensemble feature selection for multiclass classification of imbalanced microarray data documents that imbalanced one-versus-all splits reward majority-class guessing. Neither result shows that per-class stability selection with stratified subsampling fails at recovering minority features. That is an empirical question, and one-versus-all stability selection is run as a baseline at matched signature size.
Why not just run one-versus-one stability selection, fitting a separate binary sparse model for each pair? This is the closest threat, because it is also pair-resolved and also scales with $\min(m_a,m_b)$. The difference is that each pairwise fit sees only two classes. A feature shared across many pairs is re-estimated $k(k-1)/2$ times from small data. It is also never forced to be jointly useful, so the total signature can bloat for the reason ShareBoost identifies. Our method reads pairs off a single joint fit, so shared features are estimated from all the data. If one-versus-one stability selection matches our minority-pair recall, false-discovery rate, and signature size on GCM and the synthetic suite, the joint-model component adds nothing. We would then report that the contribution reduces to the calibration and the theory.
Why not just oversample the minority classes before ordinary stability selection? SMOTE-before-selection is the central move of IEFS, and it improved minority recall there over undersampling. Synthetic points, however, are interpolations of the few real minority points. They make subsample fits agree with each other without adding information, which can inflate apparent stability. Our test holds out real minority samples and checks whether selected features still separate them. A method whose stability comes from duplicated information should show high subsample agreement but poor held-out minority-pair separation and poor cross-split reproducibility.
Why not just rank features by a variance-penalized score such as mean minus standard deviation across folds? The Conservative Mean of An integrated machine learning approach to stroke prediction was effective and fast on a binary survival outcome (AUC 0.777 on CHS). It is, however, a single scalar per feature, so it inherits the averaging problem we target. We include a pairwise-AUC version as a cheap baseline. If it matches us, the value lies in pair resolution, not in resampling a joint model.
Proposed Experiments
Synthetic suite. The first experiment uses synthetic data where truth is known. We plant pair-specific signal features, some separating only a rare pair. We add shared features that separate many pairs, and correlated decoys that copy each signal feature at controlled correlation, which recreates the redundancy that scrambles rankings in Marginal Contribution Feature Importance - an Axiomatic Approach for Explaining Data. We vary $k$ from 3 to 20, minority size from 5 to 50, and $p$ from 500 to 5,000. The metrics are false-discovery rate, recall broken down by pair type, and calibration of the per-pair false-positive budget. We also measure the multiclass leave-one-out active-set change count against $p$ and $k$, to test whether the sub-linear regression scaling survives.
Real data. The main real-data tests are the multiclass microarray benchmarks GCM (14 classes), ALL-AML-3, and Thyroid. We use repeated stratified outer splits. We report signature reproducibility between independent halves of the data as the Jaccard overlap of selected sets. We report held-out balanced accuracy and per-class recall for the smallest classes, using a fixed downstream classifier (linear SVM) on each method's signature at matched size. For controlled class-count scaling we use MNIST and Char74k subsets with artificially shrunk classes.
Decisive checks. Three results would decide the proposal. First, the measurement study must show that selection instability concentrates on minority-involving pairs; otherwise the premise fails. Second, pair-resolved selection must beat pooled stability selection on the same joint fits in minority-pair recall at matched false-discovery rate, and must not lose to one-versus-one. Third, the flip rate of pair-$(a,b)$ selection, measured by single-point replacement, must track $1/\sqrt{\min(m_a,m_b)}$ rather than $1/\sqrt{m^*}$ as we shrink one class while holding the others fixed. A slope consistent with the global rate on pairs not involving the shrunken class would refute the theoretical claim.
References
- Confusion Matrix Stability Bounds for Multiclass Classification
- ShareBoost: Efficient multiclass learning with feature sharing
- Approximate Leave-one-out Cross Validation for Regression with ℓ1 Regularizers
- Stability Selection for Structured Variable Selection
- Sparse learning and stability selection for predicting MCI to AD conversion using baseline ADNI data
- Iterative ensemble feature selection for multiclass classification of imbalanced microarray data
- An integrated machine learning approach to stroke prediction
- Marginal Contribution Feature Importance - an Axiomatic Approach for Explaining Data