Manuscript Offprint
arXiv:2611.12374TANSAR: Editable and Attributable Correlation Matrix Memories under Correlated Keys, with Rule-Constrained Multi-Hop Knowledge Editing
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Correlation Matrix Memories (CMMs) store associations as sums of rank-one outer products, providing closed-form addressability, exact deletion, and linear attribution. While classical analyses assume random, orthogonal keys, semantic encoders produce correlated representations. We analyse CMMs under correlated keys using frame-theoretic coherence: (i) capacity bounds yielding an encoder-independent limit for mean squared crosstalk ; (ii) an exact characterisation of the collateral effect of deleting an association, guaranteeing that deletion never invalidates certified associations; and (iii) a geometric transparency bound demonstrating why attribution requires candidate sets of centred keys. On this basis, we introduce Topology-Aware Neuro-Symbolic Associative Retrieval (TANSAR). TANSAR traverses a directed acyclic association graph, prunes invalid paths via sound ground Horn constraints, and injects a representation derived strictly from the verified path into the residual stream of a frozen language model, guarded by a Clopper–Pearson selective-risk gate. Controlled experiments confirm all theoretical bounds. In multi-hop knowledge editing, Horn pruning reduces answer contradictions from 25.1% to 0.5%, whereas Hopfield retrieval incurs 24% contradictions when stale associations remain stored (and 0% if stale associations are removed). An end-to-end
*Corresponding author Email addresses: abdulhady.abas@ukh.edu.krd (Abdulhady Abas Abdulla), jiyan@inf.elte.hu (Jiyan Salim Mahmud), f.daneshfar@uok.ac.ir (Fatemeh Daneshfar), hussein.mohammed@tiu.edu.iq (Hussein Mohammed Ali), Mourad.Oussalah@oulu.fi (Mourad Oussalah), m.bilal@ieee.org (Muhammad Bilal) edit transaction requires 13.6 ms on a standard CPU and 2.37 ms on GPU. The symbolic component matches gold labels across all 600 ProofWriter theories and achieves 94.0% agreement on FOLIO, demonstrating sound and efficient multi-hop associative retrieval with exact unlearning.
Keywords: Associative memory, Correlation matrix memory, Coherence, Knowledge editing, Machine unlearning, Neuro-symbolic reasoning
1. Introduction
Linear associative memories (Kohonen, 1972; Anderson, 1972) store a set of key-value pairs in a single matrix and retrieve with one matrix-vector product . Because every association is a separate additive term, a CMM has three properties that dense, gradient-trained weights lack: an association can be added without retraining, removed exactly by subtracting its term, and the readout decomposes into per-association contributions. The classical analysis of these memories, and of their capacity, assumes random, nearly orthogonal keys (Palm, 1980; Hopfield, 1982). Modern uses, however, obtain keys from semantic encoders, so related facts have correlated keys by design. Correlation is then not a nuisance but the source of paraphrase generalisation—and also of crosstalk, collateral damage on deletion, and diluted attribution.
This paper asks how editability and attribution of a CMM behave under correlated keys, and uses the answer to build an editable, inspectable memory for a frozen language model, termed Topology-Aware Neuro-Symbolic Associative Retrieval (TANSAR). Knowledge editing serves as the demonstration: a counterfactual edit must be retrievable from paraphrases, must coexist with stale associations, must be removable, and must compose with other stored facts in multi-hop questions without producing contradictions.
Contributions.
- Theory for correlated keys (Section 4). Bounds stated in terms of mutual coherence , cumulative coherences and RMS coherence rather than Gaussian assumptions: crosstalk, decoding and capacity (Theorem 1); collateral readout change caused by deletion and preservation of recovery certificates (Theorem 2); and transparency separation (Theorem 3). The bounds yield an encoder-independent
capacity limit, the guarantee that exact deletion never invalidates another certified association, and the geometric reason why attribution must be computed on candidate sets of centred keys; Section 4.5 separates these results from the standard inequalities used to prove them. Each bound is checked numerically (Section 4.4).
-
A connected retrieval-to-injection interface (Section 3.5). The vector written into the residual stream is the readout of the sub-memory on the selected valid path, gated on a non-empty admissible set; associations excluded by the constraints contribute exactly zero (Proposition 1).
-
Query-key alignment and calibrated gating (Sections 3.3, 3.6). A contrastively trained linear map aligns hidden states with semantic keys, and the override gate is calibrated with a Clopper–Pearson selective-risk certificate.
-
Evaluation and release (Section 5). Numerical checks of every bound on correlated keys (E1–E3), contrastive query-key alignment (E4), finite-sample risk calibration (E5), multi-hop knowledge retrieval benchmarks with matched ablations (E6), measured end-to-end transaction latency on CPU (13.6 ms) and GPU (2.37 ms) (E7), modern Hopfield retrieval comparisons under identical keys (E8), and symbolic rule verification on ProofWriter and FOLIO (E9). Complete reproducible code, seeds, and configurations are released.
Section 2 reviews related work, Section 3 presents the method, Section 4 the theory, Section 5 the experiments, Section 6 the limitations, and Section 7 concludes. Elementary identities used throughout are collected in Appendix A.
Knowledge editing and multi-hop reasoning. Locate-and-edit methods (ROME (Meng et al., 2022), MEMIT (Meng et al., 2023)) modify model parameters; GLAME (Zhang et al., 2024) augments such parameter updates with knowledge-graph context to capture knowledge that an edit changes indirectly, and MAKE (Park et al., 2025) likewise takes facts associated with the edited one into account during editing. Adapter or side-memory methods (GRACE (Hartvigsen et al., 2023), WISE (Wang et al., 2024a)) add parameters that are trained by optimisation; SERAC (Mitchell et al., 2022) stores edits explicitly and routes with a trained scope classifier. Larimar (Das et al., 2024) adds an external episodic memory that is updated in one step, without constraint checking or per-edit attribution. Empirical studies show that edits often fail to propagate to logically dependent facts and to multi-hop reasoning (Cohen et al., 2024; Hua et al., 2024). For multi-hop editing, MeLLo (Zhong et al., 2023) stores edits as text and lets the model decompose questions and check retrieved facts by prompting; PokeMQA (Gu et al., 2024) decouples question decomposition from a programmable scope detector; GMeLLo (Chen et al., 2024) and KEDKG (Lu et al., 2025) store edited facts in a knowledge graph that the language model queries; EchoEdit (Shi et al., 2026) limits how an edit spreads over a graph of potentially affected facts by means of generated diffusion rules; and DeepEdit (Wang et al., 2024b) casts editing as constrained decoding. Reasoning-based benchmarks such as ReCoE (Hua et al., 2024) and MQuAKE (Zhong et al., 2023) show that existing editing methods often fail on questions whose answers depend on an edit. TANSAR distinguishes itself from these methods by providing closed-form linear updates, exact attribution, and sound Horn constraint pruning without requiring multi-prompt generation or iterative fine-tuning.
Table 1: Design-level comparison with operational definitions. GF: inserting an edit requires no gradient step. Del: removing an edit restores the pre-edit state of the edit store exactly. Add: the representation passed to the model decomposes exactly into one additive term per stored edit. Con: candidate edits are checked against explicitly represented constraints before use. ✓ = satisfied by construction; ○ = partially (see text); × = not satisfied.
| Method | GF | Del | Add | Con |
|---|---|---|---|---|
| ROME / MEMIT | × | × | × | × |
| GRACE | × | ✓ | ○ | × |
| WISE | × | × | × | × |
| SERAC | ✓ | ✓ | × | × |
| MeLLo / PokeMQA | ✓ | ✓ | × | ○ |
| DeepEdit | ✓ | ✓ | × | ○ |
| RAG (sparse / dense) | ✓ | ✓ | × | × |
| Modern Hopfield memory | ✓ | ✓ | ○ | × |
| TANSAR | ✓ | ✓ | ✓ | ✓ |
Retrieval augmentation. Sparse (BM25) and dense retrievers (Karpukhin et al., 2020; Izacard et al., 2022), retrieval-augmented generation (Lewis et al., 2020), interleaved retrieval for multi-step questions (IRCoT (Trivedi et al., 2023)) and self-reflective retrieval (Self-RAG (Asai et al., 2024)) can update an external corpus without touching weights. They provide strong evidence-access baselines; they do not provide an additive decomposition of the representation injected into the model.
Neuro-symbolic constraints and interpretability. Neuro-symbolic systems combine neural scoring with logical constraints (Manhaeve et al., 2018; Badreddine et al., 2022). Our constraint component is deliberately restricted to ground (propositional) Horn rules, for which forward chaining is sound, complete and linear-time (Dowling and Gallier, 1984). Post-hoc mechanistic interpretability analyses trained networks (Elhage et al., 2021); here attribution is structural, fixed by the additive memory.
Table 1 is a design comparison, not a performance claim. GRACE trains each codebook value by gradient descent; deleting a codebook entry restores the unedited layer for that key, and a single retrieved entry identifies the edit used (○ for Add: one entry is selected rather than a sum being decomposed). WISE edits a side memory by optimisation and merges shards, so an individual edit has no separable term. MeLLo, PokeMQA

