Abstract
In fields ranging from microbiology to nutrition, researchers frequently encounter compositional data—variables that represent relative proportions of a whole and must sum to a constant. High-dimensional feature selection in this context is challenging because standard $l_1$-regularization (Lasso) techniques cannot natively handle the linear equality constraints imposed by the data's structure. This paper introduces comlasso, a highly efficient primal path algorithm designed for $l_1$-regularized regression and classification of compositional data. By directly monitoring Karush-Kuhn-Tucker (KKT) conditions and avoiding the artificial $l_2$ penalties required by existing solvers, comlasso provides an exact solution path with significant computational advantages, particularly when the number of features exceeds the number of samples.
Introduction
Compositional data is ubiquitous in the natural sciences. Whether analyzing the relative abundance of bacteria in a microbiome, the mineral composition of soil, or the distribution of macronutrients in a diet, the predictors are inherently constrained: they are non-negative and sum to one. This linear dependence renders standard regression models invalid.
To address this, researchers typically employ a log-contrast transformation, which converts the compositional components into a form suitable for linear modeling, subject to a zero-sum constraint on the coefficients. In high-dimensional settings where the number of features ($p$) is much larger than the number of observations ($n$), performing feature selection requires $l_1$-regularization. However, standard coordinate descent algorithms for the Lasso cannot accommodate the necessary linear equality constraints. While generalized lasso (genlasso) frameworks exist, they often require the addition of an $l_2$ (Ridge) penalty to ensure stability in $p > n$ scenarios. This "crutch" not only slows down computation but also compromises the sparsity and interpretability of the resulting model.
The Comlasso Algorithm
The authors propose comlasso (composite-lasso), a primal path algorithm that constructs the exact solution path for $l_1$-regularized problems under linear constraints. The algorithm is built on several key technical innovations:
1. Exact Initialization
Unlike heuristic approaches, comlasso mathematically determines the precise starting point of the solution path. It identifies the initial active set of variables even when multiple coefficients must activate simultaneously to satisfy the null space requirements of the constraint matrix.
2. KKT Condition Monitoring
Instead of approximating the solution through iterative optimization or proxy penalties, comlasso explicitly monitors the KKT conditions. It treats the solution path as piecewise linear (similar to the LARS algorithm) and calculates the exact "step size" required to reach the next transition point. This is achieved by solving a small-scale linear programming problem to predict when a KKT violation will occur, signaling that a variable should enter or leave the active set.
3. Loss Function Versatility
The framework is compatible with any "almost quadratic" loss function. This flexibility allows comlasso to be applied to standard linear regression (squared loss), robust regression (Huberized loss), and binary classification (squared hinge loss), making it a general-purpose tool for compositional analysis.
Performance and Scalability
Benchmarking against the standard genlasso solver reveals that comlasso offers transformative performance gains in high-dimensional contexts. In simulations where $p=1000$ and $n=50$, comlasso computed the entire solution path in approximately 0.24 seconds. In contrast, genlasso required between 18 and 21 seconds—a nearly 100-fold difference in speed.
Furthermore, comlasso demonstrates superior scalability. While the computation time for genlasso grows exponentially as the number of features increases, comlasso’s performance remains relatively flat. This efficiency stems directly from the algorithm's ability to solve the $l_1$ problem exactly without the computational overhead of an $l_2$ penalty.
Real-World Application: Microbiome Analysis
The practical utility of comlasso was demonstrated using a microbiome dataset involving patients with and without bloodstream infections. The dataset contained 107 genus-level operational taxonomic units (OTUs) categorized into four distinct phyla.
Encoding Biological Priors
A unique advantage of the comlasso framework is the ability to encode biological hierarchies as constraints. The authors compared a global constraint model (comlassoA) against a phylum-constrained model (comlassoB). In comlassoB, separate compositional constraints were applied to the bacteria within each of the four phyla. This approach effectively integrated the phylogenetic structure into the mathematical model, preventing the selection process from being biased toward phyla with a larger number of OTUs.
Results and Biological Relevance
The phylum-constrained model (comlassoB) achieved lower leave-one-out cross-validation errors than both the global model and non-regularized baselines. Using stability selection, the algorithm identified Lactobacillus as the most critical predictor for bloodstream infections. This finding is highly significant as it aligns with existing clinical literature, validating the algorithm's ability to identify biologically meaningful features in noisy, high-dimensional data.
Conclusion
Comlasso represents a significant advancement in the analysis of compositional data. By providing an exact, fast, and scalable solution for $l_1$-regularized models with linear constraints, it removes the technical barriers that previously hindered high-dimensional research in fields like microbiology. Future work may extend this dual-feasibility monitoring framework to handle more general linear constraints and additional loss functions, such as expectile loss, further broadening the scope of the primal path approach.
Summary updated