# HTM School 14: Grid Cells

**URL:** <https://discourse.numenta.org/t/htm-school-14-grid-cells/3646>\
**Category:** YouTube\
**Created:** [March 16, 2018, 2:06pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646 "2018-03-16T14:06:21Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![mirgee](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mirgee/32/2217_2.png) [@mirgee](https://discourse.numenta.org/u/mirgee)\
**Post date:** [June 18, 2018, 3:15pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/41 "2018-06-18T15:15:53Z")

</div>

I don’t want to get stucked on this point - substitute “surface” for “manifold” if it helps. Or please explain how do you think of it 🙂

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [June 18, 2018, 3:27pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/42 "2018-06-18T15:27:21Z")

</div>

Feel free to think of a purely 3D object without mentally flattening it to 2D surfaces. I’ll wait.

I assume that you have a great deal of trouble as your metal machinery that considers space does it in 2D sheets connected together with bundles of connecting fibers.

The manifold that Matt brought up is the correct answer but without some explanation it may not make any sense. These 2D maps/areas that make up the brain (currently thought to be about 100) each hold some part of the current mental processing. If you take them as a whole each contributes some sort of contribution of “this thing vs that thing” on the local representation in that part of the brain.

When you glue them all together the resulting “manifold” is just the current state of all the areas/maps active in the brain at that point taken as a whole.

Each area can be though to a a projection to some dimension in mental space. Since they are all connected together in the current mental state you can describe it as a multi-dimensional representation.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [June 18, 2018, 3:47pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/43 "2018-06-18T15:47:21Z")

</div>

The neuronal space is extremely high-dimensional. I think it is safe to say it is not restricted by dimensionality. It can virtually represent input of any dimensionality. I tend to think of the representations as being dimensionless. They can only be unrolled within the input space they came, which had the dimensionality in the first place.

---

<div class="post-metadata">

**Author:** ![mirgee](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mirgee/32/2217_2.png) [@mirgee](https://discourse.numenta.org/u/mirgee)\
**Post date:** [June 18, 2018, 3:50pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/44 "2018-06-18T15:50:35Z")

</div>

We are on the same page that objects can be thought of as 2D manifolds, but we can imagine them (and they are) embedded in 3D space. Therefore, to specify a location of a sensor / feature / object, it seems to me, it is necessary to encode their position in 3D space, isn’t it?

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [June 18, 2018, 4:50pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/45 "2018-06-18T16:50:44Z")

</div>

> [@mirgee](#):
>
> it is necessary to encode their position in 3D space, isn’t it?

While intellectually appealing, a 2.5 D representation seems to be what is going on.

Until it enters your personal space and you can manipulate it - it is a steradian/flat patch that is “that direction and is somewhere near or far away.”

---

<div class="post-metadata">

**Author:** ![Paul\_Lamb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/paul_lamb/32/2725_2.png) [@Paul\_Lamb](https://discourse.numenta.org/u/Paul_Lamb)\
**Post date:** [June 18, 2018, 5:54pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/46 "2018-06-18T17:54:31Z")

</div>

Another observation that I have made related to this, is that when I am exploring an object with my finger, for example, it feels to me as though I am projecting myself onto the finger and in essence “walking around” on the object and building or recognizing a model of it much like exploring a room and building a model of it. There is a sense of a position on the object and a sense of a heading, both of which changes fluidly as I move my finger around in different directions.

To me, at least, the sensations of exploring a room and exploring an object are extremely similar, and the logical conclusion (to me) is that they must be sharing the same mechanics behind the scenes. An “allocentric” space when exploring an object is essentially the same as an “egocentric” space when exploring a room. The switch between the two spaces, I would theorize, is at least in part a function of attention

If this is true, then understanding how grid cells and head direction cells are used when navigating a room are directly applicable to how they are used when exploring an object. We had a discussion on [this thread](https://discourse.numenta.org/t/do-head-direction-cells-represent-2d-or-3d-direction/3696) recently where some excellent references were given related to the nature of head direction cells when exploring a 3D room.

As an interesting side note, this would also explain how we are able to almost effortlessly control an avatar in a video game (compared to an RL algorithm, for example, which requires a ridiculous number of iterations) – we can essentially project ourselves onto the avatar and explore the game world as though we were actually in it.

---

<div class="post-metadata">

**Author:** ![mrcslws](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/mrcslws/32/4961_2.png) [@mrcslws](https://discourse.numenta.org/u/mrcslws)\
**Post date:** [June 26, 2018, 5:51pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/47 "2018-06-26T17:51:29Z")

</div>

You’re correct that the poster only showed how to represent 2D locations, and so more is needed to handle 3D objects. I wrote the poster to give people an intuition for how grid cells can create a large space of unique locations, and it was easiest to illustrate this in 2D, and then people can extrapolate to 3D. Biology may simply extrapolate to 3D, using 3D modules, or it may have found a way to use 2D modules to handle 3D.

And yes, during movement, the representation of a set of grid cell modules moves through a finite-dimensional manifold (2D in the poster). And to handle 3D objects, I agree that we probably need a manifold that is at least 3D, or we need some other trick.

---

<div class="post-metadata">

**Author:** ![dillon.bender](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dillon.bender](https://discourse.numenta.org/u/dillon.bender)\
**Post date:** [August 21, 2018, 11:31pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/48 "2018-08-21T23:31:06Z")

</div>

From an actual implementation perspective, do the grid cell modules have a fixed size on their input space once they are initialized? How would they handle being ported to a larger environment with new locations? Do they have a mechanism for dynamically adjusting to different sized environments? For example, what exactly would happen if the room that your mouse cursor moves within suddenly became larger or smaller? How would the grid cells react?

---

<div class="post-metadata">

**Author:** ![bkaz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bkaz/32/6455_2.png) [@bkaz](https://discourse.numenta.org/u/bkaz)\
**Post date:** [August 22, 2018, 12:26am UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/49 "2018-08-22T00:26:40Z")

</div>

> [@gidmeister](#):
>
> I was reading recently that the grid cell area (and the entire hippocampus) represents patterns in a much sparser way than the neocortex.

So, maybe it makes more sense to think about hippocampus and it’s grid cells as a compressed map of neocortex, and neocortex as primary and more detailed map of environment? Where both maps are representing all levels of generalization / conceptualization. In that case, primary spatial map would be egocentric one, in the dorsal parietal “where” stream. Of course, there is another map of neocortex in thalamus, it’s probably organized differently.

Sorry if that’s covered somewhere.

---

<div class="post-metadata">

**Author:** ![gidmeister](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gidmeister](https://discourse.numenta.org/u/gidmeister)\
**Post date:** [August 22, 2018, 6:56pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/50 "2018-08-22T18:56:46Z")

</div>

That’s interesting - a map of a map. The brain also has an interpreter that tries to make sense of what the rest of the brain has done - its a kind of rationalizer after the fact.

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 22, 2018, 7:28pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/51 "2018-08-22T19:28:11Z")

</div>

My take is that the hippocampus remembers the key features of your experience; the most processed version of the day’s events. At night, during REM sleep, the contents of the hippocampus is replayed reinforcing the memories of the day.  
Some hippocampus factoids in no particular order:

- The hippocampus seems to hold about 1 days worth of experience before saturating. Symptoms of saturation include discomfort and hallucinations.
- From a system approach - the buffered events of the day allow the amygdala and other sub-cortical structures to add emotional weighting to the memories before consolidation in sleep cycles.
- It is likely that the hippocampus does good one-shot episodic learning as opposed to slower Hebbian learning in the cortex. It is possible that sleep spindles power an accelerated learning in the cortex.
- The sleep cycles seem to normalize or reset the hippocampus for a new days learning. If the hippocampus is learning the “delta” between what is in the cortex and hippocampus I could see that part of the process is to “ring” both to test the response and drive learning to the cortex until they are in agreement.
- The claims that spatial processing is done in the hippocampus seems off - patients with damage to the hippocampus see to be able to process space normally - they just can’t form new memories.

---

<div class="post-metadata">

**Author:** ![Casey](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/casey/32/2874_2.png) [@Casey](https://discourse.numenta.org/u/Casey)\
**Post date:** [August 22, 2018, 8:34pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/52 "2018-08-22T20:34:23Z")

</div>

> [@Bitking](#):
>
> The claims that spatial processing is done in the hippocampus seems off - patients with damage to the hippocampus see to be able to process space normally - they just can’t form new memories.

Damage isn’t always clear (H.M. had some hippocampus remaining for example), and there might be redundant regions which haven’t been studied enough to know that yet. The fact that there are place cells convinces me that it does spatial processing, although it’s not necessarily essential.

Maybe the brain processes things that aren’t real locations as if they were locations. It might be equally valid to conceptualize the function of the hippocampus as encoding events as spatial relationships, or encoding spatial locations as events. It can move between locations by behavior, and you can recall events at different speeds than they occurred, moving between each part of the event as if moving through space.

I don’t really understand it, but in the podcast Jeff Hawkins talked about objects built up from smaller objects by linking them and being able to follow the links using attention. That’s pretty similar to memory.

---

<div class="post-metadata">

**Author:** ![bkaz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bkaz/32/6455_2.png) [@bkaz](https://discourse.numenta.org/u/bkaz)\
**Post date:** [August 22, 2018, 8:59pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/53 "2018-08-22T20:59:35Z")

</div>

> [@Bitking](#):
>
> My take is that the hippocampus remembers the key features of your experience; the most processed version of the day’s events. At night, during REM sleep, the contents of the hippocampus is replayed reinforcing the memories of the day.

Is this “remembering” in any way independent, or it is simply fresh memories in association cortices forming temporary connections in hippocampus, for potential reinforcement?

> It is likely that the hippocampus does good one-shot episodic learning as opposed to slower Hebbian learning in the cortex. It is possible that sleep spindles power an accelerated learning in the cortex.

Do these spindles also happen in awake hippocampus, although less frequently?

> If the hippocampus is learning the “delta” between what is in the cortex and hippocampus I could see that part of the process is to “ring” both to test the response and drive learning to the cortex until they are in agreement.

Isn’t this agreement between cortex and amygdala, with hippocampus as a mediator?

> The claims that spatial processing is done in the hippocampus seems off - patients with damage to the hippocampus see to be able to process space normally - they just can’t form new memories.

Well, temporary hippocampal connections can also be with spatial memories in the cortex.  
So, my “map” idea should be qualified in that this mapping is temporary.  
Still, all association cortices must have tentative / potential connections with hippocampus, so it’s kind of a proto-map.

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 22, 2018, 9:53pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/54 "2018-08-22T21:53:03Z")

</div>

> [@bkaz](#):
>
> Do these spindles also happen in awake hippocampus, although less frequently?

No.

> **[Sleep spindle](https://en.wikipedia.org/wiki/Sleep_spindle)**
>
> Sleep spindles are bursts of neural oscillatory activity that are generated by interplay of the thalamic reticular nucleus (TRN) and other thalamic nuclei during stage 2 NREM sleep in a frequency range of ~11 to 16 Hz (usually 12–14 Hz) with a duration of 0.5 seconds or greater (usually 0.5–1.5 seconds). After generation as an interaction of the TRN neurons and thalamocortical cells, spindles are sustained and relayed to the cortex by thalamo-thalamic and thalamo-cortical feedback lo Research su...

[https://www.tuck.com/sleep-spindles/](https://www.tuck.com/sleep-spindles/)

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 22, 2018, 10:04pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/55 "2018-08-22T22:04:53Z")

</div>

> [@bkaz](#):
>
> Isn’t this agreement between cortex and amygdala, with hippocampus as a mediator?

I don’t see it this way. There is a strong spatial component to what the hippocampus does. I think that the amygdala “colors” episodes but does not contain them.  
This patient may help frame the behavior of the amygdala:

> **[S.M. (patient)](https://en.wikipedia.org/wiki/S.M._(patient))**
>
> S.M., sometimes referred to as SM-046, is an American woman with a peculiar type of brain damage that physiologically reduces her ability to feel fear. First described by scientists in 1994, she has had exclusive and complete bilateral amygdala destruction since late childhood as a consequence of Urbach–Wiethe disease. Dubbed by the media as the "woman with no fear", S.M. has been studied extensively in scientific research; she has helped researchers elucidate the function of the amygdala.\[ An ex...

Note the preserved function which helps frame what the amygdala does and does not do.

This quora entry has some interesting pointers if you wish to explore further:

> **[If all humans were born without the Amygdala part of the brain, would humans...](https://www.quora.com/If-all-humans-were-born-without-the-Amygdala-part-of-the-brain-would-humans-become-more-docile-and-less-likely-to-fight-each-other)**
>
> Answer (1 of 2): No. Thanks to a disease called Urbach–Wiethe disease, we have a pretty good sense of what happens in people without an amygdala. In this disease, calcifications in the medial temporal lobe can cause complete lesions of the amygdala...

---

<div class="post-metadata">

**Author:** ![bkaz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bkaz/32/6455_2.png) [@bkaz](https://discourse.numenta.org/u/bkaz)\
**Post date:** [August 23, 2018, 12:41pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/56 "2018-08-23T12:41:58Z")

</div>

Thanks. So, I guess hippocampus mapping to cortex is indirect, via thalamus.  
At least outside of EC and medial temporal lobe.  
As for intrinsic function, that seems to be search for correlations between fresh memories.  
Because they are conveniently localized in hippocampus but widely distributed in the cortex.  
This covers spatial aspect too: the sources of short-term memories are likely proximate spatially.

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 23, 2018, 12:50pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/57 "2018-08-23T12:50:12Z")

</div>

I have not been able to locate the exact mechanism/neural pathway that feeds images to the amygdala (and more importantly - parses) but it does seem to be aware of shapes, and to a lesser degree places, to activate emotional responses.

in general, this post has contributing amygdala content:

> [@Symbolic semantics might be an accessory rather than a necessity](https://discourse.numenta.org/t/symbolic-semantics-might-be-an-accessory-rather-than-a-necessity/3676/17):
>
> I get this from passing references in many texts. When people talk about the amygdala they seem to imply that you have to be running for your life in abject fear or be screaming angry to be considered an emotional memory. What is missed is subtle shading of all memory consolidation - when something is just a little good or a little bad. As the semantic categories are formed the coloring allows you to choose between different choices as the relative “goodness” or “badness” of things is part of t…

and in particular this link speaks to my point:

> **[Amygdala Response to Emotional Stimuli without Awareness: Facts and...](https://www.frontiersin.org/articles/10.3389/fpsyg.2016.02029/full)**
>
> Over the past two decades, evidence has accumulated that the human amygdala exerts some of its functions also when the observer is not aware of the content, or even presence, of the triggering emotional stimulus. Nevertheless, there is as of yet no...

This link ties the amygdala to the hippocampus and hopefully - brings this post more in alignment to this thread:  
[https://pdfs.semanticscholar.org/2559/1f5d9fde558ce5cd7f49607ef87e48e6287f.pdf](https://pdfs.semanticscholar.org/2559/1f5d9fde558ce5cd7f49607ef87e48e6287f.pdf)

---

<div class="post-metadata">

**Author:** ![bkaz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bkaz/32/6455_2.png) [@bkaz](https://discourse.numenta.org/u/bkaz)\
**Post date:** [August 23, 2018, 1:00pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/58 "2018-08-23T13:00:54Z")

</div>

> [@Bitking](#):
>
> I have not been able to locate the exact mechanism/neural pathway that feeds images to the amygdala but it does seem to be aware of shapes, and to a lesser degree places, to activate emotional responses.

I think you are talking about blindsight: [Blindsight - Wikipedia](https://en.wikipedia.org/wiki/Blindsight),  
which is probably via LGN or Superior Colliculus: [Superior colliculus - Wikipedia](https://en.wikipedia.org/wiki/Superior_colliculus)

---

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [August 23, 2018, 1:05pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/59 "2018-08-23T13:05:07Z")

</div>

In general - yes.

I am very aware of sub-cortical visual awareness.

What I am less sure of is the perceptual mechanism. “We” have a pretty good idea of the general mechanism of the visual path and contents of the cortical visual stream.

I have not seen the same level of description and understanding of this sub-cortical visual perception.  
This is important and related to grid cells in an indirect way.

As far as I am aware - nobody really knows how the visual, tactile, and somatosensory information is combined at the level of the hippocampus to form the response or activation pattern that is described in the Moser work. If a mouse navigates by vision or motion or whiskers it all seems to end up forming the same response to locations that have come to be known as grid and place cells.

Most of the work I have seen comes at this from the cortex side. @Gary_Gaulin put up a post today that analyses the relationship between the grid & place cells and if you read this it would seem like this is somehow happening in isolation from the rest of the brain.

> [@Modelling Gamma Synchrony](https://discourse.numenta.org/t/modelling-gamma-synchrony/4378/3):
>
> I’m currently studying a neuroscience based model with synchronized gamma cycles: Input, place, and grid cells are modeled as rate-based neurons. The set of firing rates (i.e., the ensemble activity) is computed iteratively. Each iteration cycle t is assumed to correspond to one gamma cycle; the assumption of a time resolution of one gamma period (10–25 ms) was motivated by the use of a competitive 10%-max winner-take-all mechanism to select which cells fire (see below), which was postulat…

My point in all this is that the cortex pathway seems to lead from the raw sensory areas through the WHAT and WHERE streams to the temporal lobe and on into the entorhinal cortex. This is a pathway that is full of learning and serial processing.

The sub-cortical structures seem to be shorter and more hardwired. They come to the hippocampus via the “other” direction and may well play as a significant pathway to forming the place and grid patterns.

This is the bit that I have been trying to learn more about: the hardwired visual system in the sub-cortical structures.

We know it has built in shapes and emotional coding for at least fear. We know that it can guide you around a room when you can’t see at all. It can guide your grasping when blind. It sees faces and expressions. There it good reason to think that it uses features to be sexually attracted - sex linked features that are thought to signal desirables in a potential mate. I’m sure I could name more but this is just a random list. Yes - the male and female brains could be wired/programmed differently.

> **[Unconscious Vision](https://thebiologist.rsb.org.uk/biologist-features/double-vision)**
>
> Read about the intriguing case of patient DF, who could grasp what she couldn't see - a phenomena known as 'unconscious vision'.

**That’s a lot of lower level processing and it’s tied directly to the hippocampus. It sure would be nice to know more about a few dozen dense cluster of nerves that are doing all this.**

---

<div class="post-metadata">

**Author:** ![bkaz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bkaz/32/6455_2.png) [@bkaz](https://discourse.numenta.org/u/bkaz)\
**Post date:** [August 23, 2018, 1:08pm UTC](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646/60 "2018-08-23T13:08:36Z")

</div>

> [@Bitking](#):
>
> The sub-cortical structures seem to be shorter and more hardwired. They come to the hippocampus via the “other” direction and may well play as a significant pathway to forming the place and grid patterns.  
> This is the bit that I have been trying to learn more about: the hardwired visual system in the sub-cortical structures.

My impression is that sub-cortical perception is much lower-quality, the only advantage is that it’s faster.

[Previous page](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646.md?page=2)

[Next page](https://discourse.numenta.org/t/htm-school-14-grid-cells/3646.md?page=4)
