Self-Programmed Execution for Language-Model Agents
Luke J O'Connor
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › Agentic Reasoning and Skill Management · Type: new method · Keywords: self-programmed execution, language model agents, self-orchestration, Spell language, agentic machines
Areas: AI Agents › Agent Capabilities › Self-Modifying Agents
Summary
Self-Programmed Execution (SPE) enables language model agents to act as their own orchestrator by using a self-editing Lisp language called Spell, allowing agents to execute arbitrary programs without a fixed orchestration policy.
Explained to a 5-year-old
A talking computer can help us do things by making up sentences. Usually, a person has to tell it what to do next, like a boss giving orders. This paper lets the computer write its own orders and follow them by itself. It uses a special language that lets the computer change its own plans safely. This makes the computer more free and helps it solve harder problems.
Explained to a 5-year-old, longer
A talking computer can help us do things by making up sentences. Usually, a person has to tell it what to do next, like a boss giving orders. This paper lets the computer write its own orders and follow them by itself. It uses a special language that lets the computer change its own plans safely. The computer can edit its own instructions without starting over. This way, the computer can decide what to do next without waiting for a person. It can adapt to new situations by updating its own rules. The computer can also undo mistakes because it remembers what it did before. This makes the computer more like a clever friend that can think for itself. It can handle harder tasks because it is not limited by fixed steps. The idea is like giving a robot a toolbox that it can use to fix itself. Overall, this approach lets computers be more independent and solve problems on their own.
For a technical reader
The paper introduces an agent architecture where the language model’s output itself serves as the orchestrator, removing the need for an external controller. It defines an “SPE state” that lets the model load and modify an embedded copy of a machine, ensuring safe re-execution without replaying side effects. The authors also present “Spell”, a Lisp-based language that supports self-editing and side-effect-free re-evaluation. Experiments show that off-the-shelf models can operate in this self-orchestrating mode and complete challenging tasks without fine-tuning.
Problem
Existing language model agents rely on a fixed orchestrator program that dictates state transitions between turns, limiting flexibility and requiring external orchestration policies. This fixed orchestration can constrain agents from dynamically adapting their own execution flow.
Method
The approach uses an agentic machine state where the model's completion itself serves as the orchestrator program, and introduces a Lisp-based language (Spell) that supports self-editing and side-effect-free re-evaluation of programs, allowing the model to load and modify its own execution state.
Results
The approach demonstrates that frontier language models can operate without a fixed orchestration policy and successfully complete challenging agentic tasks.
Contributions
The paper proposes a self-orchestrating agent architecture where the model completion itself acts as the orchestrator, formalizes the concept of SPE states, and introduces Spell, a Lisp language enabling safe self-editing and re-evaluation of programs.
Limitations and assumptions
The approach relies on existing models not specifically trained for SPE or Spell, and the integration of program and context introduces complexity in ensuring side-effect-free re-evaluation.
Practical relevance
Enables more flexible and autonomous language model agents that can dynamically manage their own execution, potentially reducing reliance on hand-crafted orchestration pipelines.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction