Brain Generalization and Flexible Behavior


Brain Generalization and Flexible Behavior

Anna
Welcome. Today we're exploring cognitive maps: how the brain organizes knowledge so we can act flexibly, even in situations we've never encountered before. A simple example is cooking lasagna in a friend's kitchen. You haven't learned the layout of that kitchen, but you can still apply what you know about the cooking procedure and use a quick look around to find the oven and utensils.

Michael
So the trick is separating what matters from the details of the familiar setting. You retain an abstract procedure for making lasagna, along with a general model of how kitchens are arranged. That lets you adapt the procedure to a new sensory context rather than starting from scratch.

Anna
Exactly. A cognitive map is a coherent framework for organizing information about the world in a way that can serve multiple purposes. The word “map” can make us think only of physical space, but the idea is broader. This episode lays out the behavioral and neuroscience foundations; a second part will explore a proposed computational account called the Tolman-Eichenbaum machine.

Michael
Let's begin with the experiment that helped establish the idea. In the 1930s, psychologist Edward Tolman trained rats to find a food reward at the end of a familiar maze, which we'll call maze A. Then he put them in a different maze, maze B, with several radial arms.

Anna
The familiar route toward the reward was blocked, so the rat had to choose an alternative. If it had learned only an association between the reward and a similar-looking path, it might choose path nine or ten, the routes most like the original one. But if it had learned the spatial layout, it could choose path six, which points toward the reward even though the rat had never taken that path before.

Michael
And rats were generally observed to choose the route consistent with the reward's direction. That result suggested they were using an internal representation of the surrounding space, not just repeating a rewarded sequence of actions. Tolman called this idea a “cognitive map.”

Anna
It took several decades before neuroscientists could investigate how such a map might appear in brain activity. The main system usually associated with cognitive mapping is the hippocampal formation, which includes the hippocampus and the entorhinal cortex. The entorhinal cortex acts as a kind of gateway for information flowing into and out of the hippocampus.

Michael
Researchers found many kinds of spatially selective neurons in those areas. The best-known hippocampal examples are place cells: a place cell becomes active when an animal is in a particular location. Its response depends on the surroundings, so the same cell can respond differently in different environments.

Anna
The entorhinal cortex contains grid cells, which fire at multiple locations arranged in a regular, hexagonal pattern as an animal moves around. Their pattern tends to be stable and relatively invariant across particular surroundings. In that sense, grid cells provide something like a coordinate system rather than a code for one specific place.

Michael
There are other useful cell types too. Entorhinal object-vector cells respond when an animal is at a particular distance and direction from an object. The hippocampus has landmark cells that are similar in spirit, but respond selectively to a particular object rather than to any object.

Anna
Both regions also contain boundary cells, which code for boundaries, and head-direction cells, which code for the direction the animal is facing, among other types. It can sound like a bewildering collection of responses, but there is a broad pattern: the entorhinal cortex supplies more general spatial structure, while the hippocampus represents particular places and landmarks within that structure.

Michael
And that division may extend beyond literal physical space. In one example, rats learned to press a lever to adjust a sound's frequency. Some hippocampal neurons became selective for particular frequency ranges, much like place cells are selective for locations. Entorhinal neurons also developed a frequency-dependent pattern, with periodic structure resembling grid patterns compressed into a one-dimensional space.

Anna
There's also evidence from people navigating a conceptual space. Participants could change the leg and neck lengths of bird silhouettes and were asked to reach particular bird configurations. While their brain activity was measured with functional MRI, researchers found hexagonal symmetry in entorhinal activity as participants mentally moved through this space.

Michael
That symmetry is consistent with the kind of code associated with grid cells. Taken together, these examples suggest that the hippocampus and entorhinal cortex may represent multiple dimensions and modalities—not just where you are in a room, but also where you are in an abstract space of sounds or bird features.

Anna
How could similar neural machinery work across such different tasks? One useful mathematical language is graph theory. A graph has vertices, also called nodes, and edges connecting pairs of nodes. The nodes can stand for almost any entities, and the edges can stand for the relationships between them.

Michael
For example, a two-dimensional room can be represented by location nodes connected to their neighboring locations. A family can be represented by a tree of people connected through relationships such as parent and sibling. The content changes, but in both cases we can describe the world in terms of entities and how they are related.

Anna
To use a graph effectively, though, you need to know where you are on it. In physical space, one way to keep track is path integration: using self-motion information, such as movement speed and direction, to accumulate movement vectors and update your position.

Michael
The familiar example is walking north, then west, then south, then east, and ending up where you started. Many species—including insects, birds, rodents, and humans—can path integrate. Networks of grid cells are one proposed way the brain can support this, and their operation can be modeled using attractor dynamics.

Anna
For an abstract graph, path integration needs a more general interpretation. You need rules for composing relationships. For instance, in a family tree, going from someone to their sibling and then to that sibling's parent is equivalent to going to their parent. The specific relations differ, but you can still keep track of a path through the structure.

Michael
That same relational structure helps explain generalization. Navigating among bird configurations can have the same underlying pattern of connections as moving around a room, even though the sensory cues are entirely different. And a tree-like representation learned for families can be reused for taxonomy by relabeling what the nodes and relationships mean.

Anna
So graphs provide a way to unify physical and abstract spaces. If the hippocampal-entorhinal system can build relational graphs and keep track of paths through them, it could reuse similar operations across different domains. But that raises a key question: how does the brain decide which variables and relationships belong in the map?

