Abstract
Although the latent spaces learned by distinct neural networks are not generally directly comparable, recent work in machine learning has shown that it is possible to use the similarities and differences among latent space vectors to derive "relative representations" with comparable representational power to their "absolute" counterparts, and which are nearly identical across models trained on similar data distributions. Apart from their intrinsic interest in revealing the underlying structure of learned latent spaces, relative representations are useful to compare representations across networks as a generic proxy for convergence, and for zero-shot model stitching. In this work we examine an extension of relative representations to discrete state-space models, using Clone-Structured Cognitive Graphs (CSCGs) for 2D spatial localization and navigation as a test case. Our work shows that the probability vectors computed during message passing can be used to define relative representations on CSCGs, enabling effective communication across agents trained using different random initializations and training sequences, and on only partially similar spaces. We introduce a technique for zero-shot model stitching that can be applied post hoc, without the need for using relative representations during training. This exploratory work is intended as a proof-of-concept for the application of relative representations to the study of cognitive maps in neuroscience and AI.
Introduction: The Alignment Problem in Cognitive Maps
In both AI and neuroscience, we often face the "alignment problem." If two different neural networks (or two different biological brains) learn to navigate the same room, their internal "latent spaces"—the way they represent that room—will look completely different at a bit-wise level. Because these representations are idiosyncratic, you cannot simply "copy-paste" knowledge from one agent to another.
Recent work in machine learning solved this for continuous latent spaces by using relative representations: instead of looking at a raw internal vector, you look at how similar that vector is to a set of fixed "anchor points." This paper tackles the challenge of applying this logic to discrete, graph-structured models of cognition, which are more representative of how the brain’s hippocampal-entorhinal system (our internal GPS) actually works.
Methodology: Relative Representations in Discrete State-Spaces
The authors utilize Clone-Structured Cognitive Graphs (CSCGs), a specialized type of Hidden Markov Model (HMM) that can learn the topology of an environment (like a 2D room) through random walks. The core innovation is the application of Relative Representations (RR) to the "messages" (probability distributions over states) passed within these graphs.
The process involves three main steps:
- Anchor Points: A set of reference observations or beliefs are chosen as a shared basis.
- Similarity Encoding: An agent’s current belief is represented as a vector of its similarities (e.g., cosine similarity) to these anchors.
- Zero-Shot Stitching: A parameter-free technique is used to reconstruct one agent’s "absolute" belief from another agent’s "relative" representation.
Notably, there is a formal mathematical connection between this reconstruction method and the self-attention mechanism used in Transformers, suggesting that attention may fundamentally act as a form of representational alignment.
Experimental Setup and Key Results
The study uses synthetic 2D environments where agents perform random walks. These include identical rooms with different initializations, isomorphic rooms with different visual observations, and expanded or shifted rooms to test structural similarity.
The researchers measured how well one agent could predict the "Maximum A Posteriori" (most likely) belief of another agent. In identical rooms, relative representations achieved ~89% accuracy in belief recovery and a 0.99 cosine similarity, vastly outperforming simple permutation-based mapping. In "Expanded" rooms, the system achieved a surprising 97.4% accuracy, proving it captures the underlying topology rather than just raw data.
A critical insight is that while agents can "translate" their location based on observations alone, including "proprioceptive" information (the actions they took) makes the translation nearly perfect, reaching over 99% accuracy as shown in the rapid convergence of the maximum state probability.
Discussion and Future Directions
This work provides a theoretical bridge between cognitive mapping and modern LLM architectures by showing that reconstructing a representation using anchors is functionally equivalent to the $Q, K, V$ operations in a Transformer.
While currently limited to toy 2D grid worlds, the authors suggest scaling this to more complex "world models" used in model-based reinforcement learning to enable better multi-agent cooperation. Future work will also focus on biological validation—testing whether this "translation" actually occurs between real biological brains during navigation—and optimizing the selection of anchor points, as the current method requires a large number (5,000) to achieve high fidelity.
Summary updated