Multi-Region Markovian Gaussian Process: An Efficient Method to Discover Directional Communications Across Multiple Brain Regions
Abstract
Studying the complex interactions between different brain regions is crucial in neuroscience. Various statistical methods have explored the latent communication across multiple brain regions. Two main categories are the Gaussian Process (GP) and Linear Dynamical System (LDS), each with unique strengths. The GP-based approach effectively discovers latent variables with frequency bands and communication directions. Conversely, the LDS-based approach is computationally efficient but lacks powerful expressiveness in latent representation. In this study, we merge both methodologies by creating an LDS mirroring a multi-output GP, termed Multi-Region Markovian Gaussian Process (MRM-GP). Our work establishes a connection between an LDS and a multi-output GP that explicitly models frequencies and phase delays within the latent space of neural recordings. Consequently, the model achieves a linear inference cost over time points and provides an interpretable low-dimensional representation, revealing communication directions across brain regions and separating oscillatory communications into different frequency bands.
1 Introduction
The number of simultaneous neural recordings from various brain regions has increased recently. These recordings offer opportunities to explore the mechanisms through which inter-areal communication supports brain function (Kohn et al., 2020). Brain regions linked to sensory and cognitive functions often display interconnectedness, with signals transmitted bidirectionally and potentially simultaneously (Harris & Mrsic-Flogel, 2013; Miller et al., 2018; Wang et al., 2024). However, the high-dimensional neural recordings typically present a complex view of this concurrent communication—for example, neurons may concurrently represent overlapping neural activities within a certain region. Therefore, uncovering the interactions between different brain regions presents a challenging task.
Many statistical methodologies have been employed to address the challenge of understanding communications across multiple brain regions. Hultman et al. 2018 examined multi-region local field potential data and identified frequency-based interactions across brain regions using a Gaussian Process Factor Analysis model. Following a similar approach, Gokcen et al. 2022, 2023 suggested that latent variables can be divided into across- and within-region components. This model was applied to disentangle the concurrent and bidirectional communications across brain regions with a multi-output Squared Exponential kernel. Glaser et al. 2020 developed a switching linear dynamic system to uncover low-dimensional interactions among multiple brain regions. This method captured regions responsible for transitioning between latent states by specifying a novel transition rule.
Broadly categorized into Gaussian Process (GP) and Linear Dynamical System (LDS) classes, these methods offer distinct advantages. The GP-based approach, leveraging the robust representational capability of multi-output kernels, performs well in discovering latent variables with crucial information, such as frequencies and directional communications. Conversely, the LDS-based approach, while computationally efficient with a linear cost in time points, lacks the powerful expressiveness of GP in latent representation.
Our goal is to combine the strengths of both methodologies by constructing an LDS that mirrors a GP. Several studies have explored this connection: Hartikainen & Särkkä 2010 established a framework about converting a single-output GP with Matern or Squared Exponential kernel to an LDS, which relied on spectral factorization (Sayed & Kailath, 2001). Building upon this, Solin & Särkkä 2014 proposed the conversion for single-output periodic kernels, and Särkkä et al. 2013 extended the single-output conversions to a spatiotemporal GP. However, applying these conversions for GP-based multi-region methods is non-trivial because a gap exists in converting a multi-output GP to an LDS. One approach to bridge this gap is to assume the kernel is separable over spatial and temporal domain (Solin et al., 2016). This allows us to create a closed-form multi-output GP-LDS conversion following the framework proposed in single-output cases.
Consequently, choosing a separable kernel becomes essential in this study. An effective option is the complex-valued multi-region kernel (Ulrich et al., 2015), specifically designed to facilitate learning latent interactions encompassing frequencies and phase delays across brain regions. However, it is important to note that the connection between an LDS and a GP with a complex-valued multi-output kernel remains unknown.
We introduce the Multi-Region Markovian Gaussian Process (MRM-GP) to model latent representations, where Markovian means the discrete state space representation of a GP. Our work establishes a connection between an LDS and a multi-output GP that explicitly discovers frequency-based latent communications and their directionality via phase delays. By doing so, we can have three advantages: (1) utilizing the powerful representational capability of kernel functions; (2) employing the efficient inference algorithm to ensure a linear computational cost over time points; (3) extending the LDS to incorporate time-varying frequencies and delays by switching states.
We test MRM-GP using multi-region spike trains and local field potential recordings. The model proves its capability to produce understandable low-dimensional representations. These representations illustrate the direction of communication flow among regions and effectively disentangle oscillatory interactions into diverse frequencies.
2 Background
We introduce the multi-region kernel, a multi-output kernel for modeling interactions across different brain regions. Then, we demonstrate how a Gaussian Process with this kernel can be employed to model latent communications across regions. It is worth noting that various mapping methods can be used to project latent representations onto neural recordings, and in this case, we opt for Factor Analysis.
2.1 Multi-Region Kernel
The complex-valued multi-region kernel proposed in (Ulrich et al., 2015) explicitly models communication frequencies and phase delays within the latent space of neural data:
This kernel ensures separability over space and time, where and are two brain regions, is the time interval. In the temporal part, signifies the length scale, denotes the imagery unit, represents the communication frequency between regions. In the spatial part, represents the phase delay between region and , and are amplitudes, and denotes the rank number ensuring positive definiteness.
The separability is required to establish a connection between the multi-region kernel and a linear dynamic system (LDS). Moreover, the real part of this kernel , denoted as the Cross-Spectral Mixture (CSM) kernel (Ulrich et al., 2015), has been shown to effectively capture frequency-based communications among various brain regions (Hultman et al., 2018). However, due to CSM’s non-separability, we work with the complex-valued kernel as represented in Eq. 2.1 to build an LDS.
2.2 Multi-Region Gaussian Process Factor Analysis