Michael
To explore that, let's introduce latent spaces. A latent variable or space isn't directly visible in the immediate sensory input; it has to be inferred. Consider a mouse doing an alternation task in a T-shaped maze. At each junction it turns left or right, and the reward alternates sides from one trial to the next.

Anna
If the mouse received a reward after turning left on the previous trial, it should turn right on the next one, and vice versa. Physical location is important—the mouse needs to know where it is in the maze—but location alone doesn't tell it which turn will now be rewarded. It also needs to remember the direction of its previous turn.

Michael
That means the task-relevant map has at least two components: the animal's physical position in the maze and its position in an abstract space that distinguishes left-turn trials from right-turn trials. When the mouse has not yet learned the alternation rule, its map might represent only the physical maze. Learning the rule effectively adds another dimension.

Anna
You can picture the expanded map as two copies of the maze: one for left-turn trials and one for right-turn trials. The same physical location can now correspond to different states depending on which kind of trial the mouse is in. Neurons whose firing depends both on physical location and on the animal's upcoming turn are called splitter cells.

Michael
Splitter cells are important because they seem to encode location in that expanded, task-relevant map. The left-versus-right trial dimension is latent: there isn't a sensory signal that simply announces which direction to turn. The mouse has to infer its state from what happened on earlier trials.

Anna
A second example comes from a virtual-reality tower accumulation task. As an animal runs along a track, it sees towers on both sides. At the end, it chooses left or right, and the reward is on the side with the greater number of towers. If there are nine towers on the left and seven on the right, the evidence favors a left turn.

Michael
The important variable isn't simply a particular tower. It's the accumulated evidence—such as the difference between the counts on the two sides. That forms a latent evidence space, and hippocampal neurons can form place-field-like responses in that space. The task shows how a cognitive map can track an abstract quantity derived from a sequence of sensory events.

Anna
So latent spaces let the map include things the animal can't read off from one moment's input, such as the previous choice or accumulated evidence. Those variables matter because they change what action is appropriate. The brain has to build them from sequences of observations.

Michael
Now let's connect this back to generalization and introduce factorization. A structured representation can be separated from the particular sensory details of a situation. For instance, the sequence north, west, south, east closes a loop no matter whether you're walking around your room or through a local park.

Anna
An example of factorization is predicting how much you'll enjoy a car when both its model and its color can vary. Let your enjoyment, which we'll call gamma, depend on those two variables. You could learn about color preferences by trying one model in different colors, and learn about model preferences by trying different models in the same color.

Michael
If your color preference is independent of the model—for example, if you prefer blue to yellow regardless of which car you're driving—then the joint distribution of enjoyment can be factored into two one-dimensional marginal distributions. Knowing those two factors lets you predict enjoyment for combinations you haven't tried.

Anna
That saves information. Instead of storing your experience with every possible model-and-color combination, you can store the two simpler factors. The same idea is useful for the brain, where a cognitive map may have many dimensions and storing every possible combination would be demanding.

Michael
In this account, experience has a structural component and a sensory component. The structural component is your position in the relational graph; the sensory component describes the particular outside-world setting. Keeping those components distinct can help the brain reuse structure across different sensory contexts.

Anna
The entorhinal cortex may provide two streams that contribute to this arrangement. The medial entorhinal cortex has prominent grid-cell patterns that remain relatively stable across environments, supplying information about a structural coordinate system. The lateral entorhinal area has less prominent grid patterns and is described as providing more purely sensory information.

Michael
The hippocampus then combines those streams into a conjunctive representation: it embeds particular sensory information into the structural framework. One sign of this combination is hippocampal remapping. Place cells can change their firing patterns across sensory contexts—for instance, a cell that responded in the middle of a room may shift its preferred location or stop firing after the room's sensory conditions are changed.

Anna
That contrasts with grid cells, which are relatively stable under contextual changes and are more concerned with spatial structure. The distinction helps illustrate how a stable structural basis and context-sensitive sensory information can be represented separately and then brought together.

Michael
Let's pull the argument together. Behavioral results, from Tolman's maze to tasks involving sounds and abstract features, suggest that the brain can organize knowledge into reusable structures. The hippocampal formation contains cell types that represent locations, directions, boundaries, objects, and more, while evidence from non-spatial tasks suggests that this organization isn't limited to physical space.

Anna
A relational graph offers a general way to describe those structures, and path integration helps an animal keep track of its position within them. Latent spaces let the map include inferred variables that matter for behavior, while factorization helps separate reusable structure from the sensory details of a particular experience.

Michael
That reuse is one reason cognitive maps could support flexible behavior. A rule like “if A is bigger than B, and B is bigger than C, then A is bigger than C” can apply across many settings. Rather than learning that relational structure anew for every situation, the brain may be able to reuse it.

Anna
And when a task requires a particular context, the hippocampus can combine the structural backbone with sensory information to represent the relevant situation—whether that's navigating a maze, responding to sound frequencies, judging accumulated evidence, or adapting your lasagna routine to a friend's kitchen.

Michael
This is an active area of research, and there isn't yet a single unified interpretation of all the findings. The next part of the series will take up the computational side, including the Tolman-Eichenbaum machine and the question of how a system might learn and generalize over latent spaces.

Ask anything
We've read this whole study set, so questions about it get the best answers.