[KongchangAI]
· 2 min read· 1,369 words

Public AI with Shared Memory: What Happens When All Users Share One Brain?

Public AI with Shared Memory: What Happens When All Users Share One Brain?

A public AI project with shared memory challenges privacy norms and explores collective intelligence.

A Hacker News project called "Public AI" lets all users share a single memory pool, radically breaking from the account-isolation paradigm of mainstream AI assistants. While it raises serious concerns about prompt injection, memory poisoning, and privacy leaks, it also opens valuable discussion about collective learning, layered memory architectures, and crowdsourced knowledge governance for future AI systems.

A Counterintuitive AI Design Philosophy

In an era where AI assistants universally pursue "personalization" and "privacy isolation," a project called "Public AI" has chosen the exact opposite path — letting all users share a single memory. Posted as a "Show HN" on Hacker News, this project garnered 70 upvotes and 64 comments, sparking a deep community discussion about AI memory mechanisms.

"Shared memory" means this AI doesn't maintain separate conversation contexts or long-term memory for each user. Instead, all user interactions are written into the same memory pool. This means information you tell the AI today could be "inherited" by a stranger tomorrow. This design completely upends the "independent memory per account" paradigm of mainstream products like ChatGPT.

To understand just how radical this design is, you need to understand how current mainstream AI assistants handle memory. Current products typically operate on two levels: short-term conversation context (Context Window) and long-term memory. Conversation context refers to the historical messages the model can "see" within a single session, limited by the model's context window size (e.g., 128K tokens for GPT-4 Turbo). Long-term memory is persistent cross-session storage of user preferences, facts, and instructions, typically implemented through vector databases (such as Pinecone or Weaviate) or structured storage. OpenAI's Memory feature, launched in 2024, extracts key information from user interactions and persists it for use in subsequent conversations. All these mechanisms strictly follow the principle of account isolation — each user's memory is invisible to others. And it's precisely this isolation that "Public AI" breaks.

Public AI project displayed on Hacker News

Why Build a Public AI with Shared Memory?

This design isn't mere attention-seeking. From a technical philosophy perspective, it touches on a fundamental question: Should AI memory belong to individuals, or should it become a repository of collective intelligence?

The Possibility of Collective Learning

Traditional AI assistant memory is siloed — everything each user teaches the AI cannot benefit anyone else. In theory, a shared memory model could turn AI into a continuously evolving "collective brain." When countless users interact with it, valuable knowledge, corrections, and supplements can be shared by all, forming a crowdsourced knowledge accumulation similar to Wikipedia.

From a technical implementation perspective, this shared memory likely relies on a RAG (Retrieval-Augmented Generation) architecture. The core idea of RAG is to convert external knowledge into high-dimensional vectors through embedding models, stored in a vector database. When a user asks a question, the system first encodes the query as a vector, finds the most relevant knowledge fragments through similarity search, then provides these fragments as context to the large language model for generating answers. In a shared memory scenario, all user inputs are encoded and written into the same vector space, and any user's query can potentially retrieve content contributed by other users. The advantage of this architecture is that knowledge can be updated in real-time without retraining the model, but the disadvantage is the lack of inherent access control mechanisms — this is both the technical foundation of its "sharing" characteristic and the root of security concerns.

An Open-Ended Social Experiment

More interestingly, this effectively constitutes a social experiment. What happens when a group of strangers shares the memory of a single AI? Will it lead to beneficial knowledge accumulation, or chaotic information pollution? This very uncertainty is part of the project's appeal.

Community Controversy: Privacy Leaks and Security Risks

Among the 64 comments, the most concentrated concern was undoubtedly privacy and security. Shared memory means any sensitive information users input — whether personal data mentioned inadvertently or maliciously injected content — could potentially be read or exploited by other users.

Prompt Injection and Memory Poisoning Risks

A shared memory pool is a natural breeding ground for prompt injection and memory poisoning.

