1 of 61

Multi-task learning approaches to modeling context-specific networks

Oct 19th, 2021

BMI 826-23 Computational Network Biology�Fall 2021

Anthony Gitter

https://compnetbiocourse.discovery.wisc.edu

Original slides created by Prof. Sushmita Roy

2 of 61

Strategies for capturing dynamics in networks

  • Dynamic Bayesian Networks
  • Skeleton network-based approaches
  • Input-Output Hidden Markov Models
  • Multi-task learning approaches

3 of 61

Goals for today

  • Graphical Gaussian Models (GGMs)
  • Different algorithms for learning GGMs
    • Graphical Lasso
    • Neighborhood selection
  • Define Multi-task learning for dynamic network inference
  • Learning multiple GGMs for hierarchically related tasks
    • Gene Network Analysis Tool (GNAT)
      • Pierson et al., 2015, PLOS Computational Biology
  • Applications to inference of tissue-specific networks

4 of 61

Recall the univariate Gaussian distribution

  • Gaussian distribution

The Gaussian distribution is defined by two parameters:

Mean:

Standard deviation:

5 of 61

A multi-variate Gaussian Distribution

  • Extends the univariate distribution to higher dimensions (p in our case)

  • As in the univariate case, we have two parameters
    • Mean: a p-dimensional vector
    • Co-variance: a p X p dimensional matrix
      • Each entry of the matrix specifies the variance or co-variance between any two dimensions

6 of 61

A two-dimensional Gaussian distribution

  • The mean

  • The covariance matrix

Variance

Co-variance

Image from Mathworks.com

Probability density of a Gaussian with

7 of 61

A three-dimensional Gaussian distribution

Probability density of a Gaussian with

 

 

8 of 61

Graphical Gaussian Models (GGMs)

  • An undirected probabilistic graphical model
  • Graph structure encode conditional independencies among variables
  • The GGM assumes that X is drawn from a p-variate Gaussian distribution with mean and co-variance
  • The graph structure specifies the zero pattern in the
    • is the precision matrix
    • Zero entries in the precision matrix imply absence of an edge in the graph

9 of 61

Absence of edges and the zero-pattern of the precision matrix

X4

X1

X2

X3

X5

For example:

10 of 61

Matrix trace and determinant properties

  • Trace of a pXp square matrix M is the sum of the diagonal elements

  • Trace of two matrices

  • For a scalar a

  • Trace is additive

  • Determinant of inverse

11 of 61

Joint probability of a sample from a GGM

  •  

12 of 61

Joint probability of a sample from a GGM

  •  

13 of 61

Joint probability of a sample from a GGM

  •  

14 of 61

Joint probability of a sample from a GGM

  •  

15 of 61

Joint probability of a sample from a GGM

  • The previous term can be re-written as

Trace trick: Tr(MN)=Tr(NM)

16 of 61

Joint probability of a sample from a GGM

  • The previous term can be re-written as

Trace trick: Tr(MN)=Tr(NM)

17 of 61

Joint probability of a sample from a GGM

  • The previous term can be re-written as

This term is 0, when there is no contribution from the pair xi, xj

Trace trick: Tr(MN)=Tr(NM)

18 of 61

Data likelihood from a GGM

  • Data likelihood of a dataset D={x1,..,xN} with N different samples from a GGM is

  • After some linear algebra is proportional to

  • where

This formulation is nice because now we can think of entries of Θ as regression weights �that we need to maximize the above objective

19 of 61

Learning a Graphical Gaussian Model

  • Learning the structure of a GGM entails estimating which entries in the inverse of the covariance matrix are non-zero
  • These correspond to the direct dependencies among two random variables

20 of 61

Learning a GGM

  • Graphical Lasso
    • Exact approach
    • Friedman, Hastie and Tibshirani 2008
  • Neighborhood selection
    • Approximate approach
    • Meinshausen and Buhlmann 2006

21 of 61

Learning a GGM

  • Graphical Lasso
    • Exact approach
    • Friedman, Hastie and Tibshirani 2008
  • Neighborhood selection
    • Approximate approach
    • Meinshausen and Buhlmann 2006

22 of 61

Graphical LASSO

  •  

23 of 61

Graphical LASSO

  • Recall the Gaussian likelihood

  • Learning the GGM requires us to solve the following optimization problem

  • But this in general is not going to work because of small sample size

  • This is the idea behind the Graphical LASSO algorithm

Friedman, Hastie, Tibshirani 2008

24 of 61

Graphical LASSO algorithm

  •  

Keep this fixed

25 of 61

Graphical LASSO contd

  • Using partitioned inverse

  • Plugging this in

  • For each row/column we get

26 of 61

Graphical LASSO contd

  • This specific function looks similar to the derivative of a LASSO objective

LASSO objective

Derivative

27 of 61

Graphical LASSO

  •  

28 of 61

