Skip to main content
QUICK REVIEW

[Paper Review] SuperLocalMemory: Privacy-Preserving Multi-Agent Memory with Bayesian Trust Defense Against Memory Poisoning

Bhardwaj, Varun Pratap|arXiv (Cornell University)|Feb 17, 2026
Security and Verification in ComputingComputer Science0 citations
TL;DR

SuperLocalMemory presents a local-first memory system for multi-agent AI that defends against memory poisoning with Bayesian trust scoring and adaptive, privacy-preserving learning-to-rank, all without cloud or LLM inference.

ABSTRACT

We present SuperLocalMemory, a local-first memory system for multi-agent AI that defends against OWASP ASI06 memory poisoning through architectural isolation and Bayesian trust scoring, while personalizing retrieval through adaptive learning-to-rank -- all without cloud dependencies or LLM inference calls. As AI agents increasingly rely on persistent memory, cloud-based memory systems create centralized attack surfaces where poisoned memories propagate across sessions and users -- a threat demonstrated in documented attacks against production systems. Our architecture combines SQLite-backed storage with FTS5 full-text search, Leiden-based knowledge graph clustering, an event-driven coordination layer with per-agent provenance, and an adaptive re-ranking framework that learns user preferences through three-layer behavioral analysis (cross-project technology preferences, project context detection, and workflow pattern mining). Evaluation across seven benchmark dimensions demonstrates 10.6ms median search latency, zero concurrency errors under 10 simultaneous agents, trust separation (gap =0.90) with 72% trust degradation for sleeper attacks, and 104% improvement in NDCG@5 when adaptive re-ranking is enabled. Behavioral data is isolated in a separate database with GDPR Article 17 erasure support. SuperLocalMemory is open-source (MIT) and integrates with 17+ development tools via Model Context Protocol.

Motivation & Objective

  • Motivate a memory architecture that eliminates cloud dependency to reduce memory-poisoning risk in multi-agent AI.
  • Develop a four-layer local memory stack with provenance tracking and event-driven coordination.
  • Introduce a Bayesian trust framework to detect and block poisoned memories while preserving user privacy.
  • Offer an adaptive, zero-LLM learning-to-rank mechanism to personalize retrieval based on user behavior.
  • Demonstrate practical performance and GDPR-friendly data handling on commodity hardware.

Proposed method

  • Four-layer memory stack: Storage (SQLite + FTS5), Hierarchical index, Knowledge graph with Leiden clustering, Pattern learning via Beta-Binomial Bayesian model.
  • Event coordination layer with a SQLite-backed event log, agent registry, and multi-channel delivery (SSE/WebSocket/Webhook).
  • Adaptive learning layer with three-layer behavioral analysis (cross-project tech preferences, project context, workflow pattern mining) and three-phase re-ranking (rule-based, ML, with synthetic bootstrapping).
  • Privacy-preserving learning: learning data stored in a separate learning.db isolated from memory store to support GDPR Article 17 erasure via one-command deletion.
  • Bayesian trust scoring using Beta-Binomial posterior inference to produce per-agent trust scores and enforce write/delete restrictions when below threshold.

Experimental results

Research questions

  • RQ1Can a fully local, cloud-free memory architecture defend against ASI06 memory poisoning while preserving user privacy and control?
  • RQ2Does the combination of a four-layer memory stack and Bayesian trust scoring provide effective detection and degradation of malicious agents?
  • RQ3Can adaptive, zero-LLM learning-to-rank improve within-topic retrieval quality without external inference?
  • RQ4What are the performance characteristics (latency, concurrency, scalability) of a local-first memory system under multi-agent writes?
  • RQ5How does GDPR-friendly data handling impact usability and system governance?

Key findings

  • Achieves 10.6 ms median search latency on typical memory sizes (100 memories).
  • Maintains zero concurrency errors under up to 10 simultaneous agents with WAL-enabled writes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.