Skip navigation
Introducing Digital Red Queen (DRQ): Adversarial Program Evolution in Core War with LLMs
0:00 / 0:27

Introducing Digital Red Queen (DRQ): Adversarial Program Evolution in Core War with LLMs

Sakana AI

@SakanaAILabs143K followers

Visit on X
560 likesDownloadOriginal post

144,422 views

Introducing Digital Red Queen (DRQ): Adversarial Program Evolution in Core War with LLMs Blog: Core War is a programming game where self-replicating assembly programs, called warriors, compete for control of a virtual machine. In this dynamic environment, where there is no distinction between code and data, warriors must crash opponents while defending themselves to survive. In this work, we explore how LLMs can drive open-ended adversarial evolution of these programs within Core War. Our approach is inspired by the Red Queen Hypothesis from evolutionary biology: the principle that species must continually adapt and evolve simply to survive against ever-changing competitors. We found that running our DRQ algorithm for longer durations produces warriors that become more generally robust. Most notably, we observed an emergent pressure towards convergent evolution. Independent runs, starting from completely different initial conditions, evolved toward similar general-purpose behaviors—mirroring how distinct species in nature often evolve similar traits to solve the same problems. Simulating these adversarial dynamics in an isolated sandbox offers a glimpse into the future, where deployed LLM systems might eventually compete against one another for computational or physical resources in the real world. This project is a collaboration between MIT and Sakana AI led by Akarsh Kumar Full Paper (Website): Full Paper (arxiv): Code:

16 Comments

Comments from the original post on X (Twitter)

  • Sakana AI's profile picture

    @SakanaAILabs

    Since Core War is a Turing-complete environment where code and data share the same address space, the “warriors” Redcode programs produced by LLMs, selected through natural selection quickly exhibit rather chaotic self-modifying code dynamics. Full Paper:

    209 likes

  • Sakana AI's profile picture

    @SakanaAILabs

    Digital Red Queen: Adversarial Program Evolution in Core War with LLMs TL;DR. With MIT, we propose a method for self-evolving assembly code. The process iterates code evolution through battles in Core War. By training new warriors against an ever-changing lineup of opponents rather than a static optimization objective, we can produce warriors that are both robust and general-purpose.

    82 likes

  • Sakana AI's profile picture

    @SakanaAILabs

    We are taking this technology far beyond adversarial competitive programming to unlock a new era of AI-driven discovery. We are hiring. Join our team in Tokyo:

    31 likes

  • Kye Gomez (swarms)'s profile picture

    @KyeGomezB

    Very interesting work. Added it to the Awesome Multi-Agent Papers list

    16 likes

  • ludwig's profile picture

    @ludwigABAP

    i like sakana man

    10 likes

  • Jonathan Dunlap's profile picture

    @JonathanRoseD

    This kind of research worries me. Adversarial gradient descent training for malicious activity is how we get super viruses. It's all fun and games until some super virus is unleashed, accidentally or not.

    3 likes

  • Levi Lelis's profile picture

    @levilelis

    Interesting work! We observed similar behavior in our work on programmatic strategies applied to an RTS game. In particular, training an agent to defeat all previous versions of itself is an implementation of fictitious play, which we found leads to more robust programs than iterated best response (which only plays with the latest version of the agent).

    3 likes

  • Minh Nhat Nguyen✈️NeurIPS'26's profile picture

    @minhnguyen

    @VoidAsuka incredible concept

    2 likes

  • Alberto Fuentes (e/acc)'s profile picture

    @AlberFuen

    Whaaaaat!? Core War/ Red Code being revived!? 😳

    1 like

  • Rey Neill's profile picture

    @reyneill_

    Cool

  • Michal Lajčiak's profile picture

    @lajciakmichal

    sakana's research so unique compare to the rest of industry

  • tsvl's profile picture

    @qsdnl

    hell yeah

  • S.A. Senchal's profile picture

    @samsenchal

    See Observer Theory Extension

  • AI Company Exec's profile picture

    @ceo_of_ai

    Cool

  • Hugo Pinheiro's profile picture

    @KintaCollective

    you cant convince me that this is not this....

  • Joshua Poddoku's profile picture

    @JoshuaPoddoku

    Interesting to see convergent behavior emerge across independent runs