Manifolds and Modules: How Function Develops in a Neural Foundation Model

Johannes Bertram, Luciano Dyballa, T. Anderson Keller, Savik Kinger, Steven W. Zucker

TL;DR

Deep foundation models can accurately predict neural activity in the visual cortex, but how they perform these computations internally has remained a black box. By examining a state-of-the-art neural foundation model (FNN) through the lens of geometric decoding and encoding manifolds, this paper reveals that the model relies on non-biological mechanisms—including edge-padding artifacts and massive feature-map interpolation—to mimic the mouse visual system.

What Problem Does This Paper Address?

Large-scale deep networks trained on neural recordings (neural foundation models) achieve state-of-the-art accuracy in predicting brain responses to complex visual inputs. However, matching input-output behavior does not mean an artificial network processes information like a biological brain.

To determine whether these models are truly "brain-like," the authors treat a prominent mouse visual foundation model as an electrophysiologist would: evaluating how individual artificial neurons and populations encode parametric visual stimuli and how representational geometry evolves across model stages.

Methods

The authors analyze the pretrained Foundation Neural Network (FNN) across three core stages: a 10-layer 3D-convolutional feedforward encoder, an attention-gated convolutional LSTM recurrent module, and a mouse-specific linear-interpolated readout module.

They combine three analytical techniques:

  1. Neural Decoding Manifolds & Trajectories: Stimulus-averaged population activity is projected via PCA to assess stimulus separability. Temporal trajectories (tracing activity step-by-step) capture neural dynamics over time.
  2. Trajectory Tubularity Analysis: A novel quantitative framework measuring how trajectories form coherent "bundles," quantified by Tightness (radius around a bundle centerline) and Crossings (transverse intersections between trajectories).
  3. Neural Encoding Manifolds: A three-step geometric pipeline:
  4. Nonnegative Tensor Factorization (NTF) decomposes a 3D response tensor (neurons $\times$ stimuli $\times$ time) into low-rank components.
  5. Iterated Adaptive Neighborhoods (IAN) infers a data-adaptive similarity graph among neurons.
  6. Diffusion Maps embed the neurons into an intrinsic functional space based on stimulus selectivity and temporal dynamics.

Datasets

  • Model Training Data: FNN was pretrained on the large-scale MICrONS functional connectomics dataset (calcium imaging of mouse visual cortex during natural and artificial videos).
  • Probing Stimuli: A parametric visual battery consisting of 88 drifting square-wave gratings and optical flows (dots and oriented lines across 8 directions and multiple spatial frequencies/contrasts).
  • Biological Baselines: Experimental electrophysiology and two-photon calcium imaging recordings from mouse retina and primary visual cortex (V1) sourced from prior literature.

Key Insights and Ideas

  • The Feedforward Encoder Fails to Mirror the Retina: In biology, retinal ganglion cells display rich, stimulus-dependent temporal trajectories. In the FNN encoder, temporal dynamics are nearly static after visual onset. Worse, the encoder exhibits an unselective "intensity arm" driven purely by convolutional padding artifacts at image boundaries that leak into internal feature representations.
  • Recurrence Drives the Primary Computational Leap: The recurrent ConvLSTM module separates stimulus representations, discards the edge-padding artifacts via its input attention layer, and achieves the highest stimulus decodability across the entire network.
  • Readout "Fakes" Biological Diversity via Interpolation: Biological cell types exhibit continuous, structured variations. In contrast, the FNN readout manifold is fractured into discrete, disconnected clusters—each corresponding to an individual, rigid convolutional feature map. The model achieves biological prediction accuracy simply by taking linear combinations of these hundreds of artificial feature maps, rather than relying on biologically plausible network dynamics.

Key Results

  • Stimulus Decodability: Classification accuracy jumps dramatically from early encoder layers to the recurrent core before tapering at the output:
  • Encoder Layer 1: 59% (Logistic Regression), 41% (3-NN).
  • Encoder Layer 8: 74% (Logistic Regression), 61% (3-NN).
  • Recurrent Module: Reaches peak performance at 90% (Logistic Regression) and 73% (3-NN).
  • Final Output: Drops to 77% (Logistic Regression) as representations collapse to match target spike recordings.
  • Trajectory Complexity vs. Biology: While the recurrent module tightens trajectory bundles ($S_{\text{tight}} \approx 0.12$–$0.17$), it exhibits significantly fewer crossings ($S_{\text{cross}} \sim 10^{-7}$) than biological V1 ($S_{\text{cross}} \approx 4.06 \times 10^{-5}$; $p < 0.005$, Bonferroni-corrected), showing that FNN dynamics are substantially more monotonic and less complex than real cortex.

Limitations and Future Work

  • Single Model Architecture: The analysis is restricted to the FNN due to the scarcity of open-source, video-driven neural foundation models.
  • Stimulus Domain: While the parametric flow and grating battery exercises the full dynamic range of FNN activations (matching natural movie activations), naturalistic scene diversity remains to be tested under the same manifold framework.
  • Future Architecture Design: The authors propose building models that place recurrence immediately after a lightweight, retina-like frontend and constraining feature dimensionality to match known biological cell-type distributions.

Summary updated

BibTeX
@inproceedings{bertram2025manifolds,
  author = {Johannes Bertram and Luciano Dyballa and T. Anderson Keller and Savik Kinger and Steven W. Zucker},
  title = {{Manifolds and Modules: How Function Develops in a Neural Foundation Model}},
  booktitle = {DBM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=TGFf8e1qMH},
}
Figure