arXiv:2610.11218cs.CROct 2026

Manuscript Offprint

arXiv:2610.11218

BRACE: Differential Privacy for Dense Associative Memory with LSR Energy

Chang Qu, Zhaoyang Shi

Abstract

Dense associative memory (DAM) provides an energy-based framework for memory retrieval with close connections to attention mechanisms in modern artificial intelligence. Despite growing interest in differential privacy for AI, the privacy of DAM retrieval dynamics remains relatively unexplored. In this paper, we develop a differential privacy framework for log-sum-ReLU (LSR) dense associative memory, whose finite-support retrieval dynamics pose distinctive challenges for privacy-preserving computation. We propose the Boundary-Responsive Adaptive Correction Evolution (BRACE) algorithm, a differentially private retrieval mechanism for LSR-DAM that adaptively corrects boundary-sensitive perturbations to control their cumulative effect over the retrieval trajectory. In theory, we prove that our method is minimax optimal by deriving dimension-independent terminal and full-trajectory retrieval error rates, with optimal dependence on the inverse temperature and, in the growing-horizon regime, the retrieval horizon. We further establish central limit theorems that enable uncertainty quantification for private retrieval by

*Corresponding author: zyshi10m@outlook.com characterizing its asymptotic distribution and the additional variability introduced by privacy. Numerical experiments compare our proposed method with baseline differential privacy approaches and evaluate its retrieval accuracy. Together, our results provide a theoretical foundation for optimal privacy-preserving retrieval and uncertainty quantification in energy-based associative memory systems.

Keywords: Differential privacy, Associative Memory, Log-sum-ReLU energy

1 Introduction

Differential privacy (DP) has become a fundamental framework for enabling privacy-preserving machine learning (Dwork et al., 2006; Dwork and Roth, 2014; Abadi et al., 2016; Ponomareva et al., 2023), particularly in modern artificial intelligence systems that increasingly rely on sensitive and personalized data (Yu et al., 2022; Lin et al., 2024; Sander et al., 2024). With the emergence of memory-augmented AI systems, such as MemGPT (Packer et al., 2023), LongMem (Wang et al., 2023), and other memory-enhanced LLM architectures (Schuurmans, 2023), protecting stored information and retrieval processes becomes increasingly important. Recently, dense associative memory (DAM) has emerged as an energy-based framework for memory storage and retrieval, with close connections to modern AI systems, including attention mechanisms and memory-augmented architectures (Ramsauer et al., 2021; Krotov and Hopfield, 2021; Hoover et al., 2023). However, despite extensive progress on DP for machine learning models, the privacy of DAM retrieval dynamics remains largely unexplored. This challenge is particularly relevant in applications involving sensitive memories, such as medical record retrieval (Wang et al., 2026), personalized LLM memory modules (Packer et al., 2023), and user-specific AI assistants (Yuan et al., 2023). Therefore, developing principled DP mechanisms for DAM retrieval is essential for trustworthy memory-based AI systems.

Among existing DAM formulations, the log-sum-exponential (LSE) energy has been the dominant choice (Ramsauer et al., 2021; Krotov and Hopfield, 2016) due to its close connection with Transformer attention. LSE-DAM performs retrieval through smooth similarity-based weighting of memories, but faces an inherent trade-off between memorization and generalization. Recently, the log-sum-ReLU (LSR) energy was introduced as a compact-support alternative to LSE-DAM to improve this trade-off (Hoover et al., 2025; Santos et al., 2026). By replacing exponential interactions with compactly supported interactions, LSR-DAM enables localized retrieval and distinct memory properties. However, this finite-support mechanism introduces a fundamental challenge for DP. Unlike LSE-DAM, where retrieval weights vary smoothly, LSR-DAM relies on a hard retrieval boundary that determines the active memory set. Privacy perturbations can therefore trigger boundary switching, causing discontinuous changes in the retrieval operator and errors that accumulate over iterative retrieval. As a result, existing DP approaches based on smooth perturbation analysis cannot be directly applied. This motivates the following fundamental question:

How can we design a differentially private retrieval mechanism for LSR-DAM that adaptively corrects boundary-induced instability while achieving accurate and theoretically optimal retrieval?

In this paper, we answer this question by proposing BRACE (Boundary-Responsive Adaptive Correction Evolution), the first DP framework specifically designed for LSR-DAM. BRACE separates privacy perturbations from retrieval instability by identifying memory points whose membership changes under noisy retrieval and applying an adaptive correction before injecting calibrated DP noise. This boundary-aware design enables stable private retrieval while preserving the compact-support dynamics of LSR-DAM.

Our contributions are summarized as follows:

  1. We formulate the first DP framework for LSR-DAM and propose BRACE, which resolves the boundary instability uniquely induced by compact-support associative memory retrieval.

  2. We establish rigorous theoretical guarantees for BRACE, including differential privacy and minimax-optimal retrieval error bounds, and demonstrate its superiority over commonly used DP baselines through experiments.

  3. We develop a CLT-based uncertainty quantification framework for private LSR-DAM retrieval, providing principled characterization of privacy-induced uncertainty in energy-based AI systems.

By establishing differential privacy for LSR-DAM, our work not only advances privacy-preserving associative memory systems, but also enables secure memory-augmented AI architectures for applications involving sensitive and personalized information.

References (63)