Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

MemPrivacy: Edge-Cloud Framework Shields User Data with Reversible Pseudonymization

Cloud-hosted AI memory boosts utility but risks exposing private user data, researchers find.

MarkTechPost 4 min read

MemPrivacy: Edge-Cloud Framework Shields User Data with Reversible Pseudonymization

As LLM-powered agents transition from research to production, a critical design tension emerges: the more useful cloud-hosted memory becomes, the more private user data it exposes. Researchers from MemTensor (Shanghai), HONOR Device, and Tongji University have introduced MemPrivacy, a framework that resolves this tension without sacrificing the utility that makes personalized memory valuable.

The Core Problem With Cloud Memory

When interacting with an AI agent, conversations often contain sensitive details like health conditions, email addresses, financial figures, and passwords. In typical edge-cloud deployments, the user's device handles input while memory management and reasoning occur in the cloud. This architecture is efficient, but raw user data travels to and persists in cloud systems.

The risk is tangible. Prior studies show multi-turn memory attacks can induce privacy violations with success rates up to 69%, and leakage attacks against memory systems can reach 75% success. Indirect prompt injection can manipulate agents into actively eliciting private information. Once sensitive content enters cloud logs, vector databases, or external memory stores, it remains accessible beyond the original interaction.

Previous solutions like masking (replacing sensitive values with ***) destroy semantics, preventing the cloud model from completing tasks meaningfully. Differential privacy and cryptographic protection offer stronger guarantees but are difficult to integrate without degrading response quality.

What MemPrivacy Does Differently

Rather than masking private content, MemPrivacy replaces it with typed placeholders—structured tokens like <Health_Info_1> or <Email_1>—before the input leaves the local device. The cloud model receives semantically intact text and can reason and store memories normally, never seeing actual values. When the cloud returns a response containing placeholders, the local device looks up originals from a secure local database and substitutes them back. The user sees a fully coherent, personalized response.

This design, called local reversible pseudonymization, operates in three stages:

  • Stage 1 (Uplink Desensitization): A lightweight on-device model identifies privacy-sensitive spans, classifies them by type and sensitivity, and replaces them with typed placeholders. Mappings are stored locally and persist across sessions.
  • Stage 2 (Cloud Processing): The sanitized input is sent to the cloud agent. Typed placeholders preserve enough semantic structure for memory formation and retrieval.
  • Stage 3 (Downlink Restoration): The cloud response, which may contain placeholders, is restored locally via database lookup and string substitution, adding negligible latency.

A Four-Level Privacy Taxonomy

A key contribution is a four-level privacy taxonomy (PL1–PL4) defining what gets protected and at what threshold:

  • PL1: General preferences, habits, and stylistic choices that do not identify a person. Not protected by default.
  • PL2: Identifiable PII—real names, phone numbers, email addresses, detailed addresses, account usernames, and combinations that could identify an individual.
  • PL3: Highly sensitive PII—government document numbers, financial account details, health records, precise location data, biometrics, raw communication content, and sensitive identity attributes.
  • PL4: Credentials and secrets that are immediately exploitable—passwords, PINs, verification codes, session tokens, API keys, private keys, seed phrases, and undisclosed business materials.

Users can configure the masking threshold, giving granular control over the privacy–utility trade-off.

MemPrivacy-Bench and Model Training

To train and evaluate their approach, the team constructed MemPrivacy-Bench, a dataset with 200 synthetic user profiles and over 155,000 privacy instances (125,776 training, 29,967 test) across balanced Chinese and English dialogue, spanning 7 high-level scenario categories and 23 fine-grained subcategories. The test set contains 615 question-answer pairs across six memory task types. Annotations were generated by a dual-model pipeline using Gemini-3.1-Pro and GPT-5.2, then verified by six human annotators, achieving 98.08% accuracy.

MemPrivacy extraction models are fine-tuned from Qwen3 base models at 0.6B, 1.7B, and 4B parameter scales using supervised fine-tuning (SFT) followed by reinforcement learning with Group Relative Policy Optimization (GRPO). Training used 160 users for training and 40 users for test.

Experimental Results

On MemPrivacy-Bench, the best-performing model, MemPrivacy-4B-RL, achieves an F1 score of 85.97%, compared to 78.41% for Gemini-3.1-Pro. Even the smallest model, MemPrivacy-0.6B-SFT, reaches 83.09% F1, outperforming all general-purpose models evaluated. On the out-of-distribution PersonaMem-v2 benchmark, MemPrivacy-4B-RL achieves 94.48% F1, compared to 92.18% for DeepSeek-V3.2-Think.

OpenAI's recently released Privacy-Filter achieves 35.50% F1 on MemPrivacy-Bench, a gap of over 50 percentage points, though it operates at lower latency (0.34s vs. roughly 2s).

On downstream memory utility, tested across LangMem, Mem0, and Memobase, accuracy drops when protecting all PL2–PL4 content are contained to 0.73%–1.30% on MemPrivacy-Bench and 0.71%–1.60% on PersonaMem-v2. By contrast, irreversible masking causes drops of 16.99%–41.87%, and untyped placeholder masking causes drops of 4.72%–6.67% on MemPrivacy-Bench and 2.67%–8.71% on PersonaMem-v2.

Key Takeaways

  • MemPrivacy replaces sensitive user data with semantically typed placeholders on-device before cloud transmission, ensuring cloud memory systems never receive raw private values.
  • The framework introduces a four-level privacy taxonomy (PL1–PL4) with user-configurable masking thresholds.
  • MemPrivacy-4B-RL achieves 85.97% F1 on MemPrivacy-Bench and 94.48% on PersonaMem-v2, outperforming models like GPT-5.2 and Gemini-3.1-Pro.
  • Privacy gains come with minimal impact on memory accuracy—drops of less than 2% in benchmarks.
React