arXiv:2610.09219cs.AIOct 2026

Manuscript Offprint

arXiv:2610.09219

CM-DPO: Constraint-Margin Direct Preference Optimization for LLM Planning

Rabimba Karanjai, Qun Gu, Hemanth Hegadehalli Madhavarao, Wenhuan Sun, Xiaojiao Yu, Suryabhan Singh Hada, Libin N. George, Uma Kona, Richard Williamson, Linsey Pang, Prakhar Mehrotra

Rabimba Karanjai 1^{1}, Qun Gu 1^{1}, Hemanth Hegadehalli Madhavarao 1^{1}, Wenhuan Sun 1^{1}, Xiaojiao Yu 1^{1}, Suryabhan Singh Hada 1^{1}, Libin N. George 1^{1}, Uma Kona 1^{1}, Richard Williamson 1^{1}, Linsey Pang 1^{1}, Prakhar Mehrotra 1^{1}

1^{1}PayPal AI Lab

rkaranjai@paypal.com

Direct Preference Optimization (DPO) treats all constraint violations equally: a 1budgetovershootanda1 budget overshoot and a1,000 overshoot induce the same training signal. It is also susceptible to length and style bias when preference pairs come from different model families. We introduce Constraint-Margin DPO (CM-DPO), which replaces DPO's binary preference signal with a continuous margin derived from a deterministic symbolic verifier and scaled by violation severity. Hard and soft constraints are separated through a lexicographic objective, ensuring hard constraints are never traded off against preferences. To supply CM-DPO with bias-reduced training pairs, we generate preference data through procedurally generated constraint profiles (DCCG) and minimal-edit distillation from a reasoning teacher (RT-MED), within a framework we call SynPlan-R. On TravelPlanner, NaturalPlan, and out-of-distribution PlanBench, an 8B model fine-tuned with CM-DPO achieves 89.2% pass rate and 93.4% solve rate, matching multi-agent systems at 13× lower latency while outperforming GPT-4o on unseen Blocksworld by 9.2 points.

Date October 2026

1 Introduction

The deployment of Large Language Models (LLMs) is increasingly shifting from open-ended conversational generation toward agentic workflows that require precise, long-horizon planning under complex constraints Valmeekam et al. (2023); Xie et al. (2024). Real-world planning queries are rarely governed by a single homogeneous rule set; instead, they combine hard functional constraints, such as budget ceilings, temporal non-overlap, and capacity limits, that must be satisfied without exception, with soft user preferences, such as preferred carriers, dining cuisines, and proximity to landmarks, that should be optimized but may be relaxed. A user requesting “a weekend trip under $500 that avoids red-eye flights, preferably with boutique hotels” expects the budget ceiling and flight timing to be inviolable, while treating hotel style as a best-effort preference. Standard LLMs often conflate these two categories, producing plans that are semantically fluent but either violate hard constraints or unnecessarily sacrifice soft-constraint preferences Xie et al. (2024).

We characterize this failure landscape as a Planning Trilemma among three constraints:

• Accuracy: strict, verifiable satisfaction of all hard constraints and best-effort adherence to soft preferences.

• Efficiency: sub-second, single-pass inference compatible with real-time deployment.

• Controllability: responsiveness to dynamic, per-query constraint profiles without retraining.

Existing methods typically satisfy at most two of these three criteria. We propose a unified data-synthesis and alignment framework with the following contributions:

  1. Dynamic Contextual Constraint Graphs (DCCG): A formal representation that decomposes planning problems into parameterized hard and soft constraint profiles over procedurally generated knowledge bases (synthetic flight and hotel databases with randomized prices and schedules). DCCG reduces the risk of domain memorization and encourages the model to learn transferable combinatorial reasoning ( §3\S3).

  2. Reasoning-Trace Minimal-Edit Distillation (RT-MED): A teacher–student synthesis pipeline in which a reasoning model (DeepSeek-R1, o3-mini) corrects a flawed student draft through the minimum necessary semantic edits, isolating the logical “gradient” from stylistic noise and mitigating the length bias inherent in full-rewrite distillation ( §4§4).

  3. Constraint-Margin Preference Optimization (CM-DPO): An extension of DPO that injects a continuous penalty margin into the preference loss, scaled by the deterministic severity of hard-constraint violations computed by a symbolic verifier. Soft-constraint adherence is incorporated as a lexicographic secondary objective, ensuring that hard constraints are never traded off against preference satisfaction ( §5§5).

References (35)