- Figure: cortical columns; the red column holds the unit we record. Green neighbors excite it (near surround); blue units farther away inhibit it (far surround). Both are tuned: they act most between units that prefer similar features - Equations: H(1) is the input stage, H(2) the output stage; X is the feedforward drive from the image; [·]+ is a ReLU; η, ε, τ, σ are time constants - Blue term: inhibition from the far surround, W_I convolved with the output stage. It enters multiplied by (αH(1) + μ): the more active the unit, the stronger the inhibition. That is divisive (shunting) inhibition - Green term: excitation from the near surround, W_E convolved with the input stage, added - The kernels W_E and W_I were set from anatomy in Mély 2018; one set of parameters reproduces the illusions on the next slide - Discretize the equations in time (Euler steps) and they become a recurrent network: the hGRU, which learns W_E, W_I and adds gates like the GRU from Thursday - Linsley, D., Kim, J., Veerabadran, V., Windolf, C., & Serre, T. (2018). Learning long-range spatial dependencies with horizontal gated recurrent units. NeurIPS (Serre lab)
- With those connections, one circuit reproduces a family of illusions - Figure: three columns of contextual illusions. Tilt illusion: a center disc of vertical stripes inside a ring tilted slightly (top) or near horizontal (bottom). Color induction: an identical gray center on a pink ring (top) and a gray ring (bottom). Ring induction: concentric green, purple and orange rings around a white center, in two versions - The two centers in each column are physically identical; the surround changes what you see - Tilt illusion: repulsion (perceived tilt away from the surround) at small angle differences and attraction at large ones. The model reproduces this transition - The model's prediction that stimulating one excitatory neuron excites close neighbors and suppresses more distant, similarly tuned ones was later found consistent with single-neuron stimulation in mouse V1 (Chettih & Harvey 2019) - Next: a task that demands grouping - Mély, D. A., Linsley, D., & Serre, T. (2018). Complementary surrounds explain diverse contextual phenomena across visual modalities. Psychological Review (Serre lab)
- A visual task whose answer must pass across the image - Figure: two Pathfinder images, white dashed curves on black, each with two white dots. In the left image one long dashed path joins the two dots; in the right image the dots sit on different paths - Each unit in a convolutional layer sees only a small patch of the image, while the path can wander anywhere. Horizontal connections between neighboring units can pass a signal from dash to dash, one step at a time, until it reaches the other dot - hGRU stands for horizontal gated recurrent unit: the gated unit from Thursday, with its units laid out over the image and wired to their neighbors. The Serre lab introduced it for this task - Transformers also struggle: on the Long Range Arena benchmark (Tay et al. 2021), which feeds Pathfinder images one pixel at a time, the models tested reach about 70% on the standard version and stay at chance on its longest version - Linsley, D., Kim, J., Veerabadran, V., Windolf, C., & Serre, T. (2018). Learning long-range spatial dependencies with horizontal gated-recurrent units. NeurIPS
- If grouping is what the circuit is for, a grouping task should need it - Figure: accuracy on the longest Pathfinder paths (0.5 to 1) against the number of free parameters relative to the hGRU, on a log axis from 1 to 1000. Each dot is one network. The hGRU reaches 0.99 at 1 times. Feedforward networks with 1, 3 or 5 layers stay between 0.5 and 0.93 at 1.4 to 9.5 times. FCN, U-Net, SegNet and ResNet-152 reach 0.98 to 0.99 at about 230 to 900 times the parameters; ResNet-50 and ResNet-18 stay near chance - FCN, U-Net and SegNet are large networks built to label every pixel; they succeed at hundreds of times the hGRU's size. "Multiplicative lesion" is an hGRU with one interaction term removed; it still solves the task - In the paper's other panels the hGRU stays near 99% as paths grow from 6 to 14 dashes, while a version allowed only 4 time steps falls to near chance: the loop needs time to run - Linsley, D., Kim, J., Veerabadran, V., Windolf, C., & Serre, T. (2018). Learning long-range spatial dependencies with horizontal gated-recurrent units. NeurIPS (Serre lab)
- Long Range Arena feeds the Pathfinder image to the model one pixel at a time, as a long sequence; Path-X is the 128 x 128 version (16,384 steps) - On standard Pathfinder the transformers reach 66 to 77%; on Path-X every one fails to learn the task (chance) - Pathfinder comes from our lab (Linsley et al. 2018) - Gu et al. (2022, S4) were first to solve Path-X; Amos et al. (2024): with self-supervised pretraining on the task data, ordinary transformers close most of the gap
- If grouping takes steps, farther points should take longer, for people and for the model - Figure: left, an outline of two animals with a fixation dot (Fix), probes A, B, C on the fixated animal at increasing distance along its body, and probes D on the other animal. Middle, humans: reaction time rises from about 708 ms at A to 741 at B, 761 at C and 767 at D. Right, model: reaction time in recurrent steps rises in the same order, about 2.5 at A, 5.5 at B, 10 at C and 17 at D - Human data are from Experiment 2 of Jeurissen et al. A "no" answer for D needs the whole fixated object filled in first - The model's reaction time is the number of recurrent steps it stays uncertain, defined two slides later. The axes are scaled independently and the model times are in steps, not milliseconds - Jeurissen, D., Self, M. W., & Roelfsema, P. R. (2016). Serial grouping of 2D-image regions with object-based attention in humans. eLife - Goetschalckx, L., Govindarajan, L. N., Karkada Ashok, A., Ahuja, A., Sheinberg, D. L., & Serre, T. (2023). Computing a human-like reaction time metric from stable recurrent vision models. NeurIPS (Serre lab)
- Figure: Pooresmaeili & Roelfsema (2014), Fig. 4A, receptive fields far along the curve. Left: large gap between the curves. Right: small gap. Same display in the receptive field in both traces of a panel; red when that curve is the target, blue when it is the distractor - The first ~100 ms are identical: the feedforward response sees the same pixels. The enhancement comes later, and later still when the distractor is close - The monkey was rewarded for an eye movement to the end of the curve connected to the fixation point - Pooresmaeili, A., & Roelfsema, P. R. (2014). A growth-cone model for the spread of object-based attention during contour grouping. Current Biology - A step is not a fixed distance: it is one shift of a circle that grows as large as possible without touching the other curve. Far from the distractor, larger receptive fields can join in, so one step covers more of the curve - In raw distance along the curve, onset barely follows (R² = 4% in the paper); in growth-cone steps it does (R² = 27%, slope 50 ms per step)
- Which connections matter? Remove each kind and compare - Figure, from Kim et al. (2020), Figs. 4a and 5a. Top, Pathfinder: example images and accuracy for four circuits against human accuracy (about 96%). Horizontal plus top-down and horizontal only reach about 96%; top-down only about 63%; no recurrence 50%. Bottom, cABC, two marked points on the same letter or not: horizontal plus top-down about 88%, top-down only about 87%, horizontal only about 54%, no recurrence 50%, humans about 84%. Hardest level of each task; dotted line: chance - In Pathfinder, good continuation links the dashes. In cABC the shape of each letter has to guide grouping, which takes information from a higher stage about what the object is - Bars are best validation accuracy of 20 runs. This pattern is a double dissociation: each circuit succeeds where the other fails - Replotted from the original data for Serre (2027), From scaling laws to neural laws: AI and the search for a theory of vision, Annual Review of Vision Science (in press) - Kim, J., Linsley, D., Thakkar, K., & Serre, T. (2020). Disentangling neural mechanisms for perceptual grouping. ICLR (Serre lab)
- The same idea at the scale of natural photographs - Four animations (a baby at a laptop, soccer players, two dancers, two dogs). Each color marks one object the network separates; each frame is one recurrent step. Activity starts in a few places and spreads until each object is filled - Panoptic segmentation labels every pixel by category and separates individual objects - The recurrent circuit adds horizontal connections to a feedforward network, with fewer parameters, and the spreading is learned from the task. Trained on short contours, the same circuits also segmented longer ones better than feedforward and unconstrained recurrent controls - Linsley, D., Karkada Ashok, A., Govindarajan, L. N., Liu, R., & Serre, T. (2020). Stable and expressive recurrent vision models. NeurIPS (Serre lab)
- Why spend a lecture on RNNs if transformers won? The reasons they lost are engineering reasons - Slow to train: in the code slide, the for loop runs one step after another. A transformer's positions do not depend on each other within a layer, so a GPU computes them all together - Figure, measured on a laptop GPU for this lecture: one training step (forward, loss, backward) of one layer, width 128, batch 8. Red: a GRU stepped in a Python loop, as in the PyTorch code of last lecture; time grows in proportion to the length. Blue: one causal transformer layer; every position at once, but the attention cost grows with the square of the length, visible past 1,000 steps. Green: a linear recurrence h_t = a_t h_(t-1) + b_t computed for all steps at once (the minGRU and Mamba trick, also used by our sCSSM). Script: figures/make_L19_rnn_runtime.py - Long memories: the vanishing-gradient slide. Gates (LSTM, GRU) help but do not remove the problem over thousands of steps - Fixed-size state: a transformer keeps every earlier word, so it can copy or look up any of them exactly
- Figure, from our lab's sCSSM work (in submission): accuracy on Pathfinder (path length 14) against training step time (left) and number of parameters (right). Each dot is one trained model; large dots mark the best of each family. Human accuracy is about 89% - The sCSSM family (blue) forms the upper front, up to about 91%. Mamba-2 reaches about 84%. Transformers stay at 50 to 55%. Removing the recurrence over steps (NoTime) or the spatial kernels (NoSpace) drops sCSSM to 57 to 63% - Long Range Arena (Tay et al., 2021): a benchmark for long-range reasoning in which the hardest task, Path-X, is the full-size Pathfinder. Every transformer variant failed to learn it: chance - Next slide: the same model on PathTracker, Pathfinder in time
- A task where the state must be carried over time and space together - Left: PathTracker, a dot moves among 15 identical distractor dots for 32 frames from a red start marker; does it end on the blue goal marker? No single frame holds the answer, so it has to be in the state. It is Pathfinder in time - Right, two scatter plots of accuracy (50 to 100%): against training step time (log scale) and against number of parameters (log scale). Each dot is one trained model; human accuracy is 90% - The sCSSM models form an upper front near 80 to 85%; Mamba-2, Gated DeltaNet and ConvS5 reach about 70%; transformers and S4ND stay near 50%, as do the sCSSM versions without the temporal recurrence (NoTime) or without spatial kernels (NoSpace) - Linsley, D., Malik, G., Kim, J., Govindarajan, L. N., Mingolla, E., & Serre, T. (2021). Tracking without re-recognition in humans and machines. NeurIPS (Serre lab) - Transformers on Pathfinder: in the Long Range Arena benchmark (Tay et al. 2021), which feeds Pathfinder images one pixel at a time, every transformer tested stays at chance on the longest version (Path-X) - sCSSM: Linsley, Dhimoïla, Karkada Ashok, Kim & Serre, in submission (Serre lab)
- Themes 1 to 3: describing and learning representations; the first part of today showed recurrence grouping an image step by step over space - The rest of today: two of our lab's tasks where the representation has to be manipulated, not only read out: run the ball forward in time, take another person's viewpoint - Both need a simulation: steps over an internal model. A model you can run forward, and act on, is what AI calls a world model
- Grouping took steps: the network passes information along the curve, one neighborhood per step - Here too you answer before the ball moves: you run the fall forward, step by step, in your head - Today: what kind of model of the world makes that possible, whether networks and video generators have one, and where the lab's own work fits
- Six of the boards used in the study. Planks are placed at random; the ball always starts at the top - A trial: fixation point, board appears, the monkey reports the catcher, then the ball falls and lands - Human judgments of this kind are well fit by a noisy physics engine run in the head (Battaglia, Hamrick & Tenenbaum, PNAS 2013) - The training curves are in the paper (Fig. 2)
- A: a standard motion localizer marks the motion-sensitive areas. B: watching the ball fall. C: imagining the fall with the ball hidden. The same areas light up in B and C - Evidence for forward models in cortex, next to the feedforward classification of the earlier lectures - Fischer et al. (2016): the regions selective for physical inference overlap the multiple-demand system
- Rows: the board with the ball's start position varied; the network's hidden state; the path read out of that state (blue) against the path a physics simulation gives (red) - The readout is trained after the network, on its states - Unrolling a recurrent state is running a world model forward
- Chance is 50%: two baskets - The CNN versus RNN comparison is Fig. 4 of Ahuja et al. (2024) - Next: taking someone else's view also needs a simulation. Can networks do it?
- Same logic as grouping time earlier today: more steps to settle, a slower answer - Goetschalckx, Govindarajan, Karkada Ashok, Ahuja, Sheinberg & Serre (2023), Computing a human-like reaction time metric from stable recurrent vision models (Serre lab)
- Same logic as grouping time earlier today: more steps to settle, a slower answer - Settling time: the network reports, at each time step, how sure it is of its answer; adding up its uncertainty over the steps gives one number per board - Each dot is one board: people answer more slowly on boards that keep the model unsure longer
- Planko asked what happens next in a scene; perspective taking asks what the scene looks like from somewhere else - Figure: ME in front of a tree, THEM to the side. Level 1: from their position the bag behind the tree is not visible. Level 2: from their position the flower is on the right of the tree - Piaget and Inhelder's three-mountain task (1956) started the field: young children described their own view when asked for someone else's - Flavell and colleagues separated Level 1 (whether an object is visible to someone) from Level 2 (how it appears to them); Level 1 comes earlier in development - Wang et al. (2026): vision-language models pass theory-of-mind and mental-rotation controls on their own and fail when the two must be combined; in about three quarters of errors they report the camera's own view (egocentric bias) - The 3D Perception Challenge next: "can the green camera see the red ball?" is a Level 1 question - Flavell, J. H., Everett, B. A., Croft, K., & Flavell, E. R. (1981). Young children's knowledge about visual perception. Developmental Psychology. Wang, M., et al. (2026). Egocentric bias in vision-language models. CogSci
- Each image has a green camera (the observer) and a red ball; the same image gets both questions - In the first laptop image the camera is farther away and sees the ball; in the second it is closer and cannot see it - Depth is the 3D layout you see; perspective taking is what someone else would see from where they stand - The challenge also has VPT-Strategy, a version that blocks shortcut strategies - The marker has a thin white outline for legibility; the images are otherwise unchanged
- Each dot is a vision model; x is its ImageNet accuracy; depth order improves with ImageNet accuracy (rho = 0.65) - Vision-language models were prompted with 20 labeled examples before each test image - Humans: 75% on depth order, 87% on VPT-basic - The models fail at manipulation - Fine-tuning on VPT-basic gets close to people, and falls back to chance on VPT-Strategy - Given an explicit mental-imagery step, vision-language models solve it (Lee et al., ICCV 2025, arXiv 2504.17207) - The stimuli and code are released, so the benchmark can be reused in a project
- Task: an avatar sits at a table at some angle from your own viewpoint, and you judge which side an object is on from the avatar's position - Reaction time rises from about 750 ms at 40 degrees to about a second at 160, as if you rotate yourself into position - With the body oriented congruently with the rotation people are faster - Perspective taking looks like a simulation of self-motion - Reaction times on the sketch are the mean of the two posture conditions, digitized from Fig. 8A (Experiment 4)
- Left image: the camera's view of the room with the avatar; right image: the same scene through the avatar's eyes - n = 800 scenes. Human's view vs camera view: overall 98.2% vs 77.8%; left/right 99.5% vs 59.5%; front/behind 97.0% vs 96.0% - Tested in October 2026 on scenes the model had never seen in training - A new frontier model arrives every few months; the question is whether the manipulation step is solved - Glass half full, half empty: some perspective-taking judgments are starting to work in the newest models, not all; the one that needs the scene mentally turned (left versus right) still fails often
- Planko: the feedforward network represents the board but cannot run the fall; the recurrent network settles over steps, and its settling time follows people's reaction times - 3D-PC: models read depth off the image, but fail when they must take another viewpoint; people mentally move to that viewpoint - This is the motivation for world models: a learned simulator you can run forward
- Frames from an agent moving through one of the lab's simulated rooms (Alekh Karkada Ashok, ongoing work) - A collaborative robot must take a person's point of view: hand over a tool they can reach, not hide it where they cannot see - Chain the predictions to reach another viewpoint, then read off what is visible from there - The equation is the transition map of the first slides, with a view as the state and a as the action - The failure on the previous slides fits a missing manipulation step
- Callback to the GPT lectures: one objective, predict the next token, and a lot of structure comes for free - In vision the token becomes a frame (or a patch of a frame, or a latent summary of it) - To predict the next frame well, a model has to capture how objects move and interact: physics, occlusion, viewpoint - The action is what turns a predictor into something you can plan with: imagine "if I do this, what will I see?"
- A world model is a learned simulator: state in, action in, predicted next state out - $\mathbf{h}$ is the hidden state of the recurrent-networks lecture; the action is $\mathbf{a}$ here because bold $\mathbf{u}$ was the gate of the GRU - Forward models are a classic idea in motor control: an efference copy (a copy of the motor command) lets the brain predict the consequences of its own movement - Model-based reinforcement learning plans with a learned model of the environment; model-free learning only learns which actions paid off - JEPA stands for joint-embedding predictive architecture (LeCun 2022): the prediction error is computed in a learned feature space
- Four clips, no details - Genie 3: a world model generates the next frames from the keys a person presses, in real time; the scenery stays consistent when you come back. Announced as a blog post, no paper - Sora 2: text to video with sound; a system card, no paper - GAIA-2: generates driving scenarios (weather, traffic, cut-ins) to train and test self-driving cars - Dreamer 4: learns from offline Minecraft video, then trains its agent entirely inside the world model and collects diamonds - Physics-IQ (Motamed et al. 2025) found that video generators that look real often get physics wrong
- Same idea as Planko and perspective taking: simulate before you act - The predictor works in a learned feature space (JEPA), not in pixels. Pretrained on internet video, then about 62 hours of unlabeled robot video from the Droid dataset; one fixed side camera (exocentric) sees the arm, so the robot sees the outcome of its own actions - Planning searches over action sequences (cross-entropy method), executes only the first action, observes, and replans (model-predictive control) - Meta reports 65 to 80% success on pick-and-place in new environments, from goal images - Other robot systems (Gemini Robotics, Physical Intelligence) mostly map images and instructions straight to actions
- The agent's own view, early in training, so it wanders back and forth - An intrinsic reward is a reward the agent gives itself, for example for what it has just learned - Open question, and project-sized: which intrinsic reward gives the most useful world model?
- A world model is a transition map: state and action in, next state out; an agent can imagine and plan with it - Brains simulate: monkeys solve Planko with motion areas engaged, and recurrent networks, not feedforward ones, learn the same strategy - Current AI breaks on perspective taking
- Disclosure means saying what you asked for, what you kept, what you rejected and why - No project deliverable is due over Thanksgiving recess
- Harmonization code and ClickMe maps: https://serre-lab.github.io/Harmonization - The THINGS images may not be redistributed, so the bundle comes without them; ask the teaching staff for the bundle and fetch the images from OSF - Sandrone (2024) reviews digital twins in neuroscience, models fitted to one brain's data - Open questions on today's slides (Planko-style prediction in video models, the predictive-objective test) are project-sized
- Hafner et al. builds an agent in a learned simulator; Motamed, Bordes, Garrido and Vafa et al. ask whether prediction produces a model - Jensen et al. show an RNN of the kind built in the recurrence lecture whose imagined rollouts match rat hippocampal replay - Further world-model reading: Micheli, Alonso & Fleuret (ICLR 2023), a transformer world model; Carvalho et al. (Neural Comput 2024), predictive representations - Mineault et al. argue that AI's uneven profile comes from brain functions no benchmark measures - Two essays in The Transmitter are a good entry point before a paper: Brunton & Tuthill (2025) on embodiment, Zador (2024) on what the brain can teach artificial networks
- Submitted on Canvas (Minute papers → Minute Paper 20); credit for a thoughtful attempt