Holographic Memory for Zero-Shot Compositional Reasoning in Knowledge Graphs: A Mechanistic Study of Where and Why It Fails
Summary
This paper investigates holographic reduced representations for zero-shot compositional reasoning in knowledge graphs, finding that while single-hop performance is strong, composition fails due to retrieval capacity and interference effects in the superposed memory, not the bind-unbind algebra.
View Cached Full Text
Cached at: 06/25/26, 05:07 AM
# Holographic Memory for Zero-Shot Compositional Reasoning in Knowledge Graphs: A Mechanistic Study of Where and Why It Fails
Source: [https://arxiv.org/html/2606.24948](https://arxiv.org/html/2606.24948)
\(June 2026\)
###### Abstract
Knowledge graph embedding \(KGE\) models predict single\-hop links well but have no mechanism for*zero\-shot compositional*queries: multi\-hop questions whose relation chains never appeared during training\. Holographic Reduced Representations \(HRR\), which bind and unbind symbols via circular convolution, are a theoretically attractive candidate, since binding is approximately invertible and associative\. We test whether this promise holds\.
We study two holographic memory variants, real\-valued HRR and phase\-only Fourier HRR \(FHRR\), each with a modern Hopfield cleanup, on FB15k\-237 over five seeds\. Four findings follow\. First, both are competitive single\-hop retrievers \(filtered MRR0\.358±0\.0020\.358\\pm 0\.002for HRR,0\.350±0\.0210\.350\\pm 0\.021for FHRR\)\. Second, neither composes zero\-shot: accuracy stays at chance across all cleanup temperatures\. Third, the main contribution, we localise the failure mechanistically\. A hop\-1 probe shows the memory recovers the correct intermediate entity with high fidelity \(MRR0\.896±0\.0020\.896\\pm 0\.002for HRR\), yet composition still fails even with a verified\-correct intermediate\. A second probe shows why: posing the*ground\-truth*second\-hop fact as a standalone atomic query, bypassing composition entirely, already recovers it at only0\.260\.26to0\.48×0\.48\\timesaverage atomic accuracy, uniformly across relation fan\-out\. The bottleneck is not the bind\-unbind algebra or the cleanup; it is that facts compositional chains pass through are intrinsically harder for the superposed memory to retrieve, a capacity and interference effect present already at a single hop\. Fourth, we prove \(Lemma[4\.1](https://arxiv.org/html/2606.24948#S4.Thmtheorem1)\) that FHRR’s softmax cleanup is not phase\-equivariant, compounding the primary failure on the minority of chains where hop\-1 itself errs\. Fixing zero\-shot composition requires improving retrieval capacity under superposition, not just redesigning the cleanup\.
Keywords:Knowledge graph embeddings⋅\\cdotHolographic reduced representations⋅\\cdotVector symbolic architectures⋅\\cdotCompositional reasoning⋅\\cdotModern Hopfield networks⋅\\cdotZero\-shot generalisation\.
## 1Introduction
Knowledge graphs \(KGs\) organise world knowledge as typed triples\(h,r,t\)\(h,r,t\), e\.g\.*\(Marie\_Curie, nationality, Poland\)*, and KGE methods embed entities and relations into vector spaces so that plausible triples score high\[[2](https://arxiv.org/html/2606.24948#bib.bib2),[18](https://arxiv.org/html/2606.24948#bib.bib18),[16](https://arxiv.org/html/2606.24948#bib.bib16),[14](https://arxiv.org/html/2606.24948#bib.bib14)\]\. These methods work well for single\-hop prediction\. Many real queries are not single\-hop, though\. "Which administrative regions contain the birthplace of a given person’s nationality?" requires chainingnationalitywithcontains\. If that exact chain never appeared in training, a standard KGE model cannot answer it: it has no mechanism to try\. That is the*zero\-shot compositional reasoning*setting we study here\.
#### Why holographic memory?
Holographic Reduced Representations \(HRR\)\[[7](https://arxiv.org/html/2606.24948#bib.bib7)\]and the broader family of Vector Symbolic Architectures \(VSA\)\[[6](https://arxiv.org/html/2606.24948#bib.bib6),[12](https://arxiv.org/html/2606.24948#bib.bib12)\]define an algebra over fixed\-width distributed vectors in which arbitrary symbol structures can be*bound*into a single vector and later*unbound*\. The key operation, circular convolution, runs inO\(DlogD\)O\(D\\log D\), is approximately invertible, and is associative\[[7](https://arxiv.org/html/2606.24948#bib.bib7)\]\. A holographic memory that superposes facts as bound triples and answers queries by composing unbind operations is a natural zero\-shot compositional reasoner, in principle\. Modern Hopfield networks\[[9](https://arxiv.org/html/2606.24948#bib.bib9)\]give a fully differentiable associative cleanup step\. The question is whether the pipeline actually composes in practice, and if not, which part breaks and why\.
#### Scope\.
We do not claim to outperform supervised compositional methods such as Query2Box\[[11](https://arxiv.org/html/2606.24948#bib.bib11)\]or CQD\[[1](https://arxiv.org/html/2606.24948#bib.bib1)\]\. Those methods receive explicit path\-level supervision; we withhold it\. The goal is to understand what holographic binding alone can do for zero\-shot composition, without any relation\-chain supervision\. We study FB15k\-237\[[15](https://arxiv.org/html/2606.24948#bib.bib15)\]under a leakage\-controlled two\-hop protocol and verify all claims over five independent seeds\.
#### Contributions\.
1. 1\.Both variants are competitive atomic retrievers\.Real HRR reaches filtered MRR0\.358±0\.0020\.358\\pm 0\.002and FHRR0\.350±0\.0210\.350\\pm 0\.021, in the range of TransE and DistMult on the same benchmark\. A Hopfield ablation shows cleanup accounts for roughly half the performance \(Section[6\.1](https://arxiv.org/html/2606.24948#S6.SS1)\)\.
2. 2\.Both variants fail at zero\-shot two\-hop composition\.Per\-seed binomial tests against chance are non\-significant in most seeds for both models; accuracy is flat across all tested cleanup temperatures\. Training gives no compositional advantage over an untrained control \(Section[6\.2](https://arxiv.org/html/2606.24948#S6.SS2)\)\.
3. 3\.We localise the failure to retrieval capacity, not the cleanup algebra\.A hop\-1 probe shows the intermediate entity is recovered with high fidelity \(mid\-entity MRR≈0\.85\\approx 0\.85to0\.900\.90\), yet composition stays at chance even when the intermediate is verified correct\. A second probe shows that standalone atomic accuracy on the*ground\-truth*second\-hop fact is itself degraded to0\.260\.26to0\.48×0\.48\\timesthe model’s average atomic accuracy, independent of relation fan\-out\. The facts compositional chains rely on are simply harder to retrieve from the superposed memory, and this is true before composition or cleanup enters the picture \(Section[6\.4](https://arxiv.org/html/2606.24948#S6.SS4)\)\.
4. 4\.We prove a compounding secondary failure in FHRR\.Lemma[4\.1](https://arxiv.org/html/2606.24948#S4.Thmtheorem1)shows the softmax Hopfield cleanup does not commute with phase\-additive binding\. This compounds the primary failure on the subset of chains where hop\-1 retrieval is imperfect \(Section[6\.4](https://arxiv.org/html/2606.24948#S6.SS4)\)\.
## 2Related Work
#### Knowledge graph embeddings\.
TransE\[[2](https://arxiv.org/html/2606.24948#bib.bib2)\]models a relation as a translation in entity space, with score‖h\+r−t‖\\\|h\+r\-t\\\|\. DistMult\[[18](https://arxiv.org/html/2606.24948#bib.bib18)\]uses a bilinear diagonal score; ComplEx\[[16](https://arxiv.org/html/2606.24948#bib.bib16)\]extends it to complex embeddings to handle asymmetric relations; RotatE\[[14](https://arxiv.org/html/2606.24948#bib.bib14)\]treats relations as element\-wise rotations in complex space\. All four are strong single\-hop predictors but offer no native mechanism for composing unseen relation chains at test time\.
#### Compositional and multi\-hop reasoning\.
Several lines of work address multi\-hop reasoning with explicit supervision\. Guu et al\.\[[5](https://arxiv.org/html/2606.24948#bib.bib5)\]compose relation embeddings along observed paths; NeuralLP\[[19](https://arxiv.org/html/2606.24948#bib.bib19)\]and RNNLogic\[[8](https://arxiv.org/html/2606.24948#bib.bib8)\]learn soft logical rules\. Query2Box\[[11](https://arxiv.org/html/2606.24948#bib.bib11)\]and BetaE\[[10](https://arxiv.org/html/2606.24948#bib.bib10)\]embed existential first\-order queries as geometric objects, training on path\-structured supervision\. CQD\[[1](https://arxiv.org/html/2606.24948#bib.bib1)\]decomposes complex queries into atomic link predictions at inference time\. Our setting is strictly harder: zero\-shot composition with no path\-level supervision and no explicit intermediate\-entity representations\.
#### Holographic and vector\-symbolic memory\.
HRR\[[7](https://arxiv.org/html/2606.24948#bib.bib7)\]introduced circular convolution as a binding operator, building on tensor\-product variable binding\[[13](https://arxiv.org/html/2606.24948#bib.bib13)\]\. Hyperdimensional computing\[[6](https://arxiv.org/html/2606.24948#bib.bib6)\]and the comprehensive VSA survey\[[12](https://arxiv.org/html/2606.24948#bib.bib12)\]cover related algebras\. The FHRR variant\[[7](https://arxiv.org/html/2606.24948#bib.bib7),[12](https://arxiv.org/html/2606.24948#bib.bib12)\]encodes symbols as unit\-modulus phasors, with binding as element\-wise complex multiplication\. Standard noise analysis shows recovery error growing asO\(K/D\)O\(\\sqrt\{K/D\}\)in the number of superposed factsKK\[[7](https://arxiv.org/html/2606.24948#bib.bib7)\]\. Our mechanistic probes \(Section[6\.4](https://arxiv.org/html/2606.24948#S6.SS4)\) measure this capacity effect directly for the facts compositional reasoning depends on, rather than for the memory in aggregate\. Resonator networks\[[4](https://arxiv.org/html/2606.24948#bib.bib4)\]propose an iterative cleanup that is phase\-equivariant by construction and may partially address the secondary failure mode in Lemma[4\.1](https://arxiv.org/html/2606.24948#S4.Thmtheorem1)\. Our results indicate the primary bottleneck sits upstream of cleanup, in retrieval capacity itself\.
#### Modern Hopfield networks\.
Ramsauer et al\.\[[9](https://arxiv.org/html/2606.24948#bib.bib9)\]showed that the update rule of continuous modern Hopfield networks coincides with scaled dot\-product attention, with storage capacity exponential inDD\. We use this as a differentiable cleanup that maps a noisy unbound estimate back to the entity codebook\. The capacity results concern single\-pattern recovery from a nearby query\. They do not directly bound retrieval accuracy for a fact buried in a superposition ofK=272,115K=272\{,\}115others at varying frequency, which is what our probes measure\.
## 3Problem Formulation
Letℰ\\mathcal\{E\}andℛ\\mathcal\{R\}denote finite sets of entities and relations respectively; a knowledge graph is a set of triples𝒯⊆ℰ×ℛ×ℰ\\mathcal\{T\}\\subseteq\\mathcal\{E\}\\times\\mathcal\{R\}\\times\\mathcal\{E\}, partitioned into disjoint training, validation, and test sets𝒯tr,𝒯va,𝒯te\\mathcal\{T\}\_\{\\mathrm\{tr\}\},\\mathcal\{T\}\_\{\\mathrm\{va\}\},\\mathcal\{T\}\_\{\\mathrm\{te\}\}\.
#### Single\-hop \(atomic\) task\.
Given a query pair\(h,r\)∈ℰ×ℛ\(h,r\)\\in\\mathcal\{E\}\\times\\mathcal\{R\}, predictttsuch that\(h,r,t\)∈𝒯te\(h,r,t\)\\in\\mathcal\{T\}\_\{\\mathrm\{te\}\}\. Performance uses filtered Mean Reciprocal Rank \(MRR\) and Hits@kkunder the standard filtered protocol\[[2](https://arxiv.org/html/2606.24948#bib.bib2)\]\.
#### Two\-hop compositional task\.
For a relation chain\(r1,r2\)∈ℛ2\(r\_\{1\},r\_\{2\}\)\\in\\mathcal\{R\}^\{2\}, the*compositional answer set*for head entityhhis
Ah,r1,r2=\{t∈ℰ:∃m∈ℰ,\(h,r1,m\)∈𝒯∧\(m,r2,t\)∈𝒯\}\.A\_\{h,r\_\{1\},r\_\{2\}\}=\\bigl\\\{\\,t\\in\\mathcal\{E\}:\\exists\\,m\\in\\mathcal\{E\},\\;\(h,r\_\{1\},m\)\\in\\mathcal\{T\}\\;\\wedge\\;\(m,r\_\{2\},t\)\\in\\mathcal\{T\}\\,\\bigr\\\}\.\(1\)The model must predict an element ofAh,r1,r2A\_\{h,r\_\{1\},r\_\{2\}\}given only\(h,r1,r2\)\(h,r\_\{1\},r\_\{2\}\), with no training on the composite\(r1∘r2\)\(r\_\{1\}\\circ r\_\{2\}\)and no access to any intermediate entitymm\.
#### Zero\-shot protocol and leakage control\.
We extract the ten highest\-frequency two\-hop relation chains in FB15k\-237 with chain training support≥100\\geq 100\(the number of distinct mid\-entitiesmmappearing in both atomic triples of the chain in𝒯tr\\mathcal\{T\}\_\{\\mathrm\{tr\}\}\)\. Individual relationsr1,r2r\_\{1\},r\_\{2\}appear in training; only their composition is withheld\. To remove learnable shortcuts, we discard any test pair\(h,t\)\(h,t\)wherettis directly reachable fromhhvia a single training relation, removing9898pairs \(0\.14%0\.14\\%\) and leaving69,85569\{,\}855genuinely zero\-shot pairs \(Algorithm[1](https://arxiv.org/html/2606.24948#alg1)\)\. Under a uniform single\-answer ranking assumption, chance accuracy is1/\|ℰ\|≈6\.77×10−51/\|\\mathcal\{E\}\|\\approx 6\.77\\times 10^\{\-5\}; this is our reference null throughout\. Since several compositional answer sets admit more than one valid tail, the true chance rate for some queries exceeds1/\|ℰ\|1/\|\\mathcal\{E\}\|, which makes the reportedpp\-values conservative in the direction of rejectingH0H\_\{0\}less often\. The selected chains span 19 distinct relation types and mid\-entity fan\-out from2\.42\.4to18\.718\.7\.
Algorithm 1Leakage\-controlled zero\-shot evaluation set construction1:Training graph
GtrG\_\{\\mathrm\{tr\}\}, test graph
GteG\_\{\\mathrm\{te\}\}, number of chains
nn, minimum support
smins\_\{\\min\}
2:foreach ordered pair
\(r1,r2\)∈ℛ2\(r\_\{1\},r\_\{2\}\)\\in\\mathcal\{R\}^\{2\}do
3:Compute chain support:
sup\(r1,r2\)←\|\{m:∃h,t,\(h,r1,m\)∈Gtr,\(m,r2,t\)∈Gtr\}\|\\text\{sup\}\(r\_\{1\},r\_\{2\}\)\\leftarrow\|\\\{m:\\exists h,t,\(h,r\_\{1\},m\)\\in G\_\{\\mathrm\{tr\}\},\(m,r\_\{2\},t\)\\in G\_\{\\mathrm\{tr\}\}\\\}\|
4:endfor
5:Select the
nnchains with most test pairs subject to
sup\(r1,r2\)≥smin\\text\{sup\}\(r\_\{1\},r\_\{2\}\)\\geq s\_\{\\min\}
6:
𝒮←∅\\mathcal\{S\}\\leftarrow\\emptyset
7:foreach selected chain
\(r1,r2\)\(r\_\{1\},r\_\{2\}\)and test pair
\(h,t\)\(h,t\)reachable by itdo
8:if
t∈𝒩tr\(h\)t\\in\\mathcal\{N\}\_\{\\mathrm\{tr\}\}\(h\)then⊳\\trianglerightttis a direct training neighbour ofhh
9:discard
\(h,t\)\(h,t\)
10:else
11:
𝒮←𝒮∪\{\(h,r1,r2,t\)\}\\mathcal\{S\}\\leftarrow\\mathcal\{S\}\\cup\\\{\(h,r\_\{1\},r\_\{2\},t\)\\\}
12:endif
13:endfor
14:
𝒮\\mathcal\{S\}⊳\\triangleright69,85569\{,\}855zero\-shot evaluation quadruples
## 4Method
### 4\.1Holographic Binding Algebra
#### DFT convention\.
We use the unitary discrete Fourier transform:a^k=D−1/2∑j=0D−1aje−2πijk/D\\hat\{a\}\_\{k\}=D^\{\-1/2\}\\sum\_\{j=0\}^\{D\-1\}a\_\{j\}\\,e^\{\-2\\pi ijk/D\}, so‖𝐚^‖2=‖𝐚‖2\\\|\\hat\{\\mathbf\{a\}\}\\\|\_\{2\}=\\\|\\mathbf\{a\}\\\|\_\{2\}\.
#### Real HRR\.
For𝐚,𝐛∈ℝD\\mathbf\{a\},\\mathbf\{b\}\\in\\mathbb\{R\}^\{D\}, circular convolution is
\(𝐚⊛𝐛\)k\\displaystyle\(\\mathbf\{a\}\\circledast\\mathbf\{b\}\)\_\{k\}=∑j=0D−1ajb\(k−j\)modD,\\displaystyle=\\sum\_\{j=0\}^\{D\-1\}a\_\{j\}\\,b\_\{\(k\-j\)\\bmod D\},\(2\)𝐚⊛𝐛^\\displaystyle\\widehat\{\\mathbf\{a\}\\circledast\\mathbf\{b\}\}=𝐚^⊙𝐛^,\\displaystyle=\\hat\{\\mathbf\{a\}\}\\odot\\hat\{\\mathbf\{b\}\},\(3\)where⊙\\odotis element\-wise multiplication\. Binding is commutative, and for embeddings drawn i\.i\.d\. from𝒩\(0,D−1𝐈\)\\mathcal\{N\}\(0,D^\{\-1\}\\mathbf\{I\}\), the bound vector has approximately the same norm as the operands\. Unbinding uses the approximate inverse:
𝐚≈\(𝐚⊛𝐛\)⊘𝐛=ℱ−1\(𝐚⊛𝐛^⊙𝐛^¯\)\.\\mathbf\{a\}\\approx\(\\mathbf\{a\}\\circledast\\mathbf\{b\}\)\\oslash\\mathbf\{b\}\\;=\\;\\mathcal\{F\}^\{\-1\}\\\!\\bigl\(\\widehat\{\\mathbf\{a\}\\circledast\\mathbf\{b\}\}\\odot\\overline\{\\hat\{\\mathbf\{b\}\}\}\\bigr\)\.\(4\)Approximation error grows with the number of superposed factsKK, at rateO\(K/D\)O\(\\sqrt\{K/D\}\)for random embeddings\. WithK=272,115K=272\{,\}115training triples inD=1024D=1024real dimensions,K/D≈266K/D\\approx 266, a substantial noise floor\. Section[6\.4](https://arxiv.org/html/2606.24948#S6.SS4)measures its differential effect on the specific facts compositional chains depend on\.
#### Complex FHRR\.
FHRR encodes each symbol as a unit\-modulus phasor𝐳=eiϕ\\mathbf\{z\}=e^\{i\\bm\{\\phi\}\}withϕ∈\[−π,π\]D\\bm\{\\phi\}\\in\[\-\\pi,\\pi\]^\{D\}\. Binding is element\-wise complex multiplication \(phase addition\); unbinding multiplies by the conjugate:
\(𝐳A⊛𝐳B\)k=zA,k⋅zB,k=ei\(ϕA,k\+ϕB,k\),\(𝐳A⊛𝐳B\)⊘𝐳B=𝐳A\.\(\\mathbf\{z\}\_\{A\}\\circledast\\mathbf\{z\}\_\{B\}\)\_\{k\}=z\_\{A,k\}\\cdot z\_\{B,k\}=e^\{i\(\\phi\_\{A,k\}\+\\phi\_\{B,k\}\)\},\\hskip 18\.49988pt\(\\mathbf\{z\}\_\{A\}\\circledast\\mathbf\{z\}\_\{B\}\)\\oslash\\mathbf\{z\}\_\{B\}=\\mathbf\{z\}\_\{A\}\.\(5\)Recovery is exact for a single stored fact and noisy for a superposition ofKKfacts, where phase interference accumulates across components\. Figure[1](https://arxiv.org/html/2606.24948#S4.F1)visualises binding and unbinding on the unit circle\.
𝐞A\\mathbf\{e\}\_\{A\}θA\\theta\_\{A\}𝝆R\\bm\{\\rho\}\_\{R\}θR\\theta\_\{R\}𝐞A⊛𝝆R\\mathbf\{e\}\_\{A\}\\circledast\\bm\{\\rho\}\_\{R\}θA\+θR\\theta\_\{A\}\{\+\}\\theta\_\{R\}Bind:\(eiθA\)⊙\(eiθR\)=ei\(θA\+θR\)\\displaystyle\\text\{Bind: \}\(e^\{i\\theta\_\{A\}\}\)\\odot\(e^\{i\\theta\_\{R\}\}\)=e^\{i\(\\theta\_\{A\}\+\\theta\_\{R\}\)\}𝐞A⊛𝝆R\\mathbf\{e\}\_\{A\}\\circledast\\bm\{\\rho\}\_\{R\}𝝆R¯\\overline\{\\bm\{\\rho\}\_\{R\}\}−θR\-\\theta\_\{R\}≈𝐞A\\approx\\mathbf\{e\}\_\{A\}Unbind:\(ei\(θA\+θR\)\)⊙\(e−iθR\)=eiθA\\displaystyle\\text\{Unbind: \}\(e^\{i\(\\theta\_\{A\}\+\\theta\_\{R\}\)\}\)\\odot\(e^\{\-i\\theta\_\{R\}\}\)=e^\{i\\theta\_\{A\}\}unbind with𝝆R¯\\overline\{\\bm\{\\rho\}\_\{R\}\}
Figure 1:Complex\-phasor binding and unbinding in FHRR\.Left:Binding adds phases\.Right:Unbinding subtracts them via conjugate multiplication, recovering the original entity up to cross\-talk noise from other superposed facts\.
#### Memory construction\.
Both models superpose training triples into a single memory vector:
𝐌=∑\(h,r,t\)∈𝒯tr𝐞h⊛𝝆r⊛𝐞t,\\mathbf\{M\}=\\sum\_\{\(h,r,t\)\\,\\in\\,\\mathcal\{T\}\_\{\\mathrm\{tr\}\}\}\\mathbf\{e\}\_\{h\}\\circledast\\bm\{\\rho\}\_\{r\}\\circledast\\mathbf\{e\}\_\{t\},\(6\)where𝐞x∈ℝD\\mathbf\{e\}\_\{x\}\\in\\mathbb\{R\}^\{D\}\(HRR\) orℂD\\mathbb\{C\}^\{D\}\(FHRR\) are learned entity embeddings and𝝆r\\bm\{\\rho\}\_\{r\}are learned relation embeddings\. Entity and relation embeddings are trained jointly to maximise single\-hop retrieval accuracy;𝐌\\mathbf\{M\}is recomputed from the trained embeddings without further gradient updates\.
### 4\.2Hopfield Cleanup
Unbinding from a superposed memory produces a noisy estimate𝐳~≈𝐞t\\tilde\{\\mathbf\{z\}\}\\approx\\mathbf\{e\}\_\{t\}, corrupted by interference from the other stored facts\. A modern Hopfield network\[[9](https://arxiv.org/html/2606.24948#bib.bib9)\]maps this estimate back to the entity codebook𝐄∈ℝ\|ℰ\|×D\\mathbf\{E\}\\in\\mathbb\{R\}^\{\|\\mathcal\{E\}\|\\times D\}:
clean\(𝐳~\)=𝜶\(𝐳~\)⊤𝐄,αi\(𝐳~\)=exp\(β𝐞i⊤𝐳~\)∑jexp\(β𝐞j⊤𝐳~\),\\operatorname\{clean\}\(\\tilde\{\\mathbf\{z\}\}\)=\\bm\{\\alpha\}\(\\tilde\{\\mathbf\{z\}\}\)^\{\\top\}\\mathbf\{E\},\\hskip 18\.49988pt\\alpha\_\{i\}\(\\tilde\{\\mathbf\{z\}\}\)=\\frac\{\\exp\\\!\\bigl\(\\beta\\,\\mathbf\{e\}\_\{i\}^\{\\top\}\\tilde\{\\mathbf\{z\}\}\\bigr\)\}\{\\sum\_\{j\}\\exp\\\!\\bigl\(\\beta\\,\\mathbf\{e\}\_\{j\}^\{\\top\}\\tilde\{\\mathbf\{z\}\}\\bigr\)\},\(7\)whereβ\>0\\beta\>0is an inverse temperature\. A hard variant usescleanhard\(𝐳~\)=𝐞argmaxi𝐞i⊤𝐳~\\operatorname\{clean\}\_\{\\mathrm\{hard\}\}\(\\tilde\{\\mathbf\{z\}\}\)=\\mathbf\{e\}\_\{\\operatorname\*\{arg\\,max\}\_\{i\}\\,\\mathbf\{e\}\_\{i\}^\{\\top\}\\tilde\{\\mathbf\{z\}\}\}\.
For FHRR, the output is re\-projected onto the unit torus by extracting the element\-wise phase:
cleanF\(𝐳~\)=exp\(i∠\(𝜶\(𝐳~\)⊤𝐄\)\)\.\\operatorname\{clean\}\_\{\\mathrm\{F\}\}\(\\tilde\{\\mathbf\{z\}\}\)=\\exp\\\!\\bigl\(i\\,\\angle\\bigl\(\\bm\{\\alpha\}\(\\tilde\{\\mathbf\{z\}\}\)^\{\\top\}\\mathbf\{E\}\\bigr\)\\bigr\)\.\(8\)This guarantees\|cleanF\(𝐳~\)k\|=1\|\\operatorname\{clean\}\_\{\\mathrm\{F\}\}\(\\tilde\{\\mathbf\{z\}\}\)\_\{k\}\|=1by construction, ruling out magnitude collapse as a failure mode \(Section[6\.4](https://arxiv.org/html/2606.24948#S6.SS4)\)\.
### 4\.3Atomic and Compositional Inference
#### Atomic prediction\.
The tail estimate for query\(h,r\)\(h,r\)is:
𝐳~t=𝐌⊘\(𝐞h⊛𝝆r\),\\tilde\{\\mathbf\{z\}\}\_\{t\}=\\mathbf\{M\}\\oslash\(\\mathbf\{e\}\_\{h\}\\circledast\\bm\{\\rho\}\_\{r\}\),\(9\)followed byclean\(𝐳~t\)\\operatorname\{clean\}\(\\tilde\{\\mathbf\{z\}\}\_\{t\}\)\. Ranking uses cosine similarity to all entity embeddings\.
#### Two\-hop compositional prediction\.
For a chain\(r1,r2\)\(r\_\{1\},r\_\{2\}\)with headhh, we retrieve the intermediate entity:
𝐦^=cleanhard\(𝐌⊘\(𝐞h⊛𝝆r1\)\),\\hat\{\\mathbf\{m\}\}=\\operatorname\{clean\}\_\{\\mathrm\{hard\}\}\\\!\\bigl\(\\mathbf\{M\}\\oslash\(\\mathbf\{e\}\_\{h\}\\circledast\\bm\{\\rho\}\_\{r\_\{1\}\}\)\\bigr\),\(10\)then use𝐦^\\hat\{\\mathbf\{m\}\}as the head for the second hop:
𝐭^=clean\(𝐌⊘\(𝐦^⊛𝝆r2\)\)\.\\hat\{\\mathbf\{t\}\}=\\operatorname\{clean\}\\\!\\bigl\(\\mathbf\{M\}\\oslash\(\\hat\{\\mathbf\{m\}\}\\circledast\\bm\{\\rho\}\_\{r\_\{2\}\}\)\\bigr\)\.\(11\)Both hops query the same memory𝐌\\mathbf\{M\}; no intermediate entity is ever observed\. Section[6\.4](https://arxiv.org/html/2606.24948#S6.SS4)shows that hop 1 succeeds at high accuracy, and that the bottleneck is in retrieving the second\-hop fact from𝐌\\mathbf\{M\}, regardless of whether𝐦^\\hat\{\\mathbf\{m\}\}is correct\.
### 4\.4Theoretical Analysis: Softmax Cleanup is Phase\-Nonequivariant
The mechanistic probes in Section[6\.4](https://arxiv.org/html/2606.24948#S6.SS4)show that the*primary*bottleneck, retrieval capacity under superposition, is measurable at a single hop, before any cleanup step acts\. We additionally identify a*secondary*, FHRR\-specific failure that compounds this primary effect whenever hop\-1 cleanup is imperfect: the softmax Hopfield cleanup followed by phase re\-projection does not commute with binding\.
###### Lemma 4\.1\(Softmax cleanup is phase\-nonequivariant\)\.
Let𝐳∈ℂD\\mathbf\{z\}\\in\\mathbb\{C\}^\{D\}with\|zk\|=1\|z\_\{k\}\|=1for allkk, and let𝛒∈ℂD\\bm\{\\rho\}\\in\\mathbb\{C\}^\{D\}with\|ρk\|=1\|\\rho\_\{k\}\|=1be a unit\-phasor relation embedding\. Define the FHRR Hopfield cleanupcleanF\\operatorname\{clean\}\_\{\\mathrm\{F\}\}as in Eq\. \([8](https://arxiv.org/html/2606.24948#S4.E8)\), with similarities computed asRe\(𝐞i⊤𝐳¯\)\\operatorname\{Re\}\(\\mathbf\{e\}\_\{i\}^\{\\top\}\\bar\{\\mathbf\{z\}\}\)\. Then in general,
cleanF\(𝐳⊙𝝆\)≠cleanF\(𝐳\)⊙𝝆\.\\operatorname\{clean\}\_\{\\mathrm\{F\}\}\(\\mathbf\{z\}\\odot\\bm\{\\rho\}\)\\;\\neq\\;\\operatorname\{clean\}\_\{\\mathrm\{F\}\}\(\\mathbf\{z\}\)\\odot\\bm\{\\rho\}\.\(12\)
###### Proof\.
It suffices to exhibit a single componentkkfor which Eq\. \([12](https://arxiv.org/html/2606.24948#S4.E12)\) fails\. ConsiderD=1D=1with a two\-entity codebook\{eiϕ1,eiϕ2\}⊂ℂ\\\{e^\{i\\phi\_\{1\}\},e^\{i\\phi\_\{2\}\}\\\}\\subset\\mathbb\{C\}, queryz=eiθz=e^\{i\\theta\}, and binding phasorρ=eiψ\\rho=e^\{i\\psi\}\.
The softmax weights for queryzzareαj=exp\(βcos\(ϕj−θ\)\)/Z\(θ\)\\alpha\_\{j\}=\\exp\(\\beta\\cos\(\\phi\_\{j\}\-\\theta\)\)/Z\(\\theta\), whereZ\(θ\)=∑ℓexp\(βcos\(ϕℓ−θ\)\)Z\(\\theta\)=\\sum\_\{\\ell\}\\exp\(\\beta\\cos\(\\phi\_\{\\ell\}\-\\theta\)\)\. The cleanup output isc\(z\)=exp\(i∠\(α1eiϕ1\+α2eiϕ2\)\)c\(z\)=\\exp\(i\\,\\angle\(\\alpha\_\{1\}e^\{i\\phi\_\{1\}\}\+\\alpha\_\{2\}e^\{i\\phi\_\{2\}\}\)\)\.
Left\-hand sideof Eq\. \([12](https://arxiv.org/html/2606.24948#S4.E12)\): query isz⊙ρ=ei\(θ\+ψ\)z\\odot\\rho=e^\{i\(\\theta\+\\psi\)\}, so weights becomeα~j=exp\(βcos\(ϕj−θ−ψ\)\)/Z\(θ\+ψ\)\\tilde\{\\alpha\}\_\{j\}=\\exp\(\\beta\\cos\(\\phi\_\{j\}\-\\theta\-\\psi\)\)/Z\(\\theta\+\\psi\), giving
LHS=exp\(i∠\(α~1eiϕ1\+α~2eiϕ2\)\)\.\\mathrm\{LHS\}=\\exp\\\!\\bigl\(i\\,\\angle\\bigl\(\\tilde\{\\alpha\}\_\{1\}e^\{i\\phi\_\{1\}\}\+\\tilde\{\\alpha\}\_\{2\}e^\{i\\phi\_\{2\}\}\\bigr\)\\bigr\)\.
Right\-hand side: multiply cleanup output byρ\\rho:
RHS=exp\(i\[∠\(α1eiϕ1\+α2eiϕ2\)\+ψ\]\)\.\\mathrm\{RHS\}=\\exp\\\!\\bigl\(i\\bigl\[\\angle\(\\alpha\_\{1\}e^\{i\\phi\_\{1\}\}\+\\alpha\_\{2\}e^\{i\\phi\_\{2\}\}\)\+\\psi\\bigr\]\\bigr\)\.
For LHS==RHS one would need∠\(α~1eiϕ1\+α~2eiϕ2\)=∠\(α1eiϕ1\+α2eiϕ2\)\+ψ\\angle\(\\tilde\{\\alpha\}\_\{1\}e^\{i\\phi\_\{1\}\}\+\\tilde\{\\alpha\}\_\{2\}e^\{i\\phi\_\{2\}\}\)=\\angle\(\\alpha\_\{1\}e^\{i\\phi\_\{1\}\}\+\\alpha\_\{2\}e^\{i\\phi\_\{2\}\}\)\+\\psi\. Butα~j≠αj\\tilde\{\\alpha\}\_\{j\}\\neq\\alpha\_\{j\}wheneverψ≠0\\psi\\neq 0and the two entities are not symmetrically placed aroundθ\\theta, so the weighted sum of phasors is not simply phase\-shifted byψ\\psi\.
Concrete counterexample\.Setϕ1=0\\phi\_\{1\}=0,ϕ2=2π/3\\phi\_\{2\}=2\\pi/3,θ=0\.1\\theta=0\.1,ψ=π/3\\psi=\\pi/3,β=5\\beta=5\. Thenα1≈0\.9991\\alpha\_\{1\}\\approx 0\.9991,α2≈0\.0009\\alpha\_\{2\}\\approx 0\.0009, soc\(z\)≈ei⋅0\.0008c\(z\)\\approx e^\{i\\cdot 0\.0008\}andRHS≈ei⋅1\.048\\mathrm\{RHS\}\\approx e^\{i\\cdot 1\.048\}\. For LHS, the query shifts toθ\+ψ≈1\.147\\theta\+\\psi\\approx 1\.147, now closer toϕ2≈2\.094\\phi\_\{2\}\\approx 2\.094than toϕ1=0\\phi\_\{1\}=0:α~1≈0\.296\\tilde\{\\alpha\}\_\{1\}\\approx 0\.296,α~2≈0\.704\\tilde\{\\alpha\}\_\{2\}\\approx 0\.704, soLHS≈ei⋅1\.663\\mathrm\{LHS\}\\approx e^\{i\\cdot 1\.663\}\. We haveLHS≈ei⋅1\.663≠ei⋅1\.048=RHS\\mathrm\{LHS\}\\approx e^\{i\\cdot 1\.663\}\\neq e^\{i\\cdot 1\.048\}=\\mathrm\{RHS\}, a phase gap of≈0\.6\\approx 0\.6rad\. ForD\>1D\>1, errors compound independently per component across the second binding in Eq\. \([11](https://arxiv.org/html/2606.24948#S4.E11)\)\. ∎
### 4\.5Training Objective
Both models minimise a cross\-entropy loss over the atomic retrieval task plus a contrastive invertibility regulariser:ℒ=ℒatom\+λℒinv\\mathcal\{L\}=\\mathcal\{L\}\_\{\\text\{atom\}\}\+\\lambda\\mathcal\{L\}\_\{\\text\{inv\}\},λ=0\.2\\lambda=0\.2\.ℒinv\\mathcal\{L\}\_\{\\text\{inv\}\}encouragesf⊛rf\\circledast rto unbind back to bothffandrr\. The memory𝐌\\mathbf\{M\}is Hebbian\-initialised and refined by gradient descent\. We use Adam \(lr10−310^\{\-3\}, cosine\-annealed to10−510^\{\-5\}\), batch size20482048, gradient clip1\.01\.0\.
\(a\) Atomic𝐞h\\mathbf\{e\}\_\{h\}𝝆r\\bm\{\\rho\}\_\{r\}⊛\\circledast𝐌\\mathbf\{M\}⊘\\oslashcleanupt^\\hat\{t\}noisy\(b\) Two\-hop𝐞h\\mathbf\{e\}\_\{h\}𝝆r1\\bm\{\\rho\}\_\{r\_\{1\}\}⊛\\circledast⊘\\oslash𝐌\\mathbf\{M\}cleanup\(hard\)𝝆r2\\bm\{\\rho\}\_\{r\_\{2\}\}⊛\\circledast⊘\\oslash𝐌\\mathbf\{M\}cleanupt^\\hat\{t\}m^\\hat\{m\}capacity\-limited retrieval
Figure 2:Holographic memory architecture\.\(a\)An atomic query binds the head with the relation, unbinds from the superposed memory, and projects via the Hopfield cleanup\.\(b\)A two\-hop query repeats bind\-unbind\-cleanup\. Hop 1 \(left cleanup\) succeeds with high fidelity; the dashed red box marks where failure actually occurs: in retrieving the second\-hop fact from the superposed memory, not in the correctness ofm^\\hat\{m\}or the bind\-unbind algebra\.
## 5Experimental Setup
### 5\.1Dataset and Preprocessing
We use FB15k\-237\[[15](https://arxiv.org/html/2606.24948#bib.bib15)\]:14,54114\{,\}541entities,237237relations,272,115272\{,\}115/17,53517\{,\}535/20,46620\{,\}466train/valid/test triples\. The zero\-shot evaluation set follows Algorithm[1](https://arxiv.org/html/2606.24948#alg1)\. The 10 selected chains span 19 distinct relation types with mid\-entity fan\-out from2\.42\.4to18\.718\.7\. Compositional failure is consistent across all chains\.
### 5\.2Implementation Details
Both models useD=1024D=1024real parameters \(HRR:D=1024D=1024real; FHRR:D=512D=512complex, i\.e\.10241024reals\)\. Embeddings are initialised from𝒩\(0,D−1𝐈\)\\mathcal\{N\}\(0,D^\{\-1\}\\mathbf\{I\}\)\. We use Adam \(η=10−3\\eta=10^\{\-3\}, cosine\-annealed to10−510^\{\-5\}\), batch size20482048, gradient clipping1\.01\.0,200200epochs\. All experiments run over five random seeds\{1,2,3,4,42\}\\\{1,2,3,4,42\\\}; we report mean±\\pmstandard deviation\. Default inverse temperatures:β=8\\beta=8\(HRR\),β=12\\beta=12\(FHRR\)\.
### 5\.3Phase Probe Definitions
For complex vectors𝐮,𝐯∈ℂD\\mathbf\{u\},\\mathbf\{v\}\\in\\mathbb\{C\}^\{D\}with\|uk\|=\|vk\|=1\|u\_\{k\}\|=\|v\_\{k\}\|=1:
Sϕ\(𝐮,𝐯\)\\displaystyle S\_\{\\phi\}\(\\mathbf\{u\},\\mathbf\{v\}\)=1DRe\(𝐮⊤𝐯¯\)=1D∑k=1Dcos\(∠uk−∠vk\),\\displaystyle=\\frac\{1\}\{D\}\\operatorname\{Re\}\\\!\\bigl\(\\mathbf\{u\}^\{\\top\}\\bar\{\\mathbf\{v\}\}\\bigr\)=\\frac\{1\}\{D\}\\sum\_\{k=1\}^\{D\}\\cos\(\\angle u\_\{k\}\-\\angle v\_\{k\}\),\(13\)Δϕ\(𝐮,𝐯\)\\displaystyle\\Delta\\phi\(\\mathbf\{u\},\\mathbf\{v\}\)=1D∑k=1D\|∠uk−∠vk\|π,\\displaystyle=\\frac\{1\}\{D\}\\sum\_\{k=1\}^\{D\}\|\\angle u\_\{k\}\-\\angle v\_\{k\}\|\_\{\\pi\},\(14\)where\|⋅\|π\|\\cdot\|\_\{\\pi\}denotes the wrapped distance on\[−π,π\]\[\-\\pi,\\pi\]\. For independent uniform random phasors,𝔼\[Sϕ\]=0\\mathbb\{E\}\[S\_\{\\phi\}\]=0and𝔼\[Δϕ\]=π/2≈1\.571\\mathbb\{E\}\[\\Delta\\phi\]=\\pi/2\\approx 1\.571rad\.
### 5\.4Mechanistic Probes
To localise the compositional failure, we introduce two further probes, both computed by inference over stored checkpoints with no additional training\.
#### Hop\-1 mid\-entity retrieval probe\.
For each unique\(h,r1\)\(h,r\_\{1\}\)pair in the zero\-shot evaluation set, we treat intermediate\-entity prediction as a standard filtered atomic query: gold labels are allmmwith\(h,r1,m\)\(h,r\_\{1\},m\)in the full graph \(train∪\\cupvalid∪\\cuptest\), and we report filtered MRR and Hits@kkusing the standard protocol, applied to𝐌⊘\(𝐞h⊛𝝆r1\)\\mathbf\{M\}\\oslash\(\\mathbf\{e\}\_\{h\}\\circledast\\bm\{\\rho\}\_\{r\_\{1\}\}\)before any second\-hop computation\.
#### Composition conditional on mid correctness\.
For each zero\-shot quadruple\(h,r1,r2,t\)\(h,r\_\{1\},r\_\{2\},t\), we compute a deterministic intermediate predictionm^=argmaxi𝐞i⊤\(𝐌⊘\(𝐞h⊛𝝆r1\)\)\\hat\{m\}=\\operatorname\*\{arg\\,max\}\_\{i\}\\,\\mathbf\{e\}\_\{i\}^\{\\top\}\\bigl\(\\mathbf\{M\}\\oslash\(\\mathbf\{e\}\_\{h\}\\circledast\\bm\{\\rho\}\_\{r\_\{1\}\}\)\\bigr\), re\-embedm^\\hat\{m\}as a clean codebook vector, and complete the second hop\. We then partition quadruples by whetherm^\\hat\{m\}is a validr1r\_\{1\}\-neighbour ofhhand report composition accuracy on each partition separately\.
#### Ground\-truth hop\-2 atomic\-difficulty probe\.
For each zero\-shot quadruple with at least one true chain\-consistent intermediatem⋆m^\{\\star\}, meaning\(h,r1,m⋆\)\(h,r\_\{1\},m^\{\\star\}\)and\(m⋆,r2,t\)\(m^\{\\star\},r\_\{2\},t\)both hold, we pose\(m⋆,r2\)\(m^\{\\star\},r\_\{2\}\)as a standalone atomic query using the model’s own learned embedding form⋆m^\{\\star\}, bypassing hop 1 entirely, and measure filtered top\-1 accuracy\. Comparing this to accuracy on a uniformly sampled atomic test query isolates whether chain\-relevant facts are intrinsically harder to retrieve from𝐌\\mathbf\{M\}, independent of any error introduced by hop 1 or the composition pipeline\. We additionally stratify by relation fan\-out \(median split\) to rule out fan\-out as the explanation\.
## 6Results
### 6\.1Atomic Retrieval
Table[1](https://arxiv.org/html/2606.24948#S6.T1)reports filtered single\-hop performance over five seeds on the full test set \(20,46620\{,\}466queries\)\. Real HRR reaches MRR0\.358±0\.0020\.358\\pm 0\.002and FHRR0\.350±0\.0210\.350\\pm 0\.021, both in the range of standard baselines\. The larger standard deviation for FHRR \(±0\.021\\pm 0\.021\) likely reflects greater sensitivity of complex\-valued optimisation to random seeds; it does not affect the qualitative picture\. The Hopfield cleanup accounts for roughly half of atomic performance \(Table[2](https://arxiv.org/html/2606.24948#S6.T2)\): removing it drops real\-HRR top\-1 from0\.1580\.158to0\.0810\.081\.
Table 1:Atomic \(single\-hop\) link prediction on FB15k\-237, filtered setting, full test set\. Our values are mean±\\pmstd over five seeds\. Baseline values are representative literature figures at their own dimensionalities\.†Literature values from\[[2](https://arxiv.org/html/2606.24948#bib.bib2),[18](https://arxiv.org/html/2606.24948#bib.bib18),[16](https://arxiv.org/html/2606.24948#bib.bib16),[14](https://arxiv.org/html/2606.24948#bib.bib14)\]; not re\-run here\.
Table 2:Core\-component ablation \(Real HRR, five seeds, full test set\)\.
### 6\.2Zero\-Shot Compositional Reasoning
Two\-hop zero\-shot accuracy is at or near chance for both variants: mean accuracy is1\.7×10−41\.7\\times 10^\{\-4\}\(real HRR\) and2\.9×10−52\.9\\times 10^\{\-5\}\(FHRR\), against chance6\.77×10−56\.77\\times 10^\{\-5\}\. We run a one\-sided binomial test per seed \(H0H\_\{0\}: accuracy==chance\)\. For FHRR, the null is not rejected atα=0\.05\\alpha=0\.05in any seed \(per\-seedp∈\[0\.34,1\.0\]p\\in\[0\.34,1\.0\]\)\. For real HRR, the null is rejected in three of five seeds, but the absolute accuracy \(∼1\.7×10−4\\sim 1\.7\\times 10^\{\-4\}, a handful of the69,85569\{,\}855pairs\) is orders of magnitude below single\-hop top\-1, so the model is functionally at chance even where the test formally rejects\. Sweepingβ∈\{1,5,10,20,50\}\\beta\\in\\\{1,5,10,20,50\\\}leaves accuracy flat near chance \(Figure[3](https://arxiv.org/html/2606.24948#S6.F3)\): no temperature elicits composition\.
151020500⋅1000\\cdot 10^\{0\}2⋅10−42\\cdot 10^\{\-4\}4⋅10−44\\cdot 10^\{\-4\}6⋅10−46\\cdot 10^\{\-4\}8⋅10−48\\cdot 10^\{\-4\}Cleanup temperatureβ\\betaZero\-shot accuracyReal HRR zero\-shotchance \(1/\|ℰ\|1/\|\\mathcal\{E\}\|\)Figure 3:Cleanup temperature sweep \(Real HRR, representative seed\)\. Zero\-shot accuracy stays near chance across allβ\\beta; no temperature elicits composition\.
### 6\.3Hop\-1 Retrieval Succeeds: Localising the Failure to Hop 2
The most obvious explanation for compositional failure is that the model never recovers a usable intermediate entity at hop 1, and that two\-hop failure is just hop\-1 failure propagated forward\. The hop\-1 mid\-entity retrieval probe rules this out directly\.
Table 3:Hop\-1 intermediate\-entity retrieval, evaluated as a standard filtered atomic query over the2,0202\{,\}020unique\(h,r1\)\(h,r\_\{1\}\)pairs in the zero\-shot set\. Mean±\\pmstd over five seeds\.Hop\-1 retrieval is excellent: median rank11, Hits@1 above0\.840\.84for real HRR and0\.780\.78for FHRR, substantially better than the models’ own atomic test accuracy \(Table[1](https://arxiv.org/html/2606.24948#S6.T1), Hits@1≈0\.27\\approx 0\.27/0\.260\.26\)\. The gap is expected:\(h,r1\)\(h,r\_\{1\}\)pairs in high\-frequency chains tend to be well\-represented training facts, not a uniform draw from the test distribution\. Whatever causes two\-hop failure, it is not an inability to identify the intermediate entity\.
We next ask whether composition succeeds*conditional*on a correct intermediate\. Table[4](https://arxiv.org/html/2606.24948#S6.T4)shows it does not\.
Table 4:Composition accuracy conditioned on whether the deterministic intermediate predictionm^\\hat\{m\}is a validr1r\_\{1\}\-neighbour ofhh\. Mean±\\pmstd over five seeds;nnis the mean partition size out of69,85569\{,\}855quadruples\. Chance is6\.77×10−56\.77\\times 10^\{\-5\}\.Composition accuracy given a valid intermediate is higher than given an invalid one for both models\. But both conditional accuracies remain within one order of magnitude of chance, two to four orders of magnitude below atomic Hits@1\. At the per\-seed level, real HRR produces as few as11correct prediction out of15,81515\{,\}815quadruples with a verified\-correct intermediate \(seed 4\); FHRR produces as few as33out of10,60310\{,\}603\(seed 42\)\. A correct intermediate entity is necessary but nowhere near sufficient for correct composition\. The bottleneck sits downstream of hop\-1 retrieval, in the second bind\-unbind\-cleanup step itself\.
### 6\.4Hop\-2 Atomic\-Difficulty Probe: The Bottleneck Is Retrieval Capacity
Section[6\.3](https://arxiv.org/html/2606.24948#S6.SS3)shows hop\-1 succeeds and composition still fails even with a verified\-correct intermediate\. Two explanations remain\. One: something specific to the composition pipeline, namely re\-embeddingm^\\hat\{m\}, re\-binding with𝝆r2\\bm\{\\rho\}\_\{r\_\{2\}\}, re\-unbinding from𝐌\\mathbf\{M\}, introduces a failure absent from an ordinary atomic query\. Two: the specific facts that compositional chains pass through are harder for the memory to retrieve than a typical fact, a difficulty that exists at a single hop and has nothing to do with composition mechanics\. We distinguish these using the ground\-truth hop\-2 atomic\-difficulty probe: we take the true chain\-consistent intermediatem⋆m^\{\\star\}from the graph \(bypassing hop 1 entirely\) and pose\(m⋆,r2\)\(m^\{\\star\},r\_\{2\}\)as a standalone atomic query, identical in form to those underlying Table[1](https://arxiv.org/html/2606.24948#S6.T1)\.
Table 5:Ground\-truth hop\-2 facts evaluated as standalone atomic queries \(filtered top\-1\), compared to the model’s standard atomic test accuracy on the same checkpoints, over200200unique\(m⋆,r2\)\(m^\{\\star\},r\_\{2\}\)queries\. Mean±\\pmstd over five seeds\.The result is clear\. Even with no hop\-1 error and no composition pipeline at all, accuracy on the exact facts chains depend on is degraded to a quarter \(real HRR\) to a half \(FHRR\) of the models’ accuracy on a typical atomic query\. Stratifying by relation fan\-out \(median split at37\.537\.5\) shows this degradation is uniform: real HRR scores0\.0680\.068top\-1 on low\-fan\-out hop\-2 facts and0\.0720\.072on high\-fan\-out ones, which rules out fan\-out as the explanation\. The failure is not concentrated in high\-fan\-out relations, and it is not introduced by the composition pipeline\. It is a property of which facts are hard to retrieve from𝐌\\mathbf\{M\}, visible already at a single unbind operation\.
#### Why these specific facts are hard\.
The facts selected by Algorithm[1](https://arxiv.org/html/2606.24948#alg1)are second legs of high\-support relation chains:r2r\_\{2\}relations andm⋆m^\{\\star\}entities that participate in many chain instances, and therefore in many competing Hebbian terms in𝐌\\mathbf\{M\}\. This is consistent with theO\(K/D\)O\(\\sqrt\{K/D\}\)cross\-talk noise scaling from Section[4\.1](https://arxiv.org/html/2606.24948#S4.SS1): facts involving entities or relations with higher effective participation in the superposition are recovered with lower fidelity, even though the average fact \(as sampled by the standard test set\) is recovered adequately\. Composition inherits this weakness by construction, since compositionally chained facts are precisely the higher\-degree, more contested entries in𝐌\\mathbf\{M\}\.
#### FHRR modulus and phase probes\.
A common intuition for phasor memories under iterated binding is modulus collapse: the softmax cleanup is a convex combination of unit phasors, so its output can have\|z\|≪1\|z\|\\ll 1, decaying over hops\. This turns out not to apply here\. The mean per\-component modulus of the cleaned representation is\|z\|=1\.0000\|z\|=1\.0000\(std0\.00000\.0000\) at both hops, across all five seeds, because the FHRR cleanup re\-projects onto the unit torus by construction \(Eq\.[8](https://arxiv.org/html/2606.24948#S4.E8)\)\. Magnitude\-based diagnostics are vacuous\.
The relevant question is then whether phase information survives\. Figure[4](https://arxiv.org/html/2606.24948#S6.F4)shows phasor cosine similarity between the cleaned two\-hop representation and the true target versus a random entity\. Similarity to the true target is−0\.009±0\.006\-0\.009\\pm 0\.006, statistically indistinguishable from0\.005±0\.0030\.005\\pm 0\.003to a random entity: the cleaned representation retains no directional information at the final hop\. The mean absolute phase error at hop 2 is1\.591\.59rad, essentially equal to the uninformative baselineπ/2≈1\.571\\pi/2\\approx 1\.571\(Figure[5](https://arxiv.org/html/2606.24948#S6.F5)\); circular variance is0\.990\.99against a uniform value of11\. Given the retrieval\-capacity bottleneck established in Sections[6\.3](https://arxiv.org/html/2606.24948#S6.SS3)and[6\.4](https://arxiv.org/html/2606.24948#S6.SS4), this near\-uniform phase distribution is consistent with the cleanup non\-commutativity of Lemma[4\.1](https://arxiv.org/html/2606.24948#S4.Thmtheorem1)acting on an already degraded retrieval signal, though it is not uniquely caused by it\.
seed 1seed 2seed 3seed 4seed 42−2\-2022⋅10−2\\cdot 10^\{\-2\}0\.0010\.001−0\.01\-0\.01−0\.014\-0\.014−0\.011\-0\.011−0\.013\-0\.0130\.0020\.00200\.0080\.0080\.0070\.0070\.0070\.007Phasor cosine similaritySϕS\_\{\\phi\}\(clean, true\)SϕS\_\{\\phi\}\(clean, random\)Figure 4:FHRR phase coherence per seed: phasor cosine of the cleaned two\-hop representation to the true target \(green\) vs\. a random entity \(red\)\. Both hover near zero\.Hop 1Hop 200\.50\.5111\.51\.5π/2\\pi/2\(uninformative\)ValueMean abs\. phase error \(rad\)Circular varianceFigure 5:Phase error propagation\. Mean absolute phase error sits at the uninformativeπ/2\\pi/2baseline at both hops; circular variance approaches11\.
#### Renormalisation and hard cleanup\.
Explicitly re\-normalising intermediate and final representations to unit modulus gives zero\-shot accuracy<1×10−5<1\\times 10^\{\-5\}\(zero correct in69,85569\{,\}855pairs\)\. Replacing soft cleanup with hard argmax at both hops likewise gives zero correct answers\. Neither intervention is expected to help under the retrieval\-capacity explanation, since neither changes which facts are weakly represented in𝐌\\mathbf\{M\}\.
#### How atomic ranking survives the same capacity limit that defeats composition\.
FHRR achieves MRR0\.3500\.350overall while hop\-2 fact top\-1 accuracy is only0\.1260\.126\. Here is the resolution: the atomic softmax margin \(gold logit minus the largest incorrect logit\) is negative on average \(−1\.82\-1\.82for FHRR,−1\.92\-1\.92for real HRR\), and the gold entity is top\-1 only≈13\\approx 13to16%16\\%of the time on the full test set, consistent with Table[1](https://arxiv.org/html/2606.24948#S6.T1)\. Yet MRR stays high because the gold entity is reliably ranked among the top few even when it is not first\. Composition has no such tolerance: a near\-miss in the final ranking is scored as a hard failure\. The same capacity limitation that costs ordinary atomic queries a few ranks costs compositional queries the entire prediction\.
#### Untrained control\.
A freshly initialised FHRR has atomic accuracy≈0\\approx 0while the trained model reaches0\.126±0\.0010\.126\\pm 0\.001; training helps single\-hop retrieval\. Yet both are equally at chance on two\-hop composition\. Training buys average atomic competence but does not differentially improve retrieval of the specific, higher\-contention facts composition depends on\.
## 7Discussion
The central finding is that zero\-shot compositional failure in holographic memory is a single\-hop retrieval\-capacity problem, not a multi\-hop or cleanup\-algebra problem\. Hop\-1 retrieval succeeds with high fidelity; composition fails even with a correct intermediate; and the ground\-truth hop\-2 fact, posed as a standalone atomic query with no composition involved, is already degraded to0\.260\.26to0\.48×0\.48\\timesthe typical atomic accuracy, uniformly across relation fan\-out\. The facts compositional reasoning depends on are, by the same construction that makes them compositionally useful, exactly the higher\-degree facts that suffer the most cross\-talk under superposition\. The right question for future work is therefore not whether a cleanup operator can be made compositionally consistent, but whether a fixed\-width superposed memory can retrieve high\-degree facts with high fidelity at all, before any query composition happens\.
Lemma[4\.1](https://arxiv.org/html/2606.24948#S4.Thmtheorem1)identifies a genuine structural property of the softmax\-cleanup\-plus\-phase\-reprojection pipeline in FHRR, and the phase probes show it plausibly compounds the primary failure on the roughly20%20\\%of chains where hop\-1 retrieval is imperfect\. But it is not the primary cause\. The dominant contributor is a retrieval\-capacity effect already measurable at a single hop, before cleanup non\-commutativity has a chance to act\.
Three intuitions deserve caution in light of these results\. First, competitive single\-hop*aggregate*performance does not imply that any individual fact, especially the high\-degree facts compositional reasoning depends on, is retrieved reliably; aggregate metrics like MRR can mask substantial per\-fact variation\. Second, the modulus collapse intuition does not apply once cleanup re\-normalises onto the unit torus; the relevant question then is whether retrieval succeeds upstream of cleanup\. Third, and most concretely, a correct intermediate entity is not informative about whether composition will succeed\. The conditional accuracies in Table[4](https://arxiv.org/html/2606.24948#S6.T4)differ by less than a factor of three between the valid\- and invalid\-intermediate partitions, a much smaller gap than one might expect if intermediate correctness were the dominant factor\.
## 8Limitations
This study evaluates a specific pipeline on a single benchmark\. We test only two\-hop chains; the retrieval\-capacity effect identified here should compound with chain length, since each additional hop queries another potentially high\-contention fact\. Results on sparser graphs \(e\.g\. WN18RR\[[3](https://arxiv.org/html/2606.24948#bib.bib3)\]\) or under explicit multi\-hop protocols \(e\.g\. NELL\-995\[[17](https://arxiv.org/html/2606.24948#bib.bib17)\]\) may differ quantitatively; we predict the capacity effect to be less severe there, given fewer superposed facts per dimension\. We do not empirically test a phase\-equivariant cleanup or a memory architecture with explicitly allocated capacity, such as per\-relation sub\-memories, that might reduce the cross\-talk effect\. The hop\-2 atomic\-difficulty probe uses200200unique\(m⋆,r2\)\(m^\{\\star\},r\_\{2\}\)queries, fewer than the20,46620\{,\}466\-query standard test set; the effect size is large and consistent across all five seeds, but a larger replication would sharpen the estimate\. The training objective targets single\-hop retrieval; an objective that explicitly up\-weights high\-degree or chain\-relevant facts might partially compensate, though we have not tested this\.
## 9Conclusion
Holographic reduced representations paired with modern Hopfield cleanup are competitive single\-hop retrievers on FB15k\-237 but fail completely at zero\-shot two\-hop composition\. Two targeted mechanistic probes localise the failure: the intermediate entity is retrieved with high fidelity at hop 1, yet composition fails even when that intermediate is verified correct, and the ground\-truth second\-hop fact, evaluated as a standalone atomic query with no composition involved, is retrieved at only0\.260\.26to0\.48×0\.48\\timesthe typical atomic accuracy, uniformly across relation fan\-out\. The bottleneck is retrieval capacity under superposition for the specific, higher\-contention facts compositional chains depend on, not the bind\-unbind algebra or the cleanup step\. We additionally prove \(Lemma[4\.1](https://arxiv.org/html/2606.24948#S4.Thmtheorem1)\) that FHRR’s softmax cleanup is not phase\-equivariant, a real but secondary effect that compounds the primary failure only when hop\-1 retrieval itself errs\. Fixing zero\-shot composition in holographic memory requires addressing retrieval fidelity for high\-degree facts under superposition, through explicit capacity allocation or chain\-aware training, rather than cleanup\-operator redesign alone\.
## Reproducibility Statement
All results derive from five fixed\-seed checkpoints under the leakage\-controlled protocol of Algorithm[1](https://arxiv.org/html/2606.24948#alg1)\. Atomic metrics use the filtered convention on the full20,46620\{,\}466\-query test set\. The hop\-1 retrieval probe, the composition\-conditional probe, and the hop\-2 atomic\-difficulty probe \(Section[5\.4](https://arxiv.org/html/2606.24948#S5.SS4)\) are all inference\-only over the same five checkpoints, with no additional training\. Phase probes, modulus probes, softmax margins, temperature sweeps, binomial tests, and untrained controls are likewise computed by inference over stored checkpoints\. Code, configurations, and all probe scripts are released at[https://github\.com/iamhero2709/holographic\-memory](https://github.com/iamhero2709/holographic-memory)\.
## References
- \[1\]E\. Arakelyan, D\. Daza, P\. Minervini, and M\. Cochez\.Complex query answering with neural link predictors\.In*ICLR*, 2021\.
- \[2\]A\. Bordes, N\. Usunier, A\. Garcia\-Durán, J\. Weston, and O\. Yakhnenko\.Translating embeddings for modeling multi\-relational data\.In*NeurIPS*, 2013\.
- \[3\]T\. Dettmers, P\. Minervini, P\. Stenetorp, and S\. Riedel\.Convolutional 2D knowledge graph embeddings\.In*AAAI*, 2018\.
- \[4\]E\. P\. Frady, S\. J\. Kent, B\. A\. Olshausen, and F\. T\. Sommer\.Resonator networks, 1: An efficient solution for factoring high\-dimensional, distributed representations of data structures\.*Neural Computation*, 32\(12\):2311–2331, 2020\.
- \[5\]K\. Guu, J\. Miller, and P\. Liang\.Traversing knowledge graphs in vector space\.In*EMNLP*, 2015\.
- \[6\]P\. Kanerva\.Hyperdimensional computing: An introduction to computing in distributed representation with high\-dimensional random vectors\.*Cognitive Computation*, 1\(2\):139–159, 2009\.
- \[7\]T\. A\. Plate\.*Holographic Reduced Representation: Distributed Representation for Cognitive Structures*\.CSLI Publications, 2003\.
- \[8\]M\. Qu, J\. Chen, L\.\-P\. Xhonneux, Y\. Bengio, and J\. Tang\.RNNLogic: Learning logic rules for reasoning on knowledge graphs\.In*ICLR*, 2021\.
- \[9\]H\. Ramsauer, B\. Schäfl, J\. Lehner, P\. Seidl, M\. Widrich, et al\.Hopfield networks is all you need\.In*ICLR*, 2021\.
- \[10\]H\. Ren and J\. Leskovec\.Beta embeddings for multi\-hop logical reasoning in knowledge graphs\.In*NeurIPS*, 2020\.
- \[11\]H\. Ren, W\. Hu, and J\. Leskovec\.Query2box: Reasoning over knowledge graphs in vector space using box embeddings\.In*ICLR*, 2020\.
- \[12\]K\. Schlegel, P\. Neubert, and P\. Protzel\.A comparison of vector symbolic architectures\.*Artificial Intelligence Review*, 55:4523–4555, 2022\.
- \[13\]P\. Smolensky\.Tensor product variable binding and the representation of symbolic structures in connectionist systems\.*Artificial Intelligence*, 46\(1–2\):159–216, 1990\.
- \[14\]Z\. Sun, Z\.\-H\. Deng, J\.\-Y\. Nie, and J\. Tang\.RotatE: Knowledge graph embedding by relational rotation in complex space\.In*ICLR*, 2019\.
- \[15\]K\. Toutanova, D\. Chen, P\. Pantel, H\. Poon, P\. Choudhury, and M\. Gamon\.Representing text for joint embedding of text and knowledge bases\.In*EMNLP*, 2015\.
- \[16\]T\. Trouillon, J\. Welbl, S\. Riedel, É\. Gaussier, and G\. Bouchard\.Complex embeddings for simple link prediction\.In*ICML*, 2016\.
- \[17\]W\. Xiong, T\. Hoang, and W\. Y\. Wang\.DeepPath: A reinforcement learning method for knowledge graph reasoning\.In*EMNLP*, 2017\.
- \[18\]B\. Yang, W\. Yih, X\. He, J\. Gao, and L\. Deng\.Embedding entities and relations for learning and inference in knowledge bases\.In*ICLR*, 2015\.
- \[19\]F\. Yang, Z\. Yang, and W\. W\. Cohen\.Differentiable learning of logical rules for knowledge base reasoning\.In*NeurIPS*, 2017\.Similar Articles
Composition Collapse: Stable Factual Knowledge Does Not Imply Compositional Reasoning
This paper introduces 'composition collapse', a phenomenon where language models with stable factual knowledge still fail to compose that knowledge into correct multi-hop reasoning, and proposes a double-gate protocol to isolate composition failure from atomic knowledge instability.
Why LLMs Hallucinate on Structured Knowledge: A Mechanistic Analysis of Reasoning over Linearized Representations
This paper presents a mechanistic analysis of why LLMs hallucinate when reasoning over linearized structured knowledge, finding that hallucinations stem from systematic internal dynamics such as attention on shortcut cues and failures in semantic grounding in feed-forward layers, rather than random noise.
MemDreamer: Decoupling Perception and Reasoning for Long Video Understanding via Hierarchical Graph Memory and Agentic Retrieval Mechanism
MemDreamer decouples perception and reasoning for long video understanding using hierarchical graph memory and agentic retrieval, achieving state-of-the-art performance with reduced computational overhead.
RECON: Benchmarking Agent Memory for Compositional Reasoning over Long Contexts
Introduces RECON, a benchmark for evaluating compositional reasoning over long contexts in LLM-based agents, spanning 24 case files across criminal, medical, and financial domains. The best non-oracle system achieves only 22.4% accuracy, revealing substantial limitations in current memory architectures.
H-Mem: A Novel Memory Mechanism for Evolving and Retrieving Agent Memory via a Hybrid Structure
H-Mem is a novel memory mechanism for LLM-based agents that uses a hybrid structure combining a temporal and semantic tree with a knowledge graph to model memory evolution and improve retrieval, achieving state-of-the-art performance on QA benchmarks.