Manuscript Offprint

arXiv:2610.07962

ReGraph: A Computational Account of Emergent Generalization in the "what" and "where" Dual Visual Streams

Hyewon Kang, Jungmin Lee, Ilgyu Lee, Seok-Jun Hong

ABSTRACT

Where generalization capacity—the ability to extract context-invariant relational structures—first emerges remains a central question in AI and neuroscience. In the brain, the foundation for this capacity lies upstream of the hippocampus, within the entorhinal cortex, where parallel pathways dissociate relational structure in the medial entorhinal cortex (MEC) from sensory content in the lateral entorhinal cortex (LEC). However, as Eichenbaum argued, this structure—content factorization likely originates earlier, driven by the segregation of the dorsal ('where') and ventral ('what') visual streams. Supporting this, grid-like firing patterns—a defining cellular signature of MEC context-invariant representations—also appear in preceding neocortical regions (e.g., retrosplenial cortex) along the dorsal pathway. While these findings suggest that relational structures do not arise de novo in the hippocampal formation, how such representations are computationally formed along upstream pathways remains unknown. To investigate this in silico, we developed ReGraph, a dual visual-stream model implemented on a recurrent graph architecture with several biological inductive biases, including retina-driven stream-specialized encoding, dorsal-to-ventral modulation, and dynamic lateral connectivity. Trained on the action benchmark Something-Something V2, ReGraph revealed a pathway-specific emergence of relational mapping: context-invariant codes and grid-like spatial bases uniquely co-emerged along the extended dorsal stream. In contrast, the absence of these representations in single-stream models, unmodulated dual-stream variants, and standard action-recognition baselines (e.g., VideoMAE, SlowFast) implies that our selected inductive biases are indeed critical prerequisites for the emergence of relational structures. Crucially, the grid-like bases turned out not to be mere byproducts of architectural design, as our post-hoc analyses demonstrated that these bases could serve as reusable routing templates for information processing via lateral connectivity. Together, our findings provide a computational account suggesting that generalization may not be a faculty that emerges abruptly within a dedicated region, but a property that already takes shape as sensory information is parsed into factorized streams of hierarchical visual processing.

1 INTRODUCTION

A hallmark of human intelligence is the ability to generalize by extracting and reusing abstract task-relational structures transferable across new environments (Tenenbaum et al., 2011; Behrens et al., 2018). In neuroscience, this ability is often linked to the hippocampal formation, particularly the entorhinal cortex, where a profound functional dissociation emerges: the lateral entorhinal cortex

∗^{*}Corresponding author.

Figure

Figure 1: From retina to dual visual streams. Left: The retinal M/P dichotomy drives the dorsal and ventral pathways, each comprising primary and extended stages. Grid-like patterns in the extended dorsal pathway motivate a hypothesis that the precursor of relational structures may emerge along this pathway. The primary dorsal/ventral pathways preferentially encode spatiotemporal dynamics and object details, respectively. Right: Schematics of three connectivity principles defined in §2.2.

(LEC) encodes sensory-specific content (Knierim et al., 2014), while the medial entorhinal cortex (MEC) extracts generalizable relational structures, represented by grid cells with space-tessellating hexagonal firing patterns (Moser et al., 2008; Behrens et al., 2018).

This MEC/LEC factorization, however, does not originate within the entorhinal cortex. As Eichenbaum and colleagues have long argued, it inherits a deeper cortical segregation: two long-range streams—the ‘where’ (dorsal) and ‘what’ (ventral) pathways—that provide anatomically segregated inputs to MEC and LEC, respectively (Eichenbaum, 2007). The most prominent instantiation of this dichotomy is the “dual visual streams” (Kravitz et al., 2011; 2013). Indeed, the ventral pathway projects through V4, IT, and perirhinal cortex into LEC, whereas the dorsal pathway projects through MT, PPC, and postrhinal/parahippocampal cortex into MEC (Fig. 1) (Eichenbaum, 2007; Kravitz et al., 2011; 2013). While traditionally the role of the ventral pathway has been extensively studied in terms of hierarchical object recognition, the integrative computation the dorsal pathway performs en route to MEC, particularly along its high-order (parieto-medial) branch, remains poorly understood. This imbalance impedes a unified account of the dual visual streams, and leaves the origin of hippocampal generalization incompletely understood.

Notably, the root of this dichotomy can be traced back even to the retina level, where two functionally distinct ganglion-cell subtypes already establish the divergence: the Magnocellular (M) pathway conveys rapid signals of high temporal but low spatial resolution and feeds the dorsal stream, which specializes in spatiotemporal processing such as optical flow, depth, and saliency detection; conversely, the Parvocellular (P) pathway exhibits the opposite tradeoff (lower temporal but higher spatial resolution) and feeds the ventral stream, dedicated to recognizing sensory details. Given such extensive hierarchical depth of each stream, we hereafter divide this pathway into two segments (Fig. 1): the primary pathway (the retina to low order cortical areas) and the extended pathway (their continuation through higher-order associative cortices toward MEC/LEC).

