Autonomous Code Evolution Meets NP-Completeness

Cunxi Yu, Rongjian Liang, Chia-Tung Ho, Haoxing RenarXiv 2025 · DOI

Introduction

Boolean Satisfiability (SAT) is the foundational NP-complete problem, critical for hardware verification, cryptography, and logistics. While modern solvers are highly optimized, they are also immensely complex, often comprising tens of thousands of lines of C++ and hundreds of hand-tuned heuristics. Traditionally, developing a competitive solver requires months of expert human labor.

The SATLUTION Framework

Researchers from NVIDIA and the University of Maryland have introduced SATLUTION, the first LLM-based framework capable of evolving entire software repositories. Unlike previous approaches that focused on small code kernels, SATLUTION manages repository-scale evolution, maintaining correctness while discovering algorithmic innovations.

The system employs a multi-agent orchestration strategy:

  • Planning and Coding Agents: Powered by Claude 3.5 and 4, these agents propose architectural changes and execute them directly within the codebase.
  • Two-Stage Verification: Every iteration is checked for compilation and then validated using DRAT (Discrete Resolution Answer Trace) proof checkers to ensure mathematical soundness.
  • Self-Evolving Rulebase: The system refines its own "forbidden patterns" and "champion strategies" based on previous successes or failures.
  • Distributed Evaluation: A cluster of 800 CPU nodes provides rapid benchmarking.

Experimental Results

The framework was seeded with SAT Competition 2024 codebases and evaluated against the unseen SAT Competition 2025 benchmark.

Performance Benchmarks

SATLUTION demonstrated a consistent ability to outperform human-designed champions. The system's best-evolved solvers achieved lower PAR-2 (Penalized Average Runtime) scores than both the 1st and 2nd place winners of the 2025 competition.

Figure 1: Average PAR-2 scores of evolved SATLUTION solvers compared to 2025 SAT Competition winners. Lower scores indicate better performance.

Beyond runtime efficiency, the evolved solvers demonstrated higher throughput. The top variant, SATLUTION-70A, solved 347 instances, surpassing the gold medalist's 334 instances.

Figure 2: Cumulative instances solved over wallclock time. SATLUTION variants (70A, 72, 70B) consistently outperform the baseline winners.

Key Insights

  • Context Matters: Managing the entire project structure allowed the AI to discover cross-component optimizations that human experts might overlook due to cognitive load.
  • Metric Selection: Shifting the optimization target to PAR-2 was crucial; it encouraged the discovery of balanced heuristics rather than just maximizing the raw count of solved instances.
  • Economic Efficiency: The entire evolution process cost less than $20,000 in compute and tokens—a fraction of the cost of months of specialized human research.

Conclusion and Future Work

SATLUTION marks a significant milestone in autonomous programming. While human guidance still aids high-level strategic planning, the system's ability to navigate the extreme complexity of NP-complete problem-solving is unprecedented. Future research will focus on automating the construction of the verifiers themselves, potentially extending these capabilities to other high-stakes engineering domains like Electronic Design Automation (EDA).

Summary updated

BibTeX
@misc{yu2025autonomous,
  author = {Cunxi Yu and Rongjian Liang and Chia-Tung Ho and Haoxing Ren},
  title = {{Autonomous Code Evolution Meets NP-Completeness}},
  year = {2025},
  eprint = {2509.07367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.07367},
}
Figure