PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 24, 20250 citationsOpen Access

Re4: Scientific Computing Agent with Rewriting, Resolution, Review and Revision

View Full Paper
ACAnn‐Lii ChengLZLei ZhangGHGuo‐Wei He

Key Points

  • The agent framework enables automatic code generation using a rewriting-resolution-review-revision approach, enhancing problem-solving capabilities.
  • Performance evaluation demonstrated significant success in generating bug-free code and non-NaN solutions in complex scientific tasks.
  • Three reasoning modules—Consultant, Reviewer, and Programmer—work collaboratively, improving the code generation process and self-refinement.
  • The proposed framework addresses challenges in solving PDEs and ill-conditioned linear systems, highlighting its reliability and effectiveness.

Abstract

Large language models (LLMs) serve as an active and promising field of generative artificial intelligence and have demonstrated abilities to perform complex tasks in multiple domains, including mathematical and scientific reasoning. In this work, we construct a novel agent framework for solving representative problems in scientific computing. The proposed agent, incorporating a "rewriting-resolution-review-revision" logical chain via three reasoning LLMs (functioning as the Consultant, Reviewer, and Programmer, respectively), is integrated in a collaborative and interactive manner. The Consultant module endows the agent with knowledge transfer capabilities to link problems to professional domain insights, thereby rewriting problem descriptions through text augmentation. The Programmer module is responsible for generating and executing well-structured code to deliver the problem resolution. The Reviewer module equips the agent with the capacity for self-debugging and self-refinement through interactive feedback with code runtime outputs. By leveraging the end-to-end review mechanism, the executable code provided by the Programmer attains the iterative revision. A comprehensive evaluation is conducted on the performance of the proposed agent framework in solving PDEs, ill-conditioned linear systems, and data-driven physical analysis problems. Compared to single-model, this collaborative framework significantly improves the bug-free code generation rate and reduces the occurrence of non-physical solutions, thereby establishing a highly reliable framework for autonomous code generation based on natural language descriptions. The review mechanism improved the average execution success (bug-free code and non-NaN solutions) rate of the latest reasoning models. In summary, our agent framework establishes automatic code generation and review as a promising scientific computing paradigm.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Cheng et al. (2025) studied this question.

synapsesocial.com/papers/68d6e0fc8b2b6861e4c3f5eehttps://doi.org/10.48550/arxiv.2508.20729
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1SciAgent: Tool-augmented Language Models for Scientific Reasoning2024 · 2 citations
  2. 2ReviewAgents: Bridging the Gap Between Human and AI-Generated Paper Reviews2025
  3. 3Advancing AI-Scientist Understanding: Multi-Agent LLMs with Interpretable Physics Reasoning2025
  4. 4ResearchAgent: Iterative Research Idea Generation over Scientific Literature with Large Language Models2024 · 13 citations
  5. 5Autonomous Chemistry and Materials Innovation Driven by Scientific Agents2026