Unifying Reasoning and Planning through Energy Minimization
Abstract
Neural networks often struggle to solve reasoning and planning problems more complex than those encountered during training. Energy-based models offer a natural approach to this challenge by learning objectives that can be optimized with additional computation. However, existing methods rely on specialized training and inference procedures, from differentiating through iterative optimization to annealing across noise-dependent energy landscapes. We introduce Energy Minimization Search (EMS), a unified framework for reasoning and planning through a shared training objective and time-invariant energy minimization. EMS combines Equilibrium Matching with contrastive supervision to learn an energy function for each task, using the energy values to evaluate candidates and energy gradients to guide refinement. At inference time, we search on this fixed landscape, allocating additional computation to more refinement steps or candidate solutions. Across graph coloring, N-Queens, 3-SAT, crosswords, path finding, and maze navigation, EMS achieves competitive or improved solution quality relative to baselines, with substantially fewer function evaluations than the diffusion-based EBM reasoning baselines. Project website: https://energy-based-model.github.io/ems/