Remix.run Logo
▲ krackers a day ago

This is from the quanta article

>In 2025, he and his collaborators experimented with an algorithm called bubble sort that’s commonly used to sort lists of numbers. The algorithm does this by repeatedly comparing neighboring numbers and swapping them when they are out of order. The scientists introduced obstacles that prevented some numbers in a list from moving. They found that, rather than getting stuck, the algorithm used a work-around: It sometimes temporarily unsorted numbers, moving further from its goal, to eventually make progress around the obstruction — a behavior Levin describes as “delayed gratification.” No one explicitly programmed it to use this strategy, and it is not trained like an LLM.

I can't really figure out what is meant by this, my best reading is basically that even something "simple" like bubble sort has unexpected (or emergent) behavior that you wouldn't expect in certain conditions. That's sort not surprising given that even a seemingly wrong sorting algorithm can actually work [1]. But if this "platonic space" thing can give a good intuition of how emergent behavior occurs and predict non-obvious things then it seems useful. I'm still not sure how you'd even distinguish platonic space as "real" versus just an abstract mathematical model. It also feels there's some overlap here with Wolfram in viewing the world as composed by simple rules that give rise to emergent behavior.

I also don't know how this dovetails with NN interpretability work.

[1] https://arxiv.org/abs/2110.01111

▲twright0 20 hours ago | parent [-]

This is the snippet that made me put this article down. An implementation of a standard bubble sort simply cannot do what is described, and the idea of introducing immovable elements to a bubble sort doesn't really make sense - there's no such concept. Bubble sort is, what, five lines of code? And exceedingly simple.

The most charitable read is that they introduced a new concept of immovable items in the array and then wrote new code to do something bubble-sort-ish to solve around it, like exploring a tree of possible swap options and picking a promising line like a chess engine, which might satisfy the idea that nobody explicitly programmed "delayed gratification" but definitely does not mean that bubble sort itself somehow learned or expressed that concept on its own (again, what would that mean?).

So it feels like either the author of the article misunderstood, there was a miscommunication with the subject, or the subject actively misled the author on this particular point, which ends my desire to try to read and understand the rest (which is less in my wheelhouse and therefore harder for me to evaluate).

▲patcon 20 hours ago | parent [-]

He converted bubble sort to agent-based, as in, inverted the algorithm to be from the POV of the digits instead of the god-view of the algorithm that sees the digit set as a whole. Like drawing a circle with a protractor (view of whole), vs drawing circle with instruction "step fwd, then turn 1 degree left" (local view)

After rewriting the algo in a functional form, they then made it fail in certain conditions, e.g., "a 1 to the left of a 4 gets the equality relationship backward" or things like that.

it's quite a clever approach as I recall. Worth reading his papers and not dismissing him out of hand

▲twright0 19 hours ago | parent [-]

The obvious implementation of bubble sort does not have a "god-view", it looks at pairs of adjacent elements and swaps them if they're out of order. The only global state is whether any swap happened on a single pass, which is equivalent to, in the inverted approach, some system for letting all the cells decide if they're done swapping (necessary to actually returning a sorted list). You can write a bubble-sort-ish kind of thing that tolerates immovable elements or errors in comparison but - I cannot emphasize this enough - bubble sort itself cannot. Anything you say about a re-implementation of bubble sort to tolerate such a thing is not a statement about bubble sort but rather about the thing you implemented that kind of looks like bubble sort.

I think I found the paper in question (https://arxiv.org/abs/2401.05375) and it is not supporting these claims about bubble sort at all (not going to try to dig in on the others right now). I cannot find a coherent interpretation of this paper that describes a sorting algorithm that is correct against arbitrary inputs and is also reasonably called "bubble sort".