TL;DR
What do solving a crossword puzzle and navigating a maze have in common? Both can be solved by imagining a fixed topological map where bad guesses sit on high peaks, valid solutions rest in deep valleys, and finding the answer is as simple as rolling a marble downhill. By learning static, time-invariant energy landscapes rather than relying on the shifting terrains of diffusion models, Energy Minimization Search (EMS) unifies reasoning and planning—matching or beating baselines while slashing computational costs by up to several orders of magnitude.
What Problem Does This Paper Address?
Neural networks are notorious creatures of habit: train them on 8x8 chessboards or 15-node graphs, and they often stumble when handed a 10x10 board or a 25-node graph. Energy-Based Models (EBMs) offer an elegant escape hatch. Instead of spitting out an answer in a single forward pass, an EBM learns a "compatibility score" (energy) for any candidate solution. At test time, you can spend extra compute iteratively refining a random guess until it settles into a low-energy valid solution.
Historically, however, reasoning (discrete constraint satisfaction) and planning (sequential trajectories) have required bespoke EBM toolkits. Recent diffusion-based EBMs get great results, but they learn time-dependent landscapes conditioned on noise schedules. Solving a problem requires carefully annealing across a shifting, morphing terrain—much like trying to hike down a mountain while an earthquake rearranges the slopes beneath your feet. The authors ask: Can we drop the noise schedules and unify reasoning and planning on a single, static energy landscape?
Methods
The authors introduce Energy Minimization Search (EMS), which cleanly decouples learning what a good solution looks like from the search algorithm used to find it.
To sculpt a reliable, fixed landscape without expensive inner optimization loops during training, EMS combines two objectives on corrupted candidate solutions (Note: while a noise mix ratio $\gamma$ is used during training, it is never fed to the model, keeping the learned energy time-invariant):
- Equilibrium Matching (EqM): Teaches the model which direction is "downhill." It supervises the gradients of the energy function so they point directly from noisy, invalid candidates toward clean, valid solutions.
- Contrastive Supervision: Explicitly carves deep valleys. By generating task-specific negative examples (e.g., an N-Queens row with two attacking queens), a contrastive loss forces valid solutions to have strictly lower scalar energy than nearby rule-breaking ones.
Composition & Search: Like prior compositional EBMs, local energies (like individual clauses in 3-SAT or adjacent nodes in a graph) can simply be summed together to form a global objective for larger problems. At inference time, because the landscape is completely static, you can initialize particles from Gaussian noise and apply standard off-the-shelf optimizers—like Gradient Descent (GD), Unadjusted Langevin Algorithm (ULA) (which adds noise to bounce out of local minima), or Parallel Energy Minimization (PEM) (resampling low-energy particles)—scaling up steps or candidate counts on the fly without retraining.
Datasets
EMS is evaluated across existing reasoning and planning benchmarks (no new datasets are introduced):
- Reasoning: Graph Coloring (8 distributions, including Erdos Renyi, Holme Kim, and Paley), N-Queens (8-, 9-, and 10-Queens), 3-SAT (SATLIB formulas with 20 variables and 91 clauses), and the Mini Crosswords benchmark.
- Planning: Shortest Path Finding in directed graphs (trained on 15 nodes, tested on 15 and 25 nodes), continuous trajectory planning on the Ghugare PointMaze suite (Medium and Large), and OGBench PointMaze
stitch(Medium, Large, Giant) for compositional trajectory stitching.
Key Insights and Ideas
- You don’t need shifting landscapes to search effectively: Ditching diffusion noise schedules removes massive coordination overhead. Descending a static landscape lets simple gradient descent do heavy lifting in a fraction of the steps.
- Continuous gradients quietly fix discrete mistakes: In discrete tasks, EMS optimizes continuous relaxations before decoding. Even when two steps decode to the exact same number of discrete conflicts, the underlying continuous energy keeps dropping smoothly until the discrete conflict suddenly snaps into a valid state.
- Contrastive supervision is the secret glue for hard constraints: Pointing gradients downhill (EqM) isn't always enough. Without contrastive supervision carving sharp energy barriers against invalid states, 3-SAT performance collapses from 64.7 solved formulas to zero.
- Plug-and-play inference: Because the landscape is divorced from the solver, you can swap search strategies per task—for instance, Crossword puzzles thrive on deterministic GD with just 1 particle, whereas Graph Coloring benefits from the stochastic exploration of ULA.
Key Results
Across the board, EMS matches or beats strong baselines while requiring drastically fewer neural network forward evaluations (NFEs) than diffusion-based EBMs (DiffEBM):
- Graph Coloring: Achieves the lowest conflict counts across all 8 graph distributions (e.g., cutting Large Holme Kim conflicts from
DiffEBM's 59.0 down to 3.4) while using ~1,000x fewer evaluations (64k vs. 64.3M NFEs). - 8-Queens: Hits 100% accuracy (vs. 97% for
DiffEBM) using ~2,000x fewer evaluations (2,688 vs. 5.37M NFEs). Scaling to 9- and 10-Queens simply requires running more gradient steps at test time. - 3-SAT: Solves 64.7 / 100 formulas vs. 57 for pretrained
DiffEBM, with ~52x fewer evaluations. - Crosswords: Matches
DiffEBM’s 80.4% letter accuracy (and edges out word accuracy at 51.0% vs. 50.5%) using a single candidate—requiring 501 evaluations vs. 5.37 million (~4 orders of magnitude fewer). (Tree of Thoughts still holds higher word accuracy at 60.0%). - Planning: Improves shortest-path accuracy on unseen larger 25-node graphs to 93.1% (vs. 91.9% for IRED, though using more search compute: 1,848 vs. 110 evaluations). On PointMaze, EMS beats Decision Diffuser on Medium (33.67% vs. 30.00%) and Large (8.86% vs. 0.00%).
Limitations and Future Work
- Cold starts from pure noise: Initializing candidates from Gaussian noise means complex problems still require hundreds of refinement steps or parallel particles. Future work could use learned initializers or amortized optimizers to give the search a head start.
- Long-horizon compositional planning breaks down: While summing local energies works wonders in discrete reasoning, stitching short trajectory segments together for long-horizon maze navigation struggles as horizons grow. On OGBench PointMaze
stitch, EMS hits 100% on Medium and up to 70% on Large (with noise augmentation), but 0% on Giant (whereCompDiffusergets 68%), often hallucinating shortcuts straight through maze walls. Fine-tuning composed energies end-to-end on full trajectories is a promising next step.
Summary updated