mlsanityData to 7 Oct 2026

Toward a mechanistic understanding of inference in visual cortex and diffusion models

arXiv 2607.15693 ↗First posted 17 Jul 2026q-bio.NC cs.AIcited by 0

On the map: Diffusion models → Diffusion foundations and sampling

Abstract (arXiv)

We describe a model of perceptual inference in primary visual cortex (V1) equivalent to a minimal diffusion model whose function can be readily understood from its parameters. The model is based on sparse coding with a non-factorial prior over latent variables in the form of an unconstrained, pairwise interaction matrix, extending standard sparse coding inference to a general recurrent dynamical system. We efficiently train these recurrent dynamics using a denoising score-matching objective and implicit differentiation. After training on natural images, the learned interaction matrix mirrors the structure of horizontal connections in superficial layers of V1 that link neurons of similar orientation tuning. This model exhibits exceptionally good denoising performance, restoring image features such as extended contours amid extreme visual ambiguity, nearly matching the behavior of standard, black-box diffusion architectures in generalization regime. Owing to the model's simplicity, the network's Jacobian can be decomposed directly in terms of the interaction matrix between latent variables, revealing mechanistically how the recurrent dynamics assign high probability over a continuous family of natural structural deformations. Intriguingly, within this circuit, a large fraction of latent variables learn to disconnect from visual input altogether, essentially forming a hierarchical representation that appears to enforce global consistency among image features. Together, the model and results bridge two distinct domains: for neuroscience, it generates concrete, testable hypotheses regarding functional connectivity in recurrent neural circuits during perceptual inference tasks; for machine learning, it elucidates the internal mechanisms learned by diffusion models that allow them to generate infinitely many novel images from a finite training set.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 26 of its 80 references that are in the map. First posted on arXiv 17 Jul 2026.

Builds on

26 of 80 references.

Closest ancestors · 10

Same direction, newest first

  1. 2026Diffusion Model's Generalization Can Be Characterized by Inductive Biases toward a Data-Dependent Ridge Manifold5 Feb
  2. 2024Towards a Mechanistic Explanation of Diffusion Model Generalization28 Nov
  3. 2024A Simple Early Exiting Framework for Accelerated Sampling in Diffusion Models12 Aug
  4. 2024Do Diffusion Models Learn Semantically Meaningful and Efficient Representations?5 Feb
  5. 2024Fixed Point Diffusion Models16 Jan
  6. 2023Generalization in diffusion models arises from geometry-adaptive harmonic representations4 Oct
  7. 2022Elucidating the Design Space of Diffusion-Based Generative Models1 Jun
  8. 2021Diffusion Models Beat GANs on Image Synthesis11 May
  9. 2020Score-Based Generative Modeling through Stochastic Differential Equations26 Nov
  10. 2020Denoising Diffusion Probabilistic Models19 Jun

Other references · 16

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  3. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  4. 2013Visualizing and Understanding Convolutional Networkscited by 2,278
  5. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  6. 2019Deep Equilibrium Modelscited by 603
  7. 2025Hierarchical Reasoning Modelcited by 167
  8. 2019Implicit Deep Learningcited by 124
  9. 2024An analytic theory of creativity in convolutional diffusion modelscited by 103
  10. 2021JFB: Jacobian-Free Backpropagation for Implicit Networkscited by 84
  11. 2017Residual Connections Encourage Iterative Inferencecited by 74
  12. 2021On Training Implicit Modelscited by 73
4 more
  1. 2019Neural Empirical Bayescited by 46
  2. 2018The Sparse Manifold Transformcited by 36
  3. 2022Bag of Image Patch Embedding Behind the Success of Self-Supervised Learningcited by 9
  4. 2020Effect of top-down connections in Hierarchical Sparse Codingcited by 6

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2022Seeing Beyond the Brain: Conditional Diffusion Model with Sparse Masked Modeling for Vision Decoding
  2. 2024Learnable Sparsity for Vision Generative Models
  3. 2026Probing Diffusion Denoising Dynamics for Contrastive Representation Learning
  4. 2025Uncovering Semantic Selectivity of Latent Groups in Higher Visual Cortex with Mutual Information-Guided Diffusion
  5. 2025CoreMatching: A Co-adaptive Sparse Inference Framework with Token and Neuron Pruning for Comprehensive Acceleration of Vision-Language Models
  6. 2024Amortizing intractable inference in diffusion models for vision, language, and control
  7. 2024What Matters When Repurposing Diffusion Models for General Dense Perception Tasks?
  8. 2024Diff-2-in-1: Bridging Generation and Dense Perception with Diffusion Models