← Back to Reading
ByteByteGo 2026-10-12

How to Build Models Without Language, with Logical Intelligence

Large language models operate by predicting the next token in a sequence, making them effective at language tasks and knowledge recombination but structurally ill-suited for constraint satisfaction problems. Using Sudoku as a test case where leading LLMs achieved only a 6.9% success rate, the text identifies two fundamental architectural limitations: left-to-right sequential generation that makes error recovery expensive, and discrete outputs that prevent continuous refinement. Problems spanning games like Chess to industrial control and chip design require interacting logic rather than pure linguistic modeling. Consequently, language should be viewed as an interface to intelligence rather than intelligence itself. Latent reasoning models distinguish themselves from standard large language models by operating on continuous latent variables instead of discrete tokens. Logical Intelligence applies this approach using energy-based reasoning models (EBRMs). These systems generate reasoning pathways and answers directly within a latent space. The concepts outlined represent general operating requirements for energy-based reasoning rather than the proprietary architecture of Kona. In contrast to generative language models that produce tokens sequentially, energy-based models (EBMs) do not generate outputs directly. Instead, an EBM learns an energy function, E(x, y), that maps a problem and a candidate answer to a scalar energy value. Lower energy values signify greater consistency with the problem, meaning the minimum energy state represents the correct answer. The underlying neural network establishes an energy landscape where valleys correspond to optimal answers and peaks correspond to poor answers.

Read the original ↗
Contents 10 sections
  1. 01Language Models and Their Limitations
  2. 02Latent reasoning with Energy-Based Models
  3. 03What is an energy-based model?
  4. 04How an EBM is trained
  5. 05How inference works
  6. 06Reasoning in a latent space
  7. 07Energy-based reasoning versus language models
  8. 08Verification and safety
  9. 09What’s Next
  10. 10References:

Language Models and Their Limitations

Large language models operate by predicting the next token in a sequence, making them effective at language tasks and knowledge recombination but structurally ill-suited for constraint satisfaction problems. Using Sudoku as a test case where leading LLMs achieved only a 6.9% success rate, the text identifies two fundamental architectural limitations: left-to-right sequential generation that makes error recovery expensive, and discrete outputs that prevent continuous refinement. Problems spanning games like Chess to industrial control and chip design require interacting logic rather than pure linguistic modeling. Consequently, language should be viewed as an interface to intelligence rather than intelligence itself.

  • LLMs struggle with constraint satisfaction problems such as Sudoku, where top models failed 93% of the time with only a 6.9% success rate.
  • Left-to-right sequential token generation forces LLMs to restart and regenerate broadly whenever early decisions conflict with later constraints.
  • Discrete token outputs prevent LLMs from making incremental adjustments toward a correct solution.
  • Complex domains like chip design, grid optimization, and trading systems depend on logic and constraint satisfaction rather than language.
  • Language functions as a communication interface between intelligences, not as the underlying intelligence itself.

Latent reasoning with Energy-Based Models

Latent reasoning models distinguish themselves from standard large language models by operating on continuous latent variables instead of discrete tokens. Logical Intelligence applies this approach using energy-based reasoning models (EBRMs). These systems generate reasoning pathways and answers directly within a latent space. The concepts outlined represent general operating requirements for energy-based reasoning rather than the proprietary architecture of Kona.

  • Latent reasoning models function over latent variables rather than discrete tokens.
  • Logical Intelligence focuses on energy-based reasoning models (EBRMs), a subset of latent reasoning models.
  • EBRMs conduct reasoning and formulate outputs within a latent space.
  • The described technical principles reflect general energy-based reasoning requirements, not the specific internals of Kona.

What is an energy-based model?

In contrast to generative language models that produce tokens sequentially, energy-based models (EBMs) do not generate outputs directly. Instead, an EBM learns an energy function, E(x, y), that maps a problem and a candidate answer to a scalar energy value. Lower energy values signify greater consistency with the problem, meaning the minimum energy state represents the correct answer. The underlying neural network establishes an energy landscape where valleys correspond to optimal answers and peaks correspond to poor answers.

  • Unlike generative language models, energy-based models (EBMs) evaluate solutions rather than generating them token by token.
  • An EBM learns an energy function E(x, y) that assigns a scalar energy value to a problem x and a candidate answer y.
  • Lower energy values denote higher consistency between the problem and the answer, with the minimum energy signifying correctness.
  • The neural network of an EBM defines a landscape across potential answers where optimal answers lie in valleys and poor answers lie on peaks.

How an EBM is trained

Training an Energy-Based Model (EBM) shapes a continuous energy landscape where correct answers occupy low-energy valleys and incorrect answers receive high energies. This optimization is carried out using a contrastive loss function and backpropagation to maintain an energy margin between positive and negative answers. Negative samples can be generated by either corrupting known solutions or using the model's own gradient-based search mechanism. Demonstrating this approach, Logical Intelligence trained its model Kona on partially hidden Sudoku grids without reinforcement learning, successfully enabling it to master puzzle rules.

  • EBMs are trained using a contrastive loss function that enforces a margin between the low energy of correct answers and the high energy of wrong answers.
  • Negative samples are essential during training to prevent the energy landscape from becoming flat.
  • Wrong answers can be generated by perturbing correct solutions or by sampling states from the model's internal gradient descent search.
  • Logical Intelligence trained Kona on incomplete Sudoku grids without reinforcement learning, yet the model learned to produce correct, completed solutions.
  • The resulting continuous energy landscape ensures that iterative gradient descent progressively improves candidate answers during inference.

How inference works