Despite this anatomical continuity, so far the relational structures expressed in the entorhinal cortex—a core substrate for generalization, encoded by MEC grid cells—have largely been treated as a de-novo product of local hippocampal-entorhinal computation, without larger-scale brain involvement (Dordek et al., 2016; Stachenfeld et al., 2017; Sorscher et al., 2023). Recent findings, however, increasingly refine this view: grid-like firing patterns are observed in the upstream of MEC, including the retrosplenial cortex and posterior cingulate cortex (Doeller et al., 2010; Jacobs et al., 2013; Constantinescu et al., 2016), both along the dorsal (parieto-medial) pathway. This suggests that the relational structure instantiated by grid codes may not arise solely within MEC, but be progressively shaped along the dorsal pathway, with potential roots in the functional dichotomy of the

Figure

Figure 2: The ReGraph architecture. A. Input is tokenized into M/P-driven asymmetric views (Dorsal: high temporal/low spatial; Ventral: low temporal/high spatial) and processed via specialized pretrained networks for spatiotemporal process (depth, optical flow, saliency) and hierarchical object-oriented processing. B. Stacked layers model cortical hierarchies, with top-down modulation routing the dorsal signals to the ventral layers. C. Self-attention acts as a dynamic graph operator, followed by a GRU-based recurrent update to regulate temporal flow.

two visual streams. In other words, the two streams may co-emerge as a complementary factorization of visual processing, with the dorsal hierarchy progressively distilling relational structures from spatiotemporally organized M-pathway inputs, and the ventral hierarchy largely focusing on the representation of sensory-specific details from P-pathway inputs.

Here, we tested this hypothesis in silico with Recurrent Graph (ReGraph), a dual-stream model simulating two visual-processing stages (primary and extended; Fig. 2). The primary stage realizes the M/P-driven functional divergence through spatiotemporally asymmetric inputs, leveraging stream-specific pretrained networks: i) depth, optical flow, and saliency estimation in the dorsal stream, and ii) object-oriented processing in the ventral stream. The extended stage models their downstream pathways (routes to MEC/LEC) using architecturally homogeneous ReGraph layers that integrate representations via lateral and recurrent connectivities. We trained this model on the Something-Something V2 (SSV2) action-recognition dataset (Goyal et al., 2017), a task neither pathway can solve alone, requiring context-invariant spatiotemporal regularities transferable to unseen action samples. To quantify whether relational structures indeed progressively crystallize along the extended stream during this task, we introduced Relational Primitive Analysis (RPA), designed to i) evaluate the two essential primitives, context-invariance and gridness, and ii) calculate both across the extended dorsal and ventral stages layer by layer. Finally, we probed the functional relationship of the two primitives, revealing how grid-like bases mechanistically support context-invariant generalization.

Our contributions are five-fold: i) a dual-stream model jointly implementing the primary and extended visual pathways with parsimonious biological inductive biases, ii) demonstration of top-down dorsal-to-ventral feedback effects; iii) the RPA framework for quantifying layer-wise relational primitives; iv) simulation evidence that such biological biases collectively support the progressive emergence of grid-like bases alongside context-invariant codes in the extended dorsal stream; and v) ablation and reconstruction evidence that high-gridness bases in later dorsal layers support robust context-invariance and may serve as reusable routing templates for lateral connectivity. Together, these findings provide a mechanistic account suggesting that the computational basis for generalization may not be exclusively inherent in the hippocampal-entorhinal cortex, but rather emerge from the factorization of the dual visual streams.

References (38)

  • Understanding intermediate layers using linear classifier probes (opens arXiv in a new tab)
  • Gated multimodal units for information fusion (opens arXiv in a new tab)
  • The functional specialization of visual cortex emerges from training parallel pathways with self-supervised predictive learning
  • Nature, 557(7705):429–433, 2018
  • What is a cognitive map? organizing knowledge for flexible behavior
  • Is Space-Time Attention All You Need for Video Understanding?
  • End-to-end object detection with transformers
  • Emerging properties in self-supervised vision transformers
  • A dual-stream neural network explains the functional segregation of dorsal and ventral visual pathways in human brains
  • Organizing conceptual knowledge in humans with a gridlike code
  • A multilinear singular value decomposition
  • Evidence for grid cells in a human memory network
  • Extracting grid cell characteristics from place cell inputs using non-negative principal component analysis
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Unified image and video saliency modeling
  • Slowfast networks for video recognition
  • Neural message passing for quantum chemistry
  • something something
  • Modeling the ventral and dorsal cortical visual pathways using artificial neural networks
  • Nature neuroscience, 16(9):1188–1190, 2013
  • Adaptive mixtures of local experts
  • Semi-Supervised Classification with Graph Convolutional Networks
  • Functional correlates of the lateral and medial entorhinal cortex: objects, path integration and local–global reference frames
  • A new neural framework for visuospatial processing
  • The ventral visual pathway: an expanded neural framework for the processing of object quality
  • A role for the ‘magnocellular advantage’ in visual impairments in neurodevelopmental and psychiatric disorders
  • Place cells, grid cells, and the brain’s spatial representation system
  • Conjunctive representation of position, direction, and velocity in entorhinal cortex
  • Two-stream convolutional networks for action recognition in videos
  • A unified theory for the computational and mechanistic origins of grid cells
  • The hippocampus as a predictive map
  • Going deeper with convolutions
  • How to grow a mind: Statistics, structure, and abstraction
  • Videomae: Masked autoencoders are data-efficient learners for self-supervised video pre-training
  • Attention is all you need
  • Gmflow: Learning optical flow via global matching
  • Depth anything v2
  • A deep learning model of dorsal and ventral visual streams for dvsd