A Gaussian Process Factor Analysis model, utilizing the real part of the multi-region kernel in Eq. 2.1 and named CSM-GPFA, can identify latent variables that capture frequencies and phase delays across brain regions.
Given single region neural recording , is the brain region index, denotes the number of neurons in region , and represents time steps. Our goal is to find the independent low-dimensional variables for each region’s neural data . These variables from regions together form as , representing a latent representation for multi-region recordings , where is the total number of neurons over regions. Besides, is a linear mapping of : , where is a block diagonal matrix , is bias, and is Gaussian noise with .
Meanwhile, a widely used assumption of is to split it into across- and within-region parts (Gokcen et al., 2022): , where are the number of dimensions for across- or within-region part and . The across-region variables describe neural activity that is shared across all brain regions, meaning that for the remaining regions, they have the latent variables with the same frequencies and dynamics except phase delays, while the within-region variables describe the neural activity of region that is not related to other regions (see Figure 1).
Consequently, we model and separately with in Eq. 2.1. For region , there are dimensions of across-region variables, and each dimension has spatial correlations with the remaining regions. So, the dimension across-region variables over regions: are considered as a group and modeled as the real part of a multi-output Complex Gaussian Process with . For within-region variables, each dimension is independently modeled as the real part of a single-output Complex Gaussian Process with , where and . Furthermore, we also assume independence among different dimensions of across- and within-region variables, implying that different index refers to distinct kernel parameters.
Unlike the approach in (Ulrich et al., 2015), which uses a mixture of frequencies, we employ a single frequency in Eq 2.1 to achieve frequency disentanglement. Specifically, each dimension of the across-region latent variable will have a single frequency peak. Consequently, the mixture of frequencies present in the data will be captured by multiple dimensions.
3 Method
Modeling latent variables with Gaussian Process is inefficient with a time complexity. So, we want to build Markovian representations of these latent variables, indicating the state space representations of each dimension: across-region and within-region , where every Markovian representation follows a Linear Dynamical System (LDS) (Solin et al., 2016).
Spectral factorization has been used in multi-output GP cases (Zhu et al., 2023). However, for the complex-valued multi-output kernel, we need to develop a new spectral factorization-based method to first convert the complex-valued temporal part to an LDS (Section 3.1) and then use the kernel’s separability to combine the complex-valued spatial part to get the final LDS (Section 3.2).
3.1 Markovian Within-Region Latent Variables
The Markovian representation of region ’s dimension within-region latent variable follows a discrete-time LDS structure:
(2) |
where , denoting the complex-valued dynamics and its derivatives up to order at time . Especially, within-region latent variable is the real part of . represents the complex-valued transition matrix, and is the sampling from a complex normal distribution with the complex-valued measurement (Hermitian) matrix .
The key question now becomes how to associate single-output with and . To achieve this, our approach involves two steps: forming a continuous-time LDS for within-region variables in each region through spectral factorization (Kailath et al., 2000), and subsequently transforming it into the discrete-time version as specified in Eq. 2. This linkage is new and differs from previous connections (Hartikainen & Särkkä, 2010; Solin & Särkkä, 2014) as the kernel is situated in the complex domain.
Forming a continuous-time LDS.
Given single-output , the continuous-time LDS we want to form is:
(3) |
where , denoting the continuous-time version of and its derivatives up to order. is a continuous-time transition matrix, signifies a constant vector, and denotes a single-dimensional white noise with spectral density . We need to obtain both and from .
takes a companion form of LDS (Grewal & Andrews, 2014):
(4) |
where are the coefficients in a stochastic differential equation that is equivalent to Eq. 3:
(5) |
To obtain and , we first apply Fourier transform on both sides of the continuous-time LDS in Eq. 3 to achieve a frequency domain representation (see Appendix A for derivation):
(6) |
where is the spectral density of single-output , represents a constant vector, denotes an identity matrix, and, notably, . Now, we only need to solve Eq. 6 to obtain the coefficients in .
On the left-hand side, follows an exponential family, which is infinitely differentiable. On the right-hand side, however, the finite number coefficients in determine a finite polynomial function: . Therefore, we can only construct a finite polynomial approximation of . But one observation from Eq. 6 is that can be factorized into two parts, i.e., a complex function multiplying its conjugate.
Previous established connections between real-valued kernel and LDS assume a symmetric , implying using a Taylor expansion to approximate as a polynomial of (Hartikainen & Särkkä, 2010). However, in the case of complex-valued , is non-symmetric due to frequency , so our solution is to approximate it as a polynomial of :
(7) | |||||
where if is even, if is odd, are real numbers, and are complex numbers that only have imagery parts. These coefficients’ values depend on , , and . Figure 2(A-C) shows the approximation of when , demonstrating a reliable approximation even in the case of . Appendix D shows the effect of on generated samples.

