<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Quantifying Extrinsic Curvature in Neural Manifolds</title></titleStmt>
			<publicationStmt>
				<publisher>2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW)</publisher>
				<date>06/01/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10529183</idno>
					<idno type="doi"></idno>
					
					<author>Francisco Acosta</author><author>Sophia Sanborn</author><author>Khanh Daoduc</author><author>Manu Madhav</author><author>Nina Miolane</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The neural manifold hypothesis postulates that the activity of a neural population forms a low-dimensional manifold whose structure reflects that of the encoded task variables. In this work, we combine topological deep generativemodels and extrinsic Riemannian geometry to introduce a novel approach for studying the structure of neural manifolds. This approach (i) computes an explicit parameterization of the manifolds and (ii) estimates their local extrinsiccurvature—hence quantifying their shape within the neural state space. Importantly, we prove that our methodology isinvariant with respect to transformations that do not bear meaningful neuroscience information, such as permutationof the order in which neurons are recorded. We show empirically that we correctly estimate the geometry of syntheticmanifolds generated from smooth deformations of circles, spheres, and tori, using realistic noise levels. We additionally validate our methodology on simulated and real neural data, and show that we recover geometric structure knownto exist in hippocampal place cells. We expect this approach to open new avenues of inquiry into geometric neural correlates of perception and behavior.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>A fundamental idea in machine learning is the manifold hypothesis <ref type="bibr">[4]</ref>, which postulates that many kinds of real-world data occupy a lower-dimensional manifold embedded in the high-dimensional data space. This perspective has also informed the analysis of neural population activity, where it is hypothesized that neural representations form low-dimensional manifolds whose structure reflects the structure of the task variables they encode-the neural manifold hypothesis <ref type="bibr">[12,</ref><ref type="bibr">17,</ref><ref type="bibr">20,</ref><ref type="bibr">48]</ref>.</p><p>A clear example of this can be observed in the brain's so-called "cognitive maps" of space, encoded in the activities of place cells in the hippocampus <ref type="bibr">[40]</ref> and grid cells in the entorhinal cortex <ref type="bibr">[23]</ref>. These neural populations are</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Three Examples of Topologies of Neural Manifolds</head><p>Ring Sphere Torus Many Possible Geometries Figure <ref type="figure">1</ref>. Topology versus geometry. Topological methods reveal whether the neural manifold is a ring, a sphere, or a torus, i.e., whether it belongs to one of the three columns. Our geometric analysis determines the curvature of the ring, sphere, or torus -hence revealing their neural shape.</p><p>responsible for tracking an animal's position as it navigates physical space. Grid cells exhibit striking regularity in their firing patterns, tiling space in hexagonal grids <ref type="bibr">[38]</ref>. It has been observed, however, that these grid maps of space do not always faithfully reflect physical distances. Rather, the animal's cognitive map can be warped and distorted by the reward or relevance associated with different regions of the map <ref type="bibr">[7,</ref><ref type="bibr">29,</ref><ref type="bibr">44]</ref>. Here, we propose a method that can explicitly quantify and analyze this kind of neural warping.</p><p>We introduce a novel approach to reveal the geometry of neural manifolds. When applied to high-dimensional pointcloud data, our method (i) computes an explicit parameterization of the underlying manifold and (ii) estimates its local extrinsic curvature, hence providing a concrete quantification of its neural shape within the neural state space (see Fig. <ref type="figure">1</ref>). Our contributions are as follows.</p><p>1. We present a Riemannian method for estimating the extrinsic curvatures of neural manifolds, which leverages topological Variational Autoencoders (VAEs). We provide intuition for the mathematics behind this approach with the analytical calculation of curvature for three manifolds commonly encountered in neuroscience: rings, spheres, and tori (Fig. <ref type="figure">1</ref>).</p><p>2. We demonstrate that this method is invariant under (a) reparameterization of the VAE's latent space and (b) permutation of the order in which recorded neurons appear in the data array. As such, our approach is appropriate for recovering meaningful geometric structure in realworld neuroscience experiments.</p><p>3. We quantify the performance of the method applied to synthetic manifolds with known curvature profiles, by computing a curvature estimation error under varied numbers of recorded neurons and simulated, yet realistic, measurement noise conditions. We further demonstrate its application to simulated place cell data-cells from neural circuits involved in navigation.</p><p>4. We successfully apply our method to real hippocampal place cells recorded from rodents moving along a circular track <ref type="bibr">[27,</ref><ref type="bibr">33]</ref>. We show that we reveal geometric structure that is consistent with results on simulations.</p><p>This paper thus proposes a first-of-its-kind approach for explicitly quantifying the extrinsic curvature of a neural manifold. Our goal is to provide the neuroscience community with tools to rigorously parameterize and quantify the geometry of neural representations. All code is publicly available and new differential geometric tools have been incorporated in the open-source software Geomstats <ref type="bibr">[37]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Works</head><p>Learning Low-Dimensional Structure of Neural Manifolds Many approaches to uncovering manifold structure in neural population activity rely on dimensionality reduction techniques such as Principal Component Analysis (PCA), Isomap, Locally Linear Embedding (LLE), and t-Distributed Stochastic Neighbor Embedding (t-SNE) <ref type="bibr">[42,</ref><ref type="bibr">43,</ref><ref type="bibr">46,</ref><ref type="bibr">47]</ref>. While these techniques can reveal the existence of lower-dimensional structure in neural population activity, they do not provide an explicit parameterization of the neural manifold, and often misrepresent manifolds with non-trivial topology <ref type="bibr">[49]</ref>.</p><p>Learning the Topology of Neural Manifolds Methods based on topological data analysis (TDA), such as persistent homology, have begun to reveal topological structure in neural representations and the task variables they encode <ref type="bibr">[10,</ref><ref type="bibr">14,</ref><ref type="bibr">21,</ref><ref type="bibr">26]</ref>. Topological methods can identify when two manifolds have the same number of holes-differentiating, for example, a ring from a sphere or a torus (see topologies in Fig. <ref type="figure">1</ref>). While these methods are able to uncover properties of the manifold that are invariant to continuous deformations, they do not necessarily capture the strictly geometric properties of the manifold-i.e., structure that changes under continuous deformations, such as curvature (see vertical axis in Fig. <ref type="figure">1</ref>). To date, few methods exist to explicitly quantify and parameterize the geometric structure of neural manifolds. A geometric parameterization of neural manifolds would permit a more precise understanding of the behavioral or perceptual relationships between points in the neural state space.</p><p>Learning Riemannian Geometry with Deep Generative Models Recent theoretical advancements have permitted the analysis of the Riemannian geometry of manifolds learned in deep neural network models, including VAEs <ref type="bibr">[9,</ref><ref type="bibr">13,</ref><ref type="bibr">25,</ref><ref type="bibr">45]</ref>. These analyses permit geometry-aware statistics on the model latent space <ref type="bibr">[11,</ref><ref type="bibr">32]</ref>, and can be used to improve training <ref type="bibr">[2,</ref><ref type="bibr">8,</ref><ref type="bibr">28]</ref>. In addition to its application in the neuroscience domain, our work also extends these techniques. Thus far, all such approaches have focused exclusively on intrinsic notions of curvature, as given by the Riemann curvature tensor and contractions thereof such as the Ricci tensor or the scalar curvature tensor <ref type="bibr">[25,</ref><ref type="bibr">32,</ref><ref type="bibr">45]</ref>. We extend these methods with an approach capable of quantifying the extrinsic curvature of latent manifolds, which-as we will argue-is more suitable to describe manifolds emerging in experimental neuroscience.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">A Riemannian Approach to Neural Population Geometry</head><p>We propose a method to compute geometric quantities-the first fundamental form (i.e. the pullback metric), the second fundamental form, and the mean curvature vector at every point on a neural manifold-resulting in a powerful and precise description of the geometry of neural population activity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Overview</head><p>We denote with M the neural manifold of interest, which represents the population activity of N neurons in the neural state space X = R N + as illustrated in Fig. <ref type="figure">1</ref> and Fig. <ref type="figure">2</ref>. Our approach learns the neural population geometry in three steps.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Learn the Topology:</head><p>The topology of M can be determined using topological data analysis methods such as persistent homology <ref type="bibr">[22]</ref>. We define the template manifold Z as the canonical manifold homeomorphic to M. For example, for a neural manifold with the topology of a one-dimensional ring, we choose Z to be the circle, S 1 . In our neuroscience applications, we specifically consider + : they correspond either to the activation of an artificial neural network layer with N neurons, or to the electrical recordings of N biological neurons. Together, the set of neural activity vectors forms a neural manifold. Our method uses a topologically-aware variational autoencoder (VAE), whose latent space has the (known) topology of the neural manifold, shown here as the ring S 1 . The decoder provides an estimate of the differentiable function f whose derivatives yield the Riemannian metric, as well as the intrinsic and extrinsic curvatures of the neural manifold.</p><p>template manifolds that are either n-spheres S n , or direct products of n-spheres, as these include the most common topological manifolds observed in neuroscience experiments: S 1 , S 2 and T 2 = S 1 &#215; S 1 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Learn the Deformation:</head><p>We determine the mapping f : Z &#8594; X that characterizes the smooth deformation from the template Z to X . We encode f with a neural network and propose to learn it with a variational autoencoder (VAE) <ref type="bibr">[30]</ref> trained as a latent variable model of neural activity in X = R N + for N neurons. The VAE's latent space is topologically-constrained to be Z, as in <ref type="bibr">[16,</ref><ref type="bibr">19,</ref><ref type="bibr">35,</ref><ref type="bibr">36]</ref>. After training, the VAE's decoder provides an estimate f of f , i.e. a differentiable function whose derivatives yield the Riemannian metric, and intrinsic and extrinsic curvatures of the neural manifold -see Fig. <ref type="figure">2</ref>.</p><p>3. Learn the Geometry: By using a decoder that is twice differentiable, via neural network activation functions such as tanh(&#8226;) and softplus(&#8226;), and considering the fact that invertible matrices are a dense subset in the space of square matrices, the map f is a diffeomorphism from Z to the (learned) neural manifold M, and an immersion of Z into the neural state space X = R N + . As such, f allows us to endow a pullback metric on the latent space template manifold Z, which characterizes the Riemannian geometry of M embedded in the neural state space X . We use automatic differentiation to compute the pullback metric and curvatures from f .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Learning the Deformation with Topologically-Aware VAEs</head><p>Variational Autoencoders (VAEs) <ref type="bibr">[30]</ref> are probabilistic deep generative models that learn to compress data into a latent variable, revealing latent manifold structure in the process. The supplementary materials provide an introduction to this framework. In a standard VAE, latent variables take values in Euclidean space, z &#8712; R L (where typically L &lt; N ), and their prior distribution p(z) is assumed to be Gaussian with unit variance, p(z) = N (0, I L ). While these assumptions are mathematically convenient, they are not suitable for modeling data whose latent variables lie on manifolds with nontrivial topology <ref type="bibr">[16,</ref><ref type="bibr">19]</ref>. Our approach instead constrains the latent space of the VAE to the template manifold Z, assumed to be an n-sphere S n or direct products thereof. We follow the implementation of a hyperspherical VAE <ref type="bibr">[16]</ref> and a toroidal VAE <ref type="bibr">[5]</ref> to accommodate the product of circles as well.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Hyperspherical VAEs</head><p>The hyperspherical VAE uses the uniform distribution on the n-sphere U(S n ) as its noninformative prior p(z), and a von Mises-Fisher vMF(&#181;, &#954;) distribution as its approximate posterior. We follow <ref type="bibr">[16]</ref> to implement the regularization loss corresponding to the Kullback-Leibler divergence for the hyperspherical VAE and also use their proposed sampling procedure for vMF, which gives a reparameterization trick appropriate for these distributions. Hyperspheres represent a very important class of neural manifolds, e.g. emerging in the circular structure of the head direction circuit <ref type="bibr">[10]</ref>.</p><p>Toroidal VAEs To accommodate additional neural manifolds of interest to neuroscience, we extend the hyperspherical VAE by implementing a toroidal VAE: T n -VAE <ref type="bibr">[5]</ref>. The n-Torus T n can be described as the product of n circles</p><p>. Each subspace S 1 of the latent space T n can be treated independently, so that the posterior distribution can be factorized into a product of vMF distributions over each latent angle. Tori are a very important class of neural manifolds, e.g. emerging in the toroidal structure of grid cell representations <ref type="bibr">[21]</ref>.</p><p>Parameterization of the Neural Manifold Our VAE's latent space is constrained to be the template manifold Z, i.e., it has the topology of the neural manifold M. We train the VAE with a L2 reconstruction loss and the KLdivergence that is suited for the chosen template manifold. The map f of its learned decoder gives a continuous parameterization of the neural manifold: the points z of the template manifold Z parameterize the points f (z) on the neural manifold M. Addressing the lack of uniqueness of the parameterization learned will be the focus of Section 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Geometry: Learning Neural Curvatures</head><p>We leverage the learned deformation f : Z &#8594; M &#162; X to extract geometric signatures of the neural manifold M. Importantly, we compute its extrinsic curvature, which represents its neural shape in the high-dimensional data space. We rely on Riemannian geometry, which provides tools to quantify curvatures and geometric structures. Additional background on geometry can be found in <ref type="bibr">[3]</ref>.</p><p>Definition 1 (Riemannian metrics and manifolds <ref type="bibr">[3]</ref>). Let Z be smooth connected manifold and T z Z be its tangent space at the point z &#8712; Z. A Riemannian metric g on Z is a collection of positive-definite inner products g z : T z Z &#215; T z Z &#8594; R that vary smoothly with z. A manifold Z equipped with a Riemannian metric g is called a Riemannian manifold (Z, g).</p><p>We learn the Riemannian metric of a neural manifold M to learn its geometry. To do so, we represent the neural manifold as a parameterized high-dimensional surface in the neural state space X = R N + : a representation given by the learned deformation f , which is an immersion (see Fig. <ref type="figure">3</ref>).</p><p>Definition 2 (Immersion <ref type="bibr">[3]</ref>). Let f be a smooth map f : Z &#8594; X between smooth manifolds Z and X . The map f is an immersion if its differential at z, i.e. the map df z :</p><p>To satisfy the injectivity requirement, we can see that f is an immersion only if dim(Z) f N . A trivial example of an immersion is the injection (x 1 , ..., x d ) &#8594; (x 1 , ..., x d , 0, ..., 0) from R d to another vector space R N &gt;d . By using a decoder f that is twice differentiable, via neural network activation functions such as tanh(&#8226;) and softplus(&#8226;), the learned map f is an immersion. Figure <ref type="figure">3</ref> shows an immersion f going from the template manifold Z = S 1 to the neural manifold M &#162; X . The map f parameterizes the manifold f (S 1 ) immersed in X with angular coordinates in S 1 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Pullback Riemannian Metric</head><p>The immersion f induces a Riemannian metric structure on M, or equivalently on its template manifold Z. Definition 3 (Pullback metric <ref type="bibr">[3]</ref>). Let f be an immersion f : Z &#8594; X where X = R N + is equipped with a Riemannian metric g. The pullback metric f * g is a Riemannian metric on Z defined &#8704;z &#8712; Z and &#8704;, u, v &#8712; T z Z as:</p><p>Intuitively, the pullback metric quantifies what the neural manifold "looks like" in X = R N + , i.e. its neural shape in neural state space. In this paper, we choose g to be the canonical Euclidean metric of X : in other words, we quantify the geometry of the neural manifold M by using (or pulling back) the Euclidean metric of X on M. In practice, the pullback metric is computed with automatic differentiation from f . To further provide intuition on definition 3, the derivations of pullback metrics of the common neural manifolds in the first row of Fig. <ref type="figure">1</ref> are given in the supplementary materials.</p><p>Extrinsic Curvature The Riemannian metric of the neural manifold allows us to calculate geometric quantities like angles, distances, areas, and various types of curvatures. Riemannian geometry applied to deep learning has focused on intrinsic notions of curvatures, given by the Riemann curvature tensor and contractions thereof, such as the Ricci tensor or the scalar curvature tensor <ref type="bibr">[25,</ref><ref type="bibr">32,</ref><ref type="bibr">45]</ref>. However, we argue that extrinsic curvatures contain more meaningful information, specifically in the context of neural manifolds. Indeed, intrinsic curvatures cannot provide an interesting description of the local geometry of one-dimensional neural manifolds such as rings, as their value is identically zero at each point of such neural manifold (see proof in the appendices). Since one-dimensional neural manifolds are ubiquitous in neuroscience, we suggest instead to use an extrinsic notion of curvature. We use one particular extrinsic curvature: the mean curvature vector. We consider a local coordinate system on Z around z and index its basis elements with i, j, k. We will use a local coordinate system on M = f (Z) &#162; X around f (z) and index its basis elements with &#945;, &#946;, &#947;. These notations are used in Definition 4, and in the appendices, together with Einstein summation convention for repeated indices.</p><p>Definition 4 (Mean curvature vector H). Consider the immersion f of Definition 2 representing the manifold M &#162; X = R N + parameterized by Z. The mean curvature vector H(z) &#8712; R N is defined, for &#945; &#8712; {1, ..., N }, as:</p><p>where (f * g) ij z is the inverse of the Riemannian (pullback) metric matrix of Definition 3, &#915; k ij are the Christoffel symbols associated with the metric f * g. This definition is only valid upon choosing g to be the canonical Euclidean metric of R N + . general formula for any metric is in the supplementary materials together with the derivation of Definition 4 in the Euclidean case, and of the mean curvature vectors in the special cases of two-dimensional surfaces in R 3 .</p><p>Intuitively, the mean curvature vector at a given point of the manifold z is orthogonal to the manifold with a norm inversely proportional to the radius of the best fitting sphere at that point z: spheres of small radii have high curvatures and vice-versa. The mean curvature vector leads us to define the quantity that we use to visually represent the geometric structure of neural manifolds from our experiments: the curvature profile.</p><p>Definition 5 (Curvature profile). Consider the immersion f of Definition 2 representing the manifold M &#162; X parameterized by Z. Consider a latent variable z 0 &#8712; Z and a unit tangent vector u 0 &#8712; T z0 Z. We define the curvature profile of M in direction df (z 0 ).u 0 as the map from R to R:</p><p>where Exp f z0 is the Riemannian exponential on Z corresponding to the pullback metric f * g.</p><p>Intuitively, this definition gives the curvature profile of the manifold Z in any direction u 0 , as if the manifold was "sliced" according to u 0 . Importantly, the curvature profiles are parameterized with the length s along the geodesic leaving from z 0 in the direction of u 0 . To further provide intuition on Definition 5, we give the curvature profiles of the common neural manifolds shown on the first row of Fig. <ref type="figure">1</ref> in the supplementary materials. In practice, we extend the software Geomstats <ref type="bibr">[37]</ref> by integrating the computation of the mean curvature vector, together with the differential structures of the so-called first and second fundamental forms that provide a general, open-source and unit-tested implementation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Theoretical Analysis</head><p>Our method, described in Section 3, yields the curvature profile of a neural manifold. If the neural manifold has the geometry of a "perfect" circle, sphere, or torus (as in Fig. <ref type="figure">1</ref>, top row), we expect to find curvature profiles corresponding to the ones computed in the supplementary materials. By contrast, if the neural manifold presents local variations in curvature (as in Fig. <ref type="figure">1</ref>, bottom row), experiments will give curvature profiles with a different form.</p><p>To yield meaningful results for real-world data, the model must additionally meet two theoretical desiderata: invariance under latent reparameterization, and invariance to neuron permutation. Here, we demonstrate that these desiderata are met.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Invariance under Latent Reparameterizations</head><p>We demonstrate that our approach does not suffer from the VAE non-identifiability problem of variational autoencoders <ref type="bibr">[24]</ref>. By utilizing the geodesic distance s on the latent space in Definition 5, we avoid relying on the specific coordinates of the latent variables, resulting in meaningful curvature profiles.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VAE Non-Identifiability Consider a VAE trained on data</head><p>x i &#8712; M &#162; X , which learns the low-dimensional latent variables z i &#8712; Z with prior p(z) and the decoder f : Z &#8594; X . Consider a reparameterization</p><p>with the property that z &#8764; p(z), z &#8764; p(z), p(z) = p(z).</p><p>Then a VAE with latent variables z and decoder f = f &#8226;&#981; -1 will yield the same reconstruction, and thus be equally optimal. Thus, parameterizing the curvature profile of the neural manifold with a latent variable z will not be meaningful, in the sense that the overall profile will exhibit features that depend on the parameterization &#981; of Z. This is known as VAE non-identifiability, and it requires us take caution when analyzing the geometry of the latent space <ref type="bibr">[24]</ref>.</p><p>Invariant Curvature Profile We show that the curvature profile defined in Definition 5 is invariant with respect to reparameterizations &#981;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 1 (Invariance under reparameterizations). The curvature profile is invariant under reparameterizations</head><p>We provide a proof in the supplementary materials. The consequence is that our proposed method does not suffer from VAE non-identifiability. An alternative approach to deal with VAE non-identifiability is to directly link each latent variable z with a real-world variable corresponding to its data point x. The term L latent corresponds to the squared distance between the latent variable z and its ground-truth value z gt , computed using the Euclidean metric of the embedding space of Z: L Z latent = dist(z, z gt ) 2 where dist is the geodesic distance associated with the canonical Riemannian metric of Z (not the pullback metric). This approach is supervised as we enforce that the latent variables z bear meaning related to the real-world task: the local curvature of the neural manifold can be studied in correlations with real-world variables. This supervised approach effectively selects a canonical parameterization that parameterizes the neural manifold by real-world task variables.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Invariance under Neuron Permutation</head><p>In experimental neuroscience, the order in which neurons appear in a data array may change between recording sessions and has no bearing on the underlying latent structure. Thus, methods for extracting geometric structure from neural data should not depend on neuron ordering. In this regard, we first validate our pre-processing step and previous topological methods that rely on TDA by demonstrating the independence of the topology of the neural manifold from neuron order. We also show that the order in which we record the N neurons to form the neural state space R N + does not impact the curvature profiles.</p><p>Lemma 2 (Invariance under permutations). Consider a neural manifold M embedded in neural state space R N + corresponding to the recording of N neurons. Permuting the order of the N neurons: (i) leaves the topology of M invariant, (ii) leaves the geometry of M invariant.</p><p>The proof is in the supplementary materials and relies on the fact that a permutation of the neurons in R N + yields an isometry of M, in other words: that the Euclidean metric g of R N</p><p>+ is invariant to permutations. Consequently, future works aiming at pulling back another metric should first verify that the new metric is invariant to permutations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Experiments</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Synthetic Manifolds</head><p>We first test our method on synthetic datasets of circles, spheres and tori distorted by small Gaussian "bumps", embedded in R 2 + , R 3 + and R 3 + respectively -see Fig. <ref type="figure">4</ref>. The exact process generating these datasets in given in the supplementary materials. In these synthetic experiments, the curvature profile can be computed analytically and compared to the learned curvature profile, as in Fig. <ref type="figure">4</ref>. We verify that the ground-truth topology and geometry can be recovered, validate the model's invariance under reparameterization, and test the effects of simulated experimental noise and the number of simulated neurons.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Validation of Learned Topology and Geometry</head><p>We first verify that TDA correctly learns the topology of the neural manifold in the synthetic datasets. This is illustrated in the supplementary materials. We next verify that our approach correctly learns the geometry of the neural manifolds when supervision is added to enforce a canonical parameterization of the latent space. Our VAE correctly learns a compressed latent representation z in the desired template manifold Z, that further corresponds to the ground-truth z gt , as shown in Fig. <ref type="figure">4</ref> A, B for z = &#952; representing the angle on S 1 and the latitude on S 2 respectively. The VAE's trained decoder provides an accurate reconstruction of the input neural manifold (see Fig. <ref type="figure">4 (A-B-C</ref>) Left). The trained decoder function then allows us to calculate the local mean curvature at each point on the manifold (see Fig. <ref type="figure">4</ref> (A-B-C) Right).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Effect of Noise and Number of Neurons</head><p>We run experiments on synthetic distorted circles to evaluate the accuracy of the curvature estimation. Our evaluation metric is the curvature estimation error defined as a normalized error proportional to the integrated difference squared of the two mean curvature profiles:</p><p>Definition 6 (Curvature Estimation Error). The error between the estimated curvature &#292; and its true value H is given by:</p><p>, where Z is the known template manifold and dZ(z) its Riemannian measure.</p><p>The curvature estimation error is thus expressed as a fraction (%) of the sum of both curvatures. We compute Error(H, &#292;) for curvature profiles estimated from a wide range of distorted circles. Specifically, we generate synthetic distorted circles as outlined in the supplementary materials, where we vary: (i) the noise level, i.e., the standard deviation of the Gaussian noise: &#963; &#8712; [0%, 12%] expressed in % of the radius of the distorted circle, i.e. the manifold's size; and (ii) the number of recorded neurons N , which is the embedding dimension of the synthetic manifold: N &#8712; <ref type="bibr">[3,</ref><ref type="bibr">25]</ref>. We emphasize that we chose these noise values in order to match the noise amplitudes observed in real neural data <ref type="bibr">[27]</ref>, and we chose values for N that correspond to the number of neurons traditionally recorded in real experimental neuroscience. Fig. <ref type="figure">9</ref> (A) in the supplementary materials shows that Error(H, &#292;) varies between 0.5% and 5% of the true curvature for both distorted circles across these realistic noise levels when the number of neurons is fixed at N = 2. For each value of &#963;, a synthetic manifold was created and our method was applied 5 times: the vertical orange error bars show the minimum and maximum of the error across 5 trainings. Fig. <ref type="figure">9</ref> (B) shows that Error(H, &#292;) does not depend on the number of neurons N , and specifically does not reach the magnitude of error observed upon varying &#963;. This demonstrates that our method is suited to learn the geometry of neural manifolds across these realistic noise levels and number of neurons, and motivate its use in the next section on simulated and experimental one-dimensional neural manifolds. We plot the magnitude of the mean curvature as a function of the distance of a latent angle &#952; to some reference angle &#952;0, &#8741;H&#8741; = &#8741;H(dist(&#952;0, &#952;))&#8741;, where dist is computed using the pullback metric. This approach is significantly better able to capture the true curvature structure on the neural manifold S 1</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Validation of Invariance under Reparameterizations</head><p>As shown in Fig. <ref type="figure">5</ref>, we experimentally demonstrate that in the unsupervised setting, our parameterization-invariant approach for computing the curvature profile of distorted circles is better able to recover the true curvature structure on the synthetic manifold, compared to the naive parameterization-sensitive procedure.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Neural Manifolds</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.1">Simulated Place Cells</head><p>We simulate the neural activity of place cells to provide intuition about the neural geometry that we expect to find in experimental data (next section). In this simulation, an animal moves along a circle in lab space. We simulate the activity of 3 place cells as shown in Fig. <ref type="figure">6 (A)</ref>: each neuron peaks when the animal is at a specific lab angle on the circle (40 degrees, 150 and 270 degrees respectively) and has a place field of a fixed width (80, 300, and 180 respectively). These neural recordings form the neural manifold M &#162; R 3 + shown in Fig. <ref type="figure">6</ref> (A) (Right -Simulated). In this experiment, we can record the true positional angle of the animal with cameras provided in the lab. Therefore, we use a canonical parameterization of the latent space's angles with latent loss term from the previous section.</p><p>Our approach correctly reconstructs the neural activity and learns a neural manifold whose geometry matches the ground-truth in Fig. <ref type="figure">6 (A)</ref>. The canonical parameterization of the latent space is correctly learned thanks to the supervision of the latent loss, see Fig. <ref type="figure">6 (B</ref>). The curvature profile is shown in Fig. <ref type="figure">6</ref> (C) The profile shows 3 shallow peaks, which correspond to the higher curvature observed in the neural manifold when the animal is at at angle that is in between the peaks of two place fields. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.2">Experimental Place Cells</head><p>We apply our method to real neural data from rats <ref type="bibr">[27]</ref> running in a VR Dome apparatus <ref type="bibr">[33]</ref>, which realizes the simulations from the previous subsection. In this experiment, animals run on a circular track S 1 surrounded by projected visual cues, while we record the neural activity of place cells in the hippocampal CA1 region. As place cells typically encode the position of the rat in space, we expect the topology of the neural manifold to be S 1 and choose Z = S 1 . This experiment also possesses a "canonical" parameterization as the animal's positional angle is recorded by a lab camera: we use this angle to supervise the latent angles with the latent loss. We discuss the details of the experimental place cell data in the supplementary materials. Here, we detail how our approach can be used to reveal novel neuroscience insights. In the Dome experiment, visual landmarks were moved by a fraction (G) of the rat's physical movement on the circular track <ref type="bibr">[27]</ref>. Place cells remain locked to these moving landmarks -i.e. the radius of the S 1 neural manifold scales according to G. This scaling persists even after landmarks are turned off, indicating a recalibration of self-motion inputs. In the original work, the radius of the neural manifold (&#8733; inverse of curvature H) was determined through a Fourier-based method, necessitating multiple cycles through the manifold to generate an averaged estimate. Our method can track the sub-cycle evolution of H, allow-</p><p>0 100 200 300 Angles Recorded (Ground-truth) Reconstructed 4 Neuron 4 Neuron (A) Experimental Place Cells: Activations 0 45 90 135 180 225 270 315 (C) Curvature Profile (B) Latent Parameterization 0 45 90 135 180 225 270 315 Color: Neuron 4 Color: Angles ing for more precise understanding of how local sensory inputs (such as proximal landmarks) contribute to the dynamical scaling of neural geometry. A subsequent experiment showed how the latent position encoded in place cells can be decoupled from physical space in the absence of visual landmarks <ref type="bibr">[34]</ref>. Our method can be used to decode the local curvature profile of the neural representation in the absence of correlated real-world variables. Recent research shows that neurons of the cognitive map can encode task-relevant non-spatial variables <ref type="bibr">[1,</ref><ref type="bibr">15,</ref><ref type="bibr">31,</ref><ref type="bibr">39,</ref><ref type="bibr">41]</ref>. Our method can be used to test whether the geometric features of these latent variables correspond to that of the task.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Conclusion</head><p>We have introduced a novel approach for quantifying the geometry of neural manifolds. We expect that this method will open new avenues for research in the geometry of neural representations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Acknowledgements</head><p>We would like to thank James Knierim, Noah Cowan and Ravikrishnan Jayakumar at Johns Hopkins University for providing experimental data. The rodent place cell data analyzed in this manuscript was collected in the Knierim and Cowan labs by R. Jayakumar and M. Madhav. We also thank David Klindt for insightful discussions and comments on the manuscript.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Authorized licensed use limited to: Univ of Calif Santa Barbara. Downloaded on August 01,2024 at 16:07:53 UTC from IEEE Xplore. Restrictions apply.</p></note>
		</body>
		</text>
</TEI>
