arXiv:2611.25065stat.MLNov 2026

Manuscript Offprint

arXiv:2611.25065

Empirical Variational Bayes Factorization for Longitudinal Matrix Data

Jiakun Li, Eric F. Lock

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Collecting high-dimensional data over time for multiple individuals is increasingly common in biomedical research, particularly in studies of disease progression or molecular time-course experiments. Often data are missing or the timepoints are irregularly spaced across individuals. There is a lack of flexible methodology to explore latent patterns of change over time and account for missing data. We propose an empirical variational Bayes (EVB) approach to factorize high-dimensional longitudinal data, in which the underlying factors have temporal correlation over time. The EVB approach is computationally efficient and accommodates flexible covariance structures over time with automatic determination of all hyper-parameters (including the underlying rank, i.e., number of factors). Simulations demonstrate that the approach captures the underlying signal more precisely than other strategies, and performs well with respect to missing data imputation under different scenarios. An application to a gene time-course data for multiple sclerosis treatment provides a factorization with interpretable components over time and improved imputation accuracy for missing data.

Keywords: Dimension reduction, Gaussian process, Low-rank approximation, Temporal correlation, Variational Bayes

1 Introduction

Matrix factorization methods have long been critical to analyze and summarize high-dimensional data for diverse tasks such as latent structure inference, data compression, and missing data imputation. Recently, empirical variational Bayes has been shown to be a powerful, flexible, and efficient approach to low-rank matrix factorization. Under a variational Bayes approach the true posterior for a Bayesian model is approximated by a variational distribution with simplified assumptions [1], under EVB the model hyperparameters are also empirically determined. Previous work describes a simple EVB approach to matrix factorization that results in an efficient closed-form low-rank solution [2]. Empirical Bayes matrix factorization flexibly incorporates different forms of priors, allowing novel combinations of classical models such as sparse matrix factorization and non-negative matrix factorization [3]. In the context of multiple linked matrices, EVB has been used to decompose signal into low-rank approximations for shared and unshared structure [4].

Advancements in biotechnology have enabled high-throughput data collection (e.g., for “omics” or imaging modalities) from multiple timepoints, motivating longitudinal studies. However, in most cases it is difficult to obtain complete data, often caused by patient unavailability or dropout. This can lead to several issues, such as biased results and a reduction in statistical power, compromising the validity of the study and the reliability of its findings. As a motivating example, consider a study that investigates genomic responses of multiple sclerosis (MS) patients to the genetic therapy recombinant human interferon beta (rIFNβ\beta) [5]. The study involves analyzing a gene time course dataset that measures 76 gene expression levels in 5353 subjects, at 77 timepoints over a 2-year followup period. However, 10.5%10.5\% of the data are missing across all timepoints, limiting the validity of inference.

Several classes of methods have been developed to apply factorization models to longitudinal data settings. One popular area of research are tensor factorization methods [6]. The tensor framework generalizes the two-way matrix to higher-order arrays. Tensor factorization methods enjoy many desirable properties of matrix factorization, such as low rank representation of the data and interpretable additive components. They can conveniently accommodate longitudinally collected high-dimensional matrices by adding time as a third dimension, forming a third-order tensor array. Tensor factorization methods have been developed specifically to accommodate temporal structure, by incorporating functional representations or smoothing along the temporal dimension [7, 8]. Other tensor methods have been developed for imputation in a longitudinal setting using a tensor factorization [9]. However, treating time as an additional dimension within a traditional tensor framework assumes that timepoints are aligned across individuals.

For matrices, a related class of methods incorporate auxiliary side information on rows or columns to inform matrix factorization. For example, [10] considers additional matrices of covariates for the rows and columns, and borrows information to factorize all simultaneously. Variational Bayes has enabled computationally efficient posterior approximation for matrix factorization under structured Bayesian priors that incorporate side information for rows or columns [11]; however, this requires model-specific hyperparameters that are not empirically determined. More recently, [12] describe an empirical variational Bayes approach in which auxiliary covariates inform the latent factor means. While time can be incorporated as a covariate in such methods to capture mean trends over time, they do not inherently accommodate within-individual correlation structures over time that are common for longitudinal studies.

A small but growing number of matrix factorization models are explicitly designed for longitudinal settings. For example, [13] use a factor analysis approach and models the scores using a multivariate linear mixed model. This induces correlation within individual observations, but limits flexibility to model the correlation to the specific form under a linear mixed model. Bayesian methods, on the other hand, can deal with more complex correlation structures by naturally incorporating flexible priors for the factors. For example, [14] uses a factor model for random effects within a mixed modeling framework, where the scores are employed with an infinite mixture prior. However, this work centered on the task of clustering instead of signal estimation or imputation, which is the focus of this paper. Alternatively, [15] propose a longitudinal factor model for disease progression from high-dimensional data, but assume a transition between two latent states over time rather than a more general correlation structure.

We propose an empirical variation Bayes factor model for high-dimensional longitudinal data that simultaneously addresses estimation and imputation, even when timepoints are inconsistently measured. Our contribution has four main components. First, we introduce a general repeated measures model for high-dimensional data using latent factors that flexibly accommodates a range of correlation structures over time. Second, we use an EVB framework for estimation that does not require any user-specified tuning parameters, and that achieves automatic rank selection—an important advantage since manual rank selection can be difficult or computationally prohibitive for large datasets. Third, we develop a novel empirical Bayes random process model (EBRPM), which extends prior work to allow efficient computation and unified estimation of both priors and variationally approximated posteriors. This formulation leverages empirical Bayes principles to maximize efficiency while retaining the ability to recover complex signals in high-dimensional settings. Fourth, our framework naturally handles missing data, including both entrywise and blockwise missingness, by retaining a key Bayesian property: the sharing of information across individuals to estimate a common prior distribution. This feature is especially important for blockwise missingness, where data for an individual may be entirely absent at a timepoint and imputation without borrowing information and temporal correlation is impossible.

References (27)