The5th Consulting
← Research
NeuroscienceDeep LearningNeural CodingBrain–Computer Interfaces

The Algorithmic Bridge: How Biological and Artificial Neural Networks Converge, Align, and Connect

Indrodip Ghosh
Consumer Behavior & AI Researcher · Human-Computer Interaction · University of California
· 19 min read
Indrodip Ghosh
We usually talk about brains and AI with a loose comparison. It is kind of like the brain, we say, and nobody means it too seriously. I want to argue that the comparison has quietly stopped being loose. Three findings pushed it over. AI trained only to do a task turns out to be the best predictor we have of real brain activity. Very different systems learn very similar inner patterns. And the way AI learns, which we thought was hopelessly artificial, has versions the brain could plausibly run too. This piece treats the brain-and-AI link the way a curious reader deserves. There is some math. I explain every piece in plain words.
Objective of this research
My goal was to test a claim I kept hearing, that brains and AI are basically the same thing, and see how literally the evidence lets me take it. So I worked through the ways we measure the match, the ways these systems learn, and the brain-reading research, looking for where the comparison is real and where it quietly breaks.
Independent research by Indrodip Ghosh. I am a self-taught researcher, and this is one entry in an ongoing journey to understand, in plain language, how AI actually works and where it is taking us. The questions, the investigation, and the conclusions are my own; where I build on published studies I name them, so you can check my work and learn alongside me.

1. Measuring the match

The whole thing rests on one hard question. How do you measure whether two systems have similar inner patterns, when they have different sizes, share no cells, and use no common map? Three tools do most of the work, and the differences between them matter.

The first tool asks the toughest version. Can a simple, straight-line map from the AI’s inner features predict the brain’s real activity to the same pictures? You fit that map and score how well it does on data it never saw.

Ŵ = argminW ‖ Y − Φ(S) W ‖²F + λ‖W‖²F ; score = corr( Ytest , Φ(Stest) Ŵ )
neural predictivity

In plain words: find the best simple map from the model to the brain, then see how well it predicts brain data it has not seen. This is the logic behind Yamins and DiCarlo’s 2014 result: the middle layers of a task-trained vision network are the best predictor we have of activity in the monkey visual brain. The map is kept simple on purpose, because a simple readout is something real biology could do too. So a good simple match is a hint that the model and the brain lay information out the same way.

The second tool (Kriegeskorte and colleagues, 2008) skips the map. For each system you ask: which pictures does it treat as similar, and which as different? Then you compare those similarity patterns across the two systems. It does not care about size or map, but it throws away which features carry the pattern.

The third tool, CKA (Kornblith and colleagues, 2019), is now the go-to for comparing two systems. The formula is:

CKA(X, Y) = ‖ YᵀX ‖²F ⁄ ( ‖ XᵀX ‖F · ‖ YᵀY ‖F )
linear CKA

In plain words: it gives a score from 0 to 1 for how alike two systems’ patterns are, ignoring things that should not matter, like rotating the picture, while still noticing real differences.

One warning runs under all of this. A good match is necessary, but not proof. Two systems can share a slice you can read easily and still differ in everything the probe cannot see. Treat these scores as clues about a shared format, checked across several tools, not as a verdict.

2. The learning puzzle

AI learns by a method called backpropagation (Rumelhart, Hinton and Williams, 1986). When it makes a mistake, the error is passed backward through the layers to fix each connection:

δl = ( (Wl+1)ᵀ δl+1 ) ⊙ σ′(zl) , ΔWl = −η · δl (al−1)ᵀ
backpropagation

In plain words: the error travels back through the exact same connections it came forward through, and nudges each one. That last bit is the problem for the brain. It needs the exact same wiring, used backward. Real brain cells do not seem to have that neat mirror. Francis Crick pointed this out in 1989, and for about twenty years it stood as near-proof that the brain does not learn this way. The last decade mostly dissolved that proof. That is the part I did not see coming.

3. How the brain might learn

The first surprise is called feedback alignment (Lillicrap and colleagues, 2016). It turns out the backward path does not need the exact same wiring. You can use random, fixed connections instead:

δl = ( Bl+1 δl+1 ) ⊙ σ′(zl) , B fixed, random
feedback alignment

