← Latest papers
💬 NLP

Toward Autonomous Long-Horizon Engineering for ML Research

The paper introduces AiScientist, an autonomous system that significantly advances long-horizon ML research engineering by combining hierarchical orchestration with a durable "File-as-Bus" workspace to maintain state continuity, thereby outperforming baselines on key benchmarks and demonstrating that effective long-term research is a systems coordination problem rather than solely a local reasoning challenge.

Original authors: Guoxin Chen, Jie Chen, Lei Chen, Jiale Zhao, Fanzhe Meng, Wayne Xin Zhao, Ruihua Song, Cheng Chen, Ji-Rong Wen, Kai Jia

Published 2026-04-15
📖 5 min read🧠 Deep dive

Original authors: Guoxin Chen, Jie Chen, Lei Chen, Jiale Zhao, Fanzhe Meng, Wayne Xin Zhao, Ruihua Song, Cheng Chen, Ji-Rong Wen, Kai Jia

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to build a massive, complex skyscraper. You have a blueprint (a research paper), a pile of raw materials, and a team of workers. But here's the catch: the blueprint is vague, the materials are scattered, and you have to build the whole thing over several days without a human boss checking in every hour.

Most AI assistants today are like brilliant but short-attention-span interns. They can write a great paragraph or fix a small leak, but if you ask them to build a skyscraper over three days, they forget what they did on Day 1 by the time they get to Day 3. They rely on "conversational memory" (remembering what you just said), which is like trying to remember a 50-page story just by listening to someone whisper the last sentence.

AiScientist is a new system designed to solve this. It treats AI research not as a conversation, but as a construction site with a permanent filing system.

Here is how it works, broken down into simple concepts:

1. The Problem: The "Forgetful Intern"

In traditional AI research, an agent tries to do everything in one long chat.

  • The Issue: If the project takes 24 hours, the AI's "context window" (its short-term memory) gets full. It starts forgetting the early decisions, the code it wrote, or the errors it found. It's like trying to bake a 10-layer cake while only remembering the last layer you put on.
  • The Result: The AI gets confused, repeats mistakes, or gives up.

2. The Solution: "Thin Control, Thick State"

The authors of AiScientist realized that to build something complex, you need two things:

  • Thin Control: A manager who keeps a simple, high-level checklist.
  • Thick State: A massive, detailed filing cabinet where everything is written down permanently.

Instead of the AI trying to remember everything in its head, it writes everything down in a shared workspace.

3. The "File-as-Bus" (The Magic Filing Cabinet)

This is the paper's most creative idea. Usually, AI agents talk to each other like people in a chat room. AiScientist changes the rules: They don't talk; they leave notes.

  • The Analogy: Imagine a construction site where the architect doesn't shout instructions to the electrician. Instead, the architect writes a note on a whiteboard: "Wiring needs to be red." The electrician walks over, reads the whiteboard, does the job, and writes a new note: "Red wiring installed, but the fuse box is missing."
  • How it works: The AI agents write their plans, code, and experiment results into specific files (like plan.md, code.py, experiment_log.txt). When the next agent starts, it doesn't ask "What did we do?" It just opens the files and reads the latest notes.
  • Why it helps: This creates durable state. Even if the AI forgets the conversation, the files never forget. The project state is preserved like a hard drive, not a fleeting thought.

4. The Hierarchy: The "General Contractor" and "Specialists"

AiScientist uses a team structure that mimics a real research lab:

  • The Orchestrator (The General Contractor): This is the boss. It doesn't write code or run experiments. It just looks at the "Project Map" (a summary of the files), decides what needs to be done next, and assigns tasks. It keeps the "control" light and simple.
  • The Specialists (The Tradespeople): These are the workers.
    • The Reader: Reads the paper and writes a summary.
    • The Coder: Writes the code based on the summary.
    • The Tester: Runs the code, finds bugs, and writes a report.
  • The Magic: If the Tester finds a bug, they don't tell the Coder verbally. They update the bug_report.txt file. The Coder checks the file, fixes the bug, and updates the code.py file. The General Contractor just checks the map to see if the job is done.

5. The Results: Building the Skyscraper

The researchers tested this system on two difficult challenges:

  1. Recreating a Scientific Paper: Can the AI read a complex paper and rebuild the experiment from scratch?
  2. Winning a Competition: Can the AI run experiments for hours to improve a model's score?

The Outcome:

  • AiScientist significantly outperformed other AI systems.
  • When they removed the "File-as-Bus" (forced the AI to rely on chat memory again), the performance crashed. This proved that the "filing cabinet" approach is the secret sauce.
  • It managed to run for 23 hours straight, conducting 74 experiments and improving its results from a "C" grade to an "A" grade without human help.

The Big Takeaway

The paper argues that making AI do long-term, complex engineering isn't just about making the AI "smarter" or "better at reasoning." It's a systems problem.

To build a skyscraper, you don't just need a smarter bricklayer; you need a better blueprint system and a way to ensure the work done on Monday is still visible and usable on Friday. AiScientist solves this by treating files as the memory, allowing AI to work on long, difficult projects without losing its place.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →