PARC: An Autonomous Self-Reflective Coding Agent for Robust Execution of Long-Horizon Tasks

Yuki Orimo, Iori Kurata, Mori, Hodaka, Ryuhei Okuno, Ryohto Sawada, Daisuke OkanoharaarXiv 2025 · DOI

TL;DR

This paper introduces PARC, an autonomous AI agent designed to tackle complex, long-horizon computational tasks without human intervention. PARC achieves this by integrating a hierarchical multi-agent system with self-assessment and self-feedback mechanisms, enabling it to plan, execute, and robustly correct its own actions and strategies. This approach significantly improves performance on challenging scientific and data science tasks, demonstrating the potential for AI agents to conduct large-scale, independent analytical work.

What Problem Does This Paper Address?

The paper addresses the significant challenge of executing "long-horizon tasks" – complex computational problems that require many sequential steps or extended periods to complete. While current AI coding agents have made strides in short-term tasks, they struggle with these extended workflows. This difficulty isn't solely due to the limitations of underlying Large Language Models (LLMs), which are increasingly powerful. Instead, the authors argue that the architectural design of existing agents creates bottlenecks. These agents often process information sequentially, leading to context saturation, error accumulation, and an inability to detect and correct high-level strategic errors. This can result in agents getting stuck on incorrect approaches for days, producing erroneous results without realizing it. The paper aims to bridge this gap by proposing a novel agent architecture that can autonomously manage and execute these complex, multi-step tasks with robustness and reliability.

Methods

PARC's core innovation lies in its architecture, which builds upon standard coding agents by incorporating two key mechanisms: self-assessment and self-feedback.

  • Hierarchical Multi-Agent System: PARC operates as a multi-agent system. A planner agent is responsible for interacting with the user, understanding the task, and generating a detailed project plan and a sequence of smaller, manageable tasks. Multiple worker agents then execute these tasks sequentially.
  • Structured Workspace: Each worker operates within an independent context, with task-specific outputs stored in a shared "structured workspace." This prevents context window limitations and contamination issues common in standard agents.
  • Self-Assessment and Self-Feedback: This is PARC's defining feature. Workers don't just execute tasks; they continuously evaluate their own actions and outcomes. This self-reflection mechanism allows PARC to:
  • Detect and correct local errors (e.g., code execution failures).
  • Assess the consistency of its work and the validity of its overall approach.
  • Identify and rectify high-level strategic errors that might lead to project failure.
  • Decide when to proceed to the next task based on achieving a sufficient quality of outcome.
  • Halt the project if a problem cannot be resolved, allowing for human review and intervention.

This self-feedback loop is inspired by techniques like "LLM-as-a-Judge" and "Self-Refine," enabling PARC to perform approach-level corrections beyond simple error handling.

Datasets

The paper evaluates PARC on several real-world computational science and data science tasks, rather than on specific pre-defined datasets for training. These include:

  • Materials Science Simulations: Replicating key results from studies on lithium-ion conduction in solid electrolytes and segregation behavior of light interstitials in Cr-Ni alloys. These tasks involve complex simulation workflows.
  • Kaggle Competitions:
    • NeurIPS Open Polymer Prediction Challenge 2025: Predicting five physical properties of polymers from their SMILES representations. This task involves data science workflows including feature extraction, model selection, and hyperparameter optimization.
  • Santa 2023 - The Polytope Permutation Puzzle: Discovering sequences of moves to solve polyhedral puzzles with minimal steps. This is framed as an advanced implementation task requiring trial and error.

The paper does not introduce new benchmarks but rather uses existing scientific studies and competitive challenges as evaluation grounds.

Key Insights and Ideas

  • Agent Architecture is Key for Long-Horizon Tasks: The paper strongly suggests that the limitations in executing long-horizon tasks are not solely due to LLM capabilities but significantly stem from the architectural design of current agents. PARC's success highlights the power of structured planning, execution, and robust self-reflection.
  • Self-Reflection Enables Strategic Correction: The self-assessment and self-feedback mechanisms are crucial. They allow PARC to catch errors that might otherwise go unnoticed for days, preventing the agent from pursuing fundamentally flawed strategies. This is akin to a "System 2" thinking process for AI.
  • Autonomous Scientific Discovery Potential: By successfully handling complex simulation tasks and data analysis with minimal human input, PARC demonstrates the potential for AI agents to contribute to scientific discovery and complex software engineering tasks that typically require human experts.
  • General-Purpose Agent Viability: The diverse range of successful applications (materials science, data science, puzzle solving) suggests that PARC's architecture can serve as a general-purpose solution for a variety of long-horizon computational problems, not just domain-specific ones.

Key Results

PARC demonstrated impressive capabilities across its case studies:

  • Materials Science:
    • Lithium Diffusion: Autonomously reproduced key results for lithium diffusion in solid electrolytes, coordinating dozens of parallel simulation tasks, each taking ~43 hours, managing orchestration, monitoring, and error correction end-to-end. It achieved an activation energy of 0.23 eV, close to the reported 0.18 eV.
  • Cr-Ni Alloy: Successfully reproduced findings on the segregation behavior of light interstitials, performing 35 simulations requiring ~16-43 hours each. It correctly identified distinct effects of Boron and Nitrogen doping on structural stability.
  • Data Science (Kaggle):
    • Polymer Prediction: Achieved an average R² score of 0.669 without using the "mordred" tool and 0.781 with it, surpassing a human baseline of 0.764 on a Kaggle competition. This was achieved with minimal instructions.
  • Polytope Permutation Puzzle: Reduced the total number of moves (score) by approximately 21,000 compared to a default solution, achieving a score of 1,199,430. While not reaching the winning score, it significantly outperformed a baseline and demonstrated autonomous problem-solving for a complex task.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Error Detection Imperfections: Despite self-assessment, some errors still escaped detection during experiments. Future work could focus on improving the self-assessment and self-feedback mechanisms to increase error detection pathways.
  • Task Decomposition Granularity: Optimizing the structure and granularity of task decomposition by the planner could further reduce error probability by breaking tasks into simpler, more verifiable units.
  • Autonomous External Tool Discovery: A significant challenge remains in enabling the agent to autonomously discover and utilize external tools suitable for a given problem.
  • Human Intervention: While PARC aims for autonomy, some tasks (like the YSZ simulation) still required human inspection and correction to achieve useful results, highlighting areas where PARC's current capabilities are insufficient for fully autonomous operation.
  • Model Scaling vs. Architecture: The paper emphasizes that architectural improvements, rather than just LLM scaling, are crucial for advancing AI capabilities in complex tasks. Future work will likely continue to explore novel agent architectures.

Summary updated

Abstract

We introduce PARC, a coding agent for the autonomous and robust execution of long-horizon computational tasks. PARC is built on a hierarchical multi-agent architecture incorporating task planning, execution, and a mechanism that evaluates its own actions and their outcomes from an independent context and provides feedback, namely self-assessment and self-feedback. This design enables PARC to detect and correct high-level strategic errors and sustain progress without human intervention. We evaluate PARC across computational science and data science tasks. In materials science, it autonomously reproduces key results from studies on lithium-ion conduction and alloy segregation. In particular, it coordinates dozens of parallel simulation tasks, each requiring roughly 43 hours of computation, managing orchestration, monitoring, and error correction end-to-end. In Kaggle-based experiments, starting from minimal natural-language instructions, PARC conducts data analysis and implements search strategies, producing solutions competitive with human-engineered baselines. These results highlight the potential of integrating a hierarchical multi-agent system with self-assessment and self-feedback to enable AI systems capable of independent, large-scale scientific and analytical work.
BibTeX
@misc{orimo2025parc,
  author = {Yuki Orimo and Iori Kurata and Mori, Hodaka and Ryuhei Okuno and Ryohto Sawada and Daisuke Okanohara},
  title = {{PARC: An Autonomous Self-Reflective Coding Agent for Robust Execution of Long-Horizon Tasks}},
  year = {2025},
  eprint = {2512.03549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.03549},
}
Figure