Learning a GGM

  • Graphical Lasso
    • Exact approach
    • Friedman, Hastie and Tibshirani 2008
  • Neighborhood selection
    • Approximate approach
    • Meinshausen and Buhlmann 2006

29 of 61

Neighborhood selection

  • Proposed by Meinshausen and Buhlmann 2006
  • Markov blanket: The immediate neighborhood of a random variable
  • Key idea: Find the Markov blanket or immediate neighbor set of each random variable

X4

X1

X2

X3

X5

Markov blanket of X3

30 of 61

Neighborhood selection

  • Here also we solve a set of regression problems for each random variable Xs

  • The Markov blanket/neighborhood are those variables that have a non-zero coefficient
  • Combine the neighborhood estimates using an AND or OR rule to create an undirected graph

31 of 61

Comparison between the two algorithms

  • Neighborhood selection is fast compared to Graphical LASSO
  • Neighborhood selection requires a “correction” to learn a valid structure, but this is not needed in Graphical LASSO

32 of 61

Goals for today

  • Graphical Gaussian Models (GGMs)
  • Different algorithms for learning GGMs
    • Graphical Lasso
    • Neighborhood selection
  • Define Multi-task learning for dynamic network inference
  • Learning multiple GGMs for hierarchically related tasks
    • Gene Network Analysis Tool (GNAT)
      • Pierson et al., 2015, PLOS Computational Biology
  • Applications to inference of tissue-specific networks

33 of 61

Consider the following problem

  • Suppose we had N time points or conditions or cell types
  • We can measure p different entities for each of the cell types/individuals
    • We can repeat this experiment several times (mn)
  • We wish to identify the network in each of the cell types/individuals that produces p different measurements

34 of 61

Genotype-Tissue Expression (GTEx) project

35 of 61

Multi-task learning (MTL)

  • Suppose we had T different tasks that we want to solve
    • For example, each task could be a regression task, to predict the expression level of gene from its regulator expression
  • Suppose we knew the tasks are related
  • Multi-task learning aims to simultaneously solve these T tasks while sharing information between them
  • Different MTL frameworks might share information differently
  • MTL is especially useful when for each task we do not have many samples
  • GTEx network inference can be framed as MTL

36 of 61

Single task versus multi-task learning

  • Single task learning

  • Multi-task learning

Widmer and Ratsch, 2012

Loss function

Regularization term

37 of 61

Genetic Network Analysis Tool (GNAT)

  • Given
    • Gene expression measurements from multiple tissues, several per tissue
    • A tissue hierarchy relating the tissues
  • Do
    • Learn a gene co-expression network for each tissue

  • Naïve approach: Learn co-expression network in each tissue independently;
    • Some tissues have 2 dozen samples (n<<<p)
  • Key idea of GNAT is to exploit the tissue hierarchy to share information between each tissue co-expression network

Pierson et al., PLOS Computational Biology 2015

38 of 61

GNAT

  • Each tissue’s gene network is a co-expression network: A Graphical Gaussian Model (GGM)
  • Learning a GGM is equivalent to estimate the non-zeros in the inverse of the covariance matrix (precision matrix)
  • Sharing information in a hierarchy by constraining the precision matrix of two tissues close on the hierarchy to be more similar to each other

39 of 61

Hierarchically related GGM learning tasks

1

m1 samples

2

3

4

p genes

m2 samples

m3 samples

m4 samples

Estimate

5

6

7

40 of 61

GNAT objective function

Sparse precision matrix

Encourage similarity with parent node

They don’t directly optimize this, but rather apply a two-step iterative algorithm

Parent of k from the hierarchy

K: Total number of tasks

mk: Number of samples in task k

41 of 61

Two-step iterative algorithm in GNAT

  • For each dataset/tissue at the leaf nodes k, learn an initial matrix Θk
  • Repeat until convergence
    • Optimize the internal matrices, Θp for all the ancestral nodes p keeping the leaf nodes fixed
      • This can be computed analytically, because of the L2 penalty
    • Optimize the leaf matrices Θk using their combined objective function

42 of 61

Updating the ancestral nodes

  • To obtain the estimate of the ancestral precision matrices, we need to derive the objective with respect to each Θp(k)

  • Turns out the ancestral matrix is an average of the child matrices

Left and right child of p

43 of 61

Key steps of the GNAT algorithm

Define tissue hierarchy based on gene expression levels

Learn co-expression network in each leaf tissue

Infer network in internal nodes and update leaf nodes

Final inferred networks

44 of 61

Tissue hierarchy used

  1. Compute the mean expression of each gene per tissue
  2. Tissues were clustered using hierarchical clustering of the mean expression vectors.

45 of 61

Results

  • Ask whether sharing information helps
    • Simulated data
  • Apply to multi-tissue expression data from GTEX consortium
    • 35 different human tissues
    • 1,559 total gene expression samples
    • Hierarchy learned from the expression matrix

46 of 61