Now our target becomes solving the following equation for :
(8) |
where is commonly referred to as the transfer function with acting as its coefficients. Its reciprocal is the function form of . Solving Eq. 8 is often referred to as spectral factorization, and an advantageous aspect of this factorization is that are a subset of complex-valued roots of , where they are all situated within the left-half complex plane (Kailath et al., 2000) and can be found by QR algorithm with time complexity . See Appendix A for derivation.
Forming a discrete-time LDS.
3.2 Markovian Across-Region Latent Variables
Region ’s dimension across-region latent variable can be expressed as . This indicates that they consist of variables sharing the same and for describing temporal features while using phase delays to capture cross-spatial differences. It’s important to note that the temporal and spatial components are separable in . Consequently, we can initially create a within-region Markovian representation, denoted as , for the temporal features in each . Then, this representation is extended to the across-region Markovian representation for through the incorporation of phase delays .
Therefore, the Markovian representation of dimension across-region latent variable is:
(10) |
where , is the real part of , is transition matrix, denoting the Kronecker product of identity matrix and , and is measurement matrix, denoting the Kronecker product of ’s spatial part and .
3.3 Multi-Region Markovian Gaussian Process
Given our assumption of independence among different dimensions of across-region variables and distinct dimensions of within-region variables, the Markovian representation for all variables , both across- and within-region, spanning brain regions can be expressed as:
(11) |
where , is the real part of , and , are block diagonal matrices: , . Meanwhile, the neural recordings can be reconstructed by , with , , from CSM-GPFA in Section 2.2, and in Eq. 6.
3.4 Multi-Region Markovian Gaussian Process with Switching States
After the link between the multi-region Gaussian Process and linear dynamical system (LDS) is established, we can seamlessly extend the across-region discrete-time LDS in Eq. 10 to incorporate switching states.
Integrating a Hidden Markov Model (HMM) into LDS leads to Switching LDS (Fox et al., 2008), and similarly, combining HMM with MRM-GP results in Switching MRM-GP. A significant advantage of this integration is the ability to link the across-region’s transition and measurement matrices with distinct, discrete states : , which makes it easy to accommodate time-varying frequencies and delays in across-region latent variables.
4 Inference
We have now established a connection between a Gaussian Process with a multi-region kernel and a linear dynamical system (LDS). The next step is to learn discrete states, model parameters, and latent variables.
MRM-GP, as a discrete-time LDS, affords a significant advantage: the ability to learn its parameters with a cost linear in time steps: . To achieve this, we employ the variational Laplace EM inference algorithm proposed in the general recurrent state space framework for decision-making (Zoltowski et al., 2020).
If denoting the number of discrete states as , the parameters of MRM-GP can be categorized into two groups: (1) kernel parameters: , , ; (2) emissions parameters: . Additionally, the hyper-parameters consist of the number of discrete states , the number of derivatives , the kernel rank , and the number of latent dimensions . The value of depends on the data, is discussed in Section 3.1 and Figure 2, is determined through a cross-validation strategy (Section 5.2), and the rank is consistently set to 2 to ensure positive definiteness without introducing many amplitude parameters. Besides, there is no need to learn the amplitude parameters, denoted as , since the emissions parameter fulfills a similar role in MRM-GP.
The variational Laplace EM inference algorithm alternatively updates discrete switching states , latent dynamics , and model parameters . The time complexity and memory storage of each step are all linear in time as follows: (1) updating : , ; (2) updating : , ; (3) updating : , .
Furthermore, to avoid the calculation of the complex number when updating in our implementations, we rewrite the complex latent dynamics in Eq. 11 to be a joint signal in the real domain, such that the latent dynamics becomes:
(12) |
where are the real and imagery part of , respectively.
5 Experiments
Our code is available at https://github.com/WeihanLikk/MRM-GP.
Datasets.
We evaluate MRM-GP on three datasets:
Synthetic Data: We generate simulated data incorporating both across-region communications and within-region neural activities, along with time-varying frequencies and phase delays introduced by various states.
Local Field Potential Recordings (LFP) (Siegle et al., 2021): Local Field Potential recordings from mouse’s primary visual area (V1) and visual anteromedial area (VISam). The external stimulus consisted of an 8Hz drifting grating with eight orientation directions.
Neural Spike Trains (Semedo et al., 2019; Zandvakili & Kohn, 2019): Simultaneous spike trains from monkey’s primary visual area (V1) and secondary visual cortex (V2). The external stimulus is a 6Hz drifting grating with eight orientation directions.
Baselines for comparison.
We compare MRM-GP with two methods designed to discover the directional communications in the latent space of multi-region recordings:
DLAG (Gokcen et al., 2022): A Gaussian Process Factor Analysis employs a multi-output Squared Exponential kernel. Its goal is to uncover simultaneous or bidirectional latent communications across different regions. The kernel function incorporates a time delay parameter to determine the directions for learned communications.
CSM-GPFA: The Gaussian Process Factor Analysis, using a multi-region kernel as described in Section 2.2, is an extension of the model presented in (Hultman et al., 2018). This extension introduces a new classification assumption, distinguishing latent variables into across-region and within-region types.
Metrics.
For every model and dataset, we fit the model on the training set, denoted as , and test its performance on the test set . Specifically, we randomly select some trials as , while the remaining trials serve as . Additionally, we randomly divide the test data into two parts: with neurons as held-in test data and with neurons as held-out test data. We infer based on , which is then used as the test latent variables when computing test log-likelihood (LL) (Pei et al., 2021), serving as the final metric in our experiments. To reduce the randomness when creating and , we also average over five distinct partitions.