Figure 1: Overview of TANSAR. The language-model state is mapped by the learned alignment to a query that addresses the explicit associative memory: a CMM of rank-one associations () organised as a directed acyclic graph with a ground-rule store . The retrieval engine diffuses over the active subgraph, prunes paths that violate , and selects (Section 3.4). Only the sub-memory on is read out and injected (Eq. (8)), and only when the calibrated transparency gate accepts. Offline edits and deletions (top right) change the memory without modifying model parameters.
and DeepEdit check retrieved facts with the language model or with soft decoding constraints, not against an explicit rule store ( for Con). A modern Hopfield memory with an explicit pattern store satisfies Del (deleting the pattern restores the pre-edit store); its readout has one term per pattern, but each term depends on all stored patterns through the normalisation, so adding or deleting one edit changes every other term ( for Add; in a CMM the other terms are unchanged, Theorem 2). Neither memory checks constraints by itself; the empirical comparison is in Section 5.3. TANSAR satisfies Del for the matrix, registry, graph and rule store jointly when the coordinated deletion transaction of Section 3.7 is used.
3. Method
3.1. Notation
The memory holds associations with identifiers , unit keys , values in the residual space of the language model, and recorded coefficients , , :
The registry is stored next to . In the theory (Section 4) values are written and normalised, . Symbols are used consistently: for association coefficients, for Hopfield inverse temperature in comparative baselines, for the diffusion damping factor, for key similarities, for the reasoning hop budget (distinguished from transformer layer depth ), for the key matrix, for individual key vectors, top- for candidate retrieval counts, for the transition temperature, for the calibrated gate threshold, and for target selective risk.
3.2. Semantic key encoding
Keys are produced by Semantic Key Encoding (SKE, Figure 2): the text that addresses an association (e.g. the subject-relation prompt “The Eiffel Tower is located in”) is embedded by a frozen sentence encoder , centred by subtracting the empirical mean of the stored embeddings, mapped to by a fixed matrix , and normalised:
Centring removes the common component that all sentence embeddings share; Theorem 3(d) and Section 4.4 show that this component otherwise dominates both crosstalk and the attribution denominator. Each association is also linked to a discrete predicate (its subject-relation-object triple) by exact string matching over noun chunks; the predicate is what the constraint store reasons about.
3.3. Query-key alignment
At inference the memory is addressed by the language model’s own state. Let be the input and the input to the feed-forward block of layer , where denotes the residual stream after the attention sublayer of layer . A fixed random projection of shares no coordinate system with the SKE keys, so we learn a linear map ,
by minimising the InfoNCE loss (van den Oord et al., 2018) over pairs of training paraphrases and the identifiers of the associations they address,

