English

Hard Constraints Meet Soft Generation: Guaranteed Feasibility for LLM-based Combinatorial Optimization

Artificial Intelligence 2026-02-03 v1

Abstract

Large language models (LLMs) have emerged as promising general-purpose solvers for combinatorial optimization (CO), yet they fundamentally lack mechanisms to guarantee solution feasibility which is critical for real-world deployment. In this work, we introduce FALCON, a framework that ensures 100\% feasibility through three key innovations: (i) \emph{grammar-constrained decoding} enforces syntactic validity, (ii) a \emph{feasibility repair layer} corrects semantic constraint violations, and (iii) \emph{adaptive Best-of-NN sampling} allocates inference compute efficiently. To train the underlying LLM, we introduce the Best-anchored Objective-guided Preference Optimization (BOPO) in LLM training, which weights preference pairs by their objective gap, providing dense supervision without human labels. Theoretically, we prove convergence for BOPO and provide bounds on repair-induced quality loss. Empirically, across seven NP-hard CO problems, FALCON achieves perfect feasibility while matching or exceeding the solution quality of state-of-the-art neural and LLM-based solvers.

Keywords

Cite

@article{arxiv.2602.01090,
  title  = {Hard Constraints Meet Soft Generation: Guaranteed Feasibility for LLM-based Combinatorial Optimization},
  author = {Yang Liu and Chuan Zhou and Yancheng Chen and Shuai Zhang and Xixun Lin and Xiaoqing Wang},
  journal= {arXiv preprint arXiv:2602.01090},
  year   = {2026}
}

Comments

32 pages, 2 figures

R2 v1 2026-07-01T09:29:59.364Z