SolverLLM: Leveraging Test-Time Scaling for Optimization Problem via LLM-Guided Search
Dong Li, Xujiang Zhao, Linlin Yu, Yanchi Liu, Wei Cheng, Zhengzhang Chen, Zhong Chen, Feng Chen, Chen Zhao, Haifeng Chen
TL;DR
SolverLLM addresses the challenge of forming optimization models from natural language without requiring task-specific training. It introduces a training-free, test-time scalable framework that uses LLM-guided Monte Carlo Tree Search to explore a six-element formulation space (Type, Sets, Parameters, Variables, Objective, Constraints) and to generate executable solver code. The approach leverages dynamic expansion, prompt backpropagation, and uncertainty backpropagation to create a reasoning-rich search that improves convergence to high-quality formulations. Across six benchmarks, SolverLLM outperforms prompt-based and learning-based baselines, demonstrating strong generalization and robustness without training data, albeit at the cost of inference time due to search.
Abstract
Large Language Models (LLMs) offer promising capabilities for tackling complex reasoning tasks, including optimization problems. However, existing methods either rely on prompt engineering, which leads to poor generalization across problem types, or require costly supervised training. We introduce SolverLLM, a training-free framework that leverages test-time scaling to solve diverse optimization problems. Rather than solving directly, SolverLLM generates mathematical formulations and translates them into solver-ready code, guided by a novel Monte Carlo Tree Search (MCTS) strategy. To enhance the search process, we modify classical MCTS with (1) dynamic expansion for adaptive formulation generation, (2) prompt backpropagation to guide exploration via outcome-driven feedback, and (3) uncertainty backpropagation to incorporate reward reliability into decision-making. Experiments on six standard benchmark datasets demonstrate that SolverLLM outperforms both prompt-based and learning-based baselines, achieving strong generalization without additional training.
