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

MFAI: A Scalable Bayesian Matrix Factorization Approach to Leveraging Auxiliary Information

Can Yang, Zhiwei Wang, Fa Zhang, Cong Zheng, Xianghong Hu, Mingxuan Cai, Can Yang 0002J. Comput. Graph. Stat 2024

TL;DR

This paper introduces MFAI, a novel Bayesian matrix factorization method that effectively incorporates auxiliary information using gradient boosted trees. MFAI addresses challenges like data sparsity and noise by offering a flexible, adaptive, and computationally efficient approach to leverage side information for improved matrix completion and analysis.

What Problem Does This Paper Address?

Matrix factorization techniques are widely used for tasks like recommender systems and dimensionality reduction. However, they often struggle with real-world data characterized by high sparsity (many missing entries) and low signal-to-noise ratios (noisy observations). While auxiliary information (e.g., user demographics, item features) can help, existing methods typically use simple linear models to integrate this information, which may not capture complex relationships. This limits their ability to fully leverage the richness of auxiliary data and can lead to suboptimal performance, especially in challenging data scenarios.

Methods

MFAI builds upon probabilistic matrix factorization by integrating gradient boosted trees (GBTs) to model the relationship between auxiliary information and the latent factors. Key aspects of the MFAI approach include:

  • Gradient Boosted Trees for Auxiliary Information: Instead of linear models, MFAI uses GBTs to flexibly model potentially non-linear relationships between auxiliary covariates and the latent factors. This allows MFAI to capture more intricate connections and offers robustness to irrelevant features and missing values in the auxiliary data.
  • Empirical Bayes Framework: Model parameters, including how auxiliary information is utilized, are automatically determined within an empirical Bayes framework. This makes MFAI adaptive and less prone to overfitting, reducing the need for extensive manual parameter tuning.
  • Variational Inference for Scalability: To handle large datasets, MFAI employs variational inference, an efficient approximation technique for Bayesian models. This allows for scalable computation while maintaining good performance.
  • Algorithm Design: The paper proposes a variational Expectation-Maximization (EM) algorithm for fitting the model. For multi-factor models, it introduces greedy and backfitting algorithms, with the greedy algorithm also capable of automatically determining the number of factors.

Datasets

The paper evaluates MFAI on two real-world datasets:

  • MovieLens 100K: A standard dataset for recommender systems, known for its high sparsity (94% missing ratings). Auxiliary information used was movie genres.
  • Human Brain Gene Expression Data: A dataset containing gene expression levels across different brain regions and time periods. Auxiliary information included brain region and time period.

Key Insights and Ideas

  • Non-linear Auxiliary Information is Key: The success of MFAI highlights that auxiliary information often has complex, non-linear relationships with the main data. Linear models are insufficient, and flexible models like GBTs are crucial for unlocking the full potential of side information.
  • Adaptive Learning of Auxiliary Information Use: The empirical Bayes approach allows MFAI to learn how much and how to use auxiliary information adaptively, rather than relying on fixed parameters or cross-validation for every aspect. This is particularly beneficial when dealing with noisy or irrelevant auxiliary features.
  • Robustness to Data Quality: MFAI demonstrates strong performance across a wide range of data quality scenarios, including high sparsity and low signal-to-noise ratios, where traditional methods struggle.
  • Automatic Factor Selection: The proposed greedy algorithm for multi-factor models can automatically determine the number of latent factors, simplifying model selection and reducing computational burden compared to methods relying on cross-validation for hyperparameter tuning.

Key Results

  • Superior Imputation Accuracy: MFAI consistently outperformed alternative methods (EBMF, hardImpute, softImpute, CMF) in both simulation studies and real-world data analyses, especially in scenarios with high sparsity and weak signals. For instance, in Experiment 2 (high sparsity), MFAI showed significant improvement over other methods.
  • Effective Handling of Mixed Data Types: For the gene expression data, MFAI's tree-based structure excelled at handling mixed categorical (brain regions) and numerical (time periods) auxiliary variables, outperforming CMF which used linear models.
  • Biological Insights: In the brain gene expression analysis, MFAI successfully identified important biological processes related to the inferred factors, providing interpretable insights into spatiotemporal gene regulation.
  • Computational Efficiency: MFAI is shown to be computationally efficient and scalable to large datasets, with its greedy algorithm for factor selection taking only about a minute for the MovieLens 100K dataset.

Limitations and Future Work

  • Overestimation vs. Underestimation of Rank: The paper notes that in highly sparse data, overestimating the number of factors can be preferable to underestimation for imputation accuracy, suggesting a need for careful tuning of the rank selection process.
  • Potential for Overfitting: While MFAI is designed to be robust, the paper mentions that allowing different precision parameters between features (a model extension) can increase flexibility but also the risk of overfitting, especially with poor data quality.
  • Future Extensions: The authors suggest potential extensions to MFAI, such as incorporating sparsity priors (spike and slab) or automatic relevancy determination (ARD) priors, similar to Sparse Factor Analysis. Another direction is to incorporate auxiliary information not only for samples but also for features to help identify loadings.

Summary updated

BibTeX
@article{yang2024mfai,
  author = {Can Yang and Zhiwei Wang and Fa Zhang and Cong Zheng and Xianghong Hu and Mingxuan Cai and Can Yang},
  title = {{MFAI: A Scalable Bayesian Matrix Factorization Approach to Leveraging Auxiliary Information}},
  journal = {J. Comput. Graph. Stat},
  year = {2024},
  doi = {10.1080/10618600.2024.2319160},
}
Figure