用于纵向矩阵数据的经验变分贝叶斯分解
摘要
本文提出了一种经验变分贝叶斯(EVB)方法,用于对具有时间相关因子、不规则时间点和缺失值的高维纵向矩阵数据进行低秩分解,并自动确定包括秩在内的超参数。模拟实验和多发性硬化症基因时间序列数据的应用表明,与其他竞争方法相比,该方法在信号恢复和缺失值插补的准确性方面均有所提升。
查看缓存全文
缓存时间: 2026/11/20 09:18
# Empirical Variational Bayes Factorization for Longitudinal Matrix Data
Source: [https://arxiv.org/html/2611.25065](https://arxiv.org/html/2611.25065)
Eric F\. LockAffiliation:Division of Biostatistics & Health Data ScienceAffiliation:University of Minnesota Twin CitiesAffiliation:Minneapolis, 55414, MN, United States
###### 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
## 1Introduction
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](https://arxiv.org/html/2611.25065#bib.bib19)\], 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](https://arxiv.org/html/2611.25065#bib.bib7)\]\. 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](https://arxiv.org/html/2611.25065#bib.bib1)\]\. In the context of multiple linked matrices, EVB has been used to decompose signal into low\-rank approximations for shared and unshared structure\[[4](https://arxiv.org/html/2611.25065#bib.bib5)\]\.
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](https://arxiv.org/html/2611.25065#bib.bib10)\]\. The study involves analyzing a gene time course dataset that measures 76 gene expression levels in5353subjects, at77timepoints 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](https://arxiv.org/html/2611.25065#bib.bib17)\]\. 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](https://arxiv.org/html/2611.25065#bib.bib18),[8](https://arxiv.org/html/2611.25065#bib.bib8)\]\. Other tensor methods have been developed for imputation in a longitudinal setting using a tensor factorization\[[9](https://arxiv.org/html/2611.25065#bib.bib6)\]\. 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](https://arxiv.org/html/2611.25065#bib.bib31)\]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](https://arxiv.org/html/2611.25065#bib.bib30)\]; however, this requires model\-specific hyperparameters that are not empirically determined\. More recently,\[[12](https://arxiv.org/html/2611.25065#bib.bib13)\]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 numberof matrix factorization modelsare explicitly designedfor longitudinal settings\. For example,\[[13](https://arxiv.org/html/2611.25065#bib.bib15)\]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](https://arxiv.org/html/2611.25065#bib.bib16)\]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](https://arxiv.org/html/2611.25065#bib.bib26)\]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\.
## 2Methods
### 2\.1Model Construction
Here we describe our model for aligned measurement times across all subjects; extensions to scenarios with irregularly measured timepoints across subjects are straightforward, and are described in Section[S1](https://arxiv.org/html/2611.25065#S1a)of the Supplementary Materials\.
Assume there arennsubjects, each withppvariables measured att1,…,tDt\_\{1\},\\dots,t\_\{D\}timepoints\. We define the rankRRmodel as
𝒀t=𝑼𝑽tT\+𝑬t,t=t1,…,tD\\bm\{Y\}\_\{t\}=\\bm\{U\}\\bm\{V\}\_\{t\}^\{T\}\+\\bm\{E\}\_\{t\},\\\>t=t\_\{1\},\\dots,t\_\{D\}\(1\)where𝒀t∈ℝp×n\\bm\{Y\}\_\{t\}\\in\\mathbb\{R\}^\{p\\times n\}are the observed data at each timepoint,𝑼∈ℝp×R\\bm\{U\}\\in\\mathbb\{R\}^\{p\\times R\},𝑽t∈ℝn×R\\bm\{V\}\_\{t\}\\in\\mathbb\{R\}^\{n\\times R\}are factor matrices and𝑬t\\bm\{E\}\_\{t\}is an error matrix at timett\. Following standard terminology, we refer to𝑼\\bm\{U\}as theloadingmatrix,𝑽\\bm\{V\}as thescorematrix, andRRas the rank/number of factors\. The model can be expanded as the sumRRrank\-1 components, via the outer products between columns of𝑼\\bm\{U\}and𝑽t\\bm\{V\}\_\{t\},
𝒀t=∑r=1R𝒖r𝒗trT\+𝑬t\\bm\{Y\}\_\{t\}=\\sum\_\{r=1\}^\{R\}\\bm\{u\}\_\{r\}\\bm\{v\}\_\{tr\}^\{T\}\+\\bm\{E\}\_\{t\}\(2\)where𝒖r\\bm\{u\}\_\{r\}and𝒗tr\\bm\{v\}\_\{tr\}denote therr\-th column of𝑼\\bm\{U\}and𝑽t\\bm\{V\}\_\{t\}, respectively\. Following a Bayesian framework, we give independent normal priors to each column of𝑼\\bm\{U\}, and a joint normal prior to𝒗~ri≔\[vt1ri,…,vtDri\]\\tilde\{\\bm\{v\}\}\_\{ri\}\\coloneq\[v\_\{t\_\{1\}ri\},\\dots,v\_\{t\_\{D\}ri\}\], the corresponding entries of𝑽t\\bm\{V\}\_\{t\}across timepoints:
𝒖rj∼iidN\(0,ηr2\),𝒗~ri∼iidmvN\(0,𝑲r\),Etji∼iidN\(0,σtji2\)\\bm\{u\}\_\{rj\}\\overset\{iid\}\{\\sim\}N\(0,\\eta\_\{r\}^\{2\}\),\\;\\tilde\{\\bm\{v\}\}\_\{ri\}\\overset\{iid\}\{\\sim\}mvN\(0,\\bm\{K\}\_\{r\}\),\\;E\_\{tji\}\\overset\{iid\}\{\\sim\}N\(0,\\sigma\_\{tji\}^\{2\}\)\(3\)where𝑲r\\bm\{K\}\_\{r\}captures component\-specific temporal correlation in the factor scores, as detailed in Section[2\.4](https://arxiv.org/html/2611.25065#S2.SS4)\.The use of normal priors with factor\-specific variances can be considered an automatic relevance determination \(ARD\) prior\[[16](https://arxiv.org/html/2611.25065#bib.bib32),[17](https://arxiv.org/html/2611.25065#bib.bib14),[18](https://arxiv.org/html/2611.25065#bib.bib33),[19](https://arxiv.org/html/2611.25065#bib.bib34)\]\.
### 2\.2Empirical Variational Bayes Estimation
We begin by describing the estimation algorithm for the rank11model, and generalize to the multiple rank scenario in Section[2\.3](https://arxiv.org/html/2611.25065#S2.SS3)\. In a standard empirical Bayes framework, model estimation proceeds by first obtaining point estimates for the prior parametersη2\\eta^\{2\},𝑲\\bm\{K\},𝝈2\\bm\{\\sigma\}^\{2\}, e\.g\., by maximizing the marginal log\-likelihood under estimated priorsg\(⋅\)g\(\\cdot\):
\(η^,𝑲^,𝝈^2\)\\displaystyle\(\\hat\{\\eta\},\\hat\{\\bm\{K\}\},\\hat\{\\bm\{\\sigma\}\}^\{2\}\)=argmax𝜼,𝑲,𝝈2log∫∫∏t=t1tDp\(𝒀t\|𝒖,𝒗t,𝝈2\)g\(𝒗t\|𝑲\)g\(𝒖\|𝜼\)d𝒗d𝒖,\\displaystyle=\\underset\{\\bm\{\\eta\},\\bm\{K\},\\bm\{\\sigma\}^\{2\}\}\{\\arg\\max\}\\\>\\log\\int\\int\\prod\_\{t=t\_\{1\}\}^\{t\_\{D\}\}p\(\\bm\{Y\}\_\{t\}\|\\bm\{u\},\\bm\{v\}\_\{t\},\\bm\{\\sigma\}^\{2\}\)g\(\\bm\{v\}\_\{t\}\|\\bm\{K\}\)g\(\\bm\{u\}\|\\bm\{\\eta\}\)d\\bm\{v\}d\\bm\{u\},\(4\)then performing inference on𝒖\\bm\{u\},𝒗\\bm\{v\}via the posterior distribution
p\(𝒖,𝒗\|𝒀,η^,𝑲^,𝝈^2\)\.p\(\\bm\{u\},\\bm\{v\}\|\\bm\{Y\},\\hat\{\\eta\},\\hat\{\\bm\{K\}\},\\hat\{\\bm\{\\sigma\}\}^\{2\}\)\.\(5\)
#### 2\.2\.1Approximate Inference
The integrals involved in both \([4](https://arxiv.org/html/2611.25065#S2.E4)\) and \([5](https://arxiv.org/html/2611.25065#S2.E5)\) are intractable due to marginalizing over latent variables\. Therefore, we must resort to approximate inference techniques\. Markov Chain Monte Carlo \(MCMC\)\[[20](https://arxiv.org/html/2611.25065#bib.bib4)\]is the most common technique where approximate samples are drawn from the true posterior, however it often suffers from high computational demands for large\-scale problems\. Instead, we propose a computationally attractive variational Bayes solution for our setting\.
In variational Bayes, posterior estimation is posed as an optimization problem, where we search for a factor distributionq\(𝒖,𝒗\)q\(\\bm\{u\},\\bm\{v\}\)that gives the smallest KL divergence with the true posterior: q∗\(𝒖,𝒗\)=argminq∈𝒬KL\(q\(𝒖,𝒗\)\|p\(𝒖,𝒗\|𝒀\)\)q^\{\*\}\(\\bm\{u\},\\bm\{v\}\)=\\underset\{q\\in\\mathcal\{Q\}\}\{\\arg\\min\}\\\>\\text\{KL\}\(q\(\\bm\{u\},\\bm\{v\}\)\|p\(\\bm\{u\},\\bm\{v\}\|\\bm\{Y\}\)\)\[[21](https://arxiv.org/html/2611.25065#bib.bib3)\]\. This is done by maximizing the evidence lower bound \(ELBO\),
FELBO\(q,η,𝑲,𝝈\)\\displaystyle F\_\{ELBO\}\(q,\\eta,\\bm\{K\},\\bm\{\\sigma\}\)≔Eq\[logp\(𝒀,𝒖,𝒗,η,𝑲,𝝈\)q\(𝒖,𝒗\)\]\\displaystyle\\coloneq E\_\{q\}\[\\log\\frac\{p\(\\bm\{Y\},\\bm\{u\},\\bm\{v\};\\eta,\\bm\{K\},\\bm\{\\sigma\}\)\}\{q\(\\bm\{u\},\\bm\{v\}\)\}\]\(6\)=l\(η,𝑲,𝝈\)−KL\(qu,v\|\|pu,v\|𝒀,η,𝑲,𝝈\)\\displaystyle=l\(\\eta,\\bm\{K\},\\bm\{\\sigma\}\)\-\\text\{KL\}\(q\_\{u,v\}\|\|p\_\{u,v\|\\bm\{Y\},\\eta,\\bm\{K\},\\bm\{\\sigma\}\}\)which is a lower bound for the log marginal likelihood, as the KL divergence is non\-negative\. Sincel\(η,𝑲,𝝈\)l\(\\eta,\\bm\{K\},\\bm\{\\sigma\}\)is constant with respect toq\(𝒖,𝒗\)q\(\\bm\{u\},\\bm\{v\}\),argmax𝑞F\(q,η,𝑲,𝝈\)=argmin𝑞KL\(q𝒖,𝒗\|\|pu,𝒗\|Y,η,𝑲,𝝈\)\\underset\{q\}\{\\arg\\max\}\\\>F\(q,\\eta,\\bm\{K\},\\bm\{\\sigma\}\)=\\underset\{q\}\{\\arg\\min\}\\\>\\text\{KL\}\(q\_\{\\bm\{u\},\\bm\{v\}\}\|\|p\_\{u,\\bm\{v\}\|Y,\\eta,\\bm\{K\},\\bm\{\\sigma\}\}\)\. However, without further constraints onqq, this optimization is difficult\. We restrict the space of factor distributions to the mean field variational family,
𝒬=\{q\(𝒖,𝒗\):q\(𝒖,𝒗\)=∏j=1pquj\(uj\)∏i=1nq𝒗~i\(𝒗~i\)\}\\displaystyle\\mathcal\{Q\}=\\\{q\(\\bm\{u\},\\bm\{v\}\):q\(\\bm\{u\},\\bm\{v\}\)=\\prod\_\{j=1\}^\{p\}q\_\{u\_\{j\}\}\(u\_\{j\}\)\{\\color\[rgb\]\{0,0,0\}\\prod\_\{i=1\}^\{n\}q\_\{\\tilde\{\\bm\{v\}\}\_\{i\}\}\(\\tilde\{\\bm\{v\}\}\_\{i\}\)\}\\\}\(7\)Under this factorization assumption, we develop a coordinate ascent algorithm to solve forq∗\(𝒖,𝒗\)q^\{\*\}\(\\bm\{u\},\\bm\{v\}\)given by Algorithm[1](https://arxiv.org/html/2611.25065#alg1)\. To allow for modeling of flexible correlation structure, we define a simpler, more general empirical Bayes model with optimization in the following section that can be used to solve step[5](https://arxiv.org/html/2611.25065#alg1.l5)and step[6](https://arxiv.org/html/2611.25065#alg1.l6)of Algorithm[1](https://arxiv.org/html/2611.25065#alg1)\.
Algorithm 1Coordinate Ascent Model Estimation with Rank\-11Model1:Initialize
qu\(𝒖\)\(0\)q\_\{u\}\(\\bm\{u\}\)^\{\(0\)\},
qv\(𝒗\)\(0\)q\_\{v\}\(\\bm\{v\}\)^\{\(0\)\},
η\(0\)\\eta^\{\(0\)\},
𝑲\(0\)\\bm\{K\}^\{\(0\)\},
𝝈\(0\)\\bm\{\\sigma\}^\{\(0\)\}
2:repeat
3:
m←m\+1m\\leftarrow m\+1
4:
𝝈\(m\)←argmax𝝈FELBO\(q𝒖\(m−1\),q𝒗\(m−1\),η\(m−1\),𝑲\(m−1\),𝝈\)\\bm\{\\sigma\}^\{\(m\)\}\\leftarrow\\underset\{\\bm\{\\sigma\}\}\{\\arg\\max\}\\\>F\_\{ELBO\}\(q\_\{\\bm\{u\}\}^\{\(m\-1\)\},q\_\{\\bm\{v\}\}^\{\(m\-1\)\},\\eta^\{\(m\-1\)\},\\bm\{K\}^\{\(m\-1\)\},\\bm\{\\sigma\}\)
5:
q𝒖\(m\),η\(m\)←argmaxq𝒖,ηFELBO\(q𝒖,q𝒗\(m−1\),η,𝑲\(m−1\),𝝈\(m\)\)q\_\{\\bm\{u\}\}^\{\(m\)\},\\eta^\{\(m\)\}\\leftarrow\\underset\{q\_\{\\bm\{u\}\},\\eta\}\{\\arg\\max\}\\\>F\_\{ELBO\}\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\}^\{\(m\-1\)\},\\eta,\\bm\{K\}^\{\(m\-1\)\},\\bm\{\\sigma\}^\{\(m\)\}\)
6:
q𝒗\(m\),𝑲\(m\)←argmaxq𝒗,𝑲FELBO\(q𝒖\(m\),q𝒗,η\(m\),𝑲,𝝈\(m\)\)q\_\{\\bm\{v\}\}^\{\(m\)\},\\bm\{K\}^\{\(m\)\}\\leftarrow\\underset\{q\_\{\\bm\{v\}\},\\bm\{K\}\}\{\\arg\\max\}\\\>F\_\{ELBO\}\(q\_\{\\bm\{u\}\}^\{\(m\)\},q\_\{\\bm\{v\}\},\\eta^\{\(m\)\},\\bm\{K\},\\bm\{\\sigma\}^\{\(m\)\}\)
7:untilconvergence criterion met
8:Return
q𝒖\(m\),q𝒗\(m\),η\(m\),𝑲\(m\),𝝈\(m\)q^\{\(m\)\}\_\{\\bm\{u\}\},q^\{\(m\)\}\_\{\\bm\{v\}\},\\eta^\{\(m\)\},\\bm\{K\}^\{\(m\)\},\\bm\{\\sigma\}^\{\(m\)\}
#### 2\.2\.2Optimizing via Empirical Bayes Random Process Means \(EBRPM\) Model
In this section, we define the Empirical Bayes Random Process Means Model \(EBRPM\)\. This model is closely related to the proposed model, in the sense that there is an equivalence with respect to𝒖\\bm\{u\}or𝒗\\bm\{v\}when the other is fixed\. Suppose that we have noisy observations𝒙1,…,𝒙n\\bm\{x\}\_\{1\},\\dots,\\bm\{x\}\_\{n\}of true values𝜽1,…,𝜽n\\bm\{\\theta\}\_\{1\},\\dots,\\bm\{\\theta\}\_\{n\}, each𝒙i∈ℝdi\\bm\{x\}\_\{i\}\\in\\mathbb\{R\}^\{d\_\{i\}\}can potentially be of different dimension:
𝒙i\|𝜽i∼ind𝒩di\(𝜽i,𝑺i\)\\bm\{x\}\_\{i\}\|\\bm\{\\theta\}\_\{i\}\\overset\{ind\}\{\\sim\}\\mathcal\{N\}\_\{d\_\{i\}\}\(\\bm\{\\theta\}\_\{i\},\\bm\{S\}\_\{i\}\)\(8\)The𝑺i\\bm\{S\}\_\{i\}’s are known diagonal matrices reflecting independent noise and𝜽i\\bm\{\\theta\}\_\{i\}are generated from a random process\. Here we focus on modeling correlation within the𝒙i\\bm\{x\}\_\{i\}’s and restrict our prior family for𝜽i\\bm\{\\theta\}\_\{i\}to zero\-mean Gaussian processes,
𝜽i∼iid𝒢𝒫\(0,𝑲\(⋅,⋅\)\)\\bm\{\\theta\}\_\{i\}\\overset\{iid\}\{\\sim\}\\mathcal\{GP\}\(0,\\bm\{K\}\(\\cdot,\\cdot\)\)\(9\)since there are many well studied covariance functions and this distribution generally have good computational properties\. We are interested in estimating the𝜽i\\bm\{\\theta\}\_\{i\}’s and𝑲\\bm\{K\}via an empirical Bayes approach, and this is performed in two steps:
1\. Estimate𝑲\\bm\{K\}by type II maximum likelihood:
𝑲^=argmax𝑲∫∏i=1np\(𝒙i\|𝜽i\)g\(𝜽i\|𝑲\)𝑑𝜽=argmax𝑲∏i=1n𝒩di\(𝒙i\|0,𝑺i\+𝑲\)\\hat\{\\bm\{K\}\}=\\underset\{\\bm\{K\}\}\{\\arg\\max\}\\int\\prod\_\{i=1\}^\{n\}p\(\\bm\{x\}\_\{i\}\|\\bm\{\\theta\}\_\{i\}\)g\(\\bm\{\\theta\}\_\{i\}\|\\bm\{K\}\)d\\bm\{\\theta\}=\\underset\{\\bm\{K\}\}\{\\arg\\max\}\\prod\_\{i=1\}^\{n\}\\mathcal\{N\}\_\{d\_\{i\}\}\(\\bm\{x\}\_\{i\}\|0,\\bm\{S\}\_\{i\}\+\\bm\{K\}\)\(10\)
2\. Calculate the posteriors for𝜽𝒊\\bm\{\\theta\_\{i\}\}’s using the estimated prior𝑲^\\hat\{\\bm\{K\}\}from the first step:
p\(𝜽i\|x,g^\)∝p\(𝒙i\|𝜽i\)g\(𝜽i\|𝑲^\)p\(\\bm\{\\theta\}\_\{i\}\|x,\\hat\{g\}\)\\propto p\(\\bm\{x\}\_\{i\}\|\\bm\{\\theta\}\_\{i\}\)g\(\\bm\{\\theta\}\_\{i\}\|\\hat\{\\bm\{K\}\}\)\(11\)
This model is a special case of the empirical Bayes multivariate normal means model \(EBMNM\)\[[22](https://arxiv.org/html/2611.25065#bib.bib2)\]with multivariate Normal priors whendi=djd\_\{i\}=d\_\{j\}for alli,ji,jrealized at the same timepoints, and the empirical Bayes normal means model \(EBNM\)\[[3](https://arxiv.org/html/2611.25065#bib.bib1)\]with normal priors whendi=1d\_\{i\}=1for allii\. Following the EBNM notation, we summarize the estimation procedure as a function, with an input of\(𝑿,𝑺∼\)\(\\bm\{X\},\\underset\{\\sim\}\{\\bm\{S\}\}\)and output\(p𝜽\|𝒙,𝑲^\)\(p\_\{\\bm\{\\theta\}\|\\bm\{x\}\},\\hat\{\\bm\{K\}\}\), where𝑿=\[𝒙1,…,𝒙n\]\\bm\{X\}=\[\\bm\{x\}\_\{1\},\\dots,\\bm\{x\}\_\{n\}\],𝑺∼=\[𝑺1,…,𝑺n\]\\underset\{\\sim\}\{\\bm\{S\}\}=\[\\bm\{S\}\_\{1\},\\dots,\\bm\{S\}\_\{n\}\]\. In Theorem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1)we establish that steps44and55of Algorithm[1](https://arxiv.org/html/2611.25065#alg1)can be solved by an EBRPM problem\.
###### Theorem 2\.1\.
Step 4 and 5 of Algorithm[1](https://arxiv.org/html/2611.25065#alg1)are equivalent to the following EBRPM problems:
argmaxq𝒖,ηFELBO\(q𝒖,q𝒗,η,𝑲,𝝈\)=EBRPM\(𝒙j=∑t,iYtjiv¯ti/σt2∑t,ivti2¯/σt2,𝑺j=1∑t,ivti2¯/σt2\)\\underset\{q\_\{\\bm\{u\}\},\\eta\}\{\\arg\\max\}\\\>F\_\{ELBO\}\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\},\\eta,\\bm\{K\},\\bm\{\\sigma\}\)=\\text\{EBRPM\}\(\\bm\{x\}\_\{j\}=\\frac\{\\sum\_\{t,i\}Y\_\{tji\}\\overline\{v\}\_\{ti\}/\\sigma^\{2\}\_\{t\}\}\{\\sum\_\{t,i\}\\overline\{v\_\{ti\}^\{2\}\}/\\sigma^\{2\}\_\{t\}\},\\bm\{S\}\_\{j\}=\\frac\{1\}\{\\sum\_\{t,i\}\\overline\{v\_\{ti\}^\{2\}\}/\\sigma^\{2\}\_\{t\}\}\)\(12\)and
argmaxq𝒗,𝑲FELBO\(q𝒖,q𝒗,η,𝑲,𝝈\)=EBRPM\(𝒙𝒊=∑j=1pu¯j𝒚ji∑j=1puj2¯,𝑺i=1∑j=1puj2¯𝚺\)\\underset\{q\_\{\\bm\{v\}\},\\bm\{K\}\}\{\\arg\\max\}\\\>F\_\{ELBO\}\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\},\\eta,\\bm\{K\},\\bm\{\\sigma\}\)=\\text\{EBRPM\}\(\\bm\{x\_\{i\}\}=\\frac\{\\sum\_\{j=1\}^\{p\}\\overline\{u\}\_\{j\}\\bm\{y\}\_\{ji\}\}\{\\sum\_\{j=1\}^\{p\}\\overline\{u\_\{j\}^\{2\}\}\},\\bm\{S\}\_\{i\}=\\frac\{1\}\{\\sum\_\{j=1\}^\{p\}\\overline\{u\_\{j\}^\{2\}\}\}\\bm\{\\Sigma\}\)\(13\)
Where𝒚ji=\[Yt1ji,…,YtDji\]T\\bm\{y\}\_\{ji\}=\[Y\_\{t\_\{1\}ji\},\\dots,Y\_\{t\_\{D\}ji\}\]^\{T\},𝚺=diag\(σt12,…,σtD2\)\\bm\{\\Sigma\}=\\text\{diag\}\(\\sigma\_\{t\_\{1\}\}^\{2\},\\dots,\\sigma\_\{t\_\{D\}\}^\{2\}\),u¯,v¯\\overline\{u\},\\overline\{v\}represent the first and second moments of𝒖,𝒗\\bm\{u\},\\bm\{v\}\]underq𝒖,q𝒗q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\}\.
The proof of Theorem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1)is provided in Section[S2](https://arxiv.org/html/2611.25065#S2a)of the Supplementary Materials, and additional computational details are provided in Sections[S3](https://arxiv.org/html/2611.25065#S3a)and[S4](https://arxiv.org/html/2611.25065#S4a)\.
### 2\.3Extension to RankRModel
For the rankRRmodel \(R\>1R\>1\), we simply extend the variational approximation by setting factor distributions for all𝒖r\\bm\{u\}\_\{r\},𝒗~ri\\tilde\{\\bm\{v\}\}\_\{ri\}as in \([2](https://arxiv.org/html/2611.25065#S2.E2)\)\.FELBOF\_\{ELBO\}is then maximized over\(qr,ηr,𝑲r\)r=1R,𝝈\(q\_\{r\},\\eta\_\{r\},\\bm\{K\}\_\{r\}\)\_\{r=1\}^\{R\},\\bm\{\\sigma\}and Algorithm[1](https://arxiv.org/html/2611.25065#alg1)is modified accordingly to iteratively update each factor component while keeping all others constant\. The update steps for each𝒖r\\bm\{u\}\_\{r\},𝒗~ri\\tilde\{\\bm\{v\}\}\_\{ri\},r=1,…,Rr=1,\\dots,Rfollows Theorem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1), with𝒀t\\bm\{Y\}\_\{t\}replaced by𝒀t−∑r′≠r𝒖r′𝒗tr′\\bm\{Y\}\_\{t\}\-\\sum\_\{r^\{\\prime\}\\neq r\}\\bm\{u\}\_\{r^\{\\prime\}\}\\bm\{v\}\_\{tr^\{\\prime\}\}\. We summarize the estimation prodecure in Algorithm[2](https://arxiv.org/html/2611.25065#alg2)\.
Algorithm 2Extension to RankRRModel1:Initialize
qur\(𝒖r\)\(0\)q\_\{u\_\{r\}\}\(\\bm\{u\}\_\{r\}\)^\{\(0\)\},
qvr\(𝒗r\)\(0\)q\_\{v\_\{r\}\}\(\\bm\{v\}\_\{r\}\)^\{\(0\)\},
ηr\(0\)\\eta\_\{r\}^\{\(0\)\},
𝑲r\(0\)\\bm\{K\}\_\{r\}^\{\(0\)\},
𝝈\(0\)\\bm\{\\sigma\}^\{\(0\)\},
r=1,…,Rr=1,\\dots,R
2:repeat
3:
m←m\+1m\\leftarrow m\+1
4:
𝝈\(m\)←argmax𝝈F\(q𝒖\(m−1\),q𝒗\(m−1\),η\(m−1\),𝕂\(m−1\),𝝈\)\\bm\{\\sigma\}^\{\(m\)\}\\leftarrow\\underset\{\\bm\{\\sigma\}\}\{\\arg\\max\}\\\>F\(q\_\{\\bm\{u\}\}^\{\(m\-1\)\},q\_\{\\bm\{v\}\}^\{\(m\-1\)\},\\eta^\{\(m\-1\)\},\\mathbb\{K\}^\{\(m\-1\)\},\\bm\{\\sigma\}\)
5:for
r=1,…,Rr=1,\\dots,Rdo
6:
q𝒖r\(m\),ηr\(m\)←argmaxq𝒖r,ηrF\(q𝒖,q𝒗\(m−1\),𝜼,𝕂\(m−1\),𝝈\(m\)\)q\_\{\\bm\{u\}\_\{r\}\}^\{\(m\)\},\\eta\_\{r\}^\{\(m\)\}\\leftarrow\\underset\{q\_\{\\bm\{u\}\_\{r\}\},\\eta\_\{r\}\}\{\\arg\\max\}\\\>F\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\}^\{\(m\-1\)\},\\bm\{\\eta\},\\mathbb\{K\}^\{\(m\-1\)\},\\bm\{\\sigma\}^\{\(m\)\}\)
7:
q𝒗r\(m\),𝑲r\(m\)←argmaxq𝒗r,𝑲rF\(q𝒖\(m\),q𝒗,𝜼\(m\),𝕂,𝝈\(m\)\)q\_\{\\bm\{v\}\_\{r\}\}^\{\(m\)\},\\bm\{K\}\_\{r\}^\{\(m\)\}\\leftarrow\\underset\{q\_\{\\bm\{v\}\_\{r\}\},\\bm\{K\}\_\{r\}\}\{\\arg\\max\}\\\>F\(q\_\{\\bm\{u\}\}^\{\(m\)\},q\_\{\\bm\{v\}\},\\bm\{\\eta\}^\{\(m\)\},\\mathbb\{K\},\\bm\{\\sigma\}^\{\(m\)\}\)
8:endfor
9:untilconvergence criterion met
10:Return
q𝒖r,q𝒗r,ηr,𝑲r,𝝈,r=1,…,Rq\_\{\\bm\{u\}\_\{r\}\},q\_\{\\bm\{v\}\_\{r\}\},\\eta\_\{r\},\\bm\{K\}\_\{r\},\\bm\{\\sigma\},r=1,\\dots,R
WhenRRis large, this algorithm can become computationally intensive, as allRRfactors are updated at each iteration\. To alleviate this issue, we implement a greedy algorithm, where rank\-11models are sequentially fitted to the residuals from the sum of previous estimated models, effectively adding one column to the factor matrices at a time, as described in Algorithm[3](https://arxiv.org/html/2611.25065#alg3)\.
Algorithm 3Greedy Algorithm for Initialization1:Initialize
R=1R=1and
𝑺t=0\\bm\{S\}\_\{t\}=0for
t=t1,…,tDt=t\_\{1\},\\dots,t\_\{D\}
2:repeat
3:Set
𝑹t=𝒀t−𝑺t\\bm\{R\}\_\{t\}=\\bm\{Y\}\_\{t\}\-\\bm\{S\}\_\{t\}for
t=t1,…,tDt=t\_\{1\},\\dots,t\_\{D\}
4:Perform Algorithm[1](https://arxiv.org/html/2611.25065#alg1)with
𝒀t=𝑹t\\bm\{Y\}\_\{t\}=\\bm\{R\}\_\{t\}for
t=t1,…,tDt=t\_\{1\},\\dots,t\_\{D\}
5:Set
𝒖^R=Equ\[𝑼\]\\hat\{\\bm\{u\}\}\_\{R\}=E\_\{q\_\{u\}\}\[\\bm\{U\}\],
𝒗^tR=Eqv\[𝑽t\]\\hat\{\\bm\{v\}\}\_\{tR\}=E\_\{q\_\{v\}\}\[\\bm\{V\}\_\{t\}\]for
t=t1,…,tDt=t\_\{1\},\\dots,t\_\{D\}
6:Set
𝑼=\[𝒖1⋯𝒖R\]\\bm\{U\}=\[\\bm\{u\}\_\{1\}\\cdots\\bm\{u\}\_\{R\}\],
𝑽t=\[𝒗t1⋯𝒗tR\]\\bm\{V\}\_\{t\}=\[\\bm\{v\}\_\{t1\}\\cdots\\bm\{v\}\_\{tR\}\],
𝑺t=𝑼𝑽tT\\bm\{S\}\_\{t\}=\\bm\{U\}\\bm\{V\}\_\{t\}^\{T\}for
t=t1,…,tDt=t\_\{1\},\\dots,t\_\{D\}
7:
R=R\+1R=R\+1
8:untilconvergence criterion met
9:Return
𝑼,𝑽t,𝑺t\\bm\{U\},\\bm\{V\}\_\{t\},\\bm\{S\}\_\{t\}for
t=t1,…,tDt=t\_\{1\},\\dots,t\_\{D\}
In practice, Algorithm[2](https://arxiv.org/html/2611.25065#alg2)often achieves significantly better fit, given that it optimizesFELBOF\_\{ELBO\}over a larger space\. Combining both by using the greedy algorithm as an initialization for the coordinate ascent algorithm results in significantly less iterations required to achieve convergence, thus reducing computational cost without sacrificing model fit\.
### 2\.4Covariance Functions
Several covariance functions for the Gaussian process prior of𝑲\\bm\{K\}have been developed for a wide range of scenarios\. We implement several common covariance functions, as follows:
White noise kernel \(Indep\):𝑲\(s,t\)\\displaystyle\\textit\{White noise kernel \(Indep\)\}:\\;\\;\\bm\{K\}\(s,t\)=σv21\(s=t\)\\displaystyle=\\sigma\_\{v\}^\{2\}\\text\{1\}\(s=t\)\(14\)Exchangable covariance \(EC\):𝑲\(s,t\)\\displaystyle\\textit\{Exchangable covariance \(EC\)\}:\\;\\;\\bm\{K\}\(s,t\)=ρ1\(s≠t\)σv2\\displaystyle=\\rho^\{\\text\{1\}\(s\\neq t\)\}\\sigma\_\{v\}^\{2\}\(15\)Radial Basis Function kernel \(RBF\):𝑲\(s,t\)\\displaystyle\\textit\{Radial Basis Function kernel \(RBF\)\}:\\;\\;\\bm\{K\}\(s,t\)=σv2exp\(−‖s−t‖22α2\)\\displaystyle=\\sigma\_\{v\}^\{2\}\\exp\(\-\\frac\{\\\|s\-t\\\|^\{2\}\}\{2\\alpha^\{2\}\}\)\(16\)Free covariance \(Free\):𝑲\(s,t\)\\displaystyle\\textit\{Free covariance \(Free\)\}:\\;\\;\\bm\{K\}\(s,t\)=σst2,𝑲∈𝒰\+\\displaystyle=\\sigma\_\{st\}^\{2\},\\\>\\bm\{K\}\\in\\mathcal\{U\+\}\(17\)where𝒰\+\\mathcal\{U\}\+denotes the set of positive definite matrices\. We consider the model with independence over time as a benchmark to quantify the performance gain of modeling covariance\. This is a special case of the model described in\[[2](https://arxiv.org/html/2611.25065#bib.bib7)\]and\[[4](https://arxiv.org/html/2611.25065#bib.bib5)\], which has a closed form analytic solution to the empirical variational Bayes approximation\. Thus we opt to use their code for faster implementation\. Covariance \([17](https://arxiv.org/html/2611.25065#S2.E17)\) is a free structure with a different covariance for each pair of timepoints\. It is impractical at highly irregular timepoints, but is the most flexible structure for the regular timepoint model, and is likely to perform well when the true model structure is unclear\. The white noise and exchangeable covariances \([14](https://arxiv.org/html/2611.25065#S2.E14)\) and \([15](https://arxiv.org/html/2611.25065#S2.E15)\) have a closed form solution for their parameters in the optimization sub\-step \([10](https://arxiv.org/html/2611.25065#S2.E10)\), while the other covariance structures may be estimated via gradient\-based techniques \(see Section[S3](https://arxiv.org/html/2611.25065#S3a)of the Supplementary Materials for more details\)\.
The choice of covariance structure may depend on context and nature of the data\. For examplethe RBF covariance \([16](https://arxiv.org/html/2611.25065#S2.E16)\) accounts for distance between timepoints and is well\-motivated when observations are irregularly spaced over time\.Otherwise, our results show that thefreecovariance model is generally a robust choice to misspecification of the true covariance structure \(see simulations in Section[3](https://arxiv.org/html/2611.25065#S3)and Section[S6\.2](https://arxiv.org/html/2611.25065#S6.SS2)\), and is a flexible option\. Alternatively, cross\-validation of imputation accuracy may be used to select a covariance structure, as done for our application in Section[4](https://arxiv.org/html/2611.25065#S4)\. The objective functionFELBOF\_\{ELBO\}itself is not recommended as a general criteria to select covariance, as the empirical estimation will always favor thefreemodel because it subsumes the other models\.
### 2\.5Model Dimension Selection
Variational Bayes matrix factorization methods have the advantage of automatically selecting the rank concurrently with the estimation framework\[[3](https://arxiv.org/html/2611.25065#bib.bib1),[17](https://arxiv.org/html/2611.25065#bib.bib14)\]\. This comes from the fact thatFELBOF\_\{ELBO\}can be viewed as a balance between model fit and prior resemblence\[[21](https://arxiv.org/html/2611.25065#bib.bib3)\]:
FELBO\\displaystyle F\_\{ELBO\}∝∑t=t1tD−12σt2Eq\[∥𝒀t−𝑼𝑽tT∥F2\]−KL\(q\(𝑼,𝑽\)\|\|g\(𝑼,𝑽\)\)\\displaystyle\\propto\\sum\_\{t=t\_\{1\}\}^\{t\_\{D\}\}\-\\frac\{1\}\{2\\sigma\_\{t\}^\{2\}\}E\_\{q\}\[\\\|\\bm\{Y\}\_\{t\}\-\\bm\{U\}\\bm\{V\}\_\{t\}^\{T\}\\\|\_\{F\}^\{2\}\]\-\\text\{KL\}\(q\(\\bm\{U\},\\bm\{V\}\)\|\|g\(\\bm\{U\},\\bm\{V\}\)\)\(18\)Let𝑼∈ℝp×R1,𝑽t∈ℝn×R1\\bm\{U\}\\in\\mathbb\{R\}^\{p\\times R\_\{1\}\},\\bm\{V\}\_\{t\}\\in\\mathbb\{R\}^\{n\\times R\_\{1\}\}and a larger model𝑼′∈ℝp×R2,𝑽t′∈ℝn×R2\\bm\{U\}^\{\\prime\}\\in\\mathbb\{R\}^\{p\\times R\_\{2\}\},\\bm\{V\}^\{\\prime\}\_\{t\}\\in\\mathbb\{R\}^\{n\\times R\_\{2\}\}\. It is clear that whenR2\>R1R\_\{2\}\>R\_\{1\},KL\(q𝒖′,𝒗′\|\|g𝒖′,𝒗′\)\>KL\(q𝒖,𝒗\|\|g𝒖,𝒗\)\\text\{KL\}\(q\_\{\\bm\{u\}^\{\\prime\},\\bm\{v\}^\{\\prime\}\}\|\|g\_\{\\bm\{u\}^\{\\prime\},\\bm\{v\}^\{\\prime\}\}\)\>\\text\{KL\}\(q\_\{\\bm\{u\},\\bm\{v\}\}\|\|g\_\{\\bm\{u\},\\bm\{v\}\}\)\. So when the decrease in expected squared residuals is less than the penalty incurred by the KL divergence between the added factor distributions and their priors,FELBOF\_\{ELBO\}cannot increase and prefers the lower rank model, equivalent to optimizingq\(𝑼,𝑽\)q\(\\bm\{U\},\\bm\{V\}\)towards point masses at zero\. Thus, settingRRlarge initially, the backfit algorithm “prunes” the model by setting redundant factors to zero\.
Further, rank sparsity is also achieved through the empirical Bayes step, which can minimize the prior densityg\(⋅\)g\(\\cdot\)to a point mass at zero\. As noted in\[[3](https://arxiv.org/html/2611.25065#bib.bib1)\]and\[[17](https://arxiv.org/html/2611.25065#bib.bib14)\], it is possible that the marginal likelihood is maximized forg\(⋅\)g\(\\cdot\)at zero, and the following lemma from\[[3](https://arxiv.org/html/2611.25065#bib.bib1)\]shows thatFELBOF\_\{ELBO\}is guaranteed to be maximized atg\(⋅\)g\(\\cdot\)if the marginal likelihood is, which can be applied to our model as well\.
###### Lemma\.
For a rank11model, if
argmaxgu,gvl\(q𝒖,q𝒗,g𝒖,g𝒗,𝝈\)=\(δgu,δgv\),\\underset\{g\_\{u\},g\_\{v\}\}\{\\arg\\max\}\\\>l\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\},g\_\{\\bm\{u\}\},g\_\{\\bm\{v\}\},\\bm\{\\sigma\}\)=\(\\delta\_\{g\_\{u\}\},\\delta\_\{g\_\{v\}\}\),then
argmaxgu,gvF\(q𝒖,q𝒗,g𝒖,g𝒗,𝝈\)=\(δgu,δgv\)\\underset\{g\_\{u\},g\_\{v\}\}\{\\arg\\max\}\\\>F\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\},g\_\{\\bm\{u\}\},g\_\{\\bm\{v\}\},\\bm\{\\sigma\}\)=\(\\delta\_\{g\_\{u\}\},\\delta\_\{g\_\{v\}\}\)
In our context, this means that𝜼,𝕂\\bm\{\\eta\},\\mathbb\{K\}are maximized at00\. This justifies the procedure of the greedy algorithm, as columns will be added to the factor matrices until eventually adding a column of zeros which terminates the algorithm\.
### 2\.6Identifiability
As in other matrix factorization models, the loading and score components are only identifiable up to a scaling factor, and permutations\[[3](https://arxiv.org/html/2611.25065#bib.bib1),[23](https://arxiv.org/html/2611.25065#bib.bib29)\]\. Specifically, for anycr≠0c\_\{r\}\\neq 0, rescaling𝒖r↦cr𝒖r\\bm\{u\}\_\{r\}\\mapsto c\_\{r\}\\bm\{u\}\_\{r\}and𝒗~ri↦𝒗~ri/cr\\tilde\{\\bm\{v\}\}\_\{ri\}\\mapsto\\tilde\{\\bm\{v\}\}\_\{ri\}/c\_\{r\}, together withηr↦\|cr\|ηr\\eta\_\{r\}\\mapsto\|c\_\{r\}\|\\eta\_\{r\},𝑲r↦𝑲r/cr2\\bm\{K\}\_\{r\}\\mapsto\\bm\{K\}\_\{r\}/c\_\{r\}^\{2\}, leaves bothFELBOF\_\{ELBO\}and the estimated signalEq\[𝑼𝑽tT\]E\_\{q\}\[\\bm\{U\}\\bm\{V\}\_\{t\}^\{T\}\]invariant\. This is generally not an issue as signal estimation and imputation are unaffected\. A scale convention can be imposed by normalizing each loading estimate to norm 1 and adjust the scale of the corresponding scores accordingly\.
### 2\.7Missing Data Imputation
Here we consider incomplete data and the task of imputing missing elements\. Denote the indices of missing entries asℳ=\{\(t,j,i\):Ytjinot observed\}\\mathcal\{M\}=\\\{\(t,j,i\):Y\_\{tji\}\\text\{ not observed\}\\\}andYℳ=\{Ytji:\(t,j,i\)∈ℳ\}Y\_\{\\mathcal\{M\}\}=\\\{Y\_\{tji\}:\(t,j,i\)\\in\\mathcal\{M\}\\\}, we propose an Expectation\-Maximization type approach, summarized in Algorithm[4](https://arxiv.org/html/2611.25065#alg4)\.
Algorithm 4Imputation1:Set
Ytji\(0\)=Ytji⋅1\(\(t,j,i\)∉ℳ\)Y^\{\(0\)\}\_\{tji\}=Y\_\{tji\}\\cdot\\text\{1\}\(\(t,j,i\)\\notin\\mathcal\{M\}\)
2:repeat
3:
k←k\+1k\\leftarrow k\+1
4:Perform the complete data algorithm on
𝒀t\(k−1\)\\bm\{Y\}\_\{t\}^\{\(k\-1\)\}and denote
𝑺^t\(k\)=Eq\[𝑼𝑽tT\]\\hat\{\\bm\{S\}\}\_\{t\}^\{\(k\)\}=E\_\{q\}\[\\bm\{U\}\\bm\{V\}\_\{t\}^\{T\}\]for
t=t1,…,tDt=t\_\{1\},\\dots,t\_\{D\}
5:Impute
𝒀tji\(k\)=𝑺^tji\(k\)\\bm\{Y\}^\{\(k\)\}\_\{tji\}=\\hat\{\\bm\{S\}\}^\{\(k\)\}\_\{tji\},
\(t,j,i\)∈ℳ\(t,j,i\)\\in\\mathcal\{M\}
6:until
∑\(t,j,i\)∈ℳ\(𝑺^tji\(k\)−𝑺^tji\(k−1\)\)2<ϵ\\sum\_\{\(t,j,i\)\\in\\mathcal\{M\}\}\(\\hat\{\\bm\{S\}\}^\{\(k\)\}\_\{tji\}\-\\hat\{\\bm\{S\}\}^\{\(k\-1\)\}\_\{tji\}\)^\{2\}<\\epsilonfor some small
ϵ\\epsilon
7:Return
𝒀t1\(k\),…,𝒀tD\(k\)\\bm\{Y\}^\{\(k\)\}\_\{t\_\{1\}\},\\dots,\\bm\{Y\}^\{\(k\)\}\_\{t\_\{D\}\}
This approach is analogous to previous methodologies including\[[4](https://arxiv.org/html/2611.25065#bib.bib5)\]and\[[24](https://arxiv.org/html/2611.25065#bib.bib12)\]\. Note that step 4 and 5 are respectively the “maximization” and “expectation” steps, as the former maximizesFELBOF\_\{ELBO\}according to Theorem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1)and Algorithm[2](https://arxiv.org/html/2611.25065#alg2), and the latter replaces the missing entries with the expected value under current estimates of the factor distributions\. This algorithm is justified by Theorem[2\.2](https://arxiv.org/html/2611.25065#S2.Thmtheorem2), which shows the imputation algorithm optimizesFEBLOF\_\{EBLO\}over missing entries𝒀ℳ\\bm\{Y\}\_\{\\mathcal\{M\}\}as well as the latent factor distributions and hyperparameters\.
###### Theorem 2\.2\.
Algorithm[4](https://arxiv.org/html/2611.25065#alg4)iteratively maximizesFELBOF\_\{ELBO\}overq\(𝐔,𝐕\),q\(\\bm\{U\},\\bm\{V\}\),𝛔,𝐊,𝛈,𝐘ℳ\\bm\{\\sigma\},\\bm\{K\},\\bm\{\\eta\},\\bm\{Y\}\_\{\\mathcal\{M\}\}
The proof of Theorem[2\.2](https://arxiv.org/html/2611.25065#S2.Thmtheorem2)is given in Section[S2](https://arxiv.org/html/2611.25065#S2a)of the Supplementary Materials\. Compared to the related imputation algorithm in\[[4](https://arxiv.org/html/2611.25065#bib.bib5)\], we do not require pre\-normalizing the data by estimating𝝈\\bm\{\\sigma\}first, but rather incorporate it into the optimization algorithm\. This also avoids handling𝝈\\bm\{\\sigma\}differently under entrywise and blockwise missingness\.
## 3Simulations
We conduct two simulation studies to assess both signal recovery and imputation accuracy\. We use the regular timepoints model in all simulations to allow for comparisons with competing methods that may not accommodate irregular timepoints\.
### 3\.1Simulation study 1: Complete data signal recovery
Here we assess our model’s ability to estimate underlying structure for complete data, and illustrate aspects of the different covariance functions\. We generate matrices of size100×120100\\times 120for 5 regularly spaced timepoints with true rank33according to our model description, under each ofEC,RBF, andFreecovariance structures with varying signal\-to\-noise ratios \(SNR\) and correlation levels\. We also use a block covariance structure that none of the covariance functions correctly capture to assess misspecification, where anECECcorrelation is given independently for different subsets of timepoints\. See Section[S5](https://arxiv.org/html/2611.25065#S5a)of the Supplementary Materials for complete details on the data generation for each scenario\. We implement our model using the three non\-trivial covariance functions in Section[2\.4](https://arxiv.org/html/2611.25065#S2.SS4)\(EC, RBF, Free\), and without correlation using the EVB implementation in\[[4](https://arxiv.org/html/2611.25065#bib.bib5)\]\. We also consider the general tensor decomposition method TEMPTED that doesn’t explicitly model covariance between timepoints but rather treats time as a continuous variable\[[8](https://arxiv.org/html/2611.25065#bib.bib8)\]\. Accuracy is measured using the relative squared error:
RSE=∑t,j,i\(S^tji−Stji\)2/∑t,j,iStji2\\text\{RSE\}=\\sum\_\{t,j,i\}\(\\hat\{S\}\_\{tji\}\-S\_\{tji\}\)^\{2\}/\\sum\_\{t,j,i\}S\_\{tji\}^\{2\}\(19\)whereStjiS\_\{tji\}is the low\-rank signal:𝐒t=𝐔𝐕T\\mathbf\{S\}\_\{t\}=\\mathbf\{U\}\\mathbf\{V\}^\{T\}\. Table[1](https://arxiv.org/html/2611.25065#S3.T1)shows the results for all methods\. For each covariance structure, the correctly specified model consistently performs the best, as one would reasonably expect\. When SNR is high, the model can perform well without modeling correlation, even when the true underlying structure is highly correlated\. However, the margin of improvement in estimation accuracy is more significant under low SNR settings, demonstrating that the borrowing of information is effective when the data itself has low information\. The TEMPTED method does not perform in a comparable range in this experiment as it does not assume a correlated low rank matrix structure\. In the misspecified scenario, thefreecovariance model performs consistently the best across SNR ratios and correlation level, since it can be considered as correctly specified but overparametrized, which leads to more robust estimation at the cost of lower efficiency\.Lastly, we note that in all simulation repetitions, all models selected the true rank\.
Table 1:RSE for complete data estimation
### 3\.2Simulation study 2: Missing data imputation
Here we evaluate the imputation performance of our model\. We consider both entrywise and columnwise missingness, where the latter refers to entire observations missing at a timepoint\. Data are generated as in Section[3\.1](https://arxiv.org/html/2611.25065#S3.SS1), then10%10\\%of the data are randomly set to be missing\. In addition to the methods in experiment11, we compare our model against two imputation algorithms \- BAMITA, which is a Bayesian tensor imputation model\[[9](https://arxiv.org/html/2611.25065#bib.bib6)\], as well as MissForest, a non\-parametric, random forest\-based imputation method that doesn’t assume low rank latent structure\[[25](https://arxiv.org/html/2611.25065#bib.bib9)\]\. We evaluate imputation accuracy by restricting to theRSERSEfor missing entries only\.
RSEmiss=∑\(t,j,i\)∈ℳ\(S^tji−Stji\)2/∑\(t,j,i\)∈ℳStji2\\text\{RSE\}\_\{miss\}=\\sum\_\{\(t,j,i\)\\in\\mathcal\{M\}\}\(\\hat\{S\}\_\{tji\}\-S\_\{tji\}\)^\{2\}/\\sum\_\{\(t,j,i\)\\in\\mathcal\{M\}\}S\_\{tji\}^\{2\}\(20\)We note that TEMPTED cannot handle entrywise missing data so it is excluded from the setting\. The results for entrywise missingness are shown in Table[2](https://arxiv.org/html/2611.25065#S3.T2)\. The patterns closely mirror the complete data estimation results from Table[1](https://arxiv.org/html/2611.25065#S3.T1), where the correctly specified covariance model consistently performs the best, especially in low SNR settings\. Alternative imputation methods perform markedly worse across all scenarios, with BAMITA performing substantially worse in high SNR settings, due to the strong signal indicating a non\-tensor data structure\. MissForest exhibits substantially higher errors potentially due to not assuming low rank structure or an explicit correlation structure across time\.
Table 2:RSE for entrywise missingness imputationTable[3](https://arxiv.org/html/2611.25065#S3.T3)summarizes the results for columnwise missingness imputation\. The task becomes much more difficult, as imputation completely relies on shared information between timepoints\. This is shown by the results of low correlation scenarios under both theECECandRBFRBFcorrelation structure, where RSE vary little over SNR levels\. Even for the correct model, RSE is significantly worse than in estimation or entrywise imputation\. All alternative methods other than BAMITA have RSE\>1\>1, which is the RSE of null imputing with00\. It is also worth noting that misspecification of the correlation structure is more costly, as shown by the relatively worse performance of our model in misspecified scenarios compared to estimation and entrywise imputation\. Only the most flexible free covariance could still achieve an RSE well below11\. On the other hand, it is remarkable that the proposed method performs relatively well even under the lowest SNR under high correlation, recovering about 70% of true structure in both the EC and RBF scenarios\.In all repetitions, all models selected the true rank\.
Table 3:RSE of blockwise imputation for all methods under varying simulated conditions, with the best performing method highlighted in bold font\.
## 4Gene Time Course Data Application
We apply our method to a set of gene time course data described in\[[5](https://arxiv.org/html/2611.25065#bib.bib10)\]\. This study explored methods to classify genetic response of multiple sclerosis patients to recombinant human interferon beta\(rIFNβ\\beta\) treatment\. rIFNβ\\betawas given to5353patients and expression levels of7676genes were measured at77timepoints \(baseline and follow\-ups at3,6,9,12,18,243,6,9,12,18,24months after treatment\)\. Most patients had some percentage of missingness, ranging from1−61\-6entire timepoints missing and additional partial missingness at observed timepoints\. Overall,10\.5%10\.5\\%of all data were missing\. We first use this dataset to evaluate the empirical imputation performance of our model\. Similar to the experiments in section[3\.2](https://arxiv.org/html/2611.25065#S3.SS2), we apply our model with the three non\-trival covariance functions, EVB under independence, BAMITA, and MissForest to the data\. TEMPTED is omitted as it cannot handle entrywise missingness\. We take the complete indices and perform10,3,210,3,2\-fold cross validation based on the missing proportion, repeated1010times over different random seeds\. Figure[1](https://arxiv.org/html/2611.25065#S4.F1)shows the results\.
Figure 1:Analysis results for the IFNβ\\betadata application: Imputation accuracy for all methods from cross validation\.\(a\)Variance explained andestimated correlation \(ρ^\\hat\{\\rho\}\)for the first 7 components\.
\(b\)Individual trajectories for the first and seventh component scores\.
Figure 2:Analysis results for the IFNβ\\betadata application\.In the comparisons, theECcovariance model performed the best across both entrywise and columnwise missingness\. The independent model performed comparably in the entrywise missing scenarios, but hadRSE=1RSE=1in columnwise missingness, consistent with simulation results\. All alternative methods performed worse than the independent model, highlighting the advantage of our proposed model in columnwise imputation\.
As theECcovariance model performed the best, we refer to the results produced by this model for interpretation\. We estimated a total of1414components; the top77ordered by variance explained are shown in Figure[2a](https://arxiv.org/html/2611.25065#S4.F2.sf1), along with the estimated correlation in each component’s scores\. The first component explains about35%35\\%variance, while the next66each explains less than10%10\\%variance each\. Both the third and seventh component exhibits high correlation between sample scores at different timepoints\. We plot individual score trajectories in Figure[2b](https://arxiv.org/html/2611.25065#S4.F2.sf2), colored by manually labeled good/poor responders from the original study\. The first component, which is the major contributor, exhibits similar patterns for most individuals, indicating a mean effect of subjects\. The seventh component, on the other hand, shows a clear clustering effect in good and poor responders, with good responders at the bottom and poor responders at the top\. The individual scores have little variation between time points, which indicates that the two types of responders can be distinguished without inferring from temporal patterns\. This is consistent with the results in\[[5](https://arxiv.org/html/2611.25065#bib.bib10)\], where no group\*time interaction effects were discovered; as well as\[[26](https://arxiv.org/html/2611.25065#bib.bib11)\], where distinction between the two groups were not driven by factors that vary over time\. More generally, the EC covariance and accompanying score trajectories suggest some clear subject effects but no other temporal trends\.
To further investigate the biological relevance of Component 7, we performed a gene\-set enrichment analysis of its loadings using GO Biological Processes via WebGestalt\[[27](https://arxiv.org/html/2611.25065#bib.bib27)\]\. While no processes were significant at the FDR<0\.05<0\.05level, the top enriched processes and their nominal significance is shown in Figure[3](https://arxiv.org/html/2611.25065#S4.F3)\. The most significant and top downregulated process, implying higher levels for good responders, was response to transforming growth factor beta; this is consistent with prior literature associating higher TGF\-β\\betalevels with better treatment response\[[28](https://arxiv.org/html/2611.25065#bib.bib28)\]\.
Figure 3:Gene set enrichment analysis for loadings of Component 7 in the IFNβ\\betafactorization
## 5Discussion
In this paper, we introduce a latent matrix factorization method for high dimensional longitudinal data that captures temporal correlation by flexibly modeling the covariance structure in latent factor scores\. The additive nature of our model enables decomposition of data into static and temporal factors, enhancing interpretability\. The model employs a computationally efficient empirical variational Bayes estimation algorithm that automatically estimates hyperparameters and selects model dimension by optimizing an objective function balancing model fit and complexity\. Through extensive simulation studies and a real world data application, the proposed method demonstrates superior estimation and imputation accuracy compared to existing approaches across diverse scenarios\.
While we focus on single\-source data, multimodal datasets combining data from multiple sites are increasingly common in biomedical studies, such as collaborative neurodegenerative disease research that collects imaging, clinical, and genetic modalities\[[29](https://arxiv.org/html/2611.25065#bib.bib20),[30](https://arxiv.org/html/2611.25065#bib.bib22),[31](https://arxiv.org/html/2611.25065#bib.bib21)\]\. Extensions of our method to multimodal matrix factorization—where some components are restricted to specific cohorts or data modalities—is an interesting direction for future research, as the full rankRRand greedy estimation algorithms do not straightforwardly extend to such settings\.
A known limitation of variational Bayes methods is uncertainty quantification\. While point estimates generally perform well and have good properties, variational Bayes methods typically underestimate marginal posterior variances\[[32](https://arxiv.org/html/2611.25065#bib.bib23),[33](https://arxiv.org/html/2611.25065#bib.bib24)\]\. To address this limitation, our method can serve as initialization for the associated fully Bayesian model, offering several advantages including initialization near the posterior mode and automatic rank selection, which are challenging for the fully Bayesian approach to achieve alone\. A related Bayesian model is described in\[[34](https://arxiv.org/html/2611.25065#bib.bib25)\], which illustrates the benefits of accounting for uncertainty in imputation and prediction\. However, standard MCMC strategies such as Gibbs sampling would likely face substantial computational challenges, necessitating the development of more efficient sampling algorithms\.As our model imputes values given the fit to observed data, it implicitly assumes data are missing at random; extensions to scenarios where the missing mechanism is not random but known \(i\.e\., a limit of detection\) is another direction of future work\.
## Code & Data Availability
Documented R code to perform the proposed method,including an R package, and the IFNβ\\betadataset analyzed in Section[4](https://arxiv.org/html/2611.25065#S4)is available at [https://github\.com/andyljk/Longitudinal\_Factorization](https://github.com/andyljk/Longitudinal_Factorization)\. Additionally, a supplementary zipped folder includes code to perform all the simulations and data analysis in the manuscript\.
## Supplementary Materials
A supplementary document available online includes proofs, details for the method with irregular timepoints, several additional simulation studies, additional computational details, and further details for the real data application\.
## References
- \[1\]C\. W\. Fox and S\. J\. Roberts\(2012\)A tutorial on variational Bayesian inference\.Artificial intelligence review38\(2\),pp\. 85–95\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p1.1)\.
- \[2\]S\. Nakajima, M\. Sugiyama, S\. D\. Babacan, and R\. Tomioka\(2013\)Global analytic solution of fully\-observed variational Bayesian matrix factorization\.Journal of Machine Learning Research14\(1\),pp\. 1–37\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p1.1),[§2\.4](https://arxiv.org/html/2611.25065#S2.SS4.p1.2)\.
- \[3\]W\. Wang and M\. Stephens\(2021\)Empirical Bayes matrix factorization\.Journal of Machine Learning Research22\(120\)\(\),pp\. 1–40\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p1.1),[§S2\.1](https://arxiv.org/html/2611.25065#S2.SS1a.p1.1),[§2\.2\.2](https://arxiv.org/html/2611.25065#S2.SS2.SSS2.p4.1),[§2\.5](https://arxiv.org/html/2611.25065#S2.SS5.p1.1),[§2\.5](https://arxiv.org/html/2611.25065#S2.SS5.p2.1),[§2\.6](https://arxiv.org/html/2611.25065#S2.SS6.p1.1.1)\.
- \[4\]E\. F\. Lock\(2024\)Empirical Bayes linked matrix decomposition\.Machine Learning113\(\),pp\. 7451–7477\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p1.1),[§2\.4](https://arxiv.org/html/2611.25065#S2.SS4.p1.2),[§2\.7](https://arxiv.org/html/2611.25065#S2.SS7.p2.1),[§2\.7](https://arxiv.org/html/2611.25065#S2.SS7.p3.1),[§3\.1](https://arxiv.org/html/2611.25065#S3.SS1.p1.1)\.
- \[5\]S\. E\. Baranzini, P\. Mousavi, J\. Rio, S\. J\. Caillier, A\. Stillman, P\. Villoslada, M\. M\. Wyatt, M\. Comabella, L\. D\. Greller, R\. Somogyi, X\. Montalban, and J\. O\. Oksenberg\(2004\)Transcription\-based prediction of response to IFNβ\\betausing supervised computational methods\.PloS Biology3\(1\),pp\. e2\.External Links:[Document](https://dx.doi.org/)Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p2.1),[§4](https://arxiv.org/html/2611.25065#S4.p1.1),[§4](https://arxiv.org/html/2611.25065#S4.p3.1),[§S7\.1](https://arxiv.org/html/2611.25065#S7.SS1.p1.1)\.
- \[6\]T\. G\. Kolda and B\. W\. Bader\(2009\)Tensor decompositions and applications\.SIAM review51\(3\),pp\. 455–500\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p3.1)\.
- \[7\]L\. Guan\(2024\)Smooth and probabilistic PARAFAC model with auxiliary covariates\.Journal of Computational and Graphical Statistics33\(2\),pp\. 538–550\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p3.1)\.
- \[8\]P\. Shi, C\. Martino, R\. Han, and et al\.\(2024\)TEMPTED: time\-informed dimensionality reduction for longitudinal microbiome studies\.\.Genome Biology25\(317\),pp\. 891–921\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.1186/s13059-024-03453-x)Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p3.1),[§3\.1](https://arxiv.org/html/2611.25065#S3.SS1.p1.1)\.
- \[9\]Z\. Jiang, G\. Li, and E\. F\. Lock\(2025\)BAMITA: Bayesian multiple imputation for tensor arrays\.Biostatistics26\(1\),pp\.\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p3.1),[§3\.2](https://arxiv.org/html/2611.25065#S3.SS2.p1.1)\.
- \[10\]A\. P\. Singh and G\. J\. Gordon\(2008\)Relational learning via collective matrix factorization\.InProceedings of the 14th ACM SIGKDD international conference on Knowledge discovery and data mining,pp\. 650–658\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p4.1.1)\.
- \[11\]M\. Gonen and S\. Kaski\(2014\)Kernelized Bayesian matrix factorization\.IEEE Transactions on Pattern Analysis and Machine Intelligence36\(10\),pp\. 2047–2060\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p4.1.1)\.
- \[12\]Z\. Wang, F\. Zhang, C\. Zheng, X\. Hu, M\. Cai, and C\. Yang\(2024\)MFAI : a scalable Bayesian matrix factorization approach to leveraging auxiliary information\.Journal of Computational and Graphical Statistics33\(4\),pp\. 1339–1349\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.1080/10618600.2024.2319160)Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p4.1.1)\.
- \[13\]X\. An, Q\. Yang, and P\.M\. Bentler\(2013\)A latent factor linear mixed model for high\-dimensional longitudinal data analysis\.Statistics in Medicine32\(24\),pp\. 4229–4239\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p5.1)\.
- \[14\]Z\. Lu and N\.K\. Chandra\(2024\)A sparse factor model for clustering high\-dimensional longitudinal data\.Statistics in Medicine43\(19\),pp\. 3633–3648\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p5.1)\.
- \[15\]Q\. Wang and Y\. Wang\(2024\)Multilayer exponential family factor models for integrative analysis and learning disease progression\.Biostatistics25\(1\),pp\. 203–219\.Cited by:[§1](https://arxiv.org/html/2611.25065#S1.p5.1)\.
- \[16\]C\. M\. Bishop\(1999\)Bayesian PCA\.InAdvances in Neural Information Processing Systems 11,pp\. 382–388\.Cited by:[§2\.1](https://arxiv.org/html/2611.25065#S2.SS1.p2.4.1)\.
- \[17\]C\. M\. Bishop\(1999\)Variational principal components\.In Ninth International Conference on Artificial Neural Networks1\(470\),pp\. 509–514\.Cited by:[§2\.1](https://arxiv.org/html/2611.25065#S2.SS1.p2.4.1),[§2\.5](https://arxiv.org/html/2611.25065#S2.SS5.p1.1),[§2\.5](https://arxiv.org/html/2611.25065#S2.SS5.p2.1)\.
- \[18\]Q\. Zhao, L\. Zhang, and A\. Cichocki\(2015\)Bayesian CP factorization of incomplete tensors with automatic rank determination\.IEEE Transactions on Pattern Analysis and Machine Intelligence37\(9\),pp\. 1751–1763\.External Links:[Document](https://dx.doi.org/10.1109/TPAMI.2015.2392756)Cited by:[§2\.1](https://arxiv.org/html/2611.25065#S2.SS1.p2.4.1)\.
- \[19\]S\. Nakajima, R\. Tomioka, M\. Sugiyama, and S\. D\. Babacan\(2015\)Condition for perfect dimensionality recovery by variational Bayesian PCA\.Journal of Machine Learning Research16\(114\),pp\. 3757–3811\.Cited by:[§2\.1](https://arxiv.org/html/2611.25065#S2.SS1.p2.4.1)\.
- \[20\]R\. M\. Neal\(1993\)Probabilistic inference using Markov chain Monte Carlo methods\.Technical ReportsDepartment of Computer Science\(\),pp\. University of Toronto\.Cited by:[§2\.2\.1](https://arxiv.org/html/2611.25065#S2.SS2.SSS1.p1.1)\.
- \[21\]D\. M\. Blei, A\. Kucukelbir, and J\. D\. McAuliffe\(2017\)Variational inference: a review for statisticians\.Journal of the American Statistical Association112\(518\),pp\. 859–877\.Cited by:[§2\.2\.1](https://arxiv.org/html/2611.25065#S2.SS2.SSS1.p2.1),[§2\.5](https://arxiv.org/html/2611.25065#S2.SS5.p1.1)\.
- \[22\]Y\. Yang, P\. Carbonetto, D\. Gerard, and M\. Stephens\(2024\)Improved Methods for Empirical Bayes Multivariate Multiple Testing and Effect Size Estimation\.\.arXiv preprint arXiv: 2406\.08784\.Cited by:[§2\.2\.2](https://arxiv.org/html/2611.25065#S2.SS2.SSS2.p4.1)\.
- \[23\]P\. O\. Hoyer\(2004\)Non\-negative matrix factorization with sparseness constraints\.Journal of Machine Learning Research5,pp\. 1457–1469\.External Links:[Link](https://www.jmlr.org/papers/v5/hoyer04a.html)Cited by:[§2\.6](https://arxiv.org/html/2611.25065#S2.SS6.p1.1.1)\.
- \[24\]R\. Mazumder, T\. Hastie, and R\. Tibshirani\(2010\)Spectral regularization algorithms for learning large incomplete matrices\.Journal of Machine Learning Research11\(80\),pp\. 2287–2322\.Cited by:[§2\.7](https://arxiv.org/html/2611.25065#S2.SS7.p2.1)\.
- \[25\]D\. J\. Stekhoven and P\. Bühlmann\(2012\)Missforest: non\-parametric missing value imputation for mixed\-type data\.Bioinformatics28\(1\),pp\. 112–128\.External Links:[Document](https://dx.doi.org/)Cited by:[§3\.2](https://arxiv.org/html/2611.25065#S3.SS2.p1.1)\.
- \[26\]B\. Guo, L\. E\. Eberly, P\. G\. Henry, C\. Lenglet, and E\. F\. Lock\(2022\)Multiway sparse distance weighted discrimination\.Journal of Computational and Graphical Statistics32\(2\),pp\. 730–743\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.1080/10618600.2022.2099404)Cited by:[§4](https://arxiv.org/html/2611.25065#S4.p3.1)\.
- \[27\]J\. M\. Elizarraras, Y\. Liao, Z\. Shi, Q\. Zhu, A\. R\. Pico, and B\. Zhang\(2024\)WebGestalt 2024: faster gene set analysis and new support for metabolomics and multi\-omics\.Nucleic acids research52\(W1\),pp\. W415–W421\.Cited by:[§4](https://arxiv.org/html/2611.25065#S4.p4.1.1)\.
- \[28\]A\. Cucci, P\. Barbero, M\. Clerico, B\. Ferrero, E\. Versino, G\. Contessa, S\. Demercanti, E\. Viglietta, A\. Di Liberto, A\. G\. Vai,et al\.\(2010\)Pro\-inflammatory cytokine and chemokine mrna blood level in multiple sclerosis is related to treatment response and interferon\-beta dose\.Journal of Neuroimmunology226\(1\-2\),pp\. 150–157\.Cited by:[§4](https://arxiv.org/html/2611.25065#S4.p4.1.1)\.
- \[29\]N\. Georgiou\-Karistianis, L\. A\. Corben, E\. F\. Lock, H\. Bujalka, I\. Adanyeguh, M\. Corti, D\. K\. Deelchand, M\. B\. Delatycki, I\. Dogan, J\. Farmer, M\. C\. França Jr\., A\. S\. Gabay, W\. Gaetz, I\. H\. Harding, J\. Joers, M\. A\. Lax, J\. Li, D\. R\. Lynch, T\. H\. Mareci, A\. R\. M\. Martinez, M\. Pandolfo, M\. Papoutsi, R\. G\. Parker, K\. Reetz, T\. J\.R\. Rezende, T\. P\. Roberts, S\. Romanzetti, D\. A\. Rudko, S\. Saha, J\. B\. Schulz, S\. H\. Subramony, V\. G\. Supramaniam, C\. Lenglet, and P\. Henry\(2025\)Neuroimaging biomarkers for friedreich ataxia: a cross\-sectional analysis of the track\-fa study\.Annals of Neurology98\(2\),pp\. 386–397\.Cited by:[§5](https://arxiv.org/html/2611.25065#S5.p2.1)\.
- \[30\]H\.SH\. Oh, D\.Y\. Urey, and L\. e\. al\. Karlsson\(2025\)A cerebrospinal fluid synaptic protein biomarker for prediction of cognitive resilience versus decline in alzheimer’s disease\.\.Nature Medicine31\(\),pp\. 1592–1603\.Cited by:[§5](https://arxiv.org/html/2611.25065#S5.p2.1)\.
- \[31\]S\. J\. Tabrizi, R\. I\. Scahill, A\. Durr, R\. A\. Roos, B\. R\. Leavitt, R\. Jones, G\. B\. Landwehrmeyer, N\. C\. Fox, H\. Johnson, S\. L\. Hicks, C\. Kennard, D\. Craufurd, C\. Frost, D\. R\. Langbehn, R\. Reilmann, and J\. C\. Stout\(2011\)Biological and clinical changes in premanifest and early stage huntington’s disease in the track\-hd study: the 12\-month longitudinal analysis\.The Lancet Neurology10\(1\),pp\. 31–42\.Cited by:[§5](https://arxiv.org/html/2611.25065#S5.p2.1)\.
- \[32\]B\. Wang and M\. Titterington\(2005\)Inadequacy of interval estimates corresponding to variational bayesian approximations\.\.Workshop on Artificial Intelligence and Statistics\(\),pp\. 373–380\.Cited by:[§5](https://arxiv.org/html/2611.25065#S5.p3.1)\.
- \[33\]R\. Turner, M\. Sahani, D\. Barber, A\. Cemgil, and S\. Chiappa\(2011\)Two problems with variational expectation maximisation for time\-series models\.Bayesian Time Series Models,pp\. 109–130\.Cited by:[§5](https://arxiv.org/html/2611.25065#S5.p3.1)\.
- \[34\]S\. Samorodnitsky, C\. H\. Wendt, and E\. F\. Lock\(2024\)Bayesian simultaneous factorization and prediction using multi\-omic data\.Computational Statistics & Data Analysis197\.Cited by:[§5](https://arxiv.org/html/2611.25065#S5.p3.1)\.
Supplementary Materials for “Empirical Variational Bayes Factorization for Longitudinal Matrix Data”
Jiakun Li and Eric F\. Lock
## S1Irregular Timepoint Model
In this section, we provide a description of the key differences of the extended model that handles inconsistency in measured timepoints across individuals\. For thei=1,…,ni=1,\\dots,nindividual, assume each withppvariables measured at timet1\(i\),…,tdi\(i\)t\_\{1\}^\{\(i\)\},\\dots,t\_\{d\_\{i\}\}^\{\(i\)\}\. The outcome for individualii, variablejjat timettis modeled as
𝒀tji=∑r=1R𝒖rj𝒗tri\+𝑬tji\\displaystyle\\bm\{Y\}\_\{tji\}=\\sum\_\{r=1\}^\{R\}\\bm\{u\}\_\{rj\}\\bm\{v\}\_\{tri\}\+\\bm\{E\}\_\{tji\}\(S1\)Note that the matrix product representation in \([1](https://arxiv.org/html/2611.25065#S2.E1)\) is not available in this setting, since𝒗\\bm\{v\}does not have consistent measures at each timepoint\. Priors are prescribed to each of𝒖,𝒗\\bm\{u\},\\bm\{v\}similar to \([3](https://arxiv.org/html/2611.25065#S2.E3)\), where
𝒖rj∼iidN\(0,ηr2\),𝒗~ri∼iidmvN\(0,𝑲r\(i\)\),etji∼iidN\(0,σtji2\)\\displaystyle\\bm\{u\}\_\{rj\}\\overset\{iid\}\{\\sim\}N\(0,\\eta\_\{r\}^\{2\}\),\\;\\tilde\{\\bm\{v\}\}\_\{ri\}\\overset\{iid\}\{\\sim\}mvN\(0,\\bm\{K\}\_\{r\}^\{\(i\)\}\),\\;e\_\{tji\}\\overset\{iid\}\{\\sim\}N\(0,\\sigma\_\{tji\}^\{2\}\)\(S2\)and𝒗~ri=\[𝒗t1\(i\)ri⋯𝒗tdi\(i\)ri\]∈ℝdi\\tilde\{\\bm\{v\}\}\_\{ri\}=\[\\bm\{v\}\_\{t\_\{1\}^\{\(i\)\}ri\}\\cdots\\bm\{v\}\_\{t\_\{d\_\{i\}\}^\{\(i\)\}ri\}\]\\in\\mathbb\{R\}^\{d\_\{i\}\}\. The prior covariance matrix𝑲r\(i\)∈ℝdi×di\\bm\{K\}\_\{r\}^\{\(i\)\}\\in\\mathbb\{R\}^\{d\_\{i\}\\times d\_\{i\}\}has dimension matching the number of measurements from individualii\. We assume all prior covariance are parametrized by a common set of parameters as described in Section[2\.4](https://arxiv.org/html/2611.25065#S2.SS4), and denote estimates of𝑲\\bm\{K\}as𝑲^\\hat\{\\bm\{K\}\}for convenience\. When the measurements are highly irregular, modeling the noise variance separately at each timepoints becomes difficult\. In this situation, a reasonable modification is to setσt2=σ2\\sigma\_\{t\}^\{2\}=\\sigma^\{2\}for alltt\.
Denoting𝑼=\{𝒖jr:j=1,…,p;r=1,…,R\}\\bm\{U\}=\\\{\\bm\{u\}\_\{jr\}:j=1,\\dots,p;r=1,\\dots,R\\\}and𝑽=\{𝒗tir:t∈T;i=1,…,n;r=1,…,R\}\\bm\{V\}=\\\{\\bm\{v\}\_\{tir\}:t\\in T;i=1,\\dots,n;r=1,\\dots,R\\\}, we maximize the same objective functionFELBO\(q,𝜼,𝑲,σ\)F\_\{ELBO\}\(q,\\bm\{\\eta\},\\bm\{K\},\\sigma\)using algorithm[2](https://arxiv.org/html/2611.25065#alg2)\. For the rank 1 model, it can be shown following the proof of Theorem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1), step4,54,5of algorithm[1](https://arxiv.org/html/2611.25065#alg1)are equivalent to solving the following
argmaxq𝒖,ηFELBO\(q𝒖,q𝒗,η,𝑲,𝝈\)=EBRPM\(𝒙jCLOSE\\displaystyle\\underset\{q\_\{\\bm\{u\}\},\\eta\}\{\\arg\\max\}\\\>F\_\{ELBO\}\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\},\\eta,\\bm\{K\},\\bm\{\\sigma\}\)=\\text\{EBRPM\}\(\\bm\{x\}\_\{j\}=∑i=1n∑t=t1\(i\)tdi\(i\)Ytjiv¯ti/σt2∑i=1n∑t=t1\(i\)tdi\(i\)vti2¯/σt2,\\displaystyle=\\frac\{\\sum\_\{i=1\}^\{n\}\\sum\_\{t=t\_\{1\}^\{\(i\)\}\}^\{t\_\{d\_\{i\}\}^\{\(i\)\}\}Y\_\{tji\}\\overline\{v\}\_\{ti\}/\\sigma^\{2\}\_\{t\}\}\{\\sum\_\{i=1\}^\{n\}\\sum\_\{t=t\_\{1\}^\{\(i\)\}\}^\{t\_\{d\_\{i\}\}^\{\(i\)\}\}\\overline\{v\_\{ti\}^\{2\}\}/\\sigma^\{2\}\_\{t\}\},\(S3\)𝑺j\\displaystyle\\bm\{S\}\_\{j\}OPEN=1∑i=1n∑t=t1\(i\)tdi\(i\)vti2¯/σt2\)\\displaystyle=\\frac\{1\}\{\\sum\_\{i=1\}^\{n\}\\sum\_\{t=t\_\{1\}^\{\(i\)\}\}^\{t\_\{d\_\{i\}\}^\{\(i\)\}\}\\overline\{v\_\{ti\}^\{2\}\}/\\sigma^\{2\}\_\{t\}\}\)and
argmaxq𝒗,𝑲FELBO\(q𝒖,q𝒗,η,𝑲,𝝈\)=EBRPM\(𝒙𝒊=∑j=1pu¯j𝒚ji∑j=1puj2¯,𝑺i=1∑j=1puj2¯𝚺𝒊\)\\underset\{q\_\{\\bm\{v\}\},\\bm\{K\}\}\{\\arg\\max\}\\\>F\_\{ELBO\}\(q\_\{\\bm\{u\}\},q\_\{\\bm\{v\}\},\\eta,\\bm\{K\},\\bm\{\\sigma\}\)=\\text\{EBRPM\}\(\\bm\{x\_\{i\}\}=\\frac\{\\sum\_\{j=1\}^\{p\}\\overline\{u\}\_\{j\}\\bm\{y\}\_\{ji\}\}\{\\sum\_\{j=1\}^\{p\}\\overline\{u\_\{j\}^\{2\}\}\},\\bm\{S\}\_\{i\}=\\frac\{1\}\{\\sum\_\{j=1\}^\{p\}\\overline\{u\_\{j\}^\{2\}\}\}\\bm\{\\Sigma\_\{i\}\}\)\(S4\)Note that each𝒚ji\\bm\{y\}\_\{ji\}is of potentially different dimension, which fits in the framework of the EBRPM model by design\. For estimation of the multiple rank model, steps5,65,6of algorithm[2](https://arxiv.org/html/2611.25065#alg2)and step33of algorithm[3](https://arxiv.org/html/2611.25065#alg3)are modified accordingly to accommodate the timepoint structure\.
## S2Proofs
### S2\.1Theorem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1)
We prove Theorem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1), where we stated the equivalence between step 4, 5 of algorithm[1](https://arxiv.org/html/2611.25065#alg1)and the EBRPM problem\. The proof is similar to Proposition 5 in\[[3](https://arxiv.org/html/2611.25065#bib.bib1)\], which can be viewed as a univariate case of our model\. We first introduce the following lemma as an intermediate step\.
###### Lemma S1\.
Fori=1,…,ni=1,\\dots,n, let𝐱i∼iidmvNdi\(𝛉i,𝐒i\)\\bm\{x\}\_\{i\}\\overset\{iid\}\{\\sim\}mvN\_\{d\_\{i\}\}\(\\bm\{\\theta\}\_\{i\},\\bm\{S\}\_\{i\}\),𝛉i∼iid𝒢𝒫\(0,𝐊\)\\bm\{\\theta\}\_\{i\}\\overset\{iid\}\{\\sim\}\\mathcal\{GP\}\(0,\\bm\{K\}\), and𝕊=\{𝐒i:i=1,…,n\}\\mathbb\{S\}=\\\{\\bm\{S\}\_\{i\}:i=1,\\dots,n\\\}be known\. Recall the EBRPM first estimates the prior variance function as𝐊^=argmax𝐊logp\(𝐱\|𝐊\)\\hat\{\\bm\{K\}\}=\\underset\{\\bm\{K\}\}\{\\arg\\max\}\\\>\\log p\(\\bm\{x\}\|\\bm\{K\}\), then uses this estimate to calculate the posteriorp\(𝛉\|𝐱,𝐊^\)p\(\\bm\{\\theta\}\|\\bm\{x\},\\hat\{\\bm\{K\}\}\)\. The solution to the EBRPM problem\(p\(𝛉\|𝐱,𝐊^\),𝐊^\)\(p\(\\bm\{\\theta\}\|\\bm\{x\},\\hat\{\\bm\{K\}\}\),\\hat\{\\bm\{K\}\}\)is equivalent to the solution of the following objective:
argmaxq,𝑲F0\(𝑲,q\(𝜽\)\)\\underset\{q,\\bm\{K\}\}\{\\arg\\max\}\\\>F\_\{0\}\(\\bm\{K\},q\(\\bm\{\\theta\}\)\)\(S5\)where
F0\(𝑲,q\(𝜽\)\)\\displaystyle F\_\{0\}\(\\bm\{K\},q\(\\bm\{\\theta\}\)\)=Eq\[logp\(𝒙,𝜽\|K,𝕊\)q\(𝜽\)\]\\displaystyle=E\_\{q\}\[\\log\{\\frac\{p\(\\bm\{x\},\\bm\{\\theta\}\|K,\\mathbb\{S\}\)\}\{q\(\\bm\{\\theta\}\)\}\}\]\(S6\)∝Eq\[−1/2∑i=1n𝜽iTAi𝜽i−2BiT𝜽i\]\+Eq\[logg\(𝜽\|K\)q\(𝜽\)\]\\displaystyle\\propto E\_\{q\}\[\-1/2\\sum\_\{i=1\}^\{n\}\\bm\{\\theta\}\_\{i\}^\{T\}A\_\{i\}\\bm\{\\theta\}\_\{i\}\-2B\_\{i\}^\{T\}\\bm\{\\theta\}\_\{i\}\]\+E\_\{q\}\[\\log\\frac\{g\(\\bm\{\\theta\}\|K\)\}\{q\(\\bm\{\\theta\}\)\}\]
where𝑨i=𝑺i−1,𝑩i=Si−1𝒙i\\text\{where \}\\bm\{A\}\_\{i\}=\\bm\{S\}\_\{i\}^\{\-1\},\\\>\\bm\{B\}\_\{i\}=S\_\{i\}^\{\-1\}\\bm\{x\}\_\{i\}
###### Proof\.
To demonstrate equivalence, we need to show thatq^\(𝜽\)=p\(𝜽\|𝒙,K^\)\\hat\{q\}\(\\bm\{\\theta\)\}=p\(\\bm\{\\theta\}\|\\bm\{x\},\\hat\{K\}\)andargmax𝐾F0=K^EB\\underset\{K\}\{\\arg\\max\}\\\>F\_\{0\}=\\hat\{K\}\_\{EB\}\. Note that
logp\(𝒙\|K\)\\displaystyle\\log p\(\\bm\{x\}\|K\)=∫q\(𝜽\)logp\(𝒙,𝜽\|K,𝑺\)q\(𝜽\)𝒅𝜽\+∫q\(𝜽\)logq\(𝜽\)p\(𝜽\|𝒙,K\)𝒅𝜽\\displaystyle=\\int q\(\\bm\{\\theta\}\)\\log\\frac\{p\(\\bm\{x\},\\bm\{\\theta\}\|K,\\bm\{S\}\)\}\{q\(\\bm\{\\theta\}\)\}d\\bm\{\\theta\}\+\\int q\(\\bm\{\\theta\}\)\\log\\frac\{q\(\\bm\{\\theta\}\)\}\{p\(\\bm\{\\theta\}\|\\bm\{x\},K\)\}d\\bm\{\\theta\}\(S7\)=F0\(K,q\(𝜽\)\)\+KL\(qθ\|\|pθ\|x\)\\displaystyle=F\_\{0\}\(K,q\(\\bm\{\\theta\}\)\)\+KL\(q\_\{\\theta\}\|\|p\_\{\\theta\|x\}\)SinceKL\(qθ\|\|pθ\|x\)≥0KL\(q\_\{\\theta\}\|\|p\_\{\\theta\|x\}\)\\geq 0with equality iffqθ=pθ\|xq\_\{\\theta\}=p\_\{\\theta\|x\}, we see that
maxqF0\(q\(𝜽\),K\)=logp\(𝒙\|K\)\\displaystyle\\max\_\{q\}F\_\{0\}\(q\(\\bm\{\\theta\}\),K\)=\\log p\(\\bm\{x\}\|K\)\(S8\)whenq\(𝜽\)=p\(𝜽\|𝒙,K\)q\(\\bm\{\\theta\}\)=p\(\\bm\{\\theta\}\|\\bm\{x\},K\), so then
argmax𝐾\{maxqF0\(q\(𝜽\),K\)\}=argmax𝐾logp\(𝒙\|K\)=K^EB\\displaystyle\\underset\{K\}\{\\arg\\max\}\\\{\\max\_\{q\}F\_\{0\}\(q\(\\bm\{\\theta\}\),K\)\\\}=\\underset\{K\}\{\\arg\\max\}\\log p\(\\bm\{x\}\|K\)=\\hat\{K\}\_\{EB\}\(S9\)Lastly we show thatF0F\_\{0\}has the expanded form, which can be done by straightforwardly factorizing the joint distribution:
F0\(K,q\(𝜽\)\)\\displaystyle F\_\{0\}\(K,q\(\\bm\{\\theta\}\)\)=Eq\[logp\(𝒙,𝜽\|K,𝑺\)q\(𝜽\)\]\\displaystyle=E\_\{q\}\[\\log\\frac\{p\(\\bm\{x\},\\bm\{\\theta\}\|K,\\bm\{S\}\)\}\{q\(\\bm\{\\theta\}\)\}\]\(S10\)=Eq\[logp\(𝒙\|𝜽,K,𝑺\)\]\+Eq\[logg\(𝜽\|K\)q\(𝜽\)\]\\displaystyle=E\_\{q\}\[\\log p\(\\bm\{x\}\|\\bm\{\\theta\},K,\\bm\{S\}\)\]\+E\_\{q\}\[\\log\\frac\{g\(\\bm\{\\theta\}\|K\)\}\{q\(\\bm\{\\theta\}\)\}\]=Eq\[∑i=1nlogNdi\(𝒙i\|𝜽i,Si\)\]\+Eq\[logg\(𝜽\|K\)q\(𝜽\)\]\\displaystyle=E\_\{q\}\[\\sum\_\{i=1\}^\{n\}\\log N\_\{d\_\{i\}\}\(\\bm\{x\}\_\{i\}\|\\bm\{\\theta\}\_\{i\},S\_\{i\}\)\]\+E\_\{q\}\[\\log\\frac\{g\(\\bm\{\\theta\}\|K\)\}\{q\(\\bm\{\\theta\}\)\}\]∝Eq\[−1/2∑i=1n𝜽iTAi𝜽i−2BiT𝜽i\]\+Eq\[logg\(𝜽\|K\)q\(𝜽\)\]\\displaystyle\\propto E\_\{q\}\[\-1/2\\sum\_\{i=1\}^\{n\}\\bm\{\\theta\}\_\{i\}^\{T\}A\_\{i\}\\bm\{\\theta\}\_\{i\}\-2B\_\{i\}^\{T\}\\bm\{\\theta\}\_\{i\}\]\+E\_\{q\}\[\\log\\frac\{g\(\\bm\{\\theta\}\|K\)\}\{q\(\\bm\{\\theta\}\)\}\]∎
We now prove Thoerem[2\.1](https://arxiv.org/html/2611.25065#S2.Thmtheorem1)\.
###### Proof\.
In step44of Algorithm[1](https://arxiv.org/html/2611.25065#alg1), we treat all quantities other thanq𝒖,ηq\_\{\\bm\{u\}\},\\etaas fixed\. The objective function is then
F\(q,η,K,𝝈\)\\displaystyle F\(q,\\eta,K,\\bm\{\\sigma\}\)≔Eq\[logp\(Y,u,v,η,K,𝝈\)q\(u,v\)\]\\displaystyle\\coloneq E\_\{q\}\[\\log\\frac\{p\(Y,u,v;\\eta,K,\\bm\{\\sigma\}\)\}\{q\(u,v\)\}\]\(S11\)∝Eq𝒖\[∑t=t1tDlogp\(Yt\|𝒖,𝒗t,η,K\)\]\+Eq𝒖\[logg\(𝒖\|η\)q\(𝒖\)\]\\displaystyle\\propto E\_\{q\_\{\\bm\{u\}\}\}\[\\sum\_\{t=t\_\{1\}\}^\{t\_\{D\}\}\\log p\(Y\_\{t\}\|\\bm\{u\},\\bm\{v\}\_\{t\},\\eta,K\)\]\+E\_\{q\_\{\\bm\{u\}\}\}\[\\log\\frac\{g\(\\bm\{u\}\|\\eta\)\}\{q\(\\bm\{u\}\)\}\]∝Eq𝒖\[−1/2∑j=1p𝒖jTAj𝒖j−2BjT𝒖j\]\+Eq𝒖\[logg\(𝒖\|η\)q\(𝒖\)\]\\displaystyle\\propto E\_\{q\_\{\\bm\{u\}\}\}\[\-1/2\\sum\_\{j=1\}^\{p\}\\bm\{u\}\_\{j\}^\{T\}A\_\{j\}\\bm\{u\}\_\{j\}\-2B\_\{j\}^\{T\}\\bm\{u\}\_\{j\}\]\+E\_\{q\_\{\\bm\{u\}\}\}\[\\log\\frac\{g\(\\bm\{u\}\|\\eta\)\}\{q\(\\bm\{u\}\)\}\]WhereAj=∑t=t1tD∑i=1nv2¯ti/σt2,Bj=∑t=t1tD∑i=1nYtjiv¯ti/σt2\\text\{Where \}A\_\{j\}=\\sum\_\{t=t\_\{1\}\}^\{t\_\{D\}\}\\sum\_\{i=1\}^\{n\}\\overline\{v^\{2\}\}\_\{ti\}/\\sigma\_\{t\}^\{2\},\\\>B\_\{j\}=\\sum\_\{t=t\_\{1\}\}^\{t\_\{D\}\}\\sum\_\{i=1\}^\{n\}Y\_\{tji\}\\overline\{v\}\_\{ti\}/\\sigma\_\{t\}^\{2\}Then equation[12](https://arxiv.org/html/2611.25065#S2.E12)follows from Lemma[S1](https://arxiv.org/html/2611.25065#Thmsupplemma1)\. Similarly, with respect toq𝒗,Kq\_\{\\bm\{v\}\},Kfor step55, the objective function becomes
F\(q,η,K,𝝈\)∝Eq𝒗\[−1/2∑i=1n𝒗iTAi𝒗i−2BiT𝒗i\]\+Eq𝒗\[logg\(𝒗\|K\)q\(𝒗\)\]\\displaystyle F\(q,\\eta,K,\\bm\{\\sigma\}\)\\propto E\_\{q\_\{\\bm\{v\}\}\}\[\-1/2\\sum\_\{i=1\}^\{n\}\\bm\{v\}\_\{i\}^\{T\}A\_\{i\}\\bm\{v\}\_\{i\}\-2B\_\{i\}^\{T\}\\bm\{v\}\_\{i\}\]\+E\_\{q\_\{\\bm\{v\}\}\}\[\\log\\frac\{g\(\\bm\{v\}\|K\)\}\{q\(\\bm\{v\}\)\}\]\(S12\)WhereAi=\(∑j=1puj2¯\)𝚺−1,Bi=𝚺−1\(∑j=1pu¯j𝒚ji\),𝚺=diag\(σt12,…,σtD2\)\\text\{Where \}A\_\{i\}=\(\\sum\_\{j=1\}^\{p\}\\overline\{u\_\{j\}^\{2\}\}\)\\bm\{\\Sigma\}^\{\-1\},\\\>B\_\{i\}=\\bm\{\\Sigma\}^\{\-1\}\(\\sum\_\{j=1\}^\{p\}\\overline\{u\}\_\{j\}\\bm\{y\}\_\{ji\}\),\\\>\\bm\{\\Sigma\}=\\text\{diag\}\(\\sigma\_\{t\_\{1\}\}^\{2\},\\dots,\\sigma\_\{t\_\{D\}\}^\{2\}\)and equation[13](https://arxiv.org/html/2611.25065#S2.E13)follows from Lemma[S1](https://arxiv.org/html/2611.25065#Thmsupplemma1)\. ∎
### S2\.2Theorem[2\.2](https://arxiv.org/html/2611.25065#S2.Thmtheorem2)
###### Proof\.
From algorithm[2](https://arxiv.org/html/2611.25065#alg2), it can be seen that the M steps of algorithm[4](https://arxiv.org/html/2611.25065#alg4)each partially maximize the ELBO over𝝈,q\(U\),q\(𝕍\)\\bm\{\\sigma\},q\(U\),q\(\\mathbb\{V\}\), holding all other quantities fixed\. So it leaves to show that the E step maximizes the ELBO over the missing entriesYℳY\_\{\\mathcal\{M\}\}\. The ELBO can be decomposed into
FELBO\\displaystyle F\_\{ELBO\}=Eq\[∑t=t1tDlogp\(Yt\|U,Vt,𝜼,𝕂\)\]\+Eq𝒖\[logg\(U\|𝜼\)q\(U\)\]\+Eq𝒗\[logg\(𝕍\|𝕂\)q\(𝕍\)\]\\displaystyle=E\_\{q\}\[\\sum\_\{t=t\_\{1\}\}^\{t\_\{D\}\}\\log p\(Y\_\{t\}\|U,V\_\{t\},\\bm\{\\eta\},\\mathbb\{K\}\)\]\+E\_\{q\_\{\\bm\{u\}\}\}\[\\log\\frac\{g\(U\|\\bm\{\\eta\}\)\}\{q\(U\)\}\]\+E\_\{q\_\{\\bm\{v\}\}\}\[\\log\\frac\{g\(\\mathbb\{V\}\|\\mathbb\{K\}\)\}\{q\(\\mathbb\{V\}\)\}\]\(S13\)holding all other quantities fixed,FELBOF\_\{ELBO\}with respect toYℳY\_\{\\mathcal\{M\}\}is proportional to
FELBO\(Yℳ\)\\displaystyle F\_\{ELBO\}\(Y\_\{\\mathcal\{M\}\}\)∝Eq\[∑\(t,j,i\)∈ℳlogp\(Ytji\|𝒖j,𝒗ti,𝜼,𝕂\)\]\\displaystyle\\propto E\_\{q\}\[\\sum\_\{\(t,j,i\)\\in\\mathcal\{M\}\}\\log p\(Y\_\{tji\}\|\\bm\{u\}\_\{j\},\\bm\{v\}\_\{ti\},\\bm\{\\eta\},\\mathbb\{K\}\)\]\(S14\)=∑\(t,j,i\)∈ℳ−12σt2\(Ytji−∑r=1REq\[UjrVtir\]\)2\+b≤b\\displaystyle=\\sum\_\{\(t,j,i\)\\in\\mathcal\{M\}\}\-\\frac\{1\}\{2\\sigma\_\{t\}^\{2\}\}\(Y\_\{tji\}\-\\sum\_\{r=1\}^\{R\}E\_\{q\}\[U\_\{jr\}V\_\{tir\}\]\)^\{2\}\+b\\leq bwherebis a constant\\displaystyle\\text\{where $b$ is a constant\}Thus it can be seen thatFELBOF\_\{ELBO\}is maximized atYtji=∑r=1REq\[UjrVtir\]=S^tjiY\_\{tji\}=\\sum\_\{r=1\}^\{R\}E\_\{q\}\[U\_\{jr\}V\_\{tir\}\]=\\hat\{S\}\_\{tji\}, for all\(t,j,i\)∈ℳ\(t,j,i\)\\in\\mathcal\{M\}\. ∎
## S3Solving the EBRPM problem
Here, we provide the details for implementing the two step solution to solve the EBRPM problem described in Section[2\.2\.2](https://arxiv.org/html/2611.25065#S2.SS2.SSS2)\. From the model described in equation[8](https://arxiv.org/html/2611.25065#S2.E8),[9](https://arxiv.org/html/2611.25065#S2.E9), the first step is to estimateKKby maximizing the marginal likelihood\. We restrict to the case whereKKis parametrized by some parameters𝜶\\bm\{\\alpha\}, and estimateα\\alphainstead, which is the case that all covariance functions discussed fall into\. Below, we calculate the analytic form of the gradients and several well\-documented gradient\-based optimization methods can be used\. For convenience, letKi=Si\+KK\_\{i\}=S\_\{i\}\+K, the marginal log likelihood is given by:
l\(𝜶\)=−12∑i=1n\{dilog2π\+∑i=1nlog\|Ki\|\+𝒙iTKi−1𝒙i\}l\(\\bm\{\\alpha\}\)=\-\\frac\{1\}\{2\}\\sum\_\{i=1\}^\{n\}\\\{d\_\{i\}\\log 2\\pi\+\\sum\_\{i=1\}^\{n\}\\log\|K\_\{i\}\|\+\\bm\{x\}\_\{i\}^\{T\}K\_\{i\}^\{\-1\}\\bm\{x\}\_\{i\}\\\}\(S15\)
It can be shown that the matrix derivative of inverse matrices and log determinant of positive definite matrices are given by
∂∂αKi−1=−Ki−1∂Ki∂αKi−1\\frac\{\\partial\}\{\\partial\\alpha\}K\_\{i\}^\{\-1\}=\-K\_\{i\}^\{\-1\}\\frac\{\\partial K\_\{i\}\}\{\\partial\\alpha\}K\_\{i\}^\{\-1\}\(S16\)
∂∂αlog\|Ki\|=tr\(Ki−1\)∂Ki∂α\\frac\{\\partial\}\{\\partial\\alpha\}\\log\|K\_\{i\}\|=\\text\{tr\}\(K\_\{i\}^\{\-1\}\)\\frac\{\\partial K\_\{i\}\}\{\\partial\\alpha\}\(S17\)Where∂Ki∂α\\frac\{\\partial K\_\{i\}\}\{\\partial\\alpha\}denotes the elementwise derivative matrix\. Thus the gradient is given by
∂l∂αj\\displaystyle\\frac\{\\partial l\}\{\\partial\\alpha\_\{j\}\}=12∑i=1n𝒙iTKi−1∂Ki∂αjKi−1𝒙i−tr\(Ki−1∂Ki∂αj\)\\displaystyle=\\frac\{1\}\{2\}\\sum\_\{i=1\}^\{n\}\\bm\{x\}\_\{i\}^\{T\}K\_\{i\}^\{\-1\}\\frac\{\\partial K\_\{i\}\}\{\\partial\\alpha\_\{j\}\}K\_\{i\}^\{\-1\}\\bm\{x\}\_\{i\}\-\\text\{tr\}\(K\_\{i\}^\{\-1\}\\frac\{\\partial K\_\{i\}\}\{\\partial\\alpha\_\{j\}\}\)\(S18\)=12∑i=1ntr\(\(γiγiT−Ki−1\)∂Ki∂αj\)\\displaystyle=\\frac\{1\}\{2\}\\sum\_\{i=1\}^\{n\}\\text\{tr\}\\left\(\(\\gamma\_\{i\}\\gamma\_\{i\}^\{T\}\-K\_\{i\}^\{\-1\}\)\\frac\{\\partial K\_\{i\}\}\{\\partial\\alpha\_\{j\}\}\\right\)Whereγi=Ki−1𝒙i\\gamma\_\{i\}=K\_\{i\}^\{\-1\}\\bm\{x\}\_\{i\}\. Once𝜶^\\hat\{\\bm\{\\alpha\}\}\(andK^\\hat\{K\}\) is obtained, the posterior distribution for𝜽i\\bm\{\\theta\}\_\{i\}is given by
𝜽i\|𝒙i,K^∼𝒩di\(\(Si−1\+K^−1\)−1Si−1𝒙i,\(Si−1\+K^−1\)−1\)\\bm\{\\theta\}\_\{i\}\|\\bm\{x\}\_\{i\},\\hat\{K\}\\sim\\mathcal\{N\}\_\{d\_\{i\}\}\\left\(\(S\_\{i\}^\{\-1\}\+\\hat\{K\}^\{\-1\}\)^\{\-1\}S\_\{i\}^\{\-1\}\\bm\{x\}\_\{i\},\(S\_\{i\}^\{\-1\}\+\\hat\{K\}^\{\-1\}\)^\{\-1\}\\right\)\(S19\)
## S4ELBO Calculation
In the CAVI algorithm described in section[2\.2\.2](https://arxiv.org/html/2611.25065#S2.SS2.SSS2), each update step to the parameters does not explicitly compute the objective function itself\. Being able to calculate the objective functionFELBOF\_\{ELBO\}could be beneficial for monitoring the convergence of the optimization algorithm, especially sinceFELBOF\_\{ELBO\}can be highly nonconcave\. Here, we provide the procedure for computingFELBOF\_\{ELBO\}using the same decomposition as in equation \([S13](https://arxiv.org/html/2611.25065#S2.E13a)\)\. The first term∑t=t1tDE\[logp\(Yt\|U,Vt,𝜼,𝕂\)\]\\sum\_\{t=t\_\{1\}\}^\{t\_\{D\}\}E\[\\log p\(Y\_\{t\}\|U,V\_\{t\},\\bm\{\\eta\},\\mathbb\{K\}\)\]is straightforward to compute, given the factor distributionsq\(U,𝕍\)q\(U,\\mathbb\{V\}\)\. The other two terms can be identified as∑r=1R−KL\(q\(Ur\)∥g\(Ur\)\)\\sum\_\{r=1\}^\{R\}\-KL\(q\(U\_\{r\}\)\\\|g\(U\_\{r\}\)\)and∑r=1R−KL\(q\(𝕍r\)∥g\(𝕍r\)\)\\sum\_\{r=1\}^\{R\}\-KL\(q\(\\mathbb\{V\}\_\{r\}\)\\\|g\(\\mathbb\{V\}\_\{r\}\)\), eachrr’th term from either sums can be found as follows from the EBRPM subproblem:
logp\(𝒙\|K^\)\\displaystyle\\log p\(\\bm\{x\}\|\\hat\{K\}\)=F0\(K^,q^\(𝜽\)\)=Eq\[logp\(𝒙,𝜽\|K^,𝑺\)q^\(𝜽\)\]\\displaystyle=F\_\{0\}\(\\hat\{K\},\\hat\{q\}\(\\bm\{\\theta\}\)\)=E\_\{q\}\[\\log\{\\frac\{p\(\\bm\{x\},\\bm\{\\theta\}\|\\hat\{K\},\\bm\{S\}\)\}\{\\hat\{q\}\(\\bm\{\\theta\}\)\}\}\]\(S20\)=Eq\[logp\(𝒙\|𝜽\)\]\+Eq\[logg^\(𝜽\)q^\(𝜽\)\]\\displaystyle=E\_\{q\}\[\\log p\(\\bm\{x\}\|\\bm\{\\theta\}\)\]\+E\_\{q\}\[\\log\\frac\{\\hat\{g\}\(\\bm\{\\theta\}\)\}\{\\hat\{q\}\(\\bm\{\\theta\}\)\}\]Eq\[logg^\(𝜽\)q^\(𝜽\)\]\\displaystyle E\_\{q\}\[\\log\\frac\{\\hat\{g\}\(\\bm\{\\theta\}\)\}\{\\hat\{q\}\(\\bm\{\\theta\}\)\}\]=l\(g^\)\+1/2∑i=1n\{dilog\(2π\)\+log\|Si\|\\displaystyle=l\(\\hat\{g\}\)\+1/2\\sum\_\{i=1\}^\{n\}\\Bigl\\\{d\_\{i\}\\log\(2\\pi\)\+\\log\|S\_\{i\}\|\+\(𝒙iTSi−1𝒙i−2𝒙iTSi−1Eq\[𝜽i\]\+tr\(Si−1Varq\(𝜽i\)\)\+Eq\[𝜽i\]TSi−1Eq\[𝜽i\]\)\}\\displaystyle\+\\left\(\\bm\{x\}\_\{i\}^\{T\}S\_\{i\}^\{\-1\}\\bm\{x\}\_\{i\}\-2\\bm\{x\}\_\{i\}^\{T\}S\_\{i\}^\{\-1\}E\_\{q\}\[\\bm\{\\theta\}\_\{i\}\]\+\\text\{tr\}\(S\_\{i\}^\{\-1\}Var\_\{q\}\(\\bm\{\\theta\}\_\{i\}\)\)\+E\_\{q\}\[\\bm\{\\theta\}\_\{i\}\]^\{T\}S\_\{i\}^\{\-1\}E\_\{q\}\[\\bm\{\\theta\}\_\{i\}\]\\right\)\\Bigl\\\}
This calculation is straightforward to implement, as the only additional quantity required is the optimized log likelihood value from the EBRPM problem, which is usually not difficult to obtain\.
## S5Simulations: Data Generation
In the simulation section, we set the sample sizen=120n=120, variable dimensionp=100p=100, and number of timepoints to beD=5D=5complete data are generated according to the prior described in \([3](https://arxiv.org/html/2611.25065#S2.E3)\): Forr=1,…,Rr=1,\\dots,R, draw the factor matrices𝒖r∼N\(0,η2I\)\\bm\{u\}\_\{r\}\\sim N\(0,\\eta^\{2\}I\),𝒗~ri∼N\(0,𝑲\)\\tilde\{\\bm\{v\}\}\_\{ri\}\\sim N\(0,\\bm\{K\}\), compute the underlying structure𝑺t=𝑼𝑽tT\\bm\{S\}\_\{t\}=\\bm\{U\}\\bm\{V\}^\{T\}\_\{t\}and𝑿t=𝑺t\+𝑬t\\bm\{X\}\_\{t\}=\\bm\{S\}\_\{t\}\+\\bm\{E\}\_\{t\}where entries of𝑬t\\bm\{E\}\_\{t\}are standard normal draws\. For the covariance structures \([15](https://arxiv.org/html/2611.25065#S2.E15)\), \([16](https://arxiv.org/html/2611.25065#S2.E16)\), we setσv=0\.2,0\.5,1\\sigma\_\{v\}=0\.2,0\.5,1for the three SNR we consider and fixη\\etaat11\.This gives the low, medium, high SNR settings the SNR of0\.12,0\.75,30\.12,0\.75,3respectively, as the total SNR is the sum of each single rank component’s variance\.In low and high correlation levels, we setρ=0\.2,0\.8\\rho=0\.2,0\.8for theECECstructure andα=1,3\\alpha=1,3for theRBFRBFstructure respectively\. The free covariance structure \([17](https://arxiv.org/html/2611.25065#S2.E17)\) is generated as𝑨T𝑨/d\\bm\{A\}^\{T\}\\bm\{A\}/\{\\color\[rgb\]\{0,0,0\}d\}, where𝑨\\bm\{A\}has standard normal entries\. The block covariance is defined as a block diagonal covariance matrixdiag\(𝚺1,𝚺2\)diag\(\\bm\{\\Sigma\}\_\{1\},\\bm\{\\Sigma\}\_\{2\}\)where𝚺1,𝚺2\\bm\{\\Sigma\}\_\{1\},\\bm\{\\Sigma\}\_\{2\}are 2\-by\-2 and 3\-by\-3ECECcovariances respectively\.
## S6Additional Simulations
### S6\.1Irregular timepoints
#### S6\.1\.1Settings
In this experiment we investigate our model’s performance under irregular timepoints\. The data dimensions are set ton=120n=120,p=100p=100,R=3R=3, consistent with Section[3](https://arxiv.org/html/2611.25065#S3)\. The loadings and scores are generated as described in section[S5](https://arxiv.org/html/2611.25065#S5a)\. For subjectii, each score vector is drawn from therbfcovariance kernel\. Parameters of the kernel are set to scaleη∈\{1,0\.5,0\.2\}\\eta\\in\\\{1,0\.5,0\.2\\\}and length\-scaleα∈\{3,1\}\\alpha\\in\\\{3,1\\\}for all of theRRcomponents\. The noise variance is set toσ=1\\sigma=1\. Each setting is repeated100100times\.
We used two designs for the visit times \(Figure[S1](https://arxiv.org/html/2611.25065#S6.F1)\)\.
- •Jittered\.Each subject has five planned fixed timepoints at times1,…,51,\\dots,5\. Each visit is then offset by a small amount of noiseN\(0,0\.12\)N\(0,0\.1^\{2\}\)\. We then randomly remove7%7\\%of the visits\. After each visit, the subject drops out with probability0\.030\.03\.
- •Completely irregular\.The number of timepoints is generated from a negative binomial distribution with size2\.82\.8and mean44then added11, upper bounded at 15 timepoints\. The time of the first visit is randomly generated using aLogNormal\(0\.4,0\.83\)\\mathrm\{LogNormal\}\(0\.4,0\.83\)distribution, followed by the time between visits, randomly drawn from aGamma\(2,2\)\\mathrm\{Gamma\}\(2,2\)distribution\.
For each dataset, 10% of all visits are held out, one visit for each selected subject\. Each subject is guaranteed to have at least one timepoint, so we only randomly sample from subjects with two or more timepoints\. We fitted two types of model:
- •Irregular time model\.The irregular model uses the true visit times of each subject\. We used theECECandRBFRBFpriors\.
- •Regular time model with binned times\.Observed timepoints are rounded to the nearest whole time unit\. If multiple visits are in one time bin, we take the average\. We then fitted the aligned model with theECEC,FreeFreeandRBFRBFpriors\.
Figure[S1](https://arxiv.org/html/2611.25065#S6.F1)provides a visualization of the generated timepoints from a single dataset\. To assess performance, we report the relative squared error‖S^−S‖F2/‖S‖F2\\\|\\hat\{S\}\-S\\\|\_\{F\}^\{2\}/\\\|S\\\|\_\{F\}^\{2\}at the observed visits and at the held\-out visits\. We also report the selected rank and the fit time\.
Figure S1:Visit times for 120 subjects in one draw from each design\.
#### S6\.1\.2Results
Table[S3](https://arxiv.org/html/2611.25065#S6.T3)and Table[S3](https://arxiv.org/html/2611.25065#S6.T3)provides a summary of the RSE performance on observed visits and heldout visits\. In the jittered time design, both the irregular time model and the regular time model fitted with binned timepoints perform comparably across all SNR and correlation strength settings\. However, in the irregular time setting, fitting the regular time model fails severely, especially when SNR is low\. The irregular time models selected the true rank in all simulation replicates across all settings\. On the other hand, while the binned model selected the true rank in all jittered time settings, Table[S3](https://arxiv.org/html/2611.25065#S6.T3)shows that it was unable to accurately estimate the rank in all completely irregular time settings withη=0\.2\\eta=0\.2\. Table[S3](https://arxiv.org/html/2611.25065#S6.T3)gives the settings where the binned models failed\. These results demonstrate that correctly accounting for the irregular timepoints is essential and that fitting the regular time model with approximated timepoints results in poor model fit and incorrect model structure\.
Table S1:Mean RSE at the observed visits\.Table S2:RSE at the held\-out visits\.Table S3:Number of replicates \(out of 100\) with the correct rank for the binned models, completely irregular design,η=0\.2\\eta=0\.2\. The range of the selected rank is included in parentheses\.
### S6\.2Misspecified Settings
In this section, we investigate the robustness of our model to several ways in which data generation can misalign with the model\. Unless stated otherwise, we usen=120n=120,p=100p=100,55timepoints,η∈\{1,0\.5,0\.2\}\\eta\\in\\\{1,0\.5,0\.2\\\},σ=1\\sigma=1,10%10\\%entrywise or columnwise missingness and100100replicates per setting, as in the main simulations\.
#### S6\.2\.1Tensor data structure
Let∘\\circdenote the outer product\. Data are generated from a rank\-33CP tensor model,
𝒳=∑r=13𝐮r∘𝐯r∘𝐰r\+ℰ,\\mathcal\{X\}=\\sum\_\{r=1\}^\{3\}\\mathbf\{u\}\_\{r\}\\circ\\mathbf\{v\}\_\{r\}\\circ\\mathbf\{w\}\_\{r\}\+\\mathcal\{E\},\(S21\)where𝐮r∈ℝn\\mathbf\{u\}\_\{r\}\\in\\mathbb\{R\}^\{n\}and𝐯r∈ℝp\\mathbf\{v\}\_\{r\}\\in\\mathbb\{R\}^\{p\}haveN\(0,1\)N\(0,1\)entries,𝐰r∈ℝ5\\mathbf\{w\}\_\{r\}\\in\\mathbb\{R\}^\{5\}hasN\(0,η2\)N\(0,\\eta^\{2\}\)entries to control the SNR, and the random errors termsℰ\\mathcal\{E\}are iid distributedN\(0,1\)N\(0,1\)\. Figure[S2](https://arxiv.org/html/2611.25065#S6.F2)shows the results under completely observed data,10%10\\%random entrywise missingness, and10%10\\%random columnwise missingness\. In all three settings, we observe that while theECECandRBFRBFmodels perform worse than the correctly specified BAMITA model, theFreeFreecovariance model performs comparably across all SNR and observed/missing data settings\. Indeed, the tensor structure is very similar to theFreeFreecovariance model, as each frontal slice of the tensor can be viewed as a matrix observation at a single timepoint\. Under this angle, the flexibleFreeFreecovariance structure model is able to capture covariance that is not structured smoothly over time, demonstrating robustness to such misspecifications\.
Figure S2:RSE for data generated from the CP tensor model\.
#### S6\.2\.2Mixture of temporal & static factors
Data are generated from our model with rankR=4R=4: two static factors, whose scores are the same at every timepoint for each subject, and two temporal factors, whose scores follow the RBF covariance withα=1\\alpha=1\. Each factor has score variance3η2/43\\eta^\{2\}/4, so the total signal matches the rank\-33settings\. From Figure[S3](https://arxiv.org/html/2611.25065#S6.F3), we observe that our model performs similar to the correctly specified setting, and captures the true signal of the model\.
Figure S3:RSE for data with two static and two temporal factors\.
#### S6\.2\.3Non\-Gaussian loadings
Data are generated as in the main simulations from Section[3](https://arxiv.org/html/2611.25065#S3), with the loading\-generating distribution replaced by the centeredGamma\(1,1\)\\mathrm\{Gamma\}\(1,1\)distribution\. Each setting is compared with the same setting under loadings generated from a standard normal distribution\. Figure[S4](https://arxiv.org/html/2611.25065#S6.F4)shows that the models under non\-Gaussian loadings perform similarly to the correctly specified Gaussian loading setting, and thus misspecification of the loading distribution does not result in poor model fit of the EVBLM model\.
Figure S4:RSE with centered gamma loadings \(faded\) and Gaussian loadings \(solid\)\. Rows give the true covariance of the scores\.
### S6\.3Scalability
In this experiment, we investigate the scalability of our model\. We benchmark the runtime to fit our model by varying each of the number of subjects, variables, timepoints, and missingness\. Data are generated from our model with therbfcovariance with parametersη=0\.5\\eta=0\.5,α=3\\alpha=3, andσ2=1\\sigma^\{2\}=1\. We establish a reference setting ofp=1000p=1000variables,n=200n=200subjects,T=5T=5timepoints and rank33\. We scale one of the dimensions each at a time: from100100to2000020000variables;5050to50005000subjects;33to5050timepoints; rank11to2020; and the total entries at a timepoint\(p×n\)\(p\\times n\)from250×50250\\times 50to\(10000×2000\)\(10000\\times 2000\), which gives6\.25×1046\.25\\times 10^\{4\}to10810^\{8\}entries; and10%10\\%,30%30\\%and50%50\\%of the entries or of the visits missing\. Each setting is repeated 100 times\. The model is fitted with theec,freeandrbfcovariances, with automatic rank selection\. All timings were obtained on a single node with two 64\-core AMD EPYC 7763 processors and 512 GB of RAM, using R 4\.3\.0 with single\-threaded OpenBLAS, with eight fits running concurrently\.
Figure[S5](https://arxiv.org/html/2611.25065#S6.F5)shows the median runtime per model fit\. The log computing time is linear in log growth of each ofp,n,p,n,andDD\. The consistent behavior is expected as these parameters all scale the total number of matrix entries linearly\. This is also observed in the first panel on the second row of Figure[S5](https://arxiv.org/html/2611.25065#S6.F5), where we scale the parameters by the product ofp,n,Dp,n,D\. All three covariance models perform comparably when scalingppandnn\. Thefreecovariance model takes longer to fit with more timepoints, as there areD\(D\+1\)/2D\(D\+1\)/2parameters to estimate, whereas the parameters ofECandrbfare constant with respect to timepoints\. In the missingness scenarios, the computing time depends on the mode of missingness\. Entrywise missingness scales the log computing time linearly similar to the previous settings, because more missing entries require more iterations of the imputation step before the ELBO converges\. On the other hand, computing time stays relatively stable in the blockwise missingness scenario, and even faster when50%50\\%of the visits are missing\.
Figure S5:Median computing time per fit \(100 replicates\) as each dimension increases, with the other dimensions fixed at 1000 variables, 200 subjects, 5 timepoints and rank 3\. Both axes are on a log scale\.
## S7IFNβ\\betaData Application
### S7\.1Preprocessing
As described in the original study\[[5](https://arxiv.org/html/2611.25065#bib.bib10)\], expression of pre\-selected genes was measured in PBMC RNA by one\-step kinetic RT\-PCR \(ABI 7900\), with triplicate reactions on 384\-well plates that included positive and negative controls and a calibration curve\. Absolute expression values were obtained by interpolation from a calibration curve spanning five orders of magnitude \(built from an in vitro transcribed GAPDH clone\), and the triplicate means were divided by the value of a positive\-control RNA \(thymus\) on the same plate to correct for plate\-to\-plate variability\. Housekeeping\-gene normalization was deliberately not used; instead, equal RNA input was ensured through fluorescence\-based RNA quantitation, dilution of all samples to a common concentration, and automated liquid handling\. The original authors did not apply a formal batch correction beyond this plate\-level normalization\. We used the publicly released, normalized expression values \(Dataset S1\), which were not log\-scaled, applied a natural log transformation, and then centered each gene to have mean zero across its observed values\. No further processing was performed\.
### S7\.2Number of components
The greedy algorithm adds one component at a time and stops when a new component does not increase the ELBO; backfitting then updates all components jointly\. With the EC covariance this selects 13 components on the full data\. Table[S4](https://arxiv.org/html/2611.25065#S7.T4)shows the number selected across bootstrap resamples \(Section[S7\.4](https://arxiv.org/html/2611.25065#S7.SS4)\)\.
### S7\.3Responder Difference Significance Test
LetSijS\_\{ij\}be the posterior mean score of component 7 for subjectiiat visitjj, withtj∈\{0,0\.25,0\.5,0\.75,1,1\.5,2\}t\_\{j\}\\in\\\{0,0\.25,0\.5,0\.75,1,1\.5,2\\\}the visit time in years from baseline, andRiR\_\{i\}the indicator that subjectiiis a good responder\. We fit the linear mixed model
Sij=β0\+β1Ri\+β2tj\+β3Ritj\+ei\+εij,ei∼N\(0,τ2\),εij∼N\(0,σ2\),S\_\{ij\}=\\beta\_\{0\}\+\\beta\_\{1\}R\_\{i\}\+\\beta\_\{2\}t\_\{j\}\+\\beta\_\{3\}R\_\{i\}t\_\{j\}\+e\_\{i\}\+\\varepsilon\_\{ij\},\\qquad e\_\{i\}\\sim N\(0,\\tau^\{2\}\),\\quad\\varepsilon\_\{ij\}\\sim N\(0,\\sigma^\{2\}\),\(S22\)whereeie\_\{i\}is a random subject intercept\. Hereβ1\\beta\_\{1\}is the difference between good and poor responders at baseline, andβ3\\beta\_\{3\}is the change in that difference per year; ifβ3=0\\beta\_\{3\}=0, the baseline difference holds at every visit\. The model uses all53×753\\times 7estimated scores, including those at missing visits, and is fit by REML with thenlmepackage\.
The estimates areβ^1=0\.364\\hat\{\\beta\}\_\{1\}=0\.364\(SE0\.0540\.054,p=1\.8×10−8p=1\.8\\times 10^\{\-8\}\) andβ^3=0\.0006\\hat\{\\beta\}\_\{3\}=0\.0006per year \(SE0\.00410\.0041,p=0\.89p=0\.89\)\. Good responders have higher component 7 scores, and we find no evidence that the difference changes over time\. Thesepp\-values treat the estimated scores as observed and do not account for component 7 having been chosen after inspecting the score trajectories; a Bonferroni correction over the 13 components givesp=2\.3×10−7p=2\.3\\times 10^\{\-7\}forβ1\\beta\_\{1\}\.
### S7\.4Stability across resamples
The EVBLM initialization is deterministic, so refitting the full data returns the same components; we therefore assess stability over resamples of subjects\. We drewB=1000B=1000bootstrap samples of the 53 subjects with replacement and refit EVBLM with the same settings \(EC covariance, greedy selection followed by backfitting\)\. Because components with similar variance explained can change order between fits, the component matched to full\-data component 7 is the one whose loading vector has the largest absolute correlation with the full\-data loading of component 7\. Its scores are multiplied by the sign of that correlation, and model \([S22](https://arxiv.org/html/2611.25065#S7.E22)\) is refit to them\.
Table S4:Bootstrap results for the IFNβ\\betadata \(B=1000B=1000\): number of components selected, and position of the component matched to full\-data component 7\.The median absolute loading correlation of the matched component is0\.840\.84\(interquartile range0\.720\.72to0\.900\.90\), and it exceeds0\.80\.8in61%61\\%of resamples\. The matched component is at position 5 to 8 in85%85\\%of resamples\. Across resamples,β^1\\hat\{\\beta\}\_\{1\}has median0\.3520\.352\(2\.5% and 97\.5% quantiles0\.1220\.122and0\.4730\.473\) andp<0\.05p<0\.05in96\.8%96\.8\\%of resamples;β^3\\hat\{\\beta\}\_\{3\}has median0\.0000\.000\(quantiles−0\.015\-0\.015and0\.0190\.019\) andp<0\.05p<0\.05in10\.6%10\.6\\%\.相似文章
DTVEM-RE:面向密集纵向数据个体特异性多滞后估计的差分时变效应模型的层次随机效应扩展
本文提出了DTVEM-RE,这是差分时变效应模型的层次随机效应扩展,通过Stan中的哈密顿蒙特卡洛方法估计个体特异性的多滞后系数,解决了原始DTVEM假设单一群体水平滞后结构的局限性。模拟和实证结果表明,该方法能够恢复人际方差,并在层次和非层次基线方法上有所改进。
变分贝叶斯变量选择后恢复潜在结构:部分探索性因子分析中的拟合评估与因子数选择
本文针对变分贝叶斯变量选择下的部分探索性因子分析(PEFA),开发了后选择拟合评估方法,提出了绝对与相对拟合诊断指标以及一种用于因子数选择的无尺度增益规则,并通过仿真和实证案例进行了验证。
Empirical Variational Autoencoder(经验变分自编码器)
Empirical Variational Autoencoder(EVA)是一种面向连续值序列的通用生成框架,它通过训练数据经验性地学习自回归潜在先验,缓解了传统VAE中先验与后验之间的差距,并在推理速度大幅提高的情况下,取得了与自回归扩散基线相媲美的生成质量。
FB-GDM: 基于无监督变分推断的高维线性逆问题全贝叶斯引导扩散模型
FB-GDM 引入了一种用于高维线性逆问题的全贝叶斯引导扩散方法,消除了针对每个任务的超参数调优,并展示了相对于现有技术的稳健性能提升。
用于协变量缺失的统计、机器学习和深度学习方法:一项应用于阿尔茨海默病研究的实证评估
一篇 arXiv 论文,通过模拟实验及在阿尔茨海默病研究中的范德比尔特记忆与衰老项目中的应用,对八种处理协变量缺失的方法进行了实证评估,包括多重插补、机器学习技术,以及变分自编码器(VAE)和生成对抗网络(GAN)等深度生成模型。