Prompt injection is an attack method targeting large language models where attackers craft input text to override or bypass the system's preset instructions (System Prompt), causing the model to perform unintended behaviors. These attacks are divided into direct injection (users embedding malicious instructions directly in conversation) and indirect injection (injecting malicious content into the model's context through external data sources like web pages or documents). In a shared memory scenario, the attack surface expands enormously — malicious users can write offensive instructions into the memory pool, and when other users' conversations trigger the retrieval of these memories, the attack takes effect. This is essentially a persistent indirect prompt injection, harder to defend against than traditional attacks because the malicious content has already "settled" in the system's knowledge base.

The concept of memory poisoning originates from data poisoning attacks in machine learning, where attackers manipulate model behavior by injecting malicious samples into training data or knowledge bases. In AI memory systems, malicious users can systematically write incorrect facts, biased information, or content that triggers specific behaviors into the memory store. Since RAG architecture retrieves memory fragments based on semantic similarity, contaminated memories will be repeatedly recalled in semantically similar queries, causing persistent harm propagation. These two attack types create a synergistic effect in shared memory environments, making system security defense exponentially more difficult.

Privacy Leaks Are Nearly Inevitable

Many developers in the comments pointed out that as long as users input personal information (which is nearly unavoidable), shared memory will become a funnel for privacy leaks. This is exactly why mainstream products insist on memory isolation — it's not that sharing is technically impossible, but that the risks are too great.

Technical Value and Implications for Future AI Memory Architecture

Despite the heavy controversy, the technical exploration value of this project cannot be ignored. It raises at least several directions worth deep consideration:

First, the boundaries and layering of AI memory. How should AI memory be layered? Perhaps the future will see a hybrid architecture of "private memory + public knowledge layer" that both protects privacy and enables collective learning. This layered design is technically feasible — the private memory layer is strictly isolated, responsible for storing personal preferences and sensitive information; the public knowledge layer is opened for sharing after de-identification and verification, similar to the relationship between personal notes and public encyclopedias. The key challenge lies in how to automatically determine which information should enter which layer, and how to reasonably merge information from both layers during retrieval.

Second, governance mechanisms for crowdsourced knowledge. If shared memory is to be truly useful, it must establish editing, review, and reputation mechanisms similar to Wikipedia, rather than allowing all inputs to be freely written. Wikipedia's successful governance relies on multiple layers: version control (every edit has traceable history), tiered permissions (new users are restricted, experienced editors have more authority), consensus mechanisms (disputed content is negotiated through discussion pages), and automated tools (such as the anti-vandalism bot ClueBot NG). Transplanting these concepts to an AI shared memory system might require: attaching source tags and credibility scores to each memory, establishing version history and rollback mechanisms for memories, introducing reputation systems that give higher write weights to quality contributors, and deploying dedicated content moderation models for real-time filtering of written memories. The complexity of such governance far exceeds simple memory isolation schemes, but it also holds the possibility of building truly "collective intelligence."

Third, its significance as a proof of concept. As a Show HN project, it functions more as a proof of concept (PoC), aimed at sparking discussion rather than direct commercialization. From this perspective, it successfully prompted the community to re-examine the question of "how should AI memory actually be designed."

Conclusion: A Valuable Extreme Experiment

Public AI with shared memory may face insurmountable obstacles in privacy and security, but its value lies precisely in using an extreme case to force us to think about the nature of AI memory. In a time of severe AI product homogenization, this spirit of daring to defy conventions is itself worth affirming.

It reminds us that every default design decision in AI — from memory isolation to context management — is the result of tradeoffs. Understanding these tradeoffs is the only way to truly understand the deeper logic of AI product design. Perhaps shared memory will never become mainstream, but the process of exploring boundaries is itself part of technological progress.

#shared AI memory#public AI#prompt injection#memory poisoning#RAG architecture#AI privacy#collective intelligence#AI memory architecture
Share:

Related articles