5.1 Synthetic Data
This section aims to assess how well MRM-GP can identify switching states, latent variables, and parameters.
Experimental setup.
We generate 50 independent trials for two brain regions , where each region has neurons, dimension across-region variables, and dimension within-region variable. We also introduce the time-varying across-region frequencies and phase delays by two discrete states : (1) state 1: rad/s, ms, , state 2: rad/s, ms, . Different sign of means the change of directions. We set rad/s and for within-region variables. For the generative and inference process, we set hyperparameters , , and compare the test log likelihood when .
Results.
We fit an MRM-GP to the synthetic data, specifying dimension across-region variables, dimension within-region variable, and states. Figure 3(A) shows single-trial latent variable estimations that accurately reflect the latent dynamics and communications influenced by discrete states over two brain regions. State (depicted in blue) exhibits a periodic signal with a higher frequency and forward communication from brain region 1 to brain region 2. In contrast, state (shown in purple) displays an oscillatory pattern with a lower frequency and feedback communication from region 2 to region 1.
For a quantitative assessment of learned parameters, Figure 3(B) displays the estimated phase delays, frequencies, and length scales across different initializations, demonstrating close alignment with ground truths. Furthermore, Figure 3(C) illustrates the test log-likelihood for varying , revealing that both and provide similar and superior estimations compared to (see Appendix J for visualization). We also have synthetic experiments about parameter initialization and different parameter setting in Appendix F,G,H.
5.2 Local Field Potential Recordings
This section aims to explore interactions between the mouse’s primary visual area (V1) and the visual anteromedial area (VISam) in the presence of an 8Hz drifting grating. We also aim to compare the performance and inference time cost with other multi-region methods, namely DLAG and CSM-GPFA.
Experimental setup.
We conduct experiments using two sessions, each comprising eight orientation directions, resulting in 16 datasets. Each dataset includes 15 trials (10 as a training set and 5 as a testing set) of continuous-time local field potential recordings from approximately 20 neurons in V1 and approximately 25 in VISam. The initial sampling rate is 1000Hz, and we downsample it to 100Hz, resulting in 200 time points with 10ms bin size. We set hyperparameters , .
To determine the dimensionalities of across- and within-region latent variables, we adopt the approach outlined in (Gokcen et al., 2022). Initially, we apply Factor Analysis to identify the total number of latent variables required to elucidate the neural recordings for each region. A 5-fold cross-validation was employed to select the configuration yielding the highest test LL. Subsequently, given the selected total number of latent variables (), we conduct a grid search for the dimensionalities of across- () and within-region (), respectively. For each pair of , we run 5-fold cross-validation with MRM-GP and chose the setting with the highest test LL. Given this procedure, our final choice was across-region variables and within-region variables for both V1 and VISam. See Appendix B for the full comparison.