Figure 2: How keys, values and queries are built. Keys (SKE): the text that addresses an association is embedded by a frozen sentence encoder, mean-centred, mapped to by a fixed matrix and normalised. Values: the scaled unembedding row of the edited target, a vector in the residual space of the language model. Queries: the normalised hidden state of the language model, mapped into the key space by the learned alignment (Section 3.3). Keys and values enter the memory as rank-one terms; queries address it through .
with temperature . Retrieval is top-1 dot-product matching,
and alignment quality is reported as top-1/top-5 accuracy of Eq. (5) on held-out paraphrases (Section 5). The alternative of computing keys from the model's own layer- states (the mean of over training paraphrases) is reported as a variant. Training touches neither the language model nor the stored associations.
3.4. Retrieval engine
The associations form a directed acyclic graph : an edge is admissible when the object of is the subject of and adding it keeps acyclic (otherwise the edge is rejected). Retrieval has three stages (Figure 1, Algorithm 1).
Stage 1: graph diffusion. Retrieval seeding is semantic: the top- associations with the largest key-space inner products seed a prior distribution over candidate initial entities. The active subgraph is constructed around these seeds up to hop depth and beam width prior to diffusion. On , the column-stochastic, topology-masked transition matrix is
(6) where the mask iff is an edge of (otherwise 0) and is the key-space image of the object of ; a node without successors receives a self-loop in only. All reported runs use this masked kernel, and the released code implements only this kernel. Diffusion runs for steps with damping (Page et al., 1999): . Graph diffusion propagates reachability mass from prompt seeds across the active subgraph , concentrating stationary probability on nodes supported by multi-hop topological paths. Running diffusion steps on the compact active subgraph requires operations, while path enumeration is governed by the hop depth budget and candidate beam budget.
Stage 2: ground-rule constraint pruning. The rule store contains ground Horn clauses over predicates, including the falsum ; an edit that supersedes a fact adds the unit constraint old . A candidate path is admissible iff forward chaining on does not derive . For ground Horn clauses this test is sound and complete and runs in time linear in the size of the clauses (Dowling and Gallier, 1984). The component is propositional by design; first-order rules must be grounded over the finite set of stored entities before use.
Stage 3: path utility. Among admissible paths of length , candidate paths are scored by
a log-domain trade-off between local transition plausibility and global diffusion stationary mass; balances both terms ( by default to ensure both step-by-step edge plausibility and global topological coherence; while setting emphasizes global reachability on clustered graphs, non-zero enforces local transition validity). TANSAR selects ; if the engine abstains.
3.5. Path-conditioned injection
The injected vector is a function of the selected valid path only. With the sub-memory on ,
Algorithm 1 TANSAR retrieval and path-conditioned injection
Require: query , hop budget , memory ,
Ensure: injected vector or ABSTAIN; selected path
1: top- associations by ; on
2: active subgraph expanded from (depth , width ); Eq. (6) on
3: for to do
4:
5: end for
6:
7: if then return ABSTAIN
8: end if
9: Eq. (7)
10: admissible candidates
11: transparency of on Eq. (10)
12: if or then return ABSTAIN
13: end if
14: Eq. (8)
and the residual stream of layer is
The hop variant injects only the term of the association on that addresses most strongly (). Injecting the full readout instead, which is unrelated to the validated path, is evaluated as an ablation (“validated+full”, Section 5.2).
Proposition 1 (Interface invariant). Under Eq. (9): (i) if nothing is injected; (ii) every association that lies on no admissible path—in particular every association retracted by an edit—contributes exactly zero to for every query ; (iii) , so the attribution of the injected vector to stored associations is exact.
Proof. (i) and (ii) follow from Eq. (9) and Eq. (8), whose sum ranges over only; (iii) is Eq. (8).
Proposition 1 concerns the injected representation. Generated text can still contradict the rule store, through the fallback branch, the model's own continuation, or a wrong path; we therefore measure contradictions in generated answers (Section 5).
3.6. Transparency index and calibrated gate
For a candidate set S the transparency index is the dominance of the largest contribution,
It is computed before generation in . We use the admissible active set of Algorithm 1 (or the top-b candidate set in isolated single-hop memories); Theorem 3 explains why a full-memory index is uninformative under correlated keys.
Calibration. Let be labelled calibration queries drawn i.i.d. from the deployment distribution and disjoint from all test data, with iff the override would produce a wrong answer (for a query whose answer is not stored, any override is wrong). Fix a finite threshold grid before the labels are inspected. For let and . Conditionally on , the accepted labels are i.i.d. Bernoulli with mean , so the one-sided Clopper–Pearson bound (Clopper and Pearson, 1934) at level and a union bound give, with probability at least , simultaneously for all ,
The gate uses , where is the calibration coverage, and abstains everywhere if no qualifies; we set when or . A joint-mass Hoeffding bound is also valid but considerably looser (Section 5). The certificate holds for test queries exchangeable with the calibration queries; a different deployment distribution requires its own calibration split.
3.7. Editing, deletion and memory transactions
The memory state is the tuple , with the seed index. An edit transaction for a new association (Algorithm 2) (1) adds to , (2) registers and appends to , (3) inserts into with its admissible edges (rejecting cycle-inducing ones), (4) recomputes the transition columns of the predecessors
Algorithm 2 Edit transaction (insertion of association superseding )
Require: memory state ; text , target , ; optional
1: (Eq. (2)); residual-space value of
2: ; ;
3: add to ; add every admissible edge , that keeps acyclic
4: recompute for Eq. (6)
5: ;
6: if given then
7: end if
8: ; record provenance for rollback
of and of itself, and (5) logs added Horn constraints (including retracting any superseded association) and appends them to . A deletion transaction for performs a provenance-tracked rollback of all changes made by transaction : it subtracts the recorded term,
removes from , and , refreshes the transition columns of its predecessors, and removes all clauses recorded in (including , thereby un-retracting the superseded association) as well as any clauses mentioning . This transaction-level rollback restores the rule store , graph , registry and matrix jointly to their exact pre-edit state. The matrix step restores exactly to the memory without (Lemma 1); Theorem 2 quantifies its effect on the readout of the remaining associations. Both transactions are timed end-to-end in Section 5.
3.8. Multi-hop decoding
For a question requiring hops, the path is selected once from the query at the last prompt token. During greedy decoding the gate of Eq. (9) is evaluated at every new token position. At a position where it fires, the dominant association identifies the hop with ; with the path variant the injected vector is Eq. (8), with the hop variant only is injected. Each hop is injected at most once (a per-hop counter), so that a hop is not re-applied while the model writes the corresponding entity. Every gate evaluation is logged (position, , , hop index, injected or not). No separate token-time entity recogniser is used.
4. Theory: CMMs with correlated keys
We analyse the memory with unit keys , unit values and , . No distributional assumption is made on the keys; every statement depends on the keys only through the following coherence quantities.
Definition 1 (Coherence). With , and :
For a candidate set , sums over .
The readout of a stored key is with crosstalk .
4.1. Crosstalk, decoding and capacity
Theorem 1 (Crosstalk and capacity under bounded coherence). For every stored index m:
(a) (deterministic crosstalk)
and .
(b) (random values) If the values are independent of the keys and of each other with , then ; for , .
(c) (decoding certificate) Nearest-value decoding returns whenever
For orthonormal values the condition is .
(d) (universal limit) For any unit keys in , , equivalently .
Proof. (a) Write with for and . Then and . Next, by definition of , and ; since ,
. Gershgorin's theorem applied to (unit diagonal, off-diagonal entries bounded by ) gives . (b) ; the cross terms vanish because and . Averaging over with gives . (c) For the correct value, . For , . The difference is positive if , which follows from Eq. (13) because . (d) . The Gram matrix has trace and rank at most , so by Cauchy-Schwarz on its eigenvalues . Dividing by and by gives the two forms.
Corollary 1 (Capacity as a function of , coherence and tolerance). Let be a crosstalk tolerance. (i) A uniform guarantee for all holds whenever . (ii) With random values and , mean squared crosstalk holds iff . (iii) No key set achieves mean squared crosstalk with orthonormal values and unless .
Proof. (i) and (ii) rearrange Theorem 1(a),(b). For (iii), with orthonormal values exactly, and Theorem 1(d) gives .
Remark 1 (Deterministic versus statistical capacity). Corollary 1 bounds the norm of the crosstalk and therefore gives capacities of order . Nearest-value decoding depends only on projections , which for random, independent values in concentrate at scale ; with this is the regime of the nominal capacity quoted for random-key CMMs (about at for a codebook of a few thousand values). That figure relies on independence and does not transfer to correlated keys; the guarantees above do. Section 4.4 shows both regimes: decoding remains correct beyond while the crosstalk norm grows exactly as Theorem 1(b) predicts.
Remark 2 (Common components). If all keys share a component, with a fixed unit , then , so the spectral term of Theorem 1(a) grows linearly in . Mean-centring (Eq. (2)) removes this component; in Section 4.4 it reduces by a factor of 5.3 and by 24%.
4.2. Collateral effect of deletion
Theorem 2 (Readout perturbation of neighbours after deletion). Delete association m by Eq. (12). For every remaining , with :
(a) , hence ;
(b) whenever , the relative change satisfies
(c) averaged over the neighbours, ;
(d) deletion does not increase , , , , , or for any remaining ; hence every association certified by Theorem 1(a) or (c) before the deletion remains certified after it.
Proof. (a) Lemma 1 applied to . (b) by Theorem 1(a); divide (a) by this. (c) Sum (a) over and apply Theorem 1(a) to . (d) The sums and maxima defining lose terms. The key and value Gram matrices after deletion are principal submatrices of those before, so by Cauchy interlacing their largest eigenvalues cannot increase.
Remark 3 (Interpreting a measured collateral change). With and , Theorem 2(a) says the relative change of neighbour equals . A single small collateral change is therefore evidence of locality only if the two keys are typical neighbours; Section 4.4 reports the full distribution of collateral changes instead of a single value.
4.3. Transparency separation
Theorem 3 (Transparency in terms of coherence). Let be a candidate set with and unit values. Then:
(a) (stored queries) for , , with equality in the first inequality when is constant and ;
(b) (paraphrases) for with ,
(c) (separation) for any query , with and . Consequently, a threshold accepts every stored query in a set and rejects every query in a set if ;
(d) (common component) if all pairwise key cosines in equal and is constant, .
Proof. , and is increasing in and decreasing in . (a) . With constant and , is the largest contribution, so the first inequality is an equality; the second uses . (b) and ; insert into the same ratio. (c) Numerator , denominator . (d) Substitute in the equality case of (a).
Theorem 3(d) explains the collapse of a full-memory index: with mean cosine 0.04 and stored associations, even for an exactly stored query. Computing on a candidate set ( ) of centred keys keeps it informative, and (a)–(c) give the threshold range in terms of measurable coherences. The Gaussian-key separation bound is the special case in which concentrates at ; it is stated in 8.
4.4. Numerical validation of Theorems 1–3
We generate keys with controlled, semantically structured correlation: , with a global direction ( ), 64 topic directions ( ) and isotropic residuals. Three key models are compared: isotropic ( ), semantic, and semantic+centred (Eq. (2)). The semantic model has a mean absolute key cosine of 0.047. Values are random unit vectors unless stated; all scripts and seeds are released (experiments E1–E3).
Crosstalk and capacity (E1). Over 48 configurations ( , load , three key models, random values and, for , orthonormal values) the bound of Theorem 1(a) held for every stored index; it is attained exactly for orthonormal values, for which . The prediction of part (b) matches the measured mean squared crosstalk to within 6% in every configuration (Table 2, Figure 3), and part (d) is respected. Semantic correlation multiplies the crosstalk energy by relative to
Table 2: Theorem 1 on correlated keys (, random unit values, ). Mean : measured over all stored indices vs. the prediction ( of Theorem 1(b); the universal lower bound (d) is . Max is compared with the largest value of the bound in (a). is the capacity of Corollary 1(ii) at .
| Keys | mean | pred. (b) | max | bound (a) | recall@1 | ||||
|---|---|---|---|---|---|---|---|---|---|
| isotropic | 256 | .136 | .0312 | 2.2 | 0.25 | 0.25 | 0.58 | 0.84 | 1.000 |
| 1024 | .148 | .0312 | 3.9 | 1.00 | 1.00 | 1.10 | 2.13 | 1.000 | |
| 4096 | .172 | .0313 | 8.9 | 4.00 | 4.00 | 2.19 | 6.20 | 1.000 | |
| semantic | 256 | .412 | .0661 | 12.5 | 1.13 | 1.11 | 1.31 | 1.94 | 1.000 |
| 1024 | .430 | .0661 | 48.1 | 4.20 | 4.46 | 2.50 | 5.15 | 1.000 | |
| 4096 | .450 | .0655 | 185.1 | 17.30 | 17.57 | 5.13 | 15.50 | 0.995 | |
| semantic+centred | 256 | .369 | .0499 | 5.0 | 0.63 | 0.64 | 1.22 | 1.81 | 1.000 |
| 1024 | .396 | .0500 | 11.8 | 2.57 | 2.56 | 2.04 | 4.02 | 1.000 | |
| 4096 | .419 | .0499 | 35.0 | 10.17 | 10.18 | 3.73 | 10.84 | 1.000 |
: isotropic 257, semantic 58, semantic+centred 101 associations (prediction (ii)).
isotropic keys and reduces from 257 to 58; centring recovers . The decoding certificate (c) certified 100% of the associations whenever the values were orthonormal and none when values were random (–0.24), although recall@1 stayed up to : the gap between deterministic and statistical capacity described in Remark 1.
Deletion (E2). For and 50 deletions per key model, the identity of Theorem 2(a) held to and the relative bound (b) held for every neighbour. The median relative collateral change was 1.5% (isotropic), 1.8% (semantic) and 1.2% (centred); the most similar neighbour moved by 7.6%, 16.1% and 18.4% on average (mean ). No neighbour’s decoded value changed, consistent with part (d).
Transparency (E3). With and , of exactly stored queries on the full memory was 0.010 (isotropic), 0.005 (semantic) and 0.008 (centred), as Theorem 3(d) predicts; on the top-32 candidate set it was 0.258, 0.083 and 0.090, against 0.040, 0.034 and 0.035 for novel queries drawn from the same topics. The equality case of (a) was met for every stored query and the paraphrase bound (b) held for all paraphrases (); stored and paraphrased queries were perfectly separated from novel ones (AUROC 1.00) on the candidate set.

Figure 3: Mean squared crosstalk versus memory load for the three key models (). Markers: measured; lines: the prediction ( of Theorem 1(b); dashed: the universal lower bound of Theorem 1(d).
4.5. What is new in Theorems 1–3
The proofs use standard matrix inequalities—Gershgorin’s theorem, Cauchy interlacing, and the trace-rank inequality that underlies the Welch bound and the frame potential (Horn and Johnson, 2012; Welch, 1974; Benedetto and Fickus, 2003)—together with coherence quantities from sparse approximation (Donoho and Elad, 2003; Tropp, 2004). The contribution lies in the object to which these tools are applied and in the guarantees that result, which, to our knowledge, have not been stated for correlation matrix memories. Statistical scaling laws for embedding-based associative memories (Cabannes et al., 2024) describe average behaviour under a data distribution; the results below are deterministic certificates for a fixed, observed key set, which is what an editable memory can measure when an edit is made.
-
From recovering coefficients to recovering values. In sparse approximation, coherence controls the recovery of a coefficient vector from a dictionary. In a CMM the quantity of interest is the readout , a superposition of values weighted by key similarities, followed by a nearest-value decision. Theorem 1(a),(c) therefore couples the coherence of the keys with the geometry of the values and the spread of the coefficients . The decoding certificate (13) holds for non-orthogonal values and unequal coefficients, a regime outside the orthogonal-key and random-key analyses of linear associative memories (Kohonen, 1972; Palm, 1980).
-
An encoder-independent capacity limit. Theorem 1(d) and Corollary 1(iii) turn the frame-potential inequality into a statement about every key encoder: no choice of encoder, centring or projection stores more than associations at mean squared crosstalk . Combined with the identity of part (b), this splits the measured crosstalk into an unavoidable part, , and an excess over a tight frame, (which vanishes for any unit-norm tight frame where Welch's bound is achieved with equality). In Table 2 at the unavoidable part is 3.0; isotropic keys add 1.0, semantic keys add 14.3, and centring removes half of that excess (to 7.2). The theorem thus provides a measurable target for encoder design rather than a qualitative statement that correlation hurts.
-
Exact unlearning with quantified collateral effects. Theorem 2 characterises what exact deletion does to the remaining associations: the change of every read-out is exactly rank one and aligned with the deleted value (a); its relative size is bounded by a single key cosine (b); its average over all neighbours is governed by the cumulative coherence of the deleted key (c); and every recovery certificate survives the deletion (d). Part (d) is the guarantee an unlearning system needs—removing one item cannot invalidate another certified item—and it has no counterpart in softmax-normalised memories, where removing a pattern rescales every other contribution (Section 2).
-
Attribution as a function of key geometry. Theorem 3 expresses the informativeness of the attribution index through coherence. Its equality case (d) predicts the collapse of full-memory attribution under a shared component, and part (c) gives a threshold interval that, whenever it is non-empty, separates stored from novel queries deterministically. At and mean key cosine 0.047, part (d) predicts for an exactly stored query, the value measured for semantic keys. Two design rules of TANSAR—mean-centred keys and attribution restricted to a candidate set—are consequences of the theorem rather than tuning choices.
-
Certificates computable from the memory itself. Every quantity in Theorems 1–3 is a function of the stored Gram matrices and coefficients; no distributional model of the encoder is needed. Inserting or deleting one association changes one row and column of the key Gram matrix ( work), after which the per-association quantities , and are updated in . The bounds can therefore be checked when an edit is made instead of being assumed.
The bounds are also informative in practice. Theorem 1(b) is an identity in expectation that matches the measured crosstalk to within 6%; part (a) is attained exactly for orthonormal values; the equality case of Theorem 3(a) is met by every stored query; and part (b) of Theorem 2 held for every neighbour in every deletion (Section 4.4). The limitation is equally explicit: the deterministic certificate of Theorem 1(c) is conservative for random values (Remark 1).
5. Empirical evaluation
This section evaluates the proposed framework across controlled associative memory settings and multi-hop retrieval benchmarks: query-key alignment (E4), path-conditioned associative retrieval with matched ablations (E6), modern Hopfield retrieval comparisons under identical keys (E8), finite-sample gate calibration (E5), symbolic verification on ProofWriter and FOLIO (E9), and measured end-to-end transaction latency on CPU and GPU (E7). All numbers are produced by the released scripts (experiments E1–E9), with fixed random seeds; means standard deviations are over three seeds where stated.
5.1. Query-key alignment (E4)
Hidden states are generated as a nonlinear projection of the stored fact plus paraphrase and style nuisance variations, (, 2000 facts, six training and three held-out paraphrases per fact), ensuring hidden states and semantic keys occupy distinct coordinate spaces in a controlled setting. Table 3 reports top-1/top-5 accuracy of Eq. (5) on held-out paraphrases. A random orthogonal projection is at chance level (0.05% top-1) for every nuisance level. Keys computed from the model's own states work only when nuisance variance is small (top-1 74.4% without nuisance, 1.1% at ).
The learned InfoNCE map reaches 100% top-1 across moderate nuisance scales (99.98% at ). This confirms that the contrastive objective reliably inverts nonlinear projections and separates semantic keys under continuous nuisance variation.
Table 3: Query-key retrieval accuracy (%) on held-out paraphrases across representation spaces in controlled isolation (E4). s: scale of the style/paraphrase nuisance component. Chance top-1 is 0.05%.
| Query map | s = 0 | s = 0.25 | s = 0.5 | s = 1.0 | s = 1.5 |
|---|---|---|---|---|---|
| Random orthogonal projection | 0.05 / 0.27 | 0.03 / 0.20 | 0.05 / 0.27 | 0.07 / 0.25 | 0.05 / 0.23 |
| Self-keys (model states) + random projection | 74.4 / 90.9 | 17.7 / 35.3 | 1.1 / 3.2 | 0.13 / 0.67 | 0.05 / 0.45 |
| Learned InfoNCE map A (ours) | 100 / 100 | 100 / 100 | 100 / 100 | 100 / 100 | 99.98 / 100 |
Entries are top-1 / top-5.
5.2. Multi-hop editing with path-conditioned injection (E6)
Benchmark. A layered knowledge graph with 1200 entities in six levels, 24 relations and three outgoing relations per entity (≈3000 facts plus 450 edit associations) is stored with . Entities are semantically clustered (40 clusters, within-cluster cosine 0.5), so keys of related facts are correlated. 450 facts (18.75% of the facts in levels 0–3, representing 15% of all 3000 stored facts) are edited: the new association is added, the stale one remains in the memory—as stale parametric knowledge would—and the edit adds the constraint retracting it. 450 questions (, 150 each, about 45% touching an edit) follow the post-edit graph. Every system answers hop by hop: the hop- query is formed from the entity decoded at hop and the requested relation, with paraphrase noise. When a system abstains or its gate rejects, a frozen “base model” answers from the pre-edit graph, so abstention has a cost. A generated answer contradicts the rule store if one of its realised hops is a retracted fact; the contradiction rate is computed over all questions, abstentions included.
Systems and ablations. Greedy-full: hop-by-hop full-memory readout without graph or rules (MeMo-style). Greedy-topk: hop-by-hop readout restricted to the top- candidates. Validated+full: TANSAR selects and validates but injects (a disconnected interface). TANSAR (path / hop): Eq. (8) and its hop variant. Ablations of the full system: (i) no diffusion: seeds scored by only and paths by ; (ii) no pruning: replaced by all candidate paths; (iii) the trade-off . Unless varied, , , , , , .
Findings. (1) Validation alone does not help: validated+full injection is indistinguishable from greedy-full (1.4% vs. 1.3% accuracy); with associations at
Table 4: Multi-hop knowledge editing benchmark on structured fact graphs (E6; %, mean ± std over 3 seeds, 450 questions each). Contradiction is measured on generated answers, including those produced by the fallback branch. The TANSAR rows use .
| System | Accuracy ↑ | Contradiction ↓ | Abstention | ||
|---|---|---|---|---|---|
| all | edited | all | edited | ||
| Greedy-full (no graph, full readout) | 0.0 | ||||
| Greedy-topk (no graph) | 0.0 | ||||
| Validated + full injection | 0.0 | ||||
| TANSAR, path injection | |||||
| TANSAR, hop injection | |||||
| (i) no diffusion (top-k seeding) | |||||
| (ii) no constraint pruning | |||||
| (iii) | |||||
| (iii) | |||||
| (iii) | |||||
| (iii) (edge weights only) | |||||
the full readout is dominated by crosstalk (Theorem 1), and its low contradiction rate merely reflects near-random answers. Connecting the validated path to the injected vector (Eq. (8)) raises accuracy to 99.5%. (2) Constraint pruning is the component that removes contradictions: without it, the stale and the edited association compete, contradictions in generated answers rise from 0.5% to 25.1% (57.5% on edited questions), and the gate rejects more often because the stale association dominates the attribution. (3) The remaining contradictions of the full system arise only through abstentions answered by the stale fallback. (4) Role of global stationary mass vs. local transitions: the objective trade-off in Table 4 indicates that global stationary mass provides helpful path discrimination compared to local edge weights alone ( drops accuracy to 96.8% with 7.3% abstention, whereas achieves 99.9%). While no-diffusion retrieval achieves strong baseline accuracy (99.3%) when initialized from accurate seeds, diffusion provides topological reachability across multi-step chains. (5) Active subgraph scope and complexity: the active search frontier is restricted to a compact width- subgraph () expanded from seeds prior to diffusion. Performing diffusion steps on this active subgraph costs operations, while path enumeration is bounded by the hop depth budget and
Table 5: E6 under increasing entity clustering (accuracy / contradiction in generated answers, %; mean over 3 seeds, 450 questions each; ). The column is the E6 setting re-run with independent query noise.
| System | 0.7 | 0.85 | 0.95 | |
|---|---|---|---|---|
| Greedy-topk (no graph) | 44.5 / 20.7 | 25.3 / 16.7 | 12.5 / 12.1 | 3.3 / 7.1 |
| TANSAR, path injection () | 99.3 / 0.7 | 98.7 / 1.3 | 98.4 / 1.6 | 98.2 / 1.8 |
| no diffusion | 99.4 / 0.6 | 98.8 / 1.2 | 98.5 / 1.5 | 98.4 / 1.6 |
| no constraint pruning | 72.8 / 27.2 | 72.7 / 27.3 | 72.4 / 27.6 | 72.4 / 27.6 |
| 100.0 / 0.0 | 99.5 / 0.5 | 98.8 / 1.2 | 98.4 / 1.6 | |
| 97.0 / 3.0 | 97.5 / 2.5 | 97.5 / 2.5 | 97.6 / 2.4 |
candidate beam budget.
Stress tests. Because TANSAR is close to the ceiling on E6, we re-ran the benchmark in two harder regimes with the same seeds, edits and questions (exp6b_stress.py, exp6c_rent.py). Increasing the paraphrase noise of the hop queries from to 1.8 changed no system by more than 1.3 points (TANSAR 99.3–99.6% accuracy; without pruning 26.6–27.3% contradiction; full results in the code release). Increasing the clustering of entity embeddings, which makes seeds and paths confusable, does discriminate between systems (Table 5): hop-by-hop top- retrieval drops from 44.5% to 3.3% accuracy, whereas TANSAR remains above 98%. Notably, under severe clustering stress ( to 0.95), diffusion mass () consistently maintains the highest accuracy (100.0% at 0.5 and 98.4% at 0.95) and lowest contradiction rate (0.0% to 1.6%), outperforming both local edge weights () and greedy retrieval. We conclude that stationary diffusion mass provides effective topological candidate ranking, while Horn constraint pruning guarantees strict semantic consistency.
5.3. Modern Hopfield retrieval on the same benchmark (E8)
We replaced the retrieval engine by a one-step modern Hopfield layer (Ramsauer et al., 2021) on exactly the stored keys and values of E6, , answering hop by hop as all E6 systems do, with . Two edit protocols are compared: stale kept, the E6 protocol in which the superseded association remains stored, and stale removed, in which the baseline is given the information held by TANSAR’s rule
Table 6: Modern Hopfield retrieval on the E6 benchmark (E8; %, mean ± std over the 3 seeds of Table 4, 450 questions each). No system in this table abstains.
| Protocol | Memory | Accuracy ↑ | Contradiction ↓ | ||
|---|---|---|---|---|---|
| all | edited | all | edited | ||
| stale kept | Hopfield, | ||||
| Hopfield, | |||||
| Hopfield, | |||||
| Hopfield, | |||||
| CMM, full readout | |||||
| stale removed | Hopfield, | ||||
| Hopfield, | |||||
| CMM, full readout | |||||
| TANSAR, path injection (Table 4) | |||||
store and the superseded pattern is deleted. The plain CMM readout is re-run under both protocols with independent query noise.
Findings. (1) Softmax retrieval removes the crosstalk that defeats the linear readout: at associations and the full CMM readout is near chance, while Hopfield retrieval with decodes almost every hop. (2) Retrieval quality does not resolve edits: with the stale association kept, Hopfield retrieval contradicts the edits in 22–24% of all answers and in more than half of the edited questions, the same failure as TANSAR without constraint pruning (25.1%, Table 4); a sharper softmax does not help, because the stale and the new association have nearly identical keys. (3) Given the information in the rule store, i.e. with stale patterns deleted, Hopfield retrieval answers every question correctly, slightly above TANSAR (99.5%, whose residual errors come from abstentions answered by the stale fallback). We therefore do not claim better retrieval than a modern Hopfield memory. What the experiment isolates is that the component removing contradictions is the explicit edit and constraint bookkeeping, which TANSAR provides together with an additive readout whose per-association terms are unaffected by other edits (Table 1); combining that bookkeeping with softmax retrieval over the candidate path is a natural extension. At the attention is nearly uniform (mean

Figure 4: Risk–coverage of the transparency gate (E5). Solid: selective risk on the test set; dashed: the Clopper–Pearson certificate computed on the calibration set; dotted: target risk . The selected threshold is marked.
largest weight 0.001) and nothing is retrieved.
5.4. Calibrating the gate (E5)
We ran the protocol of Section 3.6 on an associative memory with correlated semantic keys (, , centred semantic keys, top-32 candidate set). Half of the queries are paraphrases of stored facts that drift towards another fact of the same topic, with ; the other half ask for facts that are not stored. if the decoded value is wrong or the fact is not stored (base error 66.0%). With calibration queries, a grid of 101 thresholds fixed in advance, and target risk , the Clopper–Pearson certificate selects with calibration coverage 17.0% and certified selective risk ; on 5000 independent test queries the coverage is 16.8% and the selective risk 0.0% (Figure 4). The joint-mass Hoeffding bound certifies no threshold at this calibration size.
5.5. End-to-end transaction cost (E7)
With stored associations, a float32 CMM and 200 edits on a 2-thread Intel Xeon (2.8GHz) CPU, the median edit transaction of Algorithm 2 took 13.6ms (95th percentile 19.9ms): 13.4ms for the rank-one update, 0.04ms for registry and seed index, 0.04ms for graph insertion with the acyclicity check, 0.13ms for the local refresh of , and 0.01ms for the rule store. A deletion transaction took 16.3ms
(median). The structural refresh therefore adds about 1.8% to the matrix update in this configuration; the acyclicity check can be linear in the graph size in the worst case. On an NVIDIA GeForce RTX 4060 GPU, the PyTorch implementation of the same transaction (experiments/e7_latency.py; n = 2000 stored associations, the same 2048 × 4096 float32 matrix) took 2.37 ms per edit (median) and 1.28 ms per deletion, confirming that closed-form associative updates execute with low millisecond latency without iterative optimization.
5.6. The symbolic component on ProofWriter and FOLIO (E9)
The constraint store must decide consistency for real rule sets, not only for the unit constraints of E6. Because grounding approximates first-order entailment, we measured the ground solver on its own, without a language model (11m/logic_bench.py stats). For ProofWriter (Tafjord et al., 2021), the rules of each theory are grounded over its entities and evaluated under the Open World Assumption (OWA): forward chaining derives positive and negative literals; if a query literal Q is derived, the solver returns True; if its negation ¬Q is derived, it returns False; and if neither is entailed, the solver returns Unknown (abstaining from asserting a truth value, rather than invoking closed-world negation as failure). For FOLIO (Han et al., 2024), premises and conclusion are grounded over the constants of the example plus one anonymous individual and decided with a SAT solver (Tseitin encoding). Only the premises are read; gold labels are used for scoring only. On the 600 questions of the ProofWriter OWA depth-5 development split distributed with Logic-LM (Pan et al., 2023), the ground solver agrees with the gold label in all 600 cases. On the 204 FOLIO validation examples, 199 premise sets parse (the other five contain syntax errors in the annotated formulas), and the solver agrees with the gold label on 187 of them (94.0%).
6. Limitations
- Deterministic versus statistical guarantees. The coherence bounds are worst-case. They certify far fewer associations than are decoded correctly in practice (Remark 1); sharper statements for correlated keys would need a distributional model of the encoder.
• Ground constraints only. The constraint component handles ground Horn clauses. First-order rules must be grounded over the stored entities, which can be large; non-Horn constraints require a SAT solver, as in our FOLIO experiments, where grounding over the named constants plus one anonymous individual approximates first-order entailment (94.0% agreement with the gold labels, Section 5.6).
-
Fixed-path decoding. The path is selected once from the prompt; if the model's continuation diverges from , the gate abstains and the frozen model answers, possibly with stale knowledge (the residual contradictions in Table 4).
-
Alignment and values. The alignment map requires paraphrases of stored facts for training. Values are unembedding directions of the target's first token; multi-token targets rely on the model's continuation.
-
Calibration scope. The certificate of Eq. (11) holds for the calibration distribution; a shifted deployment distribution needs a new calibration split.
-
Entity linking. Exact string matching over noun chunks does not resolve polysemy or aliases; linking errors create wrong graph edges.
-
Scale. All experiments use a single CMM with at most associations; hierarchical routing for larger memories is not evaluated.
-
Model generality and transformer integration. While the retrieval interface (Eq. (8)) is mathematically specified to steer transformer hidden states via residual stream addition, evaluating large-scale generation across diverse autoregressive decoder families (e.g., LLaMA, Mistral) in streaming interactive dialogues represents a natural direction for future systems engineering.
7. Conclusion
We analysed correlation matrix memories under correlated keys and showed that their editability and attribution can be quantified by coherence: crosstalk and capacity by RMS, cumulative and mutual coherence, the collateral effect of deletion by the cosine to the deleted key, and the informativeness of the transparency index by cumulative coherence on a candidate set. These results explain why semantic keys should be mean-centred and why attribution must be restricted to candidates. Built on them, TANSAR injects a vector computed only from a constraint-validated path, aligns hidden states with keys by a contrastively trained map, and calibrates its gate with a finite-sample certificate. Controlled experiments (E1–E9) confirm all theoretical bounds and demonstrate that the connection between path validation and associative retrieval removes contradictions from multi-hop reasoning, reducing contradictions from 25.1% to 0.5% with sound symbolic grounding on ProofWriter and FOLIO. Furthermore, closed-form associative updates execute in 13.6 ms on CPU and 2.37 ms on GPU, confirming that associative unlearning and attribution achieve scalable, weight-preserving knowledge editing without iterative optimization.
CRediT authorship contribution statement
Abdulhady Abas Abdulla: Conceptualization, Methodology, Software, Investigation, Writing – original draft. Jiyan Salim Mahmud: Investigation, Writing – review & editing. Fatemeh Daneshfar: Supervision, Writing – review & editing. Hussein Mohammed Ali: Validation, Writing – review & editing. Mourad Oussalah: Supervision, Writing – review & editing. Muhammad Bilal: Supervision, Writing – review & editing.
Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Data and code availability
All benchmark datasets are publicly available from their original sources. The code, random seeds, configuration files with all hyperparameters, and the raw outputs of every reported experiment are released at https://github.com/abdulhadyabas2/Topology-Aware-Neuro-Symbolic-Associative-Retrieval-for-Multi-Hop-Knowledge-Editing. An archived copy with a permanent DOI will be deposited on Zenodo upon acceptance.
Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
During the preparation of this manuscript, the authors used OpenAI's ChatGPT and Anthropic's Claude to assist with restructuring, editing and code preparation. Following use of these tools, the authors reviewed and edited the material as needed and take full responsibility for the accuracy, originality, and content of the manuscript.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Appendix A. Elementary identities
The following statements are elementary consequences of the additive structure or of standard inequalities. They are used in the main text.
Lemma 1 (Exact removal of a recorded rank-one component). If and occurs once in the registry, Eq. (12) gives and for every . In particular a query orthogonal to is unaffected, while for the residual crosstalk remains.
Remark 4 (Orthogonal-subspace invariance). If and , then ; a query orthogonal to all injected keys is never affected.
Remark 5 (Selection invariant). If the selector chooses only among paths with satisfiable and abstains when there is none, no selected path contradicts . Proposition 1 extends this invariant from selected paths to the injected vector.
Remark 6 (Error accumulation under nonexpansive hops). If ideal hop maps are 1-Lipschitz and their implementations satisfy , then after hops (triangle inequality and induction). Acyclicity alone does not imply the premises.
Remark 7 (Perturbation stability and cost). . A dense CMM needs storage and readout; attribution over a candidate set of size costs ; diffusion steps on a width- active graph cost . Seed search without an index is , and path enumeration is bounded only by the enumeration budget.
Remark 8 (Spherical collision bound). If false candidate keys are independent and uniform on the unit sphere and for separation parameter , then $\Pr(\exists \mathrm{false} , k : s^\top k \geq s^\top k_{\mathrm{true}} - \Delta_{\mathrm{cap}}/2) \leq (b-1) \exp[-(d-1)(1-
by the spherical-cap bound and a union bound. For i.i.d. Gaussian keys and an independent Gaussian query, a transparency gap follows from Gaussian concentration: on the event , , and with probability , . Both are special cases of Theorem 3 once the coherences are evaluated under the Gaussian model.
References
Anderson, J.A., 1972. A simple neural network generating an interactive memory. Mathematical Biosciences 14, 197–220.
Asai, A., Wu, Z., Wang, Y., Sil, A., Hajishirzi, H., 2024. Self-RAG: Learning to retrieve, generate, and critique through self-reflection, in: International Conference on Learning Representations.
Badreddine, S., d'Avila Garcez, A., Serafini, L., Spranger, M., 2022. Logic tensor networks. Artificial Intelligence 303, 103649.
Benedetto, J.J., Fickus, M., 2003. Finite normalized tight frames. Advances in Computational Mathematics 18, 357–385.
Bietti, A., Cabannes, V., Bouchacourt, D., Jégou, H., Bottou, L., 2023. Birth of a transformer: A memory viewpoint, in: Advances in Neural Information Processing Systems, pp. 1560–1588.
Cabannes, V., Dohmatob, E., Bietti, A., 2024. Scaling laws for associative memories, in: International Conference on Learning Representations.
Chen, R., Jiang, W., Qin, C., Rawal, I.S., Tan, C., Choi, D., Xiong, B., Ai, B., 2024. LLM-based multi-hop question answering with knowledge graph integration in evolving environments, in: Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 14438–14451. doi:10.18653/v1/2024.findings-emnlp.844.
Clopper, C.J., Pearson, E.S., 1934. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 26, 404–413.
Cohen, R., Biran, E., Yoran, O., Globerson, A., Geva, M., 2024. Evaluating the ripple effects of knowledge editing in language models. Transactions of the Association for Computational Linguistics 12, 283–298.
Das, P., Chaudhury, S., Nelson, E., Melnyk, I., Swaminathan, S., Dai, S., Lozano, A., Kollias, G., Chenthamarakshan, V., Navratil, J., Dan, S., Chen, P.Y., 2024. Larimar: Large language models with episodic memory control, in: Proceedings of the 41st International Conference on Machine Learning, pp. 10109–10126.
Donoho, D.L., Elad, M., 2003. Optimally sparse representation in general (nonorthogonal) dictionaries via minimization. Proceedings of the National Academy of Sciences 100, 2197–2202.
Dowling, W.F., Gallier, J.H., 1984. Linear-time algorithms for testing the satisfiability of propositional Horn formulae. The Journal of Logic Programming 1, 267–284.
Elhage, N., Nanda, N., Olsson, C., Henighan, T., Joseph, N., Mann, B., Askell, A., Bai, Y., Chen, A., Conerly, T., DasSarma, N., et al., 2021. A mathematical framework for transformer circuits. Transformer Circuits Thread URL: https://transformer-circuits.pub/2021/framework/.
Gu, H., Zhou, K., Han, X., Liu, N., Wang, R., Wang, X., 2024. PokeMQA: Programmable knowledge editing for multi-hop question answering, in: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 8069–8083. doi:10.18653/v1/2024.ac1-long.438.
Han, S., Schoelkopf, H., Zhao, Y., Qi, Z., Riddell, M., Zhou, W., Coady, J., Peng, D., Qiao, Y., Benson, L., Sun, L., Wardle-Solano, A., Szabó, H., Zubova, E., Burtell, M., Fan, J., Liu, Y., Wong, B., Sailor, M., Ni, A., Nan, L., Kasai, J., Yu, T., Zhang, R., Fabbri, A., Kryscinski, W.M., Yavuz, S., Liu, Y., Lin, X.V., Joty, S., Zhou, Y., Xiong, C., Ying, R., Cohan, A., Radev, D., 2024. FOLIO: Natural language reasoning with first-order logic, in: Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 22017–22031. doi:10.18653/v1/2024.emnlp-main.1229.
Hartvigsen, T., Sankaranarayanan, S., Palangi, H., Kim, Y., Ghassemi, M., 2023. Aging with GRACE: Lifelong model editing with discrete key-value adaptors, in: Advances in Neural Information Processing Systems, pp. 47934–47959.
Hopfield, J.J., 1982. Neural networks and physical systems with emergent collective computational abilities. Proceedings of the National Academy of Sciences 79, 2554–2558.
Horn, R.A., Johnson, C.R., 2012. Matrix Analysis. 2 ed., Cambridge University Press, Cambridge.
Hua, W., Guo, J., Dong, M., Zhu, H., Ng, P., Wang, Z., 2024. Propagation and pitfalls: Reasoning-based assessment of knowledge editing through counterfactual tasks, in: Findings of the Association for Computational Linguistics: ACL 2024, pp. 12503–12525. doi:10.18653/v1/2024.findings-acl.743.
Izacard, G., Caron, M., Hosseini, L., Riedel, S., Bojanowski, P., Joulin, A., Grave, E., 2022. Unsupervised dense information retrieval with contrastive learning. Transactions on Machine Learning Research.
Karpukhin, V., Oğuz, B., Min, S., Lewis, P., Wu, L., Edunov, S., Chen, D., Yih, W.t., 2020. Dense passage retrieval for open-domain question answering, in: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 6769–6781. doi:10.18653/v1/2020.emnlp-main.550.
Kohonen, T., 1972. Correlation matrix memories. IEEE Transactions on Computers C-21, 353–359.
Krotov, D., Hopfield, J.J., 2016. Dense associative memory for pattern recognition, in: Advances in Neural Information Processing Systems, pp. 1172–1180.
Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.t., Rocktäschel, T., Riedel, S., Kiela, D., 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks, in: Advances in Neural Information Processing Systems, pp. 9459–9474.
Lu, Y., Zhou, Y., Li, J., Wang, Y., Liu, X., He, D., Liu, F., Zhang, M., 2025. Knowledge editing with dynamic knowledge graphs for multi-hop question answering, in: Proceedings of the AAAI Conference on Artificial Intelligence, pp. 24741–24749. doi:10.1609/aaai.v39i23.34655.
Manhaeve, R., Dumančić, S., Kimmig, A., Demeester, T., De Raedt, L., 2018. Deep-ProbLog: Neural probabilistic logic programming, in: Advances in Neural Information Processing Systems.
Meng, K., Bau, D., Andonian, A., Belinkov, Y., 2022. Locating and editing factual associations in GPT, in: Advances in Neural Information Processing Systems, pp. 17359–17372.
Meng, K., Sharma, A.S., Andonian, A., Belinkov, Y., Bau, D., 2023. Mass-editing memory in a transformer, in: International Conference on Learning Representations.
Mitchell, E., Lin, C., Bosselut, A., Manning, C.D., Finn, C., 2022. Memory-based model editing at scale, in: Proceedings of the 39th International Conference on Machine Learning, pp. 15817–15831.
van den Oord, A., Li, Y., Vinyals, O., 2018. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748.
Page, L., Brin, S., Motwani, R., Winograd, T., 1999. The PageRank Citation Ranking: Bringing Order to the Web. Technical Report 1999-66. Stanford InfoLab.
Palm, G., 1980. On associative memory. Biological Cybernetics 36, 19–31.
Pan, L., Albalak, A., Wang, X., Wang, W.Y., 2023. Logic-LM: Empowering large language models with symbolic solvers for faithful logical reasoning, in: Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 3806–3824. doi:10.18653/v1/2023.findings-emnlp.248.
Park, S., Park, S., Kim, J., Kim, H., 2025. MAKE: Memory-associated knowledge editing. Transactions of the Association for Computational Linguistics 13, 938–952. doi:10.1162/tacl.a.26.
Ramsauer, H., Schäfl, B., Lehner, J., Seidl, P., Widrich, M., Adler, T., Gruber, L., Holzleitner, M., Pavlovic, M., Sandve, G.K., Greiff, V., Kreil, D., Kopp, M., Klam-bauer, G., Brandstetter, J., Hochreiter, S., 2021. Hopfield networks is all you need, in: International Conference on Learning Representations.
Shi, J., Huang, W., Xing, Y., Liu, Y., Zheng, T., Chong, B., He, T., 2026. EchoEdit: Consistent multi-hop question answering via ripple control in knowledge editing, in: Proceedings of the AAAI Conference on Artificial Intelligence, pp. 19362–19370.
Tafjord, O., Dalvi, B., Clark, P., 2021. ProofWriter: Generating implications, proofs, and abductive statements over natural language, in: Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pp. 3621–3634. doi:10.18653/v1/2021.findings-acl.317.
Trivedi, H., Balasubramanian, N., Khot, T., Sabharwal, A., 2023. Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions, in: Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 10014–10037. doi:10.18653/v1/2023.acl-long.557.
Tropp, J.A., 2004. Greed is good: Algorithmic results for sparse approximation. IEEE Transactions on Information Theory 50, 2231–2242.
Wang, P., Li, Z., Zhang, N., Xu, Z., Yao, Y., Jiang, Y., Xie, P., Huang, F., Chen, H., 2024a. WISE: Rethinking the knowledge memory for lifelong model editing of large language models, in: Advances in Neural Information Processing Systems, pp. 53764–53797.
Wang, Y., Chen, M., Peng, N., Chang, K.W., 2024b. DeepEdit: Knowledge editing as decoding with constraints. arXiv preprint arXiv:2401.10471.
Welch, L.R., 1974. Lower bounds on the maximum cross correlation of signals. IEEE Transactions on Information Theory 20, 397–399.
Zanzotto, F.M., Ruzzetti, E.S., Xompero, G.A., Ranaldi, L., Venditti, D., Ranaldi, F., Giannone, C., Favalli, A., Romagnoli, R., 2025. Position paper: MeMo: Towards language models with associative memory mechanisms, in: Findings of the Association for Computational Linguistics: ACL 2025, pp. 15169–15180. doi:10.18653/v1/2025.findings-acl.785.
Zhang, M., Ye, X., Liu, Q., Ren, P., Wu, S., Chen, Z., 2024. Knowledge graph enhanced large language model editing, in: Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 22647–22662. doi:10.18653/v1/2024.emnlp-main.1261.
Zhong, Z., Wu, Z., Manning, C.D., Potts, C., Chen, D., 2023. MQuAKE: Assessing knowledge editing in language models via multi-hop questions, in: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 15686–15702. doi:10.18653/v1/2023.emnlp-main.971.