NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

sMTL: Sparse Multi-Task Learning

Gabriel Loewinger, Kayhan Behdin, Giovanni Parmigiani, Rahul MazumderOpenalex Unknown 2023 · OpenAlex

Abstract

The sMTL package implements $L_0$-constrained Multi-Task Learning (MTL) and domain generalization algorithms. The algorithms are coded in Julia, allowing for fast implementations of coordinate descent and local combinatorial search algorithms. This approach provides a computationally feasible way to utilize the $L_0$ norm—the theoretical "gold standard" for feature selection—in complex multi-task settings. For more details, see Loewinger et al. (2022) doi:10.48550/arXiv.2212.08697.

Introduction

In modern data science, researchers often face the challenge of solving multiple related tasks simultaneously, a field known as Multi-Task Learning (MTL). Examples include predicting patient outcomes across various clinical sites or analyzing gene expression patterns across different tissues. A critical component of these models is feature selection: identifying a sparse set of variables that are truly predictive.

While the $L_1$ penalty (Lasso) is widely used for sparsity, it can introduce estimation bias and may fail to select the correct underlying features. The $L_0$ norm, which directly counts non-zero coefficients, is the ideal metric for sparsity but presents a difficult non-convex optimization problem. The sMTL package addresses this by providing an efficient toolkit for $L_0$-constrained MTL, enabling researchers to build interpretable models that "borrow strength" across tasks to enhance accuracy and robustness.

Methodology and Implementation

The core of sMTL is built on $L_0$-constrained optimization, where the number of active features is explicitly limited to a user-defined level $s$. To navigate the discrete landscape of $L_0$ optimization, the package employs sophisticated coordinate descent and local combinatorial search algorithms.

A key feature of the package is its integration with Julia. By executing core algorithms in a Julia backend, sMTL achieves the speed of a compiled language while maintaining the accessibility of an R interface. This performance allows for the practical application of $L_0$ methods to problems with hundreds or thousands of variables.

Table of function arguments and parameters for sMTL models.

The package offers significant flexibility in how tasks are linked through various penalties and constraints:

  • Common Support: Tasks can be forced to share the exact same set of features, which is particularly useful for domain generalization.
  • Heterogeneous Support: Tasks can have distinct active features while still sharing information.
  • Regularization Hyperparameters: Parameters such as $\lambda_2$ (encouraging similar coefficient values) and $\lambda_z$ (encouraging similar support sets) allow for nuanced "borrowing of strength" between tasks.

Simulation Framework

To demonstrate its functionality, sMTL includes a comprehensive simulation framework. This allows users to generate synthetic multi-task data to test model performance in recovering sparse signals. A typical simulation might involve $K=4$ tasks with $p=100$ covariates and a true support size of $s=5$. These simulations are designed to evaluate the model's ability to identify shared and task-specific features across multiple datasets.

R code snippet demonstrating the data simulation framework in sMTL.

Results and Discussion

The sMTL package demonstrates that $L_0$ optimization is a practical tool for modern high-dimensional problems. The cv.smtl() function provides an automated cross-validation framework to optimize the sparsity level ($s$) and regularization parameters. The package is versatile, handling multi-label prediction and standard regression or classification tasks efficiently.

Limitations and Future Work

Despite its performance, the package requires a working Julia installation, which may be a hurdle for some users. Additionally, the high-dimensional hyperparameter space ($s, \lambda_1, \lambda_2, \lambda_z$) can make tuning complex, although the package provides automatic grid generation to assist. While highly optimized, combinatorial searches still face scalability challenges as the number of features ($p$) grows into the tens of thousands. Future iterations may focus on further refining these search heuristics to improve scalability for even larger datasets.

Summary updated

BibTeX
@inproceedings{loewinger2023smtl,
  author = {Gabriel Loewinger and Kayhan Behdin and Giovanni Parmigiani and Rahul Mazumder},
  title = {{sMTL: Sparse Multi-Task Learning}},
  booktitle = {Openalex Unknown},
  year = {2023},
  doi = {10.32614/cran.package.smtl},
}
Figure