Results.
We applied an MRM-GP to local field potential recordings with state. Figure 4(A) shows a comparison of single-trial across-region latent variables for one dataset (orientation 135°, session 721123822), and the within-region variables are in Appendix B. Both latent variables demonstrate an oscillatory structure, capturing characteristics of the external 8Hz drifting grating stimulus.
The MRM-GP’s latent variable in this dataset is linked to a communication direction from V1 to VISam with an 8.2 ms phase delay, and the DLAG’s latent variable shows a 1.1 ms time delay. Both delays fall within a single time bin (10ms) and are positive, suggesting consistent communication direction from V1 to VISam. The difference in their values arises because DLAG models time delay () in the kernel equation , which is independent of frequency and has a different interpretation from the phase delay (). In this context, represents the delay in a specific frequency band. In contrast, signifies the delay for a latent variable with a mixture of multiple frequencies, as evidenced by its power spectrum with three frequency peaks (Figure 4(E)). Therefore, the divergence in values is acceptable if their directions align.
The left chart in Figure 4(B) illustrates the estimated phase delays across all 16 datasets. Each data point represents the phase delay for an individual run on a specific dataset. The findings suggest consistent communication from V1 to VISam across all datasets, with the phase delays clustered around 7.5Hz (the left chart in Figure 4(C)), which is consistent with external 8Hz stimulus.
To demonstrate that the MRM-GP itself is not the cause of delays, we first divide V1 randomly into two parts, V1a and V1b, each with channels of equal size. We then estimated the phase delays between them. The right chart in Figure 4(B) illustrates that across 16 datasets, all phase delays hover around zero within frequency bands around 7.5Hz (the right chart in Figure 4(C)). This suggests that the learned delays are a consequence of the data rather than the model.
Figure 4(D) shows that MRM-GP, a linear dynamics system approximation of CSM-GPFA, exhibits a similar test LL to CSM-GPFA. The higher test LL compared to DLAG suggests that the multi-region kernel (Eq. 2.1) outperforms DLAG’s Squared Exponential kernel on these datasets. This is attributed to the former explicitly modeling frequencies through its kernel parameters and having a better frequency separation. Specifically, the across-region variable of the former has only one prominent frequency, whereas DLAG’s across-region variable exhibits three peaks in Figure4(E), keeping consistent with the data spectrum in Appendix E.
Lastly, in Figure 4(F), we compare the inference time of MRM-GP, CSM-GPFA, and DLAG for 500 iterations. We achieved this by downsampling the recordings and creating four datasets with varying lengths of time points: 50, 100, 150, and 200. The results indicate that the time cost of MRM-GP increases linearly, whereas both CSM-GPFA and DLAG exhibit cubic growth.
5.3 Neural Spike Trains
This section aims to evaluate MRM-GP’s ability to identify switching states within the communications subspace while also discovering across-region communications using a distinct type of neural data.
Experimental setup.
The simultaneous spike trains were obtained from the monkey’s primary visual area (V1) and secondary visual cortex (V2) in the presence of a 6Hz moving grating. This dataset comprises four sessions, each featuring eight orientation directions, resulting in 32 datasets. Each dataset comprises 400 trials (64 time points with 20ms bin size for every trial), with 300 trials randomly selected as the training set and 100 trials as the testing set. In V1, there are approximately 90 neurons, while in V2, there are around 20 neurons. We set hyperparameters , .
Results.
We fitted an MRM-GP to neural spikes trains with dimensions across-region variables, dimension within-region variable, and states. The configuration of and follows previous work (Gokcen et al., 2022) and adopts the same strategy mentioned in Section 5.2.
Figure 5(A) shows the across-region latent variables for one dataset (orientation 0°, session 106r001p26, ten trials are displayed, all variables are scaled by the variance explained in each region), and the within-region variables are in Appendix B. These latent variables indicate time-varying forward and feedback communications between V1 and V2. Different states exhibit distinct phase delays and frequencies. The first dimension of across-region variables (denoted as ) displays a periodic pattern caused by the external drifting grating stimulus, whereas the second dimension (denoted as ) exhibits a non-periodic signal with a single peak shortly after the stimulus onset.
Figure 5(B-C) presents the estimated phase delays and frequencies over multiple independent runs for 32 datasets. Each data point represents a dimension of across-region variables. Figure 5(B) corresponds to state , indicating that most state dimensions exhibit across-region interactions within the 2Hz-8Hz range. Additionally, some dimensions display feedback communication with a large phase delay (10ms) from V2 to V1, corresponding to state of in Figure 5(A). However, there is variability across datasets for state with smaller phase delays (10ms). Some show forward communication from V1 to V2, akin to state of in Figure 5(A), while others indicate feedback communications from V2 to V1.
One explanation for this variability is that in certain datasets, has a much weaker amplitude compared to , making the weaker latent affected by the stronger one along with its delay. This leads to a feedback signal from V2 to V1 at state . On the other hand, in some datasets (e.g., orientation 0°, session 106r001p26), is not as weak, resulting in a forward signal from V1 to V2 at state .
Figure 5(C) depicts the estimated phase delays and frequencies associated with state . The findings indicate a clear separation of oscillatory communications into two frequencies. One involves 6Hz communications with small phase delays (referring to state of in Figure 5(A)), while the other involves 1Hz communications with large phase delays (akin to state of in Figure 5(A)).
The time-varying phase delays can be explained as follows: (1) For , V1 triggers V2 to have oscillatory dynamics during state , while in state , V2 is already engaged, causing both regions to oscillate synchronously, resulting in a smaller phase delay than in state . (2) For , V2 consistently sends signals with a low frequency to V1, resulting in a larger phase delay due to the longer period as indicated by . During state , the stimulus onset triggers an intense signal from V2 to V1, leading to a smaller phase delay, which can be considered as an emergence of surprise or prediction error from V2 to V1 (Rao & Ballard, 1999).
Similar to Section 5.2, we also perform a control experiment by learning the phase delays between V1a and V1b. In Figure 5(D), the outcomes reveal zero-delay communications that are distributed across two frequencies (6Hz, 1Hz), suggesting that learned delays are a consequence of the data rather than the model.
Finally, we compare the test LL of MRM-GP, CSM-GPFA, and DLAG in Figure 5(E). The results indicate that MRM-GP with states achieves the highest LL, while MRM-GP with state exhibits a similar LL compared to CSM-GPFA, and both outperform DLAG. This suggests that (1) switching states exist in these datasets; (2) the multi-region kernel is more appropriate than the Squared Exponential kernel for modeling signals with sinusoidal structures.

