OverviewSummary
In January 2024, Taining Zhang, Adam Goldstein, and Michael Levin published a widely discussed preprint claiming that ordinary textbook sorting algorithms—Bubble, Insertion, and Selection sort—exhibit surprising hallmarks of “basal intelligence” when each number in a list is turned into an autonomous “cell.” Specifically, the paper reports that these “cell-view” algorithms are more efficient than standard sorting, more robust to broken elements without any error-handling code, capable of “Delayed Gratification” (temporarily stepping backward to navigate around defects), and display unexpected “kin affinity” where cells running the same algorithm spontaneously cluster together even though they cannot sense each other’s type.
Extraordinary claims deserve an extraordinary look under the hood. When we audited the authors’ official
Python repository (cell_research) and ran controlled follow-up experiments, a very different story
emerged. Most of the paper’s headline findings turn out to be either direct coding/accounting bugs,
artifacts of a nearsighted metric, or mundane mechanical effects dressed up in cognitive metaphors.
| Headline Claim in the Paper | Status | What Actually Happens in the Code & Data |
|---|---|---|
| 1. Parallel, distributed, locally sensing “cells” (pp. 4, 8) | False in code | Every thread grabs one global threading.Lock() on line 1 of move(). Zero parallel work occurs. Insertion scans the entire left prefix; Selection teleports across the whole list. |
| 2. Cell-view is 1.5×–2.03× more efficient when counting reads + swaps (p. 11, Fig. 4) | Accounting bug | StatusProbe only increments when should_move() is True. Failed reads are never billed. True reads + swaps are 4.9× higher for Bubble and 2,256× higher for Insertion. |
| 3. Robust to broken cells with “no explicit steps” to handle them (pp. 11, 16, Fig. 5) | Contradicted | Both SelectionSortCell.py and InsertionSortCell.py contain explicit if status == CellStatus.FREEZE bypass code. Removing those lines causes errors to explode by 10×–15×. Fig. 5B also pits movable cell-view against immovable traditional baselines. |
| 4. Context-sensitive “Delayed Gratification” around barriers (pp. 12, 16, Figs. 6–7) | Metric artifact | Across 100% of swaps, Bubble, Insertion, and Selection make 0.0 backward steps in global order (inversions). Apparent “dips” come purely from a nearsighted adjacent-pair metric—and in Bubble sort, an immovable frozen cell is a brick wall nothing ever “goes around.” |
| 5. Chimeric arrays exhibit unexpected “kin affinity” clustering (pp. 13–18, Fig. 8) | Real data, overhyped | The statistical bulge (0.50 → ~0.60–0.65) is genuinely reproducible, but it is not mysterious affinity: Selection mixes are global left-teleportation; Bubble+Insertion is active-vs-passive mobility. Making Bubble left-only cuts Bubble+Insertion clustering by >60%. |
ContextWho Is Michael Levin?
Michael Levin is a developmental and synthetic biologist—Vannevar Bush Distinguished Professor of Biology and Director of the Allen Discovery Center at Tufts University, as well as Associate Faculty at Harvard’s Wyss Institute. Unusually for a biologist, he trained in both computer science and genetics (B.S. in Computer Science and Biology from Tufts; Ph.D. in Genetics from Harvard Medical School), a dual background that heavily shapes how he frames living systems.
His Wet-Lab Reputation
Levin first built his scientific reputation on striking experimental work in developmental bioelectricity—demonstrating that electrical voltage gradients across ordinary (non-neural) cells help coordinate anatomical patterning and regeneration alongside genes and biochemical signals. Well-known results from his lab and collaborators include:
- Two-headed planarian flatworms whose altered body plan is permanently inherited across future regeneration cycles after a brief bioelectric perturbation, without changing their DNA sequence.
- Ectopic organ induction and remodeling in Xenopus tadpoles (for example, triggering eye formation in unusual body locations or studying how scrambled tadpole faces rearrange during metamorphosis).
- Xenobots and Anthrobots (developed with Josh Bongard’s robotics group and colleagues)—tiny self-assembling multicellular constructs made from frog or adult human cells that exhibit motility without genetic engineering.
The Public Intellectual & “Diverse Intelligence” Agenda
Over the past decade, Levin has also become one of the most visible public voices at the intersection of biology, AI, and philosophy of mind, reaching wide audiences through major podcasts, essays, and interdisciplinary conferences. At the center of this public program is his TAME framework (Technological Approach to Mind Everywhere) and the field of “Diverse Intelligence,” which argues that agency, memory, goals, and cognition are not unique to brains, but sit on a continuous, scale-free spectrum stretching down to tissues, single cells, molecular networks, and even simple engineered systems.
Why His Claims Warrant Close Scrutiny
Levin’s prominence comes with a persistent criticism from researchers in biology, cognitive science, and computer science: concept creep and over-interpretation. While his lab’s experimental demonstrations in regeneration and bioelectricity are widely acknowledged as intriguing, his theoretical papers routinely dress up ordinary dynamical or algorithmic effects in sweeping cognitive metaphors—agential materials, collective minds, delayed gratification, kin affinity, cognitive light cones—while relying on broad cybernetic redefinitions that blur the boundary between simple physical/computational mechanics and genuine intelligence.
The 2024 sorting-algorithms paper is a particularly illuminating test case of that pattern: unlike a messy living embryo where hidden biological complexity could plausibly be doing unseen work, a 100-line Python sorting simulation is 100% transparent. Auditing it line by line lets us see clearly where genuine mechanics end and rhetorical overreach begins.
Section 0 — Core ConceptsHow the Simulation & Every Metric Work
Before dissecting a single claim, let’s make sure every concept and graph in the paper is crystal clear.
Imagine 100 numbered tiles—0 through 99—shuffled into a random horizontal row.
Sorting means rearranging them so they increase cleanly from left (0) to right (99).
The Three Sorting Rules
1. Cell-View Bubble Sort
A tile flips a fair coin: heads it looks at its right neighbor; tails it looks at its left neighbor.
If the pair is out of order (bigger tile on the left), it swaps with that neighbor. It only ever sees 1 step away.
2. Cell-View Insertion Sort
A tile first checks whether every single tile to its left is already in sorted order.
If even one pair anywhere to its left is out of order, the tile sits completely still. Once the entire left side is sorted, it can swap one step left if it is smaller than its left neighbor.
3. Cell-View Selection Sort
Every tile keeps a private pointer called ideal_position, starting at slot 0 (the far left).
The tile looks directly at whoever currently sits at its ideal_position. If its own number is smaller, it teleports and swaps straight into that slot across the entire row. Otherwise, it bumps its ideal_position one slot to the right.
Algotypes & Frozen Cells
Algotype: Which of the three rules above a tile obeys. In “chimeric” runs, 50 tiles follow one rule and 50 follow another in the same row.
Frozen Cell: A damaged tile. Either movable (won’t initiate swaps itself, but neighbors can move it) or immovable (glued to its slot forever).
How Every Graph in the Paper Is Measured
Nearly every misunderstanding in this paper starts with how progress and clustering are measured. Keep these three definitions in mind as you read every figure:
-
Monotonicity Error (E) & Sortedness (S): Walk left-to-right across the 100 tiles and
count how many immediately adjacent pairs drop downward (
tile[i] < tile[i-1]). That count is the Monotonicity Error E (0 when sorted; ~50 when randomly shuffled). Sortedness is simply 100 − E (written as a percentage: ~50% when random, 100% when sorted). Notice that this metric is nearsighted: it ignores everything except immediate neighbors. - True Global Disorder (Inversions): In computer science, the true distance to a sorted list for adjacent-swap algorithms is the inversion count—the total number of pairs anywhere in the row (not just neighbors) where a larger number sits to the left of a smaller number. For 100 tiles, a reverse-sorted list has 4,950 inversions; a random list has ~2,475; a sorted list has 0.
- Aggregation Value (A): When a row mixes two Algotypes (say 50 Red and 50 Blue tiles), ask each tile: “Is the tile immediately to my right the same color as me?” Count the “yes” answers and divide by 100. A randomly shuffled 50/50 row scores ~0.49–0.50; all Red on the left and all Blue on the right scores 0.98; perfectly alternating colors scores 0.00.
Illusion #1“Parallel, Distributed, Local Cells”
“First, instead of a central algorithm operating on an array of numbers it can see and control in its entirety, we implement a distributed algorithm that is executed, in parallel, by each number (i.e., cell) with local knowledge of its environment.” — Zhang, Goldstein, & Levin (2024), p. 4 (see also p. 8 & Fig. 2)
Zero parallel execution happens. Every cell spawns an OS thread whose loop immediately
acquires a single global threading.Lock() before doing any work and releases it at the end of
move(). The entire program runs strictly one cell at a time—plus a central top-down monitor
(while not is_sorted(cells)) decides when everyone stops.
Think of a meeting room with 100 people and one single talking stick. Even though all 100 people
are awake in the room (“threads”), nobody is allowed to look at a neighbor, think, or swap until
they hold the talking stick (self.lock). The other 99 threads simply sit frozen in a queue burning
CPU cycles.
Using OS threads solely as a makeshift random cell-picker is not only unnecessary—it is actively worse
than writing random.choice(cells).move() in a normal loop:
- Uncontrolled scheduler bias: Operating-system mutex wakeups and Python’s GIL are not guaranteed to pick threads uniformly, making results depend on CPU load and kernel scheduling.
- Not even “local knowledge”: Only
BubbleSortCellactually uses local neighbor vision.InsertionSortCell.is_enable_to_move()inspects every tile from index 0 to its own position (global prefix vision), andSelectionSortCellreads and teleports directly across arbitrary distances toideal_position.
self.lock forbids any two cells from ever
computing or swapping concurrently. Meanwhile panel (F) explicitly illustrates Selection’s long-range global jumps.
Interactive Demo 1The Single Talking Stick & Hidden Global Vision
Switch between Bubble, Insertion, and Selection and click
Step Once. Watch how only 1 thread ever holds self.lock while the other 15 sit blocked,
and notice the amber vision beams showing how much of the array each algorithm actually reads.
Illusion #2The Broken Odometer: “1.5×–2.03× More Efficient”
“When we considered both reading (comparison) and writing (swapping) as costly steps, simulating the metabolic cost of both measurements and actions… the total steps took to complete the sorting process of bottom-up vs. traditional sorting algorithms was decreased by 1.5 and 2.03 times for Bubble and Insertion sort respectively… This is likely because traditional algorithms are using each element to compare with other elements, while cell-view algorithms will stop proactively comparing with other cells when they are on the target position.” — Zhang, Goldstein, & Levin (2024), p. 11 & Fig. 4B
The cells never stop comparing. Every cell continuously reads its neighbors (or its entire left prefix) on every tick—it just only increments the counter when a comparison finds an out-of-order neighbor. Every “I checked and I’m fine” read is billed at zero cost.
Imagine testing two delivery trucks for fuel economy, except on Truck B you wire the odometer so it only counts miles when the truck is carrying a package, and turns off whenever the driver is cruising around looking for the next pickup. Naturally, Truck B looks “more efficient” on paper!
Look at the exact lines in InsertionSortCell.py and BubbleSortCell.py where the paper’s
“reading + swapping” counter (record_compare_and_swap()) is called:
When we ran 60 trials on 100-tile arrays using the paper’s exact classes, our run reproduced the paper’s reported ratios to two decimal places—confirming we found the exact mechanism—while revealing the staggering hidden cost once every actual array read is counted:
| Algorithm (N = 100, 60 trials) | Traditional (Reads + Swaps) | Paper’s StatusProbe | Paper Ratio | TRUE Reads + Swaps | True Ratio |
|---|---|---|---|---|---|
| Bubble Sort | 7,372 | 4,792 | 1.54× fewer (paper: 1.5×) | 36,294 | 4.9× MORE |
| Insertion Sort | 5,063 | 2,484 | 2.04× fewer (paper: 2.03×) | 11,425,777 | 2,256× MORE |
| Selection Sort | 5,045 | 5,969 | 1.18× more (paper: 1.17×) | 6,989 | 1.4× MORE |
Interactive Demo 2The Broken Odometer (Live Read Counter)
Pick Insertion (or Bubble) and click Run Comparison on a 28-tile row. Watch the pink
StatusProbe bar stop below Traditional while the crimson bar reveals the actual reads the CPU performs.
Illusion #3Robustness “With No Explicit Error-Handling”
“We found that all the cell-view sorting algorithms exhibited less monotonicity error than the traditional versions… In addition, our cell-view algorithms contained no explicit steps for what to do in case of a disobeying cell, or even any steps for assaying whether any of their actions have had the desired effect in the first place.” — Zhang, Goldstein, & Levin (2024), pp. 11 & 16
That statement is directly contradicted by the code. Both SelectionSortCell.py
and InsertionSortCell.py contain explicit if ... status == CellStatus.FREEZE
special-case workarounds telling healthy cells to recognize frozen cells and skip over them.
There are actually three separate problems hiding inside Figure 5:
-
Explicit
CellStatus.FREEZEbypasses in the code: Look at the exact lines below. Healthy Selection cells literally check whether the target cell hasstatus == CellStatus.FREEZEand incrementideal_position += 1to step past it. Healthy Insertion cells literally checkstatus == CellStatus.FREEZEinsideis_enable_to_move()and resetprev = -1; continueso the frozen cell doesn’t block everything to its right. -
Apples-to-oranges comparison in Fig. 5B (“Movable Frozen Cells”): Look closely at the
blue “Traditional” bars in Figure 5B and Figure 5C of the paper—the numbers are 100% identical
(
2.85, 2.93, 10.8for 1 frozen cell;4.71, 4.65, 16.33for 2;6.44, 6.38, 21.66for 3). Indeed, inanalysis/frozen_success_compare.py(lines 36–39), themovablebranch for traditional algorithms is commented out and always loads thecannot_move(immovable) dataset! So Fig. 5B compares cell-view algorithms allowed to move the broken tile against traditional algorithms forbidden from moving it.
What happens when we fix this comparison? We ran 60 trials giving traditional sorting the same movable-frozen rule (a frozen tile won’t initiate a swap itself, but can be moved whenever a healthy tile swaps with it). Under that fair rule, traditional sorting averages 0.00 / 0.52 / 1.02 error for Bubble, 0.95 / 1.83 / 2.72 for Insertion, and 0.00 / 0.03 / 0.07 for Selection across 1, 2, and 3 frozen cells—completely wiping out the claimed Fig. 5B advantage (tying cell-view Bubble identically and decisively beating the paper’s cell-view Insertion1.67 / 5.28 / 9.96and Selection2.24 / 4.36 / 13.24). -
Even in their own Fig. 5B, cell-view doesn’t always win: Despite the text claiming
“all the cell-view sorting algorithms exhibited less monotonicity error,” their own chart shows
cell-view Insertion having higher error than traditional at 2 frozen cells (
5.28 vs 4.65) and 3 frozen cells (9.96 vs 6.38).
What happens when we actually make the experiment match the paper’s prose by removing those hardcoded
CellStatus.FREEZE bypasses? As our audit plot below shows, cell-view Insertion’s error
explodes from 1.9 → 26.8 (1 frozen cell) and 5.6 → 39.0 (3 frozen cells),
and cell-view Selection explodes from 1.0 → 12.9 and 3.0 → 25.9—performing
worse than traditional Selection! Meanwhile, when traditional Bubble and Insertion are run cleanly until no
valid swaps remain, they get the exact same error as cell-view (1.9, 3.8, 5.6).
CellStatus.FREEZE bypasses causes cell-view error (red bars) to skyrocket.
Illusion #4The Nearsighted Ruler: “Delayed Gratification”
“We assayed an important aspect of intelligence: the ability to, when faced with a Frozen Cell, go around it in a manner that temporarily takes one further from the goal (Delayed Gratification)… This reveals that Bubble and Insertion sort deploy Delayed Gratification in a context-sensitive manner – they do more backtracking when faced with defective cells and are not randomly back-tracking through their space.” — Zhang, Goldstein, & Levin (2024), pp. 12 & 16
Neither Bubble, Insertion, nor Selection EVER takes a single backward step in true global order. Every single swap in Bubble and Insertion strictly reduces the global inversion count by 1. The dips are a pure illusion of using a nearsighted neighbor-only metric—and in Bubble sort, an immovable frozen cell is a brick wall on a one-lane bridge that nothing ever “goes around.”
The 5-Tile Proof Anyone Can Check in Their Head
You don’t need 100 tiles or any frozen cells to see why “Delayed Gratification” is a metric mirage. Look at this 5-tile row with zero defects:
>): 1 (5>2) → Sortedness = 80%(4,2), (4,3), (5,2), (5,3)>): 2 (4>2, 5>3) → Sortedness = 60% (dips!)(4,2), (4,3), (5,3)
One completely ordinary, greedy Bubble swap made the paper’s “Sortedness” plummet from 80% to 60%!
Did the algorithm “cleverly backtrack away from its goal”? No! Count the true global
inversions (out-of-order pairs anywhere in the row): [1, 4, 5, 2, 3] had 4 inversions
(4,2), (4,3), (5,2), (5,3). After swapping 5 and 2, [1, 4, 2, 5, 3] has 3 inversions.
It moved strictly closer to the goal!
Across 60 full 100-tile runs with zero frozen cells, Bubble sort produces an average of 629.3
apparent “Delayed Gratification” dips in Adjacent Sortedness—and 0.0 backward steps
in true global inversions. Even traditional top-down Selection sort with zero barriers scores the highest
“Delayed Gratification” of any algorithm in the entire paper (6.10 in Fig. 7C)!
The paper’s flagship evidence for “context-sensitive Delayed Gratification” is that Bubble
sort’s DG index creeps up as you add immovable Frozen Cells (0.24 → 0.29 → 0.32 → 0.37),
which the authors interpret as cells backtracking more to “go around” the obstacles.
Pause and picture a 1D line of tiles where Bubble sort can only swap adjacent neighbors: an
immovable frozen tile is a solid brick wall across a one-lane bridge. Tiles on the left can never pass to
the right, and tiles on the right can never pass to the left. Literally nothing “navigates around”
the frozen cell! Splitting the array into smaller isolated rooms simply truncates late-stage small oscillations,
slightly nudging the ratio (rise − dip)/dip.
Code-quality footnote: Our audit of analysis/delay_gratification_analysis.py also uncovered two
bugs in the authors’ analysis script itself: on line 98, avg_wandering_range()
exits with return res (omitting / n—returning an unaveraged sum whenever a run’s
error sequence ends on an upward tick), and on line 213, “Original Insertion with 3 frozen”
accidentally loads the 2 frozen file via copy-paste. (In our clean tests, line 98 did not trigger on
standard runs, so the core failure here is conceptual—the nearsighted metric—rather than line 98 alone.)
Interactive Demo 3The Nearsighted Ruler & The Brick Wall
Start with the 5-tile example [1, 4, 5, 2, 3] and click Step Once, then try the 18-tile
random row and the 18-tile Frozen Wall. Compare the jagged red curve (the paper’s metric) against the smooth
blue staircase (true global progress).
Section 5 — Centerpiece Deep Dive“Kin Affinity” in Chimeric Arrays Demystified
“Thus, Algotypes include behavioral tendencies (such as preferring to associate with their ‘kin’ during their journey through morphospace) that may not be explicitly encoded anywhere in the algorithm… they act as though they have a strong affinity for each other despite the fact that the algorithm says nothing about aggregating, and has no explicit provision for a cell determining the Algotype of any given neighbor (or itself). We conclude that even very simple algorithms can have novel behaviors that are not explicitly encoded in their formal policies and are extremely hard to predict ahead of time.” — Zhang, Goldstein, & Levin (2024), pp. 17–18
First, credit where due: the statistical bulge is 100% real and reproducible. When you mix two
different sorting rules in one 100-tile array, the Aggregation Value genuinely rises from 0.50 to
~0.60–0.65 mid-sort (and stays at 0.67–0.69 with duplicates in Selection mixes).
However, there is zero mystery or “kin affinity.” Measuring where each
algotype moves along the array—something the paper never plotted—splits the effect cleanly into two mundane
mechanical processes.
Step 1: Reproducing Figure 8 — And Plotting What the Paper Left Out
The paper only plots the single summary number Aggregation Value over time (Fig. 8A).
That tells you tiles of the same type are next to each other more often than 50/50—but it hides where
in the row they are!
To see what is actually happening inside the array, we ran 100 trials of each chimeric mix using the authors’
exact cell classes stepped by a clean random cell-picker (random.choice(cells).move()). To verify
that replacing the authors’ Python threads with a clean random picker did not change the behavior, we also
ran a smaller cross-check (5 trials per mix, shown as the black dotted curves below) using the authors’
original multi-threaded code directly—fixing only its thread-cleanup and memory-leak bugs. Both engines produce
the exact same aggregation curves.
At the exact moment when Aggregation peaks, we look at every individual slot in the array—from slot 0
(far left) to slot 99 (far right)—across all 100 trials, and compute the fraction of trials
where that slot is occupied by Type A.
If Type A and Type B are evenly spread across the row, this curve stays flat near 0.5 (50%).
If one type crowds onto the left side and pushes the other to the right, the curve rises well above 0.5
on one side and drops well below 0.5 on the other.
Step 2: Testing the Directional-Bias Hypothesis (Experiment A — No Sorting)
Notice an obvious asymmetry in the three algorithms: Selection strongly targets the far left
(ideal_position starts at 0) and Insertion only moves left, whereas
Bubble flips a 50/50 coin between left and right.
To see how directional bias alone creates “clustering” with zero intelligence and zero sorting, consider a pure thought experiment we ran in simulation: mix 50 Type-A tiles and 50 Type-B tiles with no numbers and no sorting rules at all. When picked at random, Type A moves left with probability pL, while Type B moves left or right with equal probability (0.50).
pL = 1.0 vs 0.5), Type A drifts 22 slots left
of Type B within 2,500 swaps and Aggregation climbs straight past 0.60 (and keeps rising toward full
segregation). Even a slight 0.55 vs 0.50 imbalance creates systematic monotonic drift.
Step 3: Controlling Directional Bias Inside Sorting (Experiment B)
Experiment A showed that directional bias creates segregation when there is no sorting. Inside a real sort, however, numerical order acts as a strong counter-force: small numbers must end up on the left and large numbers must end up on the right, regardless of Algotype.
To test whether directional bias explains the clustering inside sorting, we added a single dial to
BubbleSortCell called pR—the probability that a Bubble tile looks at
its right neighbor instead of its left neighbor:
pR = 0.5is the paper’s original balanced Bubble sort (50% left, 50% right).pR = 0.0forces Bubble to be strictly left-only—matching Insertion’s left-only movement!pR = 0.9makes Bubble strongly right-biased (90% right, 10% left—still allowing 10% left so mixes with Insertion or left-biased Bubble never deadlock).
Using this dial, we ran two focused sets of experiments, plotted side by side in the figure below:
(1) Left panels: we mixed balanced, left-only, and right-biased Bubble with Insertion
to see whether removing Bubble’s directional asymmetry eliminates Bubble+Insertion clustering.
(2) Right panels: we mixed differently biased Bubble cells with each other
(isolating pure directional bias inside identical sorting) and with Selection (testing whether Bubble’s
bias amplifies or resists Selection’s leftward sweep).
- Color dot & Panel: Each row’s colored dot matches the exact curve of the same color in the Left or Right panel of the plot directly beneath the table.
- Mean-Curve Peak: Highest point reached by the average aggregation curve across all 100 trials (the peak of the solid line in the plot; random baseline =
0.50). - Per-Run Max: Average of each individual trial’s single highest spike (the metric the paper quotes in its text; even identical-rule controls hit
~0.61from random fluctuations). - Max L–R Shift (A − B): Largest gap between the average array slot of Type A and Type B during sorting. Negative means Type A shifted left of Type B; values near
0mean no overall left–right separation.
| Sorting Mix (Type A + Type B) | Plot | Mean-Curve Peak | Per-Run Max | Max L–R Shift (A − B) | What It Shows |
|---|---|---|---|---|---|
| Bubble(pR=0.5) + Insertion (original) | Left | 0.609 @ 19% | 0.668 ± 0.038 | −0.9 | Flat 50/50 density; local active-vs-passive clumps |
| Bubble(pR=0.0, left-only) + Insertion | Left | 0.542 @ 10% | 0.600 ± 0.039 | −3.7 | >60% of excess clustering vanishes! |
| Bubble(pR=0.9, right-biased) + Insertion | Left | 0.600 @ 25% | 0.655 ± 0.034 | +2.8 | Large Bubbles escape right through passive Insertion |
| Control: Bubble + Bubble | Left | 0.501 | 0.616 ± 0.025 | −0.5 | Random chance baseline (dashed gray) |
| Bubble(pR=0.0) + Bubble(pR=0.5) | Right | 0.493 | 0.597 ± 0.027 | −4.8 | Drifts left, yet zero clustering above 0.50 |
| Bubble(pR=0.1) + Bubble(pR=0.9) | Right | 0.493 (dips ~0.46) | 0.577 ± 0.030 | −7.7 | Sorting counter-force cancels pure directional clustering |
| Bubble(pR=0.0) + Selection | Right | 0.586 @ 30% | 0.670 ± 0.038 | +15.4 | Left-only Bubble partially counters Selection’s pull |
| Bubble(pR=0.9) + Selection | Right | 0.620 @ 32% | 0.685 ± 0.046 | +26.1 | Right-biased Bubble amplifies Selection’s pull |
| Control: Bubble(pR=0.0) + Bubble(pR=0.0) | Right | 0.502 | 0.613 ± 0.026 | −0.6 | Random chance baseline (dashed gray) |
Note: All rows show 100 trials of 100 tiles. Cross-checking Bubble(pR=0.0) + Insertion directly
in the authors’ original multi-threaded engine (5 trials) confirmed the exact same collapse (mean-curve peak
0.522, per-run max 0.580 ± 0.028).
0–99 at each mix’s peak aggregation.
What the Experiment B Data Actually Shows
Reading the table and both panels of the figure together gives three clear, concrete takeaways—each ruling out a vague “emergent affinity” story and isolating the real mechanism:
-
Pure directional bias alone does not create clustering inside sorting (Right panels: green & purple curves).
Look at
Bubble(pR=0.0) + Bubble(pR=0.5)(green) andBubble(pR=0.1) + Bubble(pR=0.9)(purple). Just as Experiment A predicted, the left-biased Bubble tiles do drift slightly left of their balanced or right-biased counterparts (Max L–R Shift = −4.8and−7.7slots). Yet in the top-right plot, neither curve rises above the0.50baseline—the purple curve actually dips to ~0.46! When both types are equally active everywhere in the array, the numerical sorting rule (small numbers left, big numbers right) overwhelms a smooth 5–8 slot drift and keeps the two types interleaved. -
Against Selection sort, directional bias directly scales global left–right segregation (Right panels: cyan & brown curves).
In Step 1, balanced Bubble + Selection produced a
+19.0-slot shift and peak Aggregation of0.599. Changing Bubble’s bias moves both numbers in lockstep: left-only Bubble (pR=0.0, cyan) resists Selection’s leftward pull, shrinking the shift to+15.4and peak Aggregation to0.586; right-biased Bubble (pR=0.9, brown) reinforces it, widening the shift to+26.1slots (look at the bottom-right brown curve climbing from ~10% Bubble at slot 0 to ~91% Bubble at slot 99!) and pushing peak Aggregation up to0.620. -
In
Bubble + Insertion, removing Bubble’s rightward moves collapses the clustering—while right-biased Bubble keeps it high (Left panels: red, blue, & orange curves). Look at the top-left plot: the original balanced mix (pR=0.5, red) bulges up to0.609(+0.11 above the0.50baseline). The moment we force Bubble to look left-only (pR=0.0, blue)—matching Insertion’s left-only movement—the peak drops all the way to0.542, wiping out over 60% of the excess clustering (and its per-run max of0.600falls below the identical-algotypeBubble + Bubblecontrol at0.616). Meanwhile, right-biased Bubble (pR=0.9, orange) stays high at0.600—notice its huge pileup at slot 99 (~91% Bubble) in the bottom-left plot, which completely vanishes in the blue left-only curve!
The Complete Mechanical Explanation
Putting Steps 1–3 together reveals that the paper’s “kin affinity” is actually two straightforward physical sieving mechanisms—no hidden preference or cell “personality” required:
Mechanism 1 — Global Left-Teleportation (Selection mixes)
SelectionSortCell jumps directly from anywhere in the row straight into ideal_position
starting at slot 0. Because it teleports across 50+ slots in a single step while Bubble and Insertion
crawl one neighbor at a time, Selection rapidly fills slots 0–35 with ~80% Selection tiles and
kicks the other type into the right half. When duplicate values are allowed, Selection grabs the left seats inside
every equal-value block first, locking that left–right split in permanently (0.67–0.69).
Mechanism 2 — “Active” vs. “Passive” Mobility Separation (Bubble + Insertion)
Why does Bubble + Insertion cluster to 0.609 even though its spatial density stays flat
at 50/50 across the middle? To see it clearly, define two simple states a tile can be in at any moment during sorting:
- Active (mobile) tile: Its rule currently allows it to initiate swaps on its own.
- Passive (parked) tile: Its rule currently forbids it from initiating any swap—it sits completely motionless in its slot unless an active neighbor swaps into it and bumps it aside.
Remember how InsertionSortCell works: a tile is only allowed to move if every single tile to its
left is already sorted. During the first half of sorting, the sorted frontier has only reached the first few
slots—which means almost every Insertion tile across the unsorted right 80% of the array is completely
passive (parked). Balanced Bubble tiles sitting right next to them, however, are
active in both directions: small Bubble tiles immediately walk left, and large Bubble tiles
immediately walk right.
Watch what happens to an 8-tile slice taken from the unsorted middle of the row, starting in a
perfectly alternating pattern (0 same-type neighbors):
I tiles are parked; coral B tiles are active.pR = 0.5): small B tiles (12, 15) walk left; large B tiles (85, 90) walk right past the parked I tilesB-B, I-I-I-I, B-BB = 3.5, mean slot of I = 3.5 (0.0 left–right shift!)pR = 0.0): small B tiles still walk left, but large B tiles (85, 90) can no longer move right—they stay parked inside the I crowd!B:85 & B:90 stay stranded among I tiles, breaking up both clumps.That 8-tile slice explains every single number in our data at once:
- Why micro-clusters form with zero left–right shift: When active Bubble tiles walk out both the left door (small values) and the right door (large values) of every unsorted neighborhood, the parked Insertion tiles left behind collapse together into
I-I-Iclumps while the escaping Bubble tiles meet up intoB-Bclumps on both flanks. Because Bubble tiles leave symmetrically in both directions, the average position of Bubble and Insertion stays identical (Δmean ≈ 0) even as local Aggregation spikes to0.609! - Why forcing
Bubble(left-only)eliminates >60% of the clustering: Closing the right door turns every large Bubble tile into a passive, parked tile just like Insertion—leaving them stranded inside the Insertion crowd and preventing both the cleanI-I-Icollapse and the right-handB-Bpileup. - Why
Bubble(pR=0.9)still clusters strongly (0.600): Keeping the right door wide open lets large Bubble tiles evacuate rightward out of the parked Insertion sea (creating the huge orange spike at slot 99 in Experiment B’s bottom-left plot), again collapsing the parked Insertion tiles behind them.
Interactive Demo 4Algotype Clustering Sandbox (100-Tile Live Lab)
Watch all 100 tiles sort live—bar height is the tile’s number (1–100), color is its Algotype.
Click through the presets below to watch Selection teleport left, watch Bubble zip through
frozen Insertion, and then click Bubble (Left-Only) + Insertion to watch the clustering collapse!
Section 6 — TakeawayTranslating the Sales Pitch Back Into Plain Mechanics
Reading this paper is a case study in how anthropomorphic vocabulary—“basal intelligence,” “Delayed Gratification,” “kin affinity,” “time-extended personality,” “disobeying cells”—can make ordinary bugs and simple dynamical effects sound like a paradigm shift in cognitive science. Here is the side-by-side dictionary:
| Language Used in the Paper | What Is Actually Happening in Python |
|---|---|
| “Distributed algorithm executed, in parallel, by each cell with local knowledge” | Sequential execution behind one global threading.Lock(); Insertion reads the entire left prefix; Selection teleports across the whole list. |
| “Cells stop proactively comparing when on target” (1.5×–2× more efficient) | StatusProbe forgets to count failed comparisons; true reads are 4.9× (Bubble) to 2,256× (Insertion) higher than traditional sorting. |
| “No explicit steps for what to do in case of a disobeying cell” | Explicit if status == CellStatus.FREEZE bypasses hardcoded directly into SelectionSortCell.py and InsertionSortCell.py. |
| “Context-sensitive Delayed Gratification to go around a Frozen Cell” | Zero global backward steps ever; dips are noise in an adjacent-only ruler, and an immovable frozen tile in Bubble sort is a wall nothing can pass. |
| “Preferring to associate with their ‘kin’… strong affinity for each other” | Long-range left-teleportation (Selection mixes) and active tiles migrating through frozen Insertion tiles (slashed >60% when Bubble is left-only). |
| “Algotypes battle each other… Bubble > Selection > Insertion” (Fig. 9) | Bubble can always act locally; Insertion’s prefix-sorted gate is constantly broken by an opponent, paralyzing it. |
Anticipating the Defense: Why “It’s Just a Conceptual Lens” Doesn’t Rescue These Claims
Readers familiar with Levin’s work will recognize a standard preemptive defense—one the authors already write into page 18 of this very paper:
“There is no magic here, of course: everything that happens is, in some way, a consequence of the rules being followed… However, while such behaviors do not contradict the laws of physics of their world and can be explained after they are observed, they often require a different set of conceptual tools to effectively predict and exploit them than physics and chemistry.” — Zhang, Goldstein, & Levin (2024), p. 18
This is a classic motte-and-bailey move: make headline-grabbing cognitive claims (“basal intelligence,” “Delayed Gratification,” “kin affinity”), and whenever those claims are reduced to simple mechanics, retreat to saying “of course it reduces to the rules—cognitive vocabulary is just a useful high-level lens!” Here is why that retreat fails on all three fronts:
-
A “conceptual lens” cannot rescue factual errors about the code (Claims 1–4).
Reinterpreting a real phenomenon from a higher level is one thing; misreporting what the program actually did
is another. An odometer that forgets to count failed reads (Section 2) is an accounting bug, not a behavioral
lens. Claiming “no explicit steps for what to do in case of a disobeying cell” when
SelectionSortCell.pyandInsertionSortCell.pycontain hardcodedif status == CellStatus.FREEZE:bypasses (Section 3) is factually untrue about the code. And claiming Bubble sort “backtracks to go around a Frozen Cell” when global inversions never increase (0.0backward steps) and an immovable frozen tile on a 1D line is an impassable wall (Section 4) describes an event that never occurred. -
Even on the one real phenomenon (Algotype Clustering), the cognitive lens fails the authors’ own pragmatic test.
On pages 18–19, the paper explicitly argues that cognitive terminology earns its keep by helping us
“effectively predict and exploit” a system. Put both lenses head-to-head on prediction and
control:
- The “kin affinity / Algotype personality” lens cannot tell you where clustering occurs, why
Bubble + Selectionseparates left-to-right whileBubble + Insertionstays flat at 50/50, or what happens when you change Bubble’spRfrom0.5to0.0vs.0.9. - The plain mechanical lens (jump range + active/passive mobility) predicts all of those outcomes in advance and identifies the exact single dial (
pR = 0.0) that eliminates over 60% of the excess clustering inBubble + Insertion.
- The “kin affinity / Algotype personality” lens cannot tell you where clustering occurs, why
- “Minimal cybernetic definitions” fail William James’s own benchmark—and invite semantic inflation. The paper argues that it defines “intelligence” minimally after William James (the magnet separated from iron by a wooden barrier in Fig. 6A): the competency to detour around a barrier to reach a goal. Yet Bubble and Insertion sort never detour around a barrier in global inversion space and stop dead at an immovable 1D frozen tile—behaving just like James’s magnets, not a detouring agent. Stretching words like “preference,” “kin affinity,” “personality,” and “Delayed Gratification” until they cover shaken mixed nuts and a parked-tile sieving artifact strips those words of scientific discriminating power—while still letting the paper cash in their grand rhetorical weight (“philosophy of mind, AI alignment, and human flourishing,” p. 20).
What Is Genuinely Interesting Here?
Being rigorous means being fair: stripping away the hype and bugs still leaves one neat, honest observation.
In heterogeneous rule-mixing (like Bubble + Insertion or Bubble + Selection), different
update rules operating on the same shared array really do sort the list together and really do
generate transient spatial segregation—purely from differences in mobility and jump range, without any tile
reading another tile’s type. That is a fun dynamical-systems demonstration of how physical sorting/sieving
mechanisms (much like the Brazil-nut effect in shaken granular media) emerge from asymmetric movement rules.
What it does not show is “emergent basal intelligence,” “delayed gratification,” fault-tolerance without error-handling code, or superior decentralized efficiency. Those extraordinary claims collapse the moment you open the source code and check the meters.