Opal: Private Memory for Personal AI
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: I'm Nadia.
Elias: And I'm Elias, here with Priya.
Nadia: We're looking at the paper: "Opal: Private Memory for Personal AI".
Title and authors: Nadia: So we're looking at this paper called Opal: Private Memory for Personal AI, and it basically tackles the problem of personal AI systems growing too big and needing to store all that user data somewhere untrusted.
Elias: Right, it looks like they’re trying to keep the complex reasoning about what that data means inside a secure area—the enclave—while letting the rest of the storage layer just see fixed access patterns.
Priya: But Priya here, if we're talking about personal AI systems retaining things like emails and meeting notes, how does this decoupling actually help us trust that the external disk isn't leaking anything?
Nadia: Well, Opal splits the storage into a trusted enclave memory and an untrusted ORAM backed disk where two databases hold embedding vectors and raw data chunks.
Elias: That sounds like they are using ORAM, which is this cryptographic primitive that hides data access patterns at a cost logarithmic in the size of the database.
Priya: So, if the disk only sees fixed accesses, what about those complex questions we ask about time or relationships? Like "what did Alice say in last Monday’s meeting?"
Nadia: That's where their first contribution comes in: Knowledge-Graph-Filtered Search. They put a compact metadata knowledge graph inside the enclave that captures personal context that simple semantic search misses.
Elias: And then inside the enclave, they extract structured predicates from your query and traverse that graph to form a set of admissible candidates before scoring them against ANN candidates within this restricted set.
Priya: So you're saying the reasoning for finding those specific pieces of information happens securely inside the enclave, not on the untrusted storage?
Nadia: Exactly. It ensures all query-dependent reasoning stays private inside that trusted boundary, and they show this KG-filtered search improves accuracy by thirteen percentage points over plain ANN, matching Graphiti <ref:2604.02522#pg1>.
Elias: That's a concrete number showing that augmenting vector search with knowledge graphs actually helps narrow down the results effectively.
Priya: And how does it handle things that are routine maintenance, like cleaning up or resolving conflicts in the memory when it gets heavy? Because running heavy maintenance tasks usually means doing a lot of disk access.
Nadia: They introduced something called Oblivious Dreaming for that. It leverages the cryptographic protocol where every ORAM access brings incidental data into the enclave through dummy blocks and unrelated chunks.
Elias: So, during maintenance like compaction or index repair, they perform those tasks without issuing extra accesses or compromising security guarantees by using this mechanism.
Priya: That sounds clever for avoiding leaks during heavy operations, but what does that look like in terms of performance? Is the speed still good when things are busy?
Nadia: They show that Opal answers queries in two point three two seconds and ingests a new memory item in zero point nine four seconds, which is two point nine two times and nine point zero five times faster than the secure baseline for those operations.
Elias: That speed gain comes from decoupling everything data-dependent from the bulk of personal data, confining it to the trusted enclave while exposing only fixed size oblivious ORAM accesses to the untrusted disk.
Priya: So, what does this mean for a regular person who just uses an AI assistant? Does this translate into better privacy or just faster response times?
Nadia: It means they're aiming for confidentiality and integrity, ensuring that user data and queries remain hidden from the provider beyond declared leakage.
Elias: And they have freshness and rollback mechanisms too, verifying a Merkle authenticated rollback record after every request to detect tampering or rollback on storage.
Priya: That’s important for trust; it means if someone tries to tamper with the persisted state, the system can revert to a latest authenticated checkpoint at a specific point kappa i.
Nadia: So, to wrap up this Opal: Private Memory for Personal AI paper, they’ve shown how to make personal memory scalable while keeping the core reasoning private by moving it into trusted enclaves.
Elias: The main things are the knowledge-graph-filtered search for accuracy and oblivious dreaming for maintenance without leaking access patterns.
Priya: I just want to say that seeing this level of decoupling between reasoning and storage is a really solid direction for building systems where personal data is involved.
Nadia: It certainly seems like a significant step toward scalable private long-term memory for personal AI applications.
The paper's summary: Nadia: So, to recap, Opal is about keeping all the complex reasoning about your personal AI data inside trusted memory enclaves while just letting the untrusted storage layer see fixed access patterns.
Elias: Right, it’s this architecture where you split your storage into a trusted area and an untrusted disk that only sees fixed memory accesses for embeddings and raw data chunks.
Priya: And they solve the problem of making this work for real personal data, like keeping track of long-term interactions and memories across months or years.
Nadia: Exactly, they tackle that by using a four stage pipeline involving things like life state schedules and modeling communication patterns with a Hawkes process across six different types of modalities.
Elias: They build on that by using scenario planners based on your social graph to plan events, which helps generate the actual content for each modality using different LLM generators.
Priya: That’s the multi modal aspect, right? So instead of just storing a list of documents, it’s modeling how you communicate and what those communications mean contextually.
Nadia: It is about creating a synthetic personal data pipeline that gives the AI more realistic long-term context than just dumping raw files into a database.
Elias: The core idea is that all the reasoning—the complex connections and contextual understanding—happens inside those enclaves, which keeps your sensitive information private.
Priya: But how do you ensure that this security doesn't just slow things down when you need to actually search for something? That’s my main concern with these kinds of private systems.
Nadia: They use a specific technique called Knowledge-Graph-Filtered Search, which means before searching the embeddings, the system pulls in a compact knowledge graph that stores structured predicates inside the enclave.
Elias: So it filters your search space down to only things that are logically relevant based on time or relationships before it even touches those vector embeddings for comparison.
Priya: That sounds like it could drastically improve accuracy over just using plain nearest neighbor search, right? Are those thirteen percentage points they mentioned real gains?
Nadia: They are real gains, they improve accuracy by thirteen percentage points when compared to a plain ANN search method because the system is looking in a much smaller set of candidates.
Elias: The numbers show that this approach matches results from other work on knowledge-graph augmented retrieval, like Graphiti.
Priya: So what does this mean for someone just using an AI assistant every day? Does it mean their memory is more reliable or just faster to retrieve things they asked about yesterday?
Nadia: It means the AI has a much better picture of your past interactions and context because it’s not just looking at raw data chunks, but at structured relationships inside that secure area.
Elias: And for the world, this moves us toward systems where personal memory isn't just a big dump of information, but a structured knowledge base that the AI can actually reason over privately.
Priya: I’m still looking at how they handle those heavy maintenance tasks they mentioned earlier, like cleaning up old data or fixing conflicts when the memory gets huge.
Nadia: They use this "oblivious dreaming" protocol where routine maintenance is done without issuing extra accesses or leaking access patterns by bringing in dummy blocks during every ORAM operation.
Elias: It’s a way to do the necessary work on resident data while maintaining those strict security guarantees around how the untrusted disk sees things.
Priya: So, it seems they’ve tried to solve both the accuracy problem for complex queries and the maintenance problem for heavy data loads all at once within this enclave structure.
Nadia: That’s right, they are trying to provide a scalable private memory system that is accurate enough for real-world use while keeping your personal context locked down.
Elias: It shows how you can decouple the bulk of your data storage from the complex reasoning process, which is a big step in building trustworthy AI agents.
The paper's improvements: Tom: So, to wrap up the core idea, Opal is about keeping all the complex reasoning about your personal AI data inside trusted memory enclaves while just letting the untrusted storage layer see fixed access patterns.
Nadia: Yeah, it’s this architecture where you split your storage into a trusted area and an untrusted disk that only sees fixed memory accesses for embeddings and raw data chunks.
Elias: Right, it’s this way where you have a trusted enclave memory and an untrusted ORAM backed disk holding embedding vectors and raw data chunks.
Priya: But they also mention how they are periodically retrieving recent chunks via KG traversal and summarizing them with an LLM to re-ingest, without needing a dedicated ORAM fetch.
Nadia: That’s their memory compression improvement, where the system consolidates old details into denser records that still capture what matters for retrieval.
Elias: So it keeps high level structure durable by summarizing old data and putting that summary back through the normal ingestion path.
Priya: It sounds like they’re making sure you don't lose those important long-term details while keeping the system running efficiently on limited storage space.
Nadia: That’s exactly it, preserving durability without needing extra disk reads for every single memory item.
Elias: So, the paper shows a path toward private AI memory that is not only secure but also efficient enough to handle years of personal data.
Conclusion: Nadia: So we’re wrapping up on Opal: Private Memory for Personal AI by summarizing how they keep your personal memory reasoning private by confining it to trusted enclaves.
Elias: Right, it boils down to using a trusted enclave and an untrusted disk that only sees fixed access patterns for embeddings and raw data chunks.
Priya: And they manage to make this work for real long term data, covering months or years of interactions through their four stage pipeline.
Nadia: They show that you can model communication across six different types of modalities and use scenario planners based on your social graph to generate more realistic context for the AI.
Elias: The core idea is that all the complex reasoning—the connections and contextual understanding—happens inside those enclaves, which keeps your sensitive information private.
Priya: But they also introduced ways to improve things, like using knowledge-graph-filtered search to boost accuracy over plain search methods.
Nadia: They use a compact metadata knowledge graph inside the enclave to filter your search space down to only things that are logically relevant before it even touches those vector embeddings for comparison.
Elias: And they show that this approach can improve accuracy by thirteen percentage points when compared to a plain ANN search method, matching results from other work on knowledge-graph augmented retrieval.
Priya: So it seems they’ve tried to solve both the accuracy problem for complex queries and the maintenance problem for heavy data loads all at once within this enclave structure.
Priya: I just think it’s important to keep an eye on how they handle those heavy maintenance tasks, like cleaning up old data or fixing conflicts when the memory gets huge.
Priya: Overall though, this Opal: Private Memory for Personal AI paper suggests that scalable private long term memory for personal AI applications is becoming much more feasible.
Nadia: Yeah, it’s a solid direction for building systems where personal data is involved because it focuses on putting the reasoning in the enclave.
Elias: We should watch how they implement this obligation dreaming protocol in real world scenarios, because that seems like a really key piece of work.
UC Berkeley · Google DeepMind
cs.CR, cs.AI
Submitted: 2026-04-02
Updated: 2026-11-25
Code: https://github.com/rust-random/rand
Project page: https://get.mem.ai
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 100/100
The gist: Opal is a private memory system designed for personal AI that ensures data-dependent reasoning occurs entirely within trusted enclaves, while exposing only fixed…
Key concepts
- Knowledge-Graph-Filtered Search
- This technique uses a small knowledge graph stored in the secure enclave to filter search results before querying the main vector database. It helps answer complex questions about relationships or time (like
- Oblivious Dreaming
- This mechanism allows routine maintenance tasks, such as data compaction and conflict resolution, to run without leaking information about user data access patterns. It uses cryptographic protocols where incidental data brought into the enclave during ORAM access is used for these operations, ensuring security during heavy maintenance.
- Synthetic Personal-Data Pipeline
- This is a four-stage process that generates realistic, long-term personal data. It models communication bursts across six different types of media (like email and documents) using complex mathematical processes and scenario planning based on social connections to create a comprehensive, multi-modal training corpus for the AI.
Terminology
Summary
Opal is a private memory system designed for personal AI that ensures data-dependent reasoning occurs entirely within trusted enclaves, while exposing only fixed, oblivious access patterns to the untrusted storage layer. p. 1 To resolve this tension, we design Opal1
, a private memory system for personal AI that is efficient and accurate. Opal adds a privacy-preserving storage and retrieval layer
to trusted-hardware inference enclaves, enabling users to
persist and query their personal data (documents, emails,
messages, meetings, and ambient recordings) without revealing content or access patterns to the application provider. We present Opal, a private memory system for personal
AI. Our key insight is to decouple all data-dependent reasoning from the bulk of personal data, confining it to the
trusted enclave. Our key insight is to decouple all data-dependent reasoning from the bulk of personal data, confining it to the
trusted enclave. Untrusted disk then sees only fixed, oblivious memory accesses.Where the paper says it
Where the paper says it
Where the paper says it
Opal splits its storage between trusted enclave memory and an untrusted ORAM-backed disk, where two ORAM databases hold embedding vectors and raw data chunks, respectively. p. 1 Opal splits storage between trusted enclave memory and an
untrusted ORAM-backed disk (§2). Two ORAM databases
on disk hold embedding vectors and raw data chunks, while
compact index metadata and a personal knowledge graph
remain inside the enclave. All private
computation takes place inside the enclaves, which hold
compact client-side state in memory, while the untrusted
disk stores encrypted ORAM state. There are three enclaves,
each with a distinct role:
• EnclaveOpal (controller): orchestrates Opal’s query and ingestion operations, and maintains the knowledge graph,
ANN index metadata, and ORAM client state. 3 Opal’s System Design
Opal’s central design principle is that all data-dependent
reasoning executes inside the enclave, so that every access crossing the trust boundary follows a fixed, contentindependent pattern. A query first extracts structured predicates inside EnclaveLLM, traverses the enclave-resident KG
to form an admissible set, embeds the query, and scores ANN
candidates before issuing a fixed-budget ORAM fetch for
vector reranking.Where the paper says it
Where the paper says it
Where the paper says it
Opal introduces three novel contributions:
-
Knowledge-Graph-Filtered Search (§3. p. 1
2): Recognizing that pure semantic search is insufficient for personal data—especially queries requiring temporal context or entity relationships (e.g.,Where the paper says it
The key insight is that all datadependent reasoning can run entirely inside an enclave, so that the storage provider only ever sees fixed-size, oblivious ORAM accesses. Opal realizes this insight through three novel contributions: First, knowledge-graph-filtered search (§3.
what did Alice say in last Monday’s meeting?
)—Opal utilizes a compact, metadata-only KG stored within the enclave. The system extracts structured predicates from the query inside EnclaveLLM, traverses this KG to form an admissible set (A q), and only scores ANN candidates within this restricted set before issuing a fixed-budget ORAM fetch. p. 4This ensures all query-dependent reasoning remains secure inside the enclave. p. 1Where the paper says it
3 Opal’s System Design Opal’s central design principle is that all data-dependent reasoning executes inside the enclave, so that every access crossing the trust boundary follows a fixed, contentindependent pattern. A query first extracts structured predicates inside EnclaveLLM, traverses the enclave-resident KG to form an admissible set, embeds the query, and scores ANN candidates before issuing a fixed-budget ORAM fetch for vector reranking.
Where the paper says it
An LLM extracts structured predicates from the query, graph traversal narrows the candidate set in trusted memory, and the ANN scores only within that admissible set before a single fixed-budget ORAM fetch. All query-dependent reasoning stays inside the enclave, so the storage provider sees only a fixed-size, oblivious access pattern.
-
Oblivious Dreaming (§3. p. 1
3): To handle routine heavy maintenance tasks (like compaction, conflict resolution, index repair) in agentic memory systems without leaking data access patterns, Opal employsWhere the paper says it
Yet retrieval captures the same personal context that prior work requires data-dependent traversals to obtain. Second, oblivious dreaming (§3.
oblivious dreaming.
Leveraging the cryptographic protocol where every ORAM access brings incidental data into the enclave (dummy blocks and unrelated chunks), this mechanism performs necessary maintenance on resident data without issuing extra accesses or compromising security guarantees. -
Synthetic Personal-Data Pipeline (§4): Addressing the need for realistic, multi-modal corpora spanning months or years, Opal utilizes a four-stage pipeline involving a life-state schedule, a multivariate Hawkes process to model bursty communication patterns across six modalities (email, meeting, document, query, message, ambient), event planning via scenario planner based on the social graph structure (which is built using layered friendship models), and content generation by modality-specific LLM generators.
The system architecture consists of three enclaves: EnclaveOpal (controller), EnclaveEmb (embedding), and EnclaveLLM (LLM). p. 2 There are three enclaves,
each with a distinct role:
• EnclaveOpal (controller): orchestrates Opal’s query and ingestion operations, and maintains the knowledge graph,
ANN index metadata, and ORAM client state. • EnclaveEmb (embedding): serves an embedding model. • EnclaveLLM (LLM): serves an LLM model. The untrusted disk stores two ORAM databases: ORAMANN
holds vector embeddings used to find relevant matches, and
ORAMData holds the raw data chunks passed to the LLM for
answer generation.Where the paper says it
Where the paper says it
EnclaveOpal.Query(q) and EnclaveOpal.Ingest(d).
Security guarantees include Confidentiality, Integrity, and Freshness. p. 3 Proposals for strengthening enclave security include
interrupt-aware and controlled-channel hardening [57, 221],
defenses against performance-counter attacks [233], TDXspecific hardening of trust domains [230], doubly-oblivious
data structures [139], formal attestation models [159], and
smaller-TCB enclave architectures [58, 72, 110]. 2 Security Guarantees & Definition. 1), all user data, queries, and responses remain
hidden from the adversary. The adversary may learn
whether an operation is Query or Ingest, but beyond the
declared leakage it learns neither the content of any item,
query, or response, nor which stored data is relevant to a
query or which records were accessed on its behalf.Where the paper says it
Where the paper says it
The efficiency gains are substantial: Opal achieves 29× higher throughput and 15× lower infrastructure cost compared to a secure baseline. p. 0 This enclave-resident component uses
a lightweight knowledge graph to capture personal context
that semantic search alone misses and handles continuous
ingestion by piggybacking reindexing and capacity management on every ORAM access. Evaluated on a comprehensive
synthetic personal-data pipeline driven by stochastic communication models, Opal improves retrieval accuracy by 13
percentage points over semantic search and achieves 29×
higher throughput with 15× lower infrastructure cost than a
secure baseline. that reflects prior enclave-backed designs [16, 74, 164]. KGfiltered search improves accuracy by 13 pp over plain ANN,
matching Graphiti [166], a plaintext agentic memory system. Because each retrieval
round requires a full ORAM access, Opal gets exactly one
shot at filtering; a variable number of rounds would leak
query information, and fixing the budget at multiple rounds
would multiply ORAM latency and bandwidth for every
query, even when a single pass suffices. The traversal stage
therefore assigns confidence to each predicate in 𝐹 : only
high-confidence predicates become hard constraints, and
low-confidence ones are widened or dropped. Untrusted disk then sees only fixed, oblivious memory accesses. This enclave-resident component uses
a lightweight knowledge graph to capture personal context
that semantic search alone misses and handles continuous
ingestion by piggybacking reindexing and capacity management on every ORAM access. KGfiltered search improves accuracy by 13 pp over plain ANN,
matching Graphiti [166], a plaintext agentic memory system. Oblivious dreaming tracks the accuracy of state-of-the-art
insecure ANN rebalancing while keeping active entries
within a fixed capacity budget. Opal: Private Memory for Personal AI
Darya Kaviani
UC Berkeley
Alp Eren Ozdarendeli
UC Berkeley
Jinhao Zhu
UC Berkeley
Yu Ding
Google DeepMind
Raluca Ada Popa
UC Berkeley, Google DeepMind
Abstract
Personal AI systems increasingly retain long-term memory
of user activity, including documents, emails, messages, meetings, and ambient recordings. Trusted hardware can keep
this data private, but struggles to scale with a growing datastore.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Knowledge-graph-filtered search improves accuracy by 13 pp over plain ANN, matching Graphiti by augmenting vector search with knowledge graphs to narrow results based on temporal context and entity relationships. This allows the system to answer questions like “what did Alice say in last Monday’s meeting?” by extracting structured predicates from the query and resolving them inside the enclave before scoring within an admissible set.
-
Oblivious dreaming tracks accuracy of state-of-the-art insecure ANN rebalancing while keeping active entries within a fixed capacity budget, enabling maintenance operations like compaction and conflict resolution to run
at steady-state capacity behind a fixed access pattern.
This prevents access patterns from leaking information about the user’s data during heavy maintenance. -
Memory compression periodically retrieves recent chunks via KG traversal, summarizes them with an LLM, and re-ingests the summary through the ordinary ingestion path without requiring a dedicated ORAM fetch. This preserves durable high-level structure by consolidating old details into denser records that still capture what matters for retrieval, as
summaries are simply another memory item with its own identifier, embedding, and KG links.
-
The system achieves 29 times higher throughput and 15 times lower infrastructure cost than a secure baseline because it decouples all data-dependent reasoning from the bulk of personal data, confining it to the trusted enclave while exposing
fixed-size, oblivious ORAM accesses
to untrusted disk. This efficiency is achieved by using Ring ORAM with an access cost logarithmic in database size, contrasting withreading the entire encrypted database on every access
in insecure models. -
Freshness and rollback mechanisms ensure integrity by verifying a Merkle-authenticated rollback record and a sealed client checkpoint after every request, guaranteeing that
recovery after request i may revert to the latest authenticated checkpoint at kappai
rather than accepting stale state beyond the permitted boundary. This mechanism prevents replay attacks by rejecting requests with nonincreasing counters and ensures thatany accepted tampering of persisted state implies either a failure of the imported Compass batched-access ORAM integrity result on one of the ORAM trees, a MAC for forgery on R, or an AEAD forgery on C.
Abstract
Personal AI systems increasingly retain long-term memory of user activity, including documents, emails, messages, meetings, and ambient recordings. Trusted hardware can keep this data private, but struggles to scale with a growing datastore. This pushes the data to external storage, which exposes retrieval access patterns that leak private information to the application provider. Oblivious RAM (ORAM) is a cryptographic primitive that can hide these patterns, but it requires a fixed access budget, precluding the query-dependent traversals that agentic memory systems rely on for accuracy. We present Opal, a private memory system for personal AI. Our key insight is to decouple all data-dependent reasoning from the bulk of personal data, confining it to the trusted enclave. The untrusted disk then sees only fixed, oblivious memory accesses. This enclave-resident component uses a lightweight knowledge graph to capture personal context that semantic search alone misses and handles continuous ingestion by piggybacking capacity management on every ORAM access. Evaluated on a comprehensive synthetic personal-data pipeline driven by stochastic communication models, Opal improves retrieval accuracy by 13 percentage points over semantic search and achieves 33x higher throughput with 19x lower infrastructure cost than a secure baseline. Opal is under consideration for deployment to millions of users at a major AI provider.
Sources
- Rethinking Chunk Size For Long-Document Retrieval: A Multi-Dataset Analysis
- RealMem: Benchmarking LLMs in Real-World Memory-Driven Interaction
- Trusted AI Agents in the Cloud
- HaluMem: Evaluating Hallucinations in Memory Systems of Agents
- Towards Multimodal Lifelong Understanding: A Multi-Scale Benchmark
- ES-MemEval: Benchmarking Conversational Agents on Personalized Long-Term Emotional Support
- LifeBench: A Benchmark for Long-Horizon Multi-Source Memory
- Privacy Preserving Personal Assistant with On-Device Diarization and Spoken Dialogue System for Home and Beyond
- From Local to Global: A Graph RAG Approach to Query-Focused Summarization
- Scaling Synthetic Data Creation with 1,000,000,000 Personas
- ConVerse: Benchmarking Contextual Safety in Agent-to-Agent Conversations
- CAPS: A Practical Partition Index for Filtered Similarity Search
- Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions
- MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents
- AMemGym: Interactive Memory Benchmarking for Assistants in Long-Horizon Conversations
- Privasis: Synthesizing the Largest "Public" Private Dataset from Scratch
- OmniQuery: Contextually Augmenting Captured Multimodal Memory to Enable Personal Question Answering
- MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Models
- Survey of Filtered Approximate Nearest Neighbor Search over the Vector-Scalar Hybrid Data
- Think-in-Memory: Recalling and Post-thinking Enable LLMs with Long-Term Memory
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management
- Node Differential Privacy via Node-Stable Graph Projections