HTM School 14: Grid Cells

Any plan on head direction cells? It was in the Cosyne poster.

1 Like

Bravo!
I’ve been wondering what the new avatar was about. As a fan of Bucky Fuller I’ve seen close packed spheres as an obvious choice for years but I was hardly prepared for such compelling evidence or direct applicability to this problem.

2 Likes

Excellent video as always! Is there an unpaywalled version of the papers for the academically challenged peoples?
Thanks!

2 Likes


Yes - here.

2 Likes

I’m not saying this video was great … but it was.

5 Likes

Thanks for the kind words, everyone.

You can run the grid cell example code with Node.js only (no need for the NuPIC server). See How to Run HTM School Visualizations.

I saw some hexagons in a urinal yesterday. Coincidence? (I think not)

Yes. But for objects, think sensor orientation instead of head direction.

3 Likes

Thanks for an awesome video @rhyolight, your spatially rich explanation made it easy for me to start to understand how we think spatially.

The grid cell module concept was a bit of a surprise. I was expecting time to play a key role in resolving location ambiguity like in the rest of HTM theory, which kind of makes sense in a naive example of a person looking around and identifying landmarks. But when you apply it to mental spatial concepts like the day of the week it makes more sense that there’s a more instant mechanism.

btw…which was more time consuming - building the grid cell visualisations or capturing the perfect “hexagons” scene? :grin:

1 Like

Some amplification of details of this video.

The potential activation pattern sites can be visualized as a uniform grid across the entire map as shown in the video. Not all of this is turned on at the same time. Look at the embedded Moser video - the cell is part of the grid-forming ensemble but it only fires when that spatial location is being signaled.

In action, only part of the grid module at each spatial scale is driven into resonance forming a “spot” of grid activation. For a visualization please see this paper, pages 3 & 4:

As the critter moves around this spot of activity is pushed around the map of grid-forming cells. This paper talks about this spot being influenced by both the head position cells and sensed self-motion resulting in migration of the spot across the map.

Note that strictly visual cues result in the same motion and locations activations in the rat.

In the grid literature, much is made of both self-motion, head direction, border cell, and location signaling. I don’t see much on the vestibular system, barrel cells, or olfaction in navigation. I expect a lot more on this in the future. This is important as the mechanisms behind how the sensed information causes grids to form is still murky.

Studies in monkeys show the same shift in activation as the eyes scan a screen.

2 Likes

This is the best way to convey this topic. Very good video. I was reading recently that the grid cell area (and the entire hippocampus) represents patterns in a much sparser way than the neocortex. Their explanation was that the hippocampus can store episodic memories better because of this - the different memories don’t interfere with each other. The neocortex though has more overlaps between SDRs, which is better for generalization.
Maybe the hexagonal arrangement for each place cell is due to a kind of even inhibition in all directions.
Maybe large pattern separation is needed in spatial thinking?

2 Likes

Do you have a link to this?

It is here: https://grey.colorado.edu/CompCogNeuro/index.php/CCNBook/Main
As a matter of fact, I think it was a paper you posted that led me to their site. They also have simulations that you can run. Its a great site.
Here’s a relevant diagram from their book:
reillyTable
(I downloaded their book as a PDF, and this diagram is on page 75).
Note that both the neocortex and the Hippocampus have attractors, but the other areas do not. Also note the ‘Separator’ column - that has to do with inhibition.

1 Like

I am not sure about that table. All the sources I read points to some sort of Temporal Difference Learning happening in ganglia. The argument is that ganglia learns via differences between the expected reward and actual reward (error) evidenced by the biological dopamine secretion levels. I never encountered any in depth studies claiming that reward is the actual learning signal instead of the error.

1 Like

Well yes, but they have the theory you mention in their book, and also, what they are really saying in the table is this: (I give an example here from my own life)
Today, I shoveled snow (I was in the East coast snowstorm) and threw the snow over the edge of my driveway. If I had hit a watcher in the face with the snow by accident, my cerebellum would learn from the error - the snow didn’t go where expected. My ganglia on the other hand, would see a dip in ‘reward’ vs expectation, and would affect my goals (don’t throw snow around in a hurry to get back to that great Seinfeld episode when there is someone standing around).
More seriously, they do go through the theories you mention, but they also talk about a model they created where synapses in the ganglia have a kind of Boolean-flag that says whether they were ON in the past X minutes. If a reward happens, and that flag is TRUE, then those synapses get stronger. The interesting thing is that this model works pretty well, even with conditioned stimuli etc.
Cheers.

1 Like

What strategy might be the best way to encode location from multiple grid modules? My initial thought is a simple scaler encoder for each grid module – each having a reserved range of potential indices in the encoded space.

I don’t think you need to encode anything. Each grid cell module, once established, is an SDR already. Simply concatenate them together. I did this in the video to show how a 2D space could be represented if you wanted semantically similar location representations (not certain we need that for how grid cells act in the brain yet).

1 Like

Ah, so essentially consider the active cells of the grid as the SDR, and union them if so needed (or just grow distal connections into all of them)

1 Like

Definitely consider the active cell(s) in the GCM the on bits in an SDR. It is hard to say how many GCMs are used together in brains, but consider 16 cells per module where one cell is active at a time. This is not as sparse as we use in the SP (6.25%), but it works fine for input. Now imagine 10 modules projected across one space. Now you have 160 bits. 100 modules? 1600 bits.

2 Likes

Thanks. To clarify why I was asking, I’m working on updating my 2-layer (soon to be 4-layer after differentiating “sense + orientation” vs “feature + location”), to implement the allocentric location signal with GCM’s. It’s an implementation question of whether distal input for this signal is coming from a single pooled matrix of cells, or from multiple separate matrices.

When you think about a Layer, you can’t really make assumptions about where the input is coming from, but you have to think about the process it is performing and what the input/output represents. I think you should be able to join representations from many GCMs into one input space for either proximal or distal input to a layer. You could probably shuffle up their bits too, as long as they are consistent across time.

3 Likes

Yes, the more I think about it, the implementation question really boils down to whether the output from the GCMs should be fed through the SP process (to fix sparsity) or used directly.