In plain words: send the error back through random wiring, and the network still learns. What happens is quietly neat. The forward connections slowly shift to line up with the random ones, so the forward path teaches itself to make random feedback useful. The mirror problem just disappears. It is not perfect, and it struggles on very deep networks, which is why people built better versions after it.

A second idea, target propagation (Bengio; Lee and colleagues, 2015), sends back goals instead of error. Each layer just tries to hit a good target for itself. A global problem becomes a stack of small local ones.

The third, to my eye the most beautiful, is equilibrium propagation (Scellier and Bengio, 2017). The network settles into a resting state. Then you gently nudge the output toward the right answer and let it settle again. The fix for every connection falls out of the difference between the two resting states:

∂L ⁄ ∂θ = limβ→0 (1⁄β) ( ∂E⁄∂θ |nudged − ∂E⁄∂θ |free )
equilibrium propagation

In plain words: no separate backward network, no special error wires. The same cells that ran the thinking work out the fix from their own two resting states. That is exactly the kind of simple, local rule a real brain, or a brain-like chip, could actually run.

Backpropagationerror via Wᵀ (transpose)Feedback alignmenterror via random B (fixed)
Figure 1. The weight-transport problem and its dissolution. Backpropagation (left) needs the exact transpose Wᵀ for the backward pass, biologically implausible. Feedback alignment (right) replaces it with a fixed random matrix B; the forward weights learn to align with it, and the network still trains (Lillicrap et al., 2016).

4. The idea that ties it together

Here is the link I keep coming back to. Predictive coding, a mainstream brain theory since Rao and Ballard (1999), turns out to closely match backpropagation, using only local rules. Each level of the brain predicts the level below. Only the errors travel up. And the whole stack works to shrink one quantity:

F = Σl (1 ⁄ 2Σl) ‖ εl ‖² , εl = xl − Wl f(xl+1)
predictive-coding energy

In plain words: each level guesses what the level below is doing, and only the mismatch gets sent up. Both thinking and learning just shrink the total mismatch, and each update needs only what is right next to it:

l ∝ − ∂F⁄∂xl = −(εl ⁄ Σl) + f′(xl) ⊙ (Wl−1ᵀ εl−1 ⁄ Σl−1) ; ΔWl ∝ (εl ⁄ Σl) f(xl+1)ᵀ
local inference + learning
sensory inputlevel 1level 2level 3 (priors)← predictions (generative)prediction errors (residuals) →
Figure 2. Predictive coding. Each level sends predictions downward; only the residual prediction error ascends. Inference and learning both descend the same free-energy gradient with strictly local updates, which, at equilibrium, recover the backpropagation gradients (Rao & Ballard, 1999; Whittington & Bogacz, 2017).

Then Whittington and Bogacz (2017) proved the punchline. Once the error units settle, these local brain-style updates match the backpropagation updates of the matching AI, as closely as you like. Later work pushed the match further. Sit with what that means. The method we invented for machines and the method the brain may run for seeing are, in the right limit, the same method. They differ only in how the error signal is physically carried. Predictive coding ties the brain’s story to deep learning’s story.

5. The shape of thoughts

Thoughts are not really lists of numbers. They are shapes. A group of N brain cells responding to many things traces out a low-dimensional shape inside a big space, and it is the shape, not any single cell, that gets read by the rest of the brain. How many dimensions that shape really uses is captured here:

PR = ( Σi λi )² ⁄ Σi λi²
participation ratio

In plain words: a big population of cells usually uses far fewer real dimensions than it has cells. And motor and planning areas look more like a moving system, a path tracing across a shape, than a fixed lookup table (Gallego and colleagues, 2017). Trained AI networks solve tasks with the same kind of structure, and that structure keeps turning up across very different designs, which is exactly the kind of match you would hope to see. Honestly, it is a little eerie that it holds.

The theory that ties shape to function is manifold capacity (Chung, Lee and Sompolinsky, 2018). Ask how many separate object shapes a set of cells can cleanly tell apart:

αc ≈ α0( Reff , Deff ) , with αc → 2 as R → 0
manifold capacity
early: tangled, not separablelate: untangled, linearly separable
Figure 3. Representational geometry and untangling (Chung, Lee & Sompolinsky; DiCarlo & Cox). Early in a hierarchy, category manifolds are entangled and not linearly separable (left); a good hierarchy, biological or artificial, reshapes the geometry so a simple linear readout can separate them (right). The same transformation is measured in cortex and in deep networks.

