Probing variability in a cognitive map using manifold inference from neural dynamics

Ryan Low, Sam Lewallen, Dmitriy Aronov, Rhino Nevers, David W. TankbioRxiv 2018

Abstract

Hippocampal neurons fire selectively in local behavioral contexts such as the position in an environment or phase of a task, and are thought to form a cognitive map of task-relevant variables. However, their activity varies over repeated behavioral conditions, such as different runs through the same position or repeated trials. Although widely observed across the brain, such variability is not well understood, and could reflect noise or structure, such as the encoding of additional cognitive information. Here, we introduce a conceptual model to explain variability in terms of underlying, population-level structure in single-trial neural activity. To test this model, we developed a novel unsupervised learning algorithm incorporating temporal dynamics, in order to characterize population activity as a trajectory on a nonlinear manifold—a space of possible network states. The manifold’s structure captures correlations between neurons and temporal relationships between states, constraints arising from underlying network architecture and inputs. Using measurements of activity over time but no information about exogenous behavioral variables, we recovered hippocampal activity manifolds during spatial and non-spatial cognitive tasks in rats. Manifolds were low-dimensional and smoothly encoded task-related variables, but contained an extra dimension reflecting information beyond the measured behavioral variables. Consistent with our model, neurons fired as a function of overall network state, and fluctuations in their activity across trials corresponded to variation in the underlying trajectory on the manifold. In particular, the extra dimension allowed the system to take different trajectories despite repeated behavioral conditions. Furthermore, the trajectory could temporarily decouple from current behavioral conditions and traverse neighboring manifold points corresponding to past, future, or nearby behavioral states. Our results suggest that trial-to-trial variability in the hippocampus is structured, and may reflect the operation of internal cognitive processes.

Introduction: The Mystery of Neural Variability

A central mystery in neuroscience is trial-to-trial variability. If a rat runs through the exact same location twice, its hippocampal "place cells" often fire differently. Traditionally, this was dismissed as biological noise. However, a competing theory suggests this variability represents "hidden" information—perhaps the rat is remembering the past, planning a future path, or attending to a non-spatial feature. The challenge has been identifying this structure without knowing what the hidden variables are. Standard tools like Principal Component Analysis (PCA) are often too rigid or ignore the temporal "flow" of neural activity, making it difficult to separate true noise from complex, structured internal dynamics.

Methods: Manifold Inference from Neural Dynamics (MIND)

To address this, researchers developed a novel unsupervised approach called MIND (Manifold Inference from Neural Dynamics). Unlike previous methods, MIND explicitly incorporates temporal dynamics to define the manifold's structure.

The MIND algorithm uses an ensemble of decision trees to learn transition probabilities, defining a distance metric that preserves the intrinsic geometry of neural population activity.

The algorithm operates in several stages. First, it uses an ensemble of randomized decision trees (PPCA forests) to learn the probability of the neural population moving from one state to another. This captures the "rules" of how network activity evolves. Second, MIND defines distance based on these transition probabilities; two states are "close" if the network can transition between them easily. Finally, the high-dimensional neural activity is mapped onto a low-dimensional Euclidean space using Sammon mapping, creating a manifold embedding that preserves these intrinsic distances.

Key Results and the "Extra" Dimension

The study validated MIND using both synthetic networks and large-scale recordings from the dorsal CA1 region of the hippocampus in rats performing spatial (random foraging) and non-spatial (sound manipulation) tasks.

In both task types, the discovered manifolds were low-dimensional and achieved high reconstruction scores (~0.91), significantly outperforming linear methods like PCA. Intriguingly, the manifolds consistently had exactly one more dimension than the measured behavioral variables (e.g., a 3D manifold for a 2D spatial task). This extra dimension is the "hidden" variable that explains why neurons fire differently across trials despite identical external conditions.

A Conceptual Model for Variability

The manifold acts as a set of "tracks" for neural activity, limiting the possible sequences in which neurons can fire. Trial-to-trial variability is not random; it corresponds to the network taking different paths along the manifold.

Conceptual model showing how single-trial variability arises from trajectories traversing different regions of a manifold, constrained by its underlying topology.

As shown in the model, even if a rat's physical position ($z$) is the same, its internal state might be at a different coordinate on the manifold's extra dimension. This can lead to variable amplitudes, missed firing fields, or even reversed firing orders between neurons—all of which are structured and predictable if the manifold is known. Furthermore, the neural trajectory can temporarily "decouple" from current behavior, representing where the rat will be in the future or where it just was, suggesting the manifold supports internal processes like planning and memory.

Conclusion

By treating neural population activity as a trajectory on a nonlinear manifold, the MIND algorithm reveals that hippocampal "noise" is actually highly structured cognitive information. This framework suggests that the brain organizes information on manifolds to support complex functions like memory and planning. Future work will explore whether "computing with manifolds" is a universal principle across other brain regions, such as the motor or sensory cortex.

Summary updated

BibTeX
@misc{low2018probing,
  author = {Ryan Low and Sam Lewallen and Dmitriy Aronov and Rhino Nevers and David W. Tank},
  title = {{Probing variability in a cognitive map using manifold inference from neural dynamics}},
  year = {2018},
  doi = {10.1101/418939},
  howpublished = {bioRxiv},
}
Figure