Latent Planning via Embedding Arithmetic: A Contrastive Approach to Strategic Reasoning
Andrew Hamara, Greg Hamerly, Pablo Rivas, Andrew C. Freeman
TL;DR
SOLIS introduces an evaluation-aligned latent space learned via supervised contrastive learning to enable planning by vector arithmetic in chess. It avoids learning explicit dynamics or policy/value heads and demonstrates competitive strength with a shallow search against Stockfish, achieving Elo around 2500+ at depth $5$ with anchored scoring. The approach yields interpretable latent trajectories and suggests that latent planning in a compact embedding space can be a compute-efficient alternative for large-action, perfect-information domains, with potential extensions to other games and control tasks. The combination of a single global advantage direction $\vec{a}$ and embedding arithmetic enables fast planning while maintaining strong qualitative and quantitative performance.
Abstract
Planning in high-dimensional decision spaces is increasingly being studied through the lens of learned representations. Rather than training policies or value heads, we investigate whether planning can be carried out directly in an evaluation-aligned embedding space. We introduce SOLIS, which learns such a space using supervised contrastive learning. In this representation, outcome similarity is captured by proximity, and a single global advantage vector orients the space from losing to winning regions. Candidate actions are then ranked according to their alignment with this direction, reducing planning to vector operations in latent space. We demonstrate this approach in chess, where SOLIS uses only a shallow search guided by the learned embedding to reach competitive strength under constrained conditions. More broadly, our results suggest that evaluation-aligned latent planning offers a lightweight alternative to traditional dynamics models or policy learning.
