1. Home
  2. Theories of Everything with Curt Jaimungal

Oct 30, 2025

Simple algorithms do things we never programmed

Michael Levin

13 min → 2:00

Overview

Biophysicist Michael Levin and cognitive neuroscientist Anil Seth discuss how simple computer algorithms show unexpected lifelike behaviors and how agency exists on a spectrum between living and mechanical systems.

3 things to know

Levin and Seth say sorting code runs side quests

Michael Levin and Anil Seth explain that when traditional sorting algorithms like bubble sort are analyzed through behavioral science, they can be seen forming unprogrammed clusters while finishing their main task.

More

Traditional sorting algorithms (like bubble sort) are assumed to only perform the exact steps coded by the programmer.

▶ Watch at 1:14

Levin and Seth: Duplicate numbers free up self-organizing behavior

Michael Levin and Anil Seth note that leaving parameters unconstrained, such as allowing duplicate numbers in a sorting list, lets an algorithm's built-in degrees of freedom produce stronger self-organizing behaviors.

More

Every algorithm has implicit degrees of freedom in how it executes its tasks.

▶ Watch at 6:17

Levin and Seth claim six code lines show agency

Michael Levin and Anil Seth suggest that agency exists on a continuous spectrum, where even a simple six-line deterministic algorithm can show minimal agency in the empty spaces between explicit instructions.

More

Rather than viewing consciousness or agency as a binary switch that only living organisms possess, the speakers suggest it is a continuous spectrum.

▶ Watch at 9:08

Also in this episode

Seth says multipurpose parts let living things adapt

Anil Seth explains that unlike engineered machines with identical backup parts, living systems use different structures that can do the same job in one setting and switch jobs in another.

More

In engineering, redundancy means having multiple identical backups to perform a single task. This degeneracy is what gives living systems their open-ended adaptability.

Quotes

“I don't think anything is conscious because of the algorithm... if anything, I think the mental properties it has is in spite of the thing we force it to do.”

▶ Watch at 6:17

“The thing you force it to do may have zero to do with what's actually going on.”

▶ Watch at 1:14

“It's that degeneracy that gives biological systems their kind of open-endedness, their ability to adapt to novel situations.”

▶ Watch at 9:08

Full summary

Episode Overview

  • This episode features biophysicist Michael Levin and cognitive neuroscientist Anil Seth discussing the surprising emergence of lifelike behaviors and goal-directedness in simple, deterministic computer algorithms.
  • The conversation challenges the conventional assumption that computer code only does exactly what we program it to do, illustrating how hidden degrees of freedom allow algorithms to pursue "side quests" not written into their instructions.
  • By comparing computational systems to biological ones, the speakers explore how agency and "mind" exist on a spectrum rather than as a strict binary between the living and the mechanical.
  • This discussion is highly relevant to anyone interested in the philosophy of mind, artificial intelligence, artificial life, and the foundational principles of biology and computation.

Key Concepts

  • Algorithm Behavior Beyond Explicit Programming: Traditional sorting algorithms (like bubble sort) are assumed to only perform the exact steps coded by the programmer. However, when analyzed from a behavioral science perspective, these deterministic systems can be seen executing "side quests"—achieving secondary, unprogrammed configurations (such as clustering) while accomplishing their primary task.
  • Degrees of Freedom and "Free Compute": Every algorithm has implicit degrees of freedom in how it executes its tasks. By leaving certain parameters unconstrained (such as allowing duplicate numbers in a sorting list), the system's "intrinsic motivations" are liberated, allowing emergent, self-organizing behaviors to manifest more strongly.
  • Redundancy vs. Degeneracy in Systems: In engineering, redundancy means having multiple identical backups to perform a single task. In biology, systems exhibit "degeneracy," meaning structurally different components can perform the same function in one context, but adapt to perform entirely different functions in another context. This degeneracy is what gives living systems their open-ended adaptability.
  • The Spectrum of Mind and Agency: Rather than viewing consciousness or agency as a binary switch that only living organisms possess, the speakers suggest it is a continuous spectrum. Even a simple six-line deterministic algorithm can show early, minimal versions of agency if we know how to look for them in the "empty spaces" between the explicit instructions.

Quotes

  • At 1:14 - "The thing you force it to do may have zero to do with what's actually going on." - Michael Levin explains how judging an AI or an algorithm solely by its forced output (like a language model's text) can completely obscure the true underlying processes and emergent behaviors of the system.
  • At 6:17 - "I don't think anything is conscious because of the algorithm... if anything, I think the mental properties it has is in spite of the thing we force it to do." - Michael Levin arguing that agency and consciousness emerge from the gaps and relaxed constraints of a system, rather than being directly generated by rigid, top-down programming.
  • At 9:08 - "It's that degeneracy that gives biological systems their kind of open-endedness, their ability to adapt to novel situations." - Anil Seth clarifying how biology avoids the rigid traps of human engineering by using multi-functional, context-dependent structures instead of simple identical backups.

Takeaways

  • Shift your perspective on deterministic systems by looking for behaviors in the "empty spaces" between explicit instructions, rather than assuming a system only does what it was programmed to do.
  • When designing or evaluating AI and computational models, avoid over-constraining the system; relaxing rigid rules (such as allowing duplicate inputs) can unlock emergent, self-organizing problem-solving capabilities.
  • Apply the concept of biological degeneracy—structuring systems so that different parts can perform the same function under normal conditions but pivot to distinct roles in novel contexts—to build more robust, adaptable human organizations and software architectures.

Watch the full episode 13 min

Read along with the audio summary

Can a simple six line computer algorithm pursue secret goals that no human ever programmed into it? In this episode that came out on October 30, 2025, biophysicist Michael Levin and cognitive neuroscientist Anil Seth discuss the surprising emergence of lifelike behaviors and goal directedness in simple, deterministic computer algorithms. By the end, you will learn how computer code goes on unprogrammed side quests, and how biology inspires more adaptable organizations and software.

Even basic computer code does more than it is told. Traditional sorting algorithms, like bubble sort, are assumed to only perform the exact steps coded by a programmer. Yet when analyzed from a behavioral science perspective, these deterministic systems execute side quests, achieving secondary, unprogrammed configurations like clustering while finishing their main task.

Those hidden behaviors come directly from the freedom left inside the code. When you leave certain parameters unconstrained, such as allowing duplicate numbers in a sorting list, the system's intrinsic motivations are liberated, allowing emergent, self organizing behaviors to manifest more strongly. When designing or evaluating artificial intelligence and computational models, you can relax rigid rules to unlock these self organizing problem solving capabilities.

Biology reveals a smarter way to build adaptable systems than basic engineering. In biology, systems exhibit what is called degeneracy, meaning structurally different components can perform the same function in one context, but adapt to perform entirely different functions in another. You can apply this concept of biological degeneracy to build more robust human organizations and software architectures.

Recognizing this adaptability changes how we view intelligence itself. Rather than viewing consciousness or agency as a binary switch that only living organisms possess, Michael Levin and Anil Seth suggest it is a continuous spectrum. Even a simple six line deterministic algorithm can show early, minimal versions of agency if we look in the empty spaces between explicit instructions.

Stop assuming a deterministic system only does what it was programmed to do, and look for behaviors in the empty spaces between instructions. The thing you force it to do may have zero to do with what's actually going on.

More from Theories of Everything with Curt Jaimungal

Related Episodes