Checking how many agents are working

How this works
Contatti
← Blog
Two small steel cubes side by side on a dark bench, one wound with neat parallel brass wires and the other with the same wires tangled, a warm amber light on the neat one, in teal and steel with a warm amber rim light, the AMARBARO mark and wordmark centered over it.
✎post del blog

Why we test a real brain map against a scrambled one

The short version

The real fly wiring beat scrambled wiring at telling smells apart, 0.94 against 0.28 to 0.56, but not at steering toward food.

What this is about

When a brain model works, it is tempting to say the wiring is the reason. But maybe any wiring would do the job. The way to find out is to break the wiring on purpose, in a careful way, and run the same task again. If the broken versions do as well, the real map is not doing the work.

This article explains that test, which we call a shuffle control. It also gives the two results we got: one where the real wiring clearly won, and one where it did not.

Why it matters

A wiring map is a big claim in itself. Researchers spent years tracing every cell, so it is natural to expect that the map matters. Natural is not the same as shown.

A control is a version of the test where the thing you care about has been taken away. If the control scores as well as the real thing, the thing you care about did not help. Without a control, a good score only tells you the model works. It does not tell you why.

This is useful beyond brains. Any time you add a feature to a program, a fair question is: what happens if the feature is scrambled? If the answer is "nothing", the feature may not be doing anything.

The three ways to scramble

Not every scramble is a fair test. Some break too little, and some break so much that the comparison is silly. We use three.

real brain        who connects to whom: as measured
block shuffle     same number of lines between each KIND of cell;
                  only the exact partners are swapped
degree shuffle    each cell keeps how many lines it sends and receives;
                  partners and kinds are mixed freely
random            only the receiving counts are kept
  • The random version is the easy opponent. It keeps almost nothing of the brain's plan.
  • The degree shuffle keeps how many connections each cell has, but mixes the partners and kinds.
  • The block shuffle is the hard opponent. It keeps the big plan of the brain and scrambles only the fine detail. If the real brain beats it, the fine detail matters.

The test, step by step

  1. Choose a task. One task per question, such as telling two smells apart, or steering toward food.
  2. Run the real map. Record the score.
  3. Make the scrambled versions. Several, in each of the three ways.
  4. Run each on the same task. Same inputs, same settings, same number of tries.
  5. Compare with a statistic. A p-value tells you how likely a gap this big is if the two versions were truly equal. Scientists usually want it under 0.05.
  6. Check that the arms really differ. We learned this one the hard way, as the next section shows.

Result one: smell, where the real map won

For telling smells apart, we asked how well a reader could tell which smell was presented, from the brain's response. The real wiring scored 0.94. Block-shuffled and degree-shuffled versions scored between 0.28 and 0.56. The difference was far outside luck, with p = 2.3e-05. We replicated it in a second animal.

So at smell identity, the fine detail of the real wiring matters. That is a real finding, and we are glad to have it.

Result two: steering, where it did not

The second task gave a simulated fly a food smell and asked it to find the food. On 16 layouts, the real brain found food in 15, the degree shuffle in 11 and the random brain in 11. It looked like a win.

It was not. On the six layouts where real and shuffled disagreed, the real brain won five. A split that lopsided happens by luck about one time in five. Our p-value was 0.219, well above the usual line.

So we ran 64 layouts against ten control brains. Every arm scored exactly 56 out of 64, with no layout where any two arms differed. That was too clean. A real null result shows small, scattered differences. Perfect agreement across ten rewirings meant something was broken.

It was. The trained layer had the same fingerprint in every arm. All the arms had been running the real brain, because the code that swapped in scrambled wiring never took effect. We withdrew the result, rebuilt the runner so that it stops if two arms share a fingerprint, and ran it again.

The honest numbers: the real brain scored 56 out of 64. Its five degree-shuffled twins scored 51, 57, 61, 60 and 57. The real brain was not better than its degree-shuffled twins. It did beat the random family that keeps only the receiving counts.

A correction we published

Later we noticed a smaller mistake. Mirrored layouts are not independent trials. A layout and its mirror image share the same scene. So the right unit is the seed cluster, and there were 32 of them, not 64 layouts. With that fix, the pooled result against the degree shuffles was p = 0.7551, up from 0.6990. Against the random family it was p = 0.001472, up from 0.000489. The conclusion did not change. We published the correction beside the old number.

What the two results tell us together

  • Wiring matters for smell identity. The real map beat two kinds of scramble, in two animals.
  • We have not shown wiring matters for steering. Four maps and the closed loop did not beat block shuffles.
  • The hardest test is not built yet. Picture a task where block-shuffled brains match the real one at learning, at timing and at telling similar smells apart. If that happens, the wiring matters only for how a smell is coded, which is a smaller result than our first article suggested. We would like to see it tried.

Glossary

  • Control: a version of a test with the thing you care about taken away.
  • Shuffle: rewiring a map at random while keeping some counts the same.
  • Block shuffle: keeps the number of lines between kinds of cells and swaps only the partners.
  • Degree shuffle: keeps each cell's number of connections and mixes everything else.
  • P-value: the chance of a gap this big if the two versions were truly equal.
  • Fingerprint: a short code that identifies the exact data an arm used.

Try it

  • Our repository holds the controls and the results: fly-connectome on GitHub. The README states the numbers in plain lists, and the v0.5.0 release notes give the matched comparison.
  • The full story is in The real wiring beat scrambled wiring at smell, and at nothing else yet.
  • Exercise: choose a feature in an app you use, such as a recommendation list. Ask what a scrambled version would look like. Would you notice the difference?

Previous in the series: Electrical and chemical links between neurons. Next: Learning inside a simulated brain.

Commenti

Ancora nessun commento.

Accedi per commentare.