Felix Pei
· 6 previous affiliations
- Carnegie Mellon UniversitySince 2024
- PhD student · 2024–2029
- Current
- University of Tübingen2023–2024
- Intern · 2023–2024
- Emory University2020–2023
- Undergraduate Research Assistant · 2020–2023
- Georgia Institute of Technology2019–2023
- Undergrad student · 2019–2023
- Hardware Verification Engineering Intern · 2022
- Firmware Engineering Intern · 2021
Research Overview
Felix Pei focuses on the development and rigorous evaluation of latent variable models (LVMs) and generative frameworks for analyzing neural population activity. His work addresses the challenges of Modeling Single Trial Dynamics in Neural Populations, moving beyond traditional trial-averaging methods to capture the stochastic and nonlinear nature of brain activity. By bridging systems neuroscience and machine learning, Pei contributes to the creation of standardized benchmarking tools, the refinement of simulation-based inference (SBI) workflows, and the exploration of embodied agents that replicate biological neural dynamics.
Research Trajectory
Pei’s research trajectory is characterized by an initial focus on the standardization of neural data analysis, followed by an expansion into sophisticated generative modeling and the study of autonomous biological agents.
In 2021, Pei led a significant effort to address the lack of coordination in the development of latent variable models for neuroscience. At the time, progress in the field was often hindered by ad hoc comparisons and a lack of common datasets. This work established a foundational benchmark for the community, emphasizing the importance of Empirical Scaling Analysis of Model Performance to understand how different LVM architectures respond to varying volumes of neural spiking data. This period established his interest in the Optimal Dimensionality for Latent Representation Bottlenecks, a critical factor in distilling meaningful signals from high-dimensional neural recordings.
By 2024, Pei’s work evolved to incorporate more complex dynamical systems and generative techniques. He contributed to research on Nonlinear Dynamics in Functional Brain Connectivity, moving away from linear assumptions to better capture the brain's underlying state transitions. This phase involved the application of variational Sequential Monte Carlo methods to fit stochastic recurrent neural networks (RNNs) to noisy data, as well as the adaptation of Latent Diffusion for Discrete Sequence Generation for neural spiking data. During this time, Pei also participated in large-scale collaborative projects to develop open-source toolkits for simulation-based inference and to establish robust statistical distances for evaluating generative models in scientific contexts.
In 2025, Pei’s focus shifted toward the intersection of artificial intelligence and systems neuroscience through the study of embodied agents. This work explores how intrinsic motivation and model-based exploration can lead to the emergence of autonomous behaviors and whole-brain dynamics that mirror those observed in biological organisms, such as larval zebrafish. This recent direction integrates his previous work on neural dynamics and stochastic processes into a broader framework of agent-based modeling.
Current Directions
Pei’s current research continues to refine the methods used to link large-scale neural recordings with underlying dynamical systems. A primary focus remains the improvement of generative models for neural data, specifically addressing the biological nuances of spike trains, such as Modeling Neural Refractoriness in Stochastic Point Processes. By moving beyond simple Poisson assumptions, his work aims to create more realistic simulations of brain activity.
Furthermore, Pei is active in the development of "black-box" inference techniques. His involvement in the evolution of simulation-based inference toolkits reflects a commitment to making rigorous Bayesian inference accessible for complex simulators where traditional likelihood functions are unavailable. This work is essential for aligning theoretical models in neuroscience and other scientific fields with empirical, high-dimensional data.
Representative Work
Neural Latents Benchmark '21: Evaluating latent variable models of neural population activity As the lead author of this 2021 study, Pei introduced a comprehensive benchmark suite designed to standardize the evaluation of latent variable models for neural spiking data. The work curated diverse datasets across different neural systems and behaviors, providing a unified framework for the community to compare modeling efforts. This paper highlighted the necessity of moving away from ad hoc development toward a more structured, data-driven approach to understanding neural population dynamics.
Autonomous Behavior and Whole-Brain Dynamics Emerge in Embodied Zebrafish Agents with Model-based Intrinsic Motivation In this 2025 paper, Pei served as the second author, contributing to the development of artificial agents that exhibit biological-like exploration. The research demonstrates that by equipping virtual agents with model-based intrinsic motivation, researchers can observe the spontaneous emergence of behaviors and whole-brain neural-glial patterns that closely match those of real zebrafish. This work represents a significant step in using AI to predict and understand ethological behavior and its underlying neural correlates.
Inferring stochastic low-rank recurrent neural networks from neural data Pei contributed to this 2024 research which proposed a framework for fitting stochastic, low-rank RNNs to noisy neural observations using variational Sequential Monte Carlo methods. The approach prioritizes interpretability, allowing for the discovery of dynamical fixed points while maintaining the ability to capture the trial-to-trial variability inherent in biological systems. The method was validated across both continuous and spiking neural datasets.
Latent Diffusion for Neural Spiking Data In this 2024 study, Pei participated in the development of Latent Diffusion for Neural Spiking Data (LDNS). This generative model combines autoencoders with diffusion processes to synthesize realistic, behavior-conditioned neural spike trains. By projecting discrete spikes into a continuous latent space, the model overcomes traditional limitations of diffusion models in discrete domains, enabling the simulation of brain activity for hypothetical behavioral scenarios.
sbi reloaded: a toolkit for simulation-based inference workflows
Pei was part of a large collaborative team that developed the "reloaded" version of the sbi toolkit, a PyTorch-based library for simulation-based inference. His contribution supported the integration of modern neural architectures, such as flow matching and diffusion models, into a workflow that allows researchers to perform Bayesian inference on complex simulators without requiring explicit likelihood evaluations or simulator gradients.
A Practical Guide to Sample-based Statistical Distances for Evaluating Generative Models in Science As a contributor to this 2024 guide, Pei helped provide a mathematical and statistical foundation for evaluating generative models using sample-based distances. The work reviews metrics such as Sliced-Wasserstein (SW), Classifier Two-Sample Tests (C2ST), Maximum Mean Discrepancy (MMD), and Fréchet Inception Distance (FID), arguing that a complementary suite of tools is necessary to fully characterize model performance in scientific applications.
Profile updated
| Paper | Venue | Year |
|---|---|---|
| Latent Diffusion for Neural Spiking DataGitHubmackelab/ | NeurIPS | 2024 |
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake