---
topic: ai-research
author: Crashtech Editorial
published: Oct 12, 2026 · read: 3 min
---

Reasoning Without Words: Why LLMs Fail Constraint Problems and How Energy Models Search

Why language models fail at Sudoku and combinatorial constraints, and how non-autoregressive Energy-Based Models (EBMs) solve logical search directly.

– –

In a widely cited benchmark experiment, researchers presented a panel of frontier language models with a collection of standard 9x9 Sudoku puzzles. Despite consuming hundreds of tokens of Chain-of-Thought reasoning (“Let us inspect row 4, column 2…”), the frontier models achieved an abysmal 2% solve rate. Each puzzle attempt cost nearly $0.50 in API compute, with the models confidently making early invalid commitments and hallucinating numbers that violated basic column constraints.

In contrast, a tiny non-autoregressive Energy-Based Model (EBM) with fewer than 50 million parameters solved over 96% of the exact same puzzles, consuming less than half a cent of total compute.

This stark disparity exposes a profound architectural reality: Language is an interface to intelligence; it is not intelligence itself. Many of the hardest computational problems in software engineering (scheduling, combinatorial packing, routing, graph coloring, and spatial simulation) are constraint satisfaction problems. Forcing an autoregressive next-token predictor to solve these problems through verbal babbling is an architectural mismatch.

The Two Structural Flaws of Autoregressive Reasoning

Why do massive 400B-parameter transformer language models struggle on simple logical constraint problems? The flaw is baked into the fundamental physics of the autoregressive decoding loop:

+-----------------------------------------------------------------------------+
|                      AUTOREGRESSIVE DECODING PITFALLS                       |
+-----------------------------------------------------------------------------+

 1. Irreversible Left-to-Right Greedy Commitments
    - Generating a token is a permanent commitment.
    - If a model outputs digit '7' in Step 4, it cannot backtrack in Step 12 
      when that choice creates a downstream contradiction.
    - It must attempt to verbally justify its earlier error or crash.

 2. Discrete Discontinuous Search Space
    - Language generation operates across discrete token vocabulary IDs.
    - There is no continuous mathematical gradient guiding the model toward 
      "almost correct" constraint solutions.
    - A token is either in the sequence or it is not.

When humans solve a Sudoku puzzle, plan an airline schedule, or navigate a spatial maze, we do not think in sequential English sentences. We form an internal mental map, evaluate constraint tensions simultaneously, and iteratively refine our hypothesis until the global tension drops to zero.

Enter Energy-Based Models (EBMs): Optimization Over Generation

Pioneered by Yann LeCun and researchers in statistical mechanics, Energy-Based Models (EBMs) discard token generation entirely.

Instead of asking: “What is the probability of the next word?”, an EBM defines an Energy Function $E(x, y)$ that assigns a scalar value (energy) to any arbitrary configuration of variables:

E(Variables, Constraints) -> Scalar Energy Value
  • Low Energy: The configuration satisfies all constraints (Valid solution).
  • High Energy: The configuration violates constraints (Invalid state).
+-----------------------------------------------------------------------------+
|                          ENERGY-BASED REASONING LOOP                        |
+-----------------------------------------------------------------------------+

 [Initial State (Random / Partially Filled Puzzle)]
                        |
                        v
         +-----------------------------+
         | Calculate Energy Landscape  | <--- Checks all 81 Sudoku cells
         | E(State) = Sum(Violations)  |      simultaneously in parallel
         +-----------------------------+
                        |
                        v
         +-----------------------------+
         | Gradient Descent Step:      |
         | State = State - lr * dE/dState
         +-----------------------------+
                        |
                        v
               [Energy == 0.0 ?]
                 /                    (No: High Energy)      (Yes: Zero Energy)
               /                   [Iterate Search]       [OPTIMAL VALID SOLUTION]

Instead of generating text, the EBM treats reasoning as a Continuous Energy Minimization Process:

  1. All variables (e.g., all 81 cells of the grid) are initialized simultaneously in parallel.
  2. The neural network computes the energy gradient ∂E/∂x with respect to the input variables.
  3. Using Langevin dynamics or projected gradient descent, the model shifts all cell values simultaneously in the direction that most rapidly reduces constraint violations.
  4. When the system settles into a zero-energy global minimum, the puzzle is solved.

Comparing the Two Paradigms

+-----------------------------------------------------------------------------+
|               AUTOREGRESSIVE LLM VS ENERGY-BASED REASONER                   |
+-----------------------------------------------------------------------------+

 Metric                  Autoregressive LLM            Energy-Based Model (EBM)
 -----------------------------------------------------------------------------
 Primary Domain          Language, Narrative, Code     Spatial, Logic, Schedules
 Processing Direction   Unidirectional (Left-to-Right) Non-directional (Global)
 Backtracking Capability Zero (Greedy Forward)         Native (Gradient Flow)
 Compute Profile         Proportional to Output Tokens Proportional to Problem Difficulty
 Constraint Guarantee   Stochastic / Probabilistic    Deterministic Zero Energy
 Infrastructure Cost     Massive GPU Memory / Flops    Tiny Memory / CPU-Eligible

The Diffusion Connection

Modern continuous diffusion models (like Flux or Stable Diffusion) and flow-matching models are practical implementations of this exact energy-based philosophy: they begin with a state of pure noise (maximum entropy/energy) and iteratively denoise the latent space along a learned vector field until an image matching all text conditioning constraints emerges.

The Hybrid Future: System 1 Verbalizer + System 2 EBM Solver

Production architectures do not force one model to do everything. The emerging standard for complex enterprise intelligence is a Neuro-Symbolic Hybrid:

[User Problem: "Optimize logistics delivery routes for 40 trucks across Chicago"]
                               |
                               v
         [Frontier LLM: The Semantic Translator & Parser]
         - Reads unstructured customer text
         - Extracts constraints: vehicle capacities, traffic windows, delivery stops
         - Formulates formal mathematical optimization specification
                               |
                               v
         [Energy-Based Solver / Mixed-Integer Linear Optimizer]
         - Non-autoregressive constraint search
         - Global energy minimization across millions of combinations
         - Finds mathematically optimal route in 120 milliseconds
                               |
                               v
         [Frontier LLM: The Synthesizer & Communicator]
         - Verbalizes the verified route schedule into an executive summary
         - Delivers clear instructions to fleet dispatchers

In this architecture, language models do what they excel at: understanding messy, ambiguous human communication. The heavy logical reasoning, constraint satisfaction, and mathematical optimization are delegated to specialized search engines and energy models.

Architectural Takeaway

Stop trying to force language models to solve combinatorial constraint problems through verbal prompts. When architecting intelligent systems:

  • Recognize that left-to-right autoregressive token generation cannot backtrack when early decisions violate downstream rules.
  • Use Energy-Based Models and constraint solvers for scheduling, routing, packing, and formal logic.
  • Build hybrid architectures where LLMs serve as natural language translators at the edge, while non-autoregressive optimization engines perform rigorous mathematical search in the core.
Advertisement

/* Comments */