6 Discussion
MRM-GP establishes the connection between a linear dynamics system (LDS) and a multi-output Gaussian Process (GP) explicitly modeling frequency-based communications and their directionality via phase delays within the latent space of neural data.
Connecting a complex-valued GP with an LDS is non-trivial. Although a complex-valued GP can be written as a multi-output real-valued GP (by twice the dimension), the resulted multi-output GP cannot be converted to an LDS by spectral factorization because the separability of the resulted multi-output kernel is not guaranteed.
Once the link is established, we can harness several advantages: (1) using the powerful representational capability of kernels, such as applying a multi-region kernel to model latent variables with periodic patterns; (2) achieving a linear computational cost; (3) incorporating time-varying frequencies and delays by introducing different discrete states.
We test MRM-GP using two distinct types of neural data. The findings showcase its capability to discover state-dependent latent communications across brain regions with a linear time inference cost.
Finally, the limitations of MRM-GP are twofold: (1) its reliance on separability for multi-output kernels, which restricts kernel selection options, and (2) its current model assumptions are unable to capture phenomena such as phase resetting and phase variability across different trials.
Acknowledgement
This work is supported by National Institutes of Health BRAIN initiative (1U01NS131810).
Impact Statement
The MRM-GP introduces an innovative and efficient method for investigating intricate interactions among brain regions. Its capacity to deliver an interpretable representation of multi-region neural data is poised to advance neuroscience, offering the potential for a more profound comprehension of brain function and disorders. This enhanced understanding of brain interactions has the prospect to drive advancements in neurotechnology, with potential benefits extending to fields such as brain-computer interfaces and personalized medicine.
References
- Fox et al. (2008) Fox, E., Sudderth, E., Jordan, M., and Willsky, A. Nonparametric bayesian learning of switching linear dynamical systems. Advances in neural information processing systems, 21, 2008.
- Glaser et al. (2020) Glaser, J., Whiteway, M., Cunningham, J. P., Paninski, L., and Linderman, S. Recurrent switching dynamical systems models for multiple interacting neural populations. Advances in neural information processing systems, 33:14867–14878, 2020.
- Gokcen et al. (2022) Gokcen, E., Jasper, A. I., Semedo, J. D., Zandvakili, A., Kohn, A., Machens, C. K., and Yu, B. M. Disentangling the flow of signals between populations of neurons. Nature Computational Science, 2(8):512–525, 2022.
- Gokcen et al. (2023) Gokcen, E., Jasper, A. I., Xu, A., Kohn, A., Machens, C. K., and Byron, M. Y. Uncovering motifs of concurrent signaling across multiple neuronal populations. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
- Grewal & Andrews (2014) Grewal, M. S. and Andrews, A. P. Kalman filtering: Theory and Practice with MATLAB. John Wiley & Sons, 2014.
- Harris & Mrsic-Flogel (2013) Harris, K. D. and Mrsic-Flogel, T. D. Cortical connectivity and sensory coding. Nature, 503(7474):51–58, 2013.
- Hartikainen & Särkkä (2010) Hartikainen, J. and Särkkä, S. Kalman filtering and smoothing solutions to temporal gaussian process regression models. In 2010 IEEE international workshop on machine learning for signal processing, pp. 379–384. IEEE, 2010.
- Hom & Johnson (1985) Hom, R. A. and Johnson, C. R. Matrix analysis. Cambridge University Express, 455, 1985.
- Hultman et al. (2018) Hultman, R., Ulrich, K., Sachs, B. D., Blount, C., Carlson, D. E., Ndubuizu, N., Bagot, R. C., Parise, E. M., Vu, M.-A. T., Gallagher, N. M., et al. Brain-wide electrical spatiotemporal dynamics encode depression vulnerability. Cell, 173(1):166–180, 2018.
- Kailath et al. (2000) Kailath, T., Sayed, A. H., and Hassibi, B. Linear estimation. Number BOOK. Prentice Hall, 2000.
- Kohn et al. (2020) Kohn, A., Jasper, A. I., Semedo, J. D., Gokcen, E., Machens, C. K., and Byron, M. Y. Principles of corticocortical communication: proposed schemes and design considerations. Trends in Neurosciences, 43(9):725–737, 2020.
- Miller et al. (2018) Miller, E. K., Lundqvist, M., and Bastos, A. M. Working memory 2.0. Neuron, 100(2):463–475, 2018.
- Pei et al. (2021) Pei, F., Ye, J., Zoltowski, D., Wu, A., Chowdhury, R. H., Sohn, H., O’Doherty, J. E., Shenoy, K. V., Kaufman, M. T., Churchland, M., et al. Neural latents benchmark’21: evaluating latent variable models of neural population activity. arXiv preprint arXiv:2109.04463, 2021.
- Rao & Ballard (1999) Rao, R. P. and Ballard, D. H. Predictive coding in the visual cortex: a functional interpretation of some extra-classical receptive-field effects. Nature neuroscience, 2(1):79–87, 1999.
- Särkkä et al. (2013) Särkkä, S., Solin, A., and Hartikainen, J. Spatiotemporal learning via infinite-dimensional bayesian filtering and smoothing: A look at gaussian process regression through kalman filtering. IEEE Signal Processing Magazine, 30(4):51–61, 2013.
- Sayed & Kailath (2001) Sayed, A. H. and Kailath, T. A survey of spectral factorization methods. Numerical linear algebra with applications, 8(6-7):467–496, 2001.
- Semedo et al. (2019) Semedo, J. D., Zandvakili, A., Machens, C. K., Byron, M. Y., and Kohn, A. Cortical areas interact through a communication subspace. Neuron, 102(1):249–259, 2019.
- Siegle et al. (2021) Siegle, J. H., Jia, X., Durand, S., Gale, S., Bennett, C., Graddis, N., Heller, G., Ramirez, T. K., Choi, H., Luviano, J. A., et al. Survey of spiking in the mouse visual system reveals functional hierarchy. Nature, 592(7852):86–92, 2021.
- Solin & Särkkä (2014) Solin, A. and Särkkä, S. Explicit link between periodic covariance functions and state space models. In Artificial Intelligence and Statistics, pp. 904–912. PMLR, 2014.
- Solin et al. (2016) Solin, A. et al. Stochastic differential equation methods for spatio-temporal gaussian process regression. 2016.
- Ulrich et al. (2015) Ulrich, K. R., Carlson, D. E., Dzirasa, K., and Carin, L. Gp kernels for cross-spectrum analysis. Advances in neural information processing systems, 28, 2015.
- Wang et al. (2024) Wang, Y., Wu, Z., Li, C., and Wu, A. Extraction and recovery of spatio-temporal structure in latent dynamics alignment with diffusion model. Advances in Neural Information Processing Systems, 36, 2024.
- Zandvakili & Kohn (2019) Zandvakili, A. and Kohn, A. Simultaneous v1–v2 neuronal population recordings in anesthetized macaque monkeys. CRCNS https://doi. org/10.6080/K0B27SHN, 2019.
- Zhu et al. (2023) Zhu, H., Balsells-Rodas, C., and Li, Y. Markovian gaussian process variational autoencoders. In International Conference on Machine Learning, pp. 42938–42961. PMLR, 2023.
- Zoltowski et al. (2020) Zoltowski, D., Pillow, J., and Linderman, S. A general recurrent state space framework for modeling neural dynamics during decision-making. In International Conference on Machine Learning, pp. 11680–11691. PMLR, 2020.
Appendix A Spectral Factorization.
Derivation for Eq. 6.
Recall that in Eq. 3 is a Complex Gaussian Process with single-output kernel and its derivatives up to . So, the spectral density matrix of this process is:
(15) |
Finally in Eq. 6 is:
(17) |
Finding roots for in Eq. 8.
Using the ’s coefficients , we can create a companion matrix:
(18) |
where the eigenvalues of this matrix are the roots for (Hom & Johnson, 1985). Notably, the companion matrix is structured as a Hessenberg matrix, suggesting that its eigenvalues can be obtained through the QR algorithm with Givens rotation. This process has a time complexity of for each iteration.
Appendix B DLAG latent variables for V1-V2 spike train data

Appendix C Within-region latent variables for V1-V2 spike train data

Appendix D Compare latent variables with different k

Appendix E Spectrum of the LFP data

Appendix F Synthetic data with a wide range of frequencies and delays

Appendix G Synthetic data with different parameter initialization

Appendix H Synthetic data without pure oscillation

Appendix I Cross-validating for the dimensionality of MRM-GP

Appendix J Applying MRM-GP to synthetic data with
