Computing log-likelihood and its derivatives for restricted maximum likelihood methods

Shengxin Zhu

Abstract

Recent large scale genome wide association analysis involves large scale linear mixed models. Quantifying (co)-variance parameters in the mixed models with a restricted maximum likelihood method results in a score function which is the first derivative of a log-likelihood. To obtain a statistically efficient estimate of the variance parameters, one needs to find the root of the score function via the Newton method. Most elements of the Jacobian matrix of the score involve a trace term of four parametric matrix-matrix multiplications. It is computationally prohibitively for large scale data sets. By a serial matrix transforms and an averaged information splitting technique, an approximate Jacobian matrix can be obtained by splitting the average of the Jacobian matrix and its expected value. In the approximated Jacobian, its elements only involve Four matrix vector multiplications which can be efficiently evaluated by solving sparse linear systems with the multi-frontal factorization method.

Introduction

Estimating variance in large-scale genomic studies often requires solving complex Linear Mixed Models (LMMs) using Restricted Maximum Likelihood (REML). In Genome-Wide Association Studies (GWAS), researchers use LMMs to account for random effects like environmental variation or family relatedness. To find the best parameters for these models, they use REML to maximize a log-likelihood function.

The standard maximization approach is the Newton-Raphson method, requiring the "score function" (first derivative) and its "Jacobian matrix" (second derivative). For large datasets, calculating the Jacobian is computationally intensive because it involves a "trace" term of four large matrix-matrix multiplications. As the number of individuals and genetic markers grows, this becomes a significant bottleneck.

Methods: Averaged Information Splitting

The proposed approach utilizes Averaged Information (AI) splitting. Instead of calculating the exact, prohibitively expensive Jacobian, the method uses an approximation that "splits" the difference between the observed information and the expected (Fisher) information.

Comparison of Jacobian, Expected Jacobian, and Averaged Jacobian Splitting formulas.

Key technical components include:

  • Matrix Transformation: A serial matrix transform simplifies the log-likelihood formula into a closed form independent of intermediate projection matrices.
  • Reduction to Matrix-Vector Products: The most difficult terms in the approximated Jacobian are reduced to just four matrix-vector multiplications.
  • Sparse Solvers: These multiplications are evaluated by solving sparse linear systems using multi-frontal $LDL^T$ factorization.
  • Fill-in Reduction: Ordering algorithms like Approximate Minimum Degree (AMD) minimize "fill-in" (new non-zero elements created during factorization), maintaining efficiency.

Datasets and Benchmarking

The approach was evaluated using benchmark problems P1 through P10, simulating "variety trials" common in agricultural genetics. These datasets range from ~3,500 to ~45,000 effects and include three-way crossed structures (year × variety × site) with varying levels of imbalance, reflecting real-world genomic data complexities.

Key Insights and Results

A critical realization is that evaluating the term $Py$ (where $P$ is a complex projection matrix) is mathematically equivalent to solving the standard Mixed Model Equations (MME) and calculating a weighted residual. This is advantageous because the MME system is much smaller than the original observation space.

Sparse matrix structure and elimination trees for different ordering strategies.

The reduction from matrix-matrix traces to matrix-vector products allows the Jacobian to be updated significantly faster. In the P10 benchmark (the largest), the $LDL^T$ factorization took only 0.8054 seconds, while the symbolic ordering (AMD) took 0.4010 seconds. This demonstrates that the numerical solve is extremely fast once the sparse structure is optimized. The results show that the number of non-zero elements in the factorized matrix ($L$) grows manageably, proving the method's viability for high-throughput biological data.

Limitations and Future Work

The method is specifically tailored for Linear Mixed Models. Extending these efficient Jacobian approximations to Generalized Linear Mixed Models (GLMMs) for non-normal data (like binary traits) remains a challenge. While the current focus is on algorithmic efficiency on standard CPUs, the multi-frontal approach is well-suited for parallelism, suggesting potential future implementations on GPUs or distributed clusters.

Summary updated

Abstract

Recent large scale genome wide association analysis involves large scale linear mixed models. Quantifying (co)-variance parameters in the mixed models with a restricted maximum likelihood method results in a score function which is the first derivative of a log-likelihood. To obtain a statistically efficient estimate of the variance parameters, one needs to find the root of the score function via the Newton method. Most elements of the Jacobian matrix of the score involve a trace term of four parametric matrix-matrix multiplications. It is computationally prohibitively for large scale data sets. By a serial matrix transforms and an averaged information splitting technique, an approximate Jacobian matrix can be obtained by splitting the average of the Jacobian matrix and its expected value. In the approximated Jacobian, its elements only involve Four matrix vector multiplications which can be efficiently evaluated by solving sparse linear systems with the multi-frontal factorization method.
BibTeX
@misc{zhu2016computing,
  author = {Shengxin Zhu},
  title = {{Computing log-likelihood and its derivatives for restricted maximum likelihood methods}},
  year = {2016},
  eprint = {1608.07207},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.07207},
}
Figure