English

Reasoning as Energy Minimization over Structured Latent Trajectories

Artificial Intelligence 2026-03-31 v1

Abstract

Single-shot neural decoders commit to answers without iterative refinement, while chain-of-thought methods introduce discrete intermediate steps but lack a scalar measure of reasoning progress. We propose Energy-Based Reasoning via Structured Latent Planning (EBRM), which models reasoning as gradient-based optimization of a multi-step latent trajectory z1:Tz_{1:T} under a learned energy function E(hx,z)E(h_x, z). The energy decomposes into per-step compatibility, transition consistency, and trajectory smoothness terms. Training combines supervised encoder-decoder learning with contrastive energy shaping using hard negatives, while inference performs gradient descent or Langevin dynamics over zz and decodes from zTz_T. We identify a critical failure mode: on CNF logic satisfaction, latent planning reduces accuracy from 95%\approx 95\% to 56%\approx 56\%. This degradation arises from a distribution mismatch, where the decoder is trained on encoder outputs hxh_x but evaluated on planner outputs zTz_T that drift into unseen latent regions. We analyze this behavior through per-step decoding, latent drift tracking, and gradient decomposition. To address it, we propose dual-path decoder training and latent anchoring. We further introduce a six-part ablation protocol covering component contributions, trajectory length, planner dynamics, initialization, decoder training distribution, and anchor weight. Experiments on three synthetic tasks show that energy decreases monotonically and induces structured latent trajectories on graph and logic tasks, while remaining flat on arithmetic (r=0.073r = 0.073), indicating a negative result. Code is available at https://github.com/dkjo8/ebr-via-structured-latent-planning.

Keywords

Cite

@article{arxiv.2603.28248,
  title  = {Reasoning as Energy Minimization over Structured Latent Trajectories},
  author = {David K. Johansson},
  journal= {arXiv preprint arXiv:2603.28248},
  year   = {2026}
}

Comments

7 pages

R2 v1 2026-07-01T11:43:50.095Z