In plain words: as information climbs a good system, brain or AI, the shapes for different objects shrink and untangle, and become easy to tell apart with a simple readout. That gives us a shared ruler. You can measure, in the same units, how the human visual brain and a vision network each reshape the same pictures, and they do it in strikingly similar ways.

6. Why they end up alike

So we keep bumping into the same finding. Task-trained AI looks like the brain, and separately trained AIs look like each other. That needs an explanation with nothing to do with shared wiring, because there is none.

Huh and colleagues (2024) call it the Platonic Representation idea. Systems trained on different data, with different goals, at enough scale, drift toward the same inner picture of how the world really works. The reason is pressure, not luck. A picture that has to handle many tasks, work on new cases, and stay steady is pushed toward the world’s true underlying parts. And there is far less room in that target than in the space of possible networks.

The math backs this up. Under certain training goals, systems provably recover the world’s true hidden factors, up to small, harmless changes, the exact kinds of changes our matching tools are built to see through. So if two systems each recover the same factors, our tools report a match. The matching and our ability to measure it are two sides of one fact. Evolution and machine training are just two different searches over the same landscape, set by one shared world. Ending up alike is what that looks like from outside.

7. Reading and writing the brain

This link is not only an explanation. It is a tool. Brain decoding pulls what a person is trying to do, move a hand, say a word, out of brain activity. The most you can ever pull out is set by how much information the activity carries:

I(k ; r) ≥ H(k) − H(k | k̂(r)) , Pe ≥ ( H(k | r) − 1 ) ⁄ log|K|
decodable information

In plain words: there is a hard ceiling on what any decoder can recover, set by the signal itself. The old decoders were simple filters. The state of the art is openly a brain-and-AI hybrid. Deep models clean up messy brain signals and read them as smooth paths. These are the systems behind the headlines. Willett and colleagues decoded attempted handwriting at about 90 characters a minute (2021) and attempted speech at roughly 60 to 70 words a minute (2023) from the motor brain, because deep models turn noisy activity into clean, structured paths.

The real headache is that the signal drifts. The cells you record shift from day to day and differ from person to person, so a decoder trained today quietly rots by tomorrow. The fix is to line up each new day’s signal with a stable inner shape and reuse the decoder. It is a matching problem:

Q = argminQᵀQ = I ‖ Znew Q − Zref ‖²F
latent alignment (Procrustes)

In plain words: rotate today’s signal until it lines up with a saved reference, and the decoder keeps working. Gallego and colleagues (2020) showed this inner shape holds across months, and even across people, which is what makes stable, reusable brain interfaces possible at all. Closing the loop, writing signal back in through the same shape, is the frontier. It is where brain reading and brain understanding finally become one job.

8. What would prove me wrong

A serious claim names how it could fail, so here are the ways this one could. The link gets weaker if the good match turns out to come mostly from the flexible map, not the model, so that even untrained networks predict the brain about as well. It gets weaker if bigger training makes systems less alike, not more. It gets weaker if the predictive-coding-and-backprop match only holds under neat assumptions that real brains break. And it gets weaker if brain decoding rests on the task, not on a truly stable inner shape. Each of these is a concrete, testable claim, and each is being tested right now. That is more than you can say for most grand unifying stories.

But a lot has already survived. We can measure how alike two systems are with no shared parts. We have removed the old objection that the brain cannot do gradient learning. We have a simple, local rule that provably matches backpropagation. We can measure the shape brains and AIs impose on the same input and watch it change the same way. And we can read intended movement and speech straight out of the brain, and line those readings up over time, using the very models the brain science helped inspire. The brain-and-AI link has grown up. It has gone from a loose comparison to a shared language, one where a learning rule, a shape, and a brain interface keep turning out to be the same thing, seen from two sides.

About this research

Research is my personal research journal. I am Indrodip Ghosh, a self-taught researcher working in the open on how artificial intelligence really works, what it means for people, and what is coming next. I try to write every piece so that anyone, with no background at all, can follow it and come away understanding a little more.

← Back to all research