Energy-Based Models (EBMs) perform inference by starting with random noise and iteratively descending an energy gradient until locating the candidate answer with the lowest energy. The number of optimization steps dynamically scales with problem difficulty, spending more computation on harder instances similarly to reasoning language models. In practice, continuous representations enable gradient-based search, allowing models like Kona to solve problems such as Sudoku significantly faster than LLMs.

  • EBM inference starts with random noise and optimizes candidate answers along descending energy gradients until energy stops decreasing.
  • The number of inference steps in an EBM is variable, dynamically allocating more compute steps to harder problems.
  • In a Sudoku benchmark, the Kona model found solutions in an average of 313 milliseconds, compared to up to 90 seconds for LLMs.
  • Continuous representations (such as score vectors per token or position) are required to provide gradients for directional search during inference.

Reasoning in a latent space

Scoring only final outputs with an energy function fails when answers obscure the reasoning process, which can break gradient descent due to sharp score swings. To address this, the model evaluates intermediate states in a sequence within a latent space against the original problem. Training applies contrastive loss across sequences to push valid paths toward low energy, while a decoder learns to extract the answer from the final state. During inference, the problem is encoded, intermediate states are initialized as noise, and the entire sequence is iteratively adjusted to minimize energy before decoding.

  • Scoring only the input-output pair (x, y) can break gradient descent because small output differences can mask vastly different reasoning paths.
  • Evaluating reasoning involves scoring a sequence of intermediate latent vectors (z1 to zT) against the problem x.
  • Reasoning in a latent space operates over the model's compressed representation rather than directly over the raw data.
  • Training uses contrastive loss applied to sequences, pushing intermediate states that lead to correct outcomes to low energy.
  • During inference, the sequence starts as random noise after the encoded problem and is iteratively adjusted all at once until energy settles.
  • A separate small decoder network converts the final settled latent state into the required output format.

Energy-based reasoning versus language models

Autoregressive language models and energy-based reasoning models (EBRMs) represent distinct approaches suited for different types of intelligence tasks. EBRMs excel when correctness can be precisely verified via rules or constraints, such as in Sudoku, chemistry, physics, and chip layout, whereas language models are superior for subjective tasks requiring human judgment and expression. Models like Kona operate at a fraction of the parameter count and compute cost of large language models while learning general constraint structures rather than relying on hand-written solvers. Ultimately, the optimal architecture combines both paradigms, using EBRMs for structured reasoning and language models as the natural-language interface.

  • EBRMs learn from verified correct and incorrect answers, making them effective for deterministic problems with clear rules.
  • Language models outperform EBRMs in subjective domains where correctness is vague and requires human-like judgment, such as writing essays.
  • Kona operates with tens to low hundreds of millions of parameters, enabling it to run on much less expensive hardware compared to frontier LLMs.
  • In a reported experiment, solving tasks cost $4 of compute using Kona compared to $11,000 in API calls using LLMs.
  • Unlike hand-written solvers, Kona learns constraint structures from examples and generalizes them to unseen problems without custom solver code.
  • Logical Intelligence advocates a hybrid system where EBRMs handle core reasoning and language models manage the interface.

Verification and safety

Verification and safety mechanisms operate differently in EBRMs compared to traditional LLMs. While LLMs require post-generation evaluators that add significant latency to slow text generation, EBRMs rely on a two-stage pipeline consisting of a probabilistic search followed by an exact logic check. The search quickly guides candidates toward low-energy solutions, after which a machine verification system delivers a definitive binary verdict. If rejected, the millisecond-scale search iterates until constraints are satisfied, though formalizing these constraints correctly remains a human responsibility.

  • LLM verification typically relies on separate evaluators and filters after full token generation, adding notable latency.
  • EBRMs use a two-stage architecture: a fast probabilistic search guided by learned energy, followed by an exact verification check.
  • Because EBRM outputs represent logic rather than natural language prose, constraints can be verified by automated checkers yielding definitive yes/no verdicts.
  • For theorem proving, Logical Intelligence uses the Lean 4 proof assistant to machine-check formal statements.
  • EBRM search iterations occur in milliseconds, enabling rapid retry loops that are impractical for slower language models.
  • Formal verification guarantees constraint satisfaction, but formulating the constraints to reflect user intent remains a human task.

What’s Next

Bodnia argues that a single general model cannot effectively serve all workloads, particularly when contrasting mission-critical systems requiring verifiable answers with unconstrained creative tasks. The AI industry is anticipated to transition toward an ecosystem of specialized models rather than centralized, general APIs. Furthermore, hardware demands may diverge from traditional GPUs as model architectures move beyond standard LLMs. Business models are also expected to shift from metered API billing to delivering custom, fast-trained models directly to clients.

  • One model cannot address both mission-critical verifiable tasks and unconstrained creative work.
  • The industry is expected to evolve into an ecosystem of specialized models rather than a single general API.
  • Hardware may shift away from GPUs because models designed differently from LLMs do not require graphics-like mathematics.
  • The commercial paradigm is projected to shift from selling metered intelligence to shipping customized models per customer.
  • Logical Intelligence created a custom client model with two engineers and one week of training on customer data.
  • The EBRM field remains in its early development stages.

References:

This reference section compiles reading materials focused on AI reasoning architectures, formal verification, and energy-based models. Key topics include using energy-based models to scale reasoning rather than relying strictly on expanding large language models. The resources also highlight practical formal reasoning tools, including the Lean proof assistant and performance achievements from Aleph Prover.

  • Literature explores energy-based models (EBMs) as an alternative or complementary architecture to LLMs for AI reasoning.
  • Eve Bodnia of Logical Intelligence is featured discussing the role of reasoning energy-based models.
  • Formal proof systems and languages like the Lean proof assistant are highlighted as relevant tools for formal reasoning.
  • Aleph Prover is referenced for leading formal reasoning benchmarks.