[Paper Review] Hard Constraints Meet Soft Generation: Guaranteed Feasibility for LLM-based Combinatorial Optimization
FALCON guarantees 100% feasibility for LLM-based combinatorial optimization by layering grammar-constrained decoding, a semantic repair operator, and adaptive Best-of-N sampling, with BOPO training, evaluated across seven NP-hard problems.
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-$N$ 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.
Motivation & Objective
- Address the lack of hard feasibility guarantees in LLM-based combinatorial optimization.
- Propose a layered architecture (grammar constraints, repair, adaptive sampling) to ensure feasibility while preserving quality.
- Introduce BOPO training for dense, objective-guided supervision and prove convergence.
- Provide theoretical guarantees on repair impact and feasibility, plus empirical validation across diverse problem classes.
Proposed method
- Grammar-constrained decoding using input-dependent context-free grammars and a PDA-based masking algorithm to enforce syntactic validity.
- A feasibility repair layer with properties: feasibility, idempotence, and bounded locality to transform any output into a feasible one.
- Adaptive Best-of-N sampling driven by solution consistency and Bayesian confidence to allocate compute efficiently.
- BOPO: Best-anchored Objective-guided Preference Optimization that weights preference pairs by objective gaps, with convergence guarantees (O(1/√T)).
- Two-stage training: supervised fine-tuning on expert solutions followed by BOPO refinement to steer toward higher-quality feasible solutions.

Experimental results
Research questions
- RQ1Can 100% feasibility be guaranteed for LLM-based combinatorial optimization across diverse problem classes?
- RQ2How does FALCON compare to general-purpose LLMs and domain-specific solvers in feasibility rates and solution quality?
- RQ3What are the contributions and necessity of grammar constraints, repair layer, BOPO, and adaptive sampling to overall performance?
- RQ4How does FALCON scale with problem size and instance difficulty across routing, graph, and scheduling problems?
Key findings
- FALCON achieves 100% feasibility across seven NP-hard problems, even with a single sample (N=1).
- Adaptive sampling yields competitive optimality gaps with far fewer samples than fixed N=64, reducing inference time substantially.
- The repair layer is essential for feasibility (its removal lowers feasibility), and BOPO outperforms GRPO across problems.
- Repair frequency correlates with constraint complexity, while overhead remains small, proving locality of repairs.
- BOPO provides superior learning signals and convergence guarantees, producing better feasibility and gap performance than baseline methods.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.