AutoPBO: LLM-powered Optimization for Local Search PBO Solvers

Jinyuan Li, Yi Chu, Yiwen Sun, Mengchuan Zou, Shaowei Cai · DOI

Abstract

Pseudo-Boolean Optimization (PBO) is a critical NP-hard problem with applications ranging from VLSI design to economic modeling. While local search solvers offer efficiency for large-scale instances, their performance relies heavily on manually designed heuristics. We present AutoPBO, a framework that utilizes Large Language Models (LLMs) to automatically optimize these heuristics. By restructuring solvers into modular components (StructPBO) and employing a multi-agent iterative loop, AutoPBO achieves significant performance gains, outperforming state-of-the-art open-source solvers and rivaling commercial leaders like Gurobi on real-world benchmarks.

Introduction

Designing effective heuristics for PBO solvers traditionally requires years of expert intuition and tedious manual trial-and-error. While LLMs have demonstrated potential in code generation, they often struggle with the complex, monolithic codebases typical of high-performance solvers. AutoPBO addresses this by modularizing the solver architecture and using a specialized multi-agent system to iteratively refine algorithmic components, effectively allowing LLMs to "out-research" human experts in heuristic design.

Methods: The AutoPBO Framework

The AutoPBO framework consists of two primary innovations: the structuralization of the solver and a multi-agent optimization loop.

StructPBO: Modular Solver Architecture

To facilitate LLM interaction, the authors developed StructPBO, a modular version of the state-of-the-art NuPBO solver. StructPBO decomposes the solver into seven discrete, readable functions, such as CalculateScore, UpdateWeights, and PickBestVariable. This modularity prevents the LLM from becoming overwhelmed by "spaghetti code" and allows for targeted optimization of specific heuristic rules.

Multi-Agent Iterative Optimization

AutoPBO employs three specialized agents powered by DeepSeek-R1 to drive the optimization process:

  • Code Optimization Planner: Analyzes code segments and proposes theoretical improvements (e.g., adding variable aging terms).
  • Code Editor: Translates these plans into functional C++ code.
  • Modification Evaluator: Compiles the code, runs it against training data, and provides performance feedback.
Overview of the AutoPBO framework, illustrating the transition from a structuralized solver to a multi-agent optimization loop.

The framework utilizes a Greedy Iterative Strategy, optimizing functions sequentially. This ensures that changes in one component (e.g., constraint weighting) are accounted for when optimizing subsequent components (e.g., variable selection), leading to a coherent and high-performing final solver.

Experimental Setup and Datasets

The framework was evaluated across 47 datasets spanning four major benchmarks:

  • PB16: 1,600 instances from the 2016 Pseudo-Boolean competition.
  • MIPLIB: 267 instances of 0-1 integer linear programming.
  • CRAFT: 1,025 "crafted" combinatorial problems.
  • Real-world: Application-driven problems including Minimum-Width Confidence Band (MWCB) and Wireless Sensor Network Optimization (WSNO).

Key Results

AutoPBO demonstrated superior performance across all benchmarks compared to its baseline and established competitors.

Performance vs. State-of-the-Art

AutoPBO significantly improved upon the StructPBO baseline, increasing the total win count from 1,303 to 1,429. More importantly, it outperformed leading open-source solvers like NuPBO-Tuned and OraSLS-Tuned across nearly all benchmarks.

Comparison with Commercial Solvers

One of the most striking results was AutoPBO's performance on real-world benchmarks. While commercial solvers like Gurobi excel on many standard problems, AutoPBO achieved 26 wins on the Real-world dataset, significantly outperforming Gurobi's 3 wins in that category.

Performance comparison of AutoPBO against commercial and open-source solvers across various benchmarks.

Insights and Discussion

The success of AutoPBO highlights several key principles:

  • Modularity as an Enabler: Breaking down complex algorithms into "atomic" functions allows LLMs to apply their reasoning capabilities effectively without logical inconsistencies.
  • Sequential Adaptation: Optimizing interdependent functions sequentially allows the LLM to discover synergies that parallel optimization might miss.
  • LLMs as Researchers: The agents did not merely tune parameters; they introduced sophisticated logic, such as dynamic score ratios and diversification strategies, demonstrating a capacity for genuine algorithmic innovation.

Limitations and Future Work

While highly effective for local search solvers, extending this framework to "complete" solvers—which involve complex tree-search and pruning—remains a challenge. Future research will explore the integration of Retrieval-Augmented Generation (RAG) to incorporate existing optimization literature into the agent's planning phase and extending the framework to Mixed-Integer Programming (MIP) solvers.

Summary updated

BibTeX
@misc{li2025autopbo,
  author = {Jinyuan Li and Yi Chu and Yiwen Sun and Mengchuan Zou and Shaowei Cai},
  title = {{AutoPBO: LLM-powered Optimization for Local Search PBO Solvers}},
  year = {2025},
  eprint = {2509.04007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.04007},
}
Figure