Variational inference using approximate likelihood under the coalescent with recombination

Xinhao Liu, Huw A. Ogilvie, Luay NakhlehGenome Research 2024

TL;DR

This paper introduces VICAR, a novel method for inferring evolutionary parameters from genomic data that accounts for recombination. By combining simulation-based learning of coalescent hidden Markov models (coalHMMs) with black-box variational inference, VICAR offers a more flexible and scalable approach to analyzing complex demographic histories compared to existing methods.

What Problem Does This Paper Address?

Analyzing large genomic datasets to understand evolutionary history is crucial, but existing methods often struggle with the complexity introduced by recombination. The coalescent with recombination model, which describes how genetic lineages merge over time while accounting for recombination events, is computationally challenging to work with. Traditional approaches like coalHMMs require manual derivation of transition probabilities for specific demographic scenarios, limiting their usability and flexibility. This paper aims to overcome these limitations by developing a method that can automatically learn these models and perform inference efficiently, even for complex evolutionary histories.

Methods

The core of VICAR lies in two novel components:

  1. Simulation-based coalHMM learning: Instead of manually deriving transition rates between different genealogical states, VICAR simulates genetic data under a proposed demographic model. This simulated data is then used to empirically construct a coalHMM. This approach allows VICAR to handle arbitrarily complex demographic scenarios without requiring explicit mathematical derivations for each one.
  2. Black-box variational inference (BBVI): VICAR employs BBVI to infer the posterior distribution of evolutionary parameters (like divergence times and population sizes). BBVI is a stochastic optimization technique that approximates the true posterior distribution with a simpler, parameterized distribution (in this case, a factorized Gaussian). This allows for efficient, albeit approximate, Bayesian inference.

The method also leverages a "divide-and-conquer" strategy for scaling to more taxa and can infer local genealogies for individual genomic sites.

Datasets

The primary datasets used for evaluation were:

  • Simulated human-chimp-gorilla data: 100 datasets were simulated to mimic the evolutionary history of these species, with parameters similar to those used in previous studies. This served as a benchmark to compare VICAR's accuracy against existing methods like diCal2.
  • Empirical human-chimp-gorilla genomic alignment: Target 106 from chromosome 20, previously analyzed by Hobolth et al. (2007) and Dutheil et al. (2009), was reanalyzed to compare VICAR's performance on real data.
  • Empirical Heliconius butterfly genomic alignment: 17 1-Mb windows from a whole-genome alignment of three Heliconius species (H. cydno, H. timareta, and H. numata) were analyzed to infer their demographic history.

Key Insights and Ideas

  • Automating coalHMM construction: The ability to automatically learn coalHMMs from simulations is a significant step towards making these powerful models more accessible and applicable to a wider range of evolutionary scenarios.
  • Flexibility through simulation: By deriving model components empirically from simulations, VICAR bypasses the need for complex analytical derivations, making it adaptable to new demographic models.
  • Bayesian inference for uncertainty: VICAR's Bayesian approach provides credible intervals for parameter estimates, offering a measure of confidence that is often more robust than bootstrapping in maximum likelihood methods.
  • Scalability potential: The discussion of a divide-and-conquer approach suggests a path towards analyzing even larger datasets with more taxa, a critical need in modern genomics.

Key Results

  • Accuracy: On simulated human-chimp-gorilla data, VICAR achieved comparable or better accuracy than the state-of-the-art method diCal2 for inferring species divergence times and population sizes. VICAR's estimates showed less variance, particularly for ancestral population sizes.
  • Speed vs. Accuracy Trade-off: While diCal2 was faster, VICAR's performance after a comparable computational time (20 iterations) was still competitive, suggesting that its Bayesian approach offers advantages in accuracy and precision.
  • Local Genealogy Inference: VICAR demonstrated good accuracy in inferring local genealogies, correctly classifying 90% of true HC1 sites.
  • Empirical Data: VICAR produced comparable results to previous studies on human-chimp-gorilla data and provided novel insights into the demographic history of Heliconius butterflies, revealing a wide range of divergence times across chromosomes.
  • Credible Intervals: VICAR's 95% credible intervals consistently included the true parameter values in simulations, whereas diCal2's confidence intervals often excluded them.

Limitations and Future Work

  • Computational Cost: VICAR is currently computationally more intensive than diCal2, though efforts are underway to optimize it.
  • Variational Family Limitations: The factorized Gaussian variational posterior can lead to underestimated variance, meaning the inferred standard deviations might not be entirely reliable.
  • Sampling Illegal Configurations: The current implementation can sometimes sample invalid parameter configurations (e.g., child node height greater than parent node height). This requires careful initialization and is an area for future improvement.
  • Scaling to More Taxa: While a divide-and-conquer approach is discussed, further work is needed to fully explore its scalability for a large number of taxa.
  • Extending to Network Models: The authors suggest that VICAR's framework can be extended to model gene flow and network-like evolutionary histories, which would be a significant advancement.
  • More Complex Demographic Models: The method is well-suited for future extensions to analyze non-constant demographic functions and ancient hybridization events.

Summary updated

BibTeX
@inproceedings{liu2024variational,
  author = {Xinhao Liu and Huw A. Ogilvie and Luay Nakhleh},
  title = {{Variational inference using approximate likelihood under the coalescent with recombination}},
  booktitle = {Genome Research},
  year = {2024},
  url = {https://openreview.net/forum?id=NbCmJLCHKX},
}
Figure