Simulation experiment

  • Use data from each tissue and generate five different sets
  • Learn networks from four of the five datasets per tissue
  • Assess the data likelihood on the hold out tests
  • Baselines
    • Independent learning per tissue
    • Merging all datasets and learning one model
  • Repeat for three gene sets

47 of 61

Does sharing information help?

Three gene sets. Compute test data likelihood using 5 fold cross-validation

Single network likelihood was too low to be shown!

48 of 61

Biological assessment of the networks

  • Pairs of genes predicted to be connected were shown to be co-expressed in third party expression databases.
    • Including tissue-specific expression database.
  • Genes predicted to be linked in a specific tissue were 10 times more likely to be co-expressed in specific tissues
  • Test if genes linked in the networks were associated with shared biological functions
    • Genes that shared a function, were linked 94% more often than genes not sharing a function

49 of 61

Examining tissue-specific properties of the networks

Transcription factors specific to a tissue, tend to have a lot of connections, and connect�to genes associated with other genes specific to the tissue

Brighter the green,�the more expressed �is a gene.

Blue circles: TFs

50 of 61

Tissue-specific TFs (tsTFs) are highly expressed in their specific tissues

Tissues

TF groups

The signal is most apparent for Brain tissues

51 of 61

Additional analysis of tsTFs

  • Define genes with tissue-specific functions and assess the connectivity of tsTFs to these genes versus non tissue-specific genes
  • Tissue-specific genes connected to tsTFs were more expressed than genes that are not tissue-specific or genes not connected to these TFs.
  • tsTFs tended to have lot of connections (hubby)
  • Tissue-specific target genes were less hubby than the average gene.

52 of 61

Defining tissue-specific and shared gene modules

  • Use a clustering algorithm to group genes into modules while using the graph structure
    • We will see algorithms that do this type of clustering
  • Test each module for enrichment of curated biological processes
  • For each module, assess conservation in other tissues based on the fraction of links present among genes in other tissues.

53 of 61

Analysis of shared modules

  • Define module conservation for a module m in a tissue as

Total number of tissues

Number of possible interactions among genes in the module

Number of interactions in tissue j for module m

54 of 61

Modules captured tissue-specific functions

An important immune-related module associated with blood-specific transcription factor GATA3. GATA3 and RUNX3 coordinately interact with other tissue-specific genes

55 of 61

Take away points

  • Graphical Gaussian models can be used to capture direct dependencies
    • Learning a GGM entails estimating the precision matrix
  • Dynamics of networks: How networks change across different tissues
  • GNAT: A multi-task learning approach to learn tissue-specific networks
    • One task maps to a learning one GGM
    • Share information between tasks using the hierarchy
    • Has good generalization capability and infers biologically meaningful associations
  • Gaussian assumption might be too strong

56 of 61

Other approaches of interest

  • Ontogenet
    • Jojic et al., Nature Immunology 2013
  • TREEGL
    • Parikh et al., Bioinformatics 2011
  • Inferelator-AMuSR
    • Adaptive Multiple Sparse Regression
    • Castro et al., PLOS Computational Biology 2019

57 of 61

Ontogenet

  • The average expression of a module is explained by a linear combination of the levels of the regulators

  • Regulators from nearby cells on a lineage are similar

  • Ontogenet does this by adding a penalty to the regression weights for each cell lineage.

Jojic et al., 2013

58 of 61

Ontogenet objective

This is the objective for a single module m, across the entire lineage

gene i in cell type t

regulator r’s activity in cell type t

{t1,t2) is an edge in the cell lineage tree f

59 of 61

TREEGL: Tree smoothed Graphical LASSO

TreeGL uses neighborhood selection to learn the graph structure

Predictive error

Sparsity penalty

Make weights similar

60 of 61

Inferelator-AMuSR

  • S matrix: condition-specific regulator weights
  • B matrix: shared regulator weights

Castro et al., PLOS Computational Biology 2019

61 of 61

References

  • E. Pierson, the GTEx Consortium, D. Koller, A. Battle, and S. Mostafavi, “Sharing and Specificity of Co-expression Networks across 35 Human Tissues,” PLoS Comput Biol, vol. 11, no. 5, p. e1004220, May 2015, doi: 10.1371/journal.pcbi.1004220.
  • V. Jojic et al., “Identification of transcriptional regulators in the mouse immune system,” Nat Immunol, vol. 14, no. 6, pp. 633–643, Jun. 2013, doi: 10.1038/ni.2587.
  • A. P. Parikh, W. Wu, R. E. Curtis, and E. P. Xing, “TREEGL: reverse engineering tree-evolving gene networks underlying developing biological lineages,” Bioinformatics, vol. 27, no. 13, pp. i196–i204, Jul. 2011, doi: 10.1093/bioinformatics/btr239.
  • Hastie, Trevor, Robert Tibshirani, and Martin Wainwright. 2015. Statistical Learning with Sparsity: The Lasso and Generalizations. Monographs on Statistics and Applied Probability 143. Boca Raton: CRC Press, Taylor & Francis Group. Chapter 9.