arXiv:2611.12374cs.AINov 2026

Manuscript Offprint

arXiv:2611.12374

TANSAR: Editable and Attributable Correlation Matrix Memories under Correlated Keys, with Rule-Constrained Multi-Hop Knowledge Editing

Abdulhady Abas Abdulla, Jiyan Salim Mahmud, Fatemeh Daneshfar, Hussein Mohammed Ali, Mourad Oussalah, Muhammad Bilal

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 n≤d(1+ε2)n \leq d(1+\varepsilon^2) for mean squared crosstalk ε2\varepsilon^2; (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 {(ki,vi)}\{(k_i, v_i)\} in a single matrix C=∑iβikivi⊤C = \sum_i \beta_i k_i v_i^\top and retrieve with one matrix-vector product C⊤sC^\top s. 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 A→B′A \to B' 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 μ\mu, cumulative coherences ρ1,ρ2\rho_1, \rho_2 and RMS coherence μ2\mu_2 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.

References (45)