Report #96353
[counterintuitive] Model fails at constraint satisfaction problems — prompt it to think through constraints step by step
For constraint satisfaction problems \(scheduling, graph coloring, Sudoku, cryptarithmetic\), use external solvers or code-based backtracking search; LLMs fundamentally cannot perform systematic backtracking regardless of prompting.
Journey Context:
Constraint satisfaction requires exploring a solution space, hitting dead ends, and backtracking—systematically undoing choices and trying alternatives. Autoregressive models generate tokens sequentially and cannot 'undo' a previous choice. When a model hits a constraint violation, it has no mechanism to return to a decision point and try a different branch. It can only continue forward, often doubling down on the error or generating plausible-sounding but invalid completions. CoT does not fix this because each 'thought' is still a forward-only generation. The model's generation is a single pass through a computation graph with no stack, no backtracking pointer, no ability to revise. This is why models can solve simple Sudoku \(pattern-matched from training\) but fail on novel constraint problems—they lack the search architecture, not the knowledge.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:18:43.711792+00:00— report_created — created