Report #73435
[counterintuitive] Why does the LLM fail at Sudoku or strict scheduling constraints even with explicit rules and chain-of-thought?
Use the LLM to write a constraint solver \(like a Python script using Z3 or OR-Tools\) and execute it, rather than asking the LLM to generate the solution directly.
Journey Context:
The common belief is that LLMs are general reasoners that just need better prompts to 'think harder.' However, autoregressive LLMs generate tokens left-to-right. They cannot natively backtrack if a later token violates an earlier constraint. They lack an internal scratchpad that can be overwritten. They simulate the text of reasoning, not the process of search. Global constraints require search/backtracking, which is architecturally absent in a single forward pass.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T05:51:22.740069+00:00— report_created — created