Ai4
Expanding transformer context windows cannot solve enterprise AI memory due to quadratic attention bottlenecks, requiring systems to adopt decoupled latent and parametric storage tiers.
AI-assisted summary of Memory & LLMs: Rethinking Recall With WRITER — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published by Ai4 on YouTube on August 26, 2025, this presentation features Dan Bikel, Head of AI at Writer. According to the page description, the talk clarifies what 'memory' truly means in LLM-based systems—defining it as the storing and fetching of task-relevant information—while examining context window dynamics, online versus offline trade-offs, and implicit versus explicit representations.
## TL;DR Dan Bikel deconstructs the concept of LLM memory by categorizing it across orthogonal axes, including update cadence, storage tiers, representation formats, and target beneficiaries. He argues that relying solely on expanding context windows is computationally inefficient due to quadratic attention scaling and goldfish memory failures, necessitating decoupled ingestion and retrieval architectures. Drawing from prior industry research, Bikel surveys advanced paradigms like MemWalker, Memory Layers, and Explicit Working Memory alongside Writer's enterprise Palmyra models. He concludes by presenting Writer's 'Reflect, Retry, and Reward' framework, illustrating how memory functions on a continuum from explicit retrieval to parametric adaptation.
## Atmosphere & style The presentation carries the polished, pragmatic tone of an industry veteran, blending light self-deprecating humor about speaker headshots and pronoun adjustments with rigorous technical depth. Bikel delivers a brisk, structured lecture that balances cognitive science analogies—such as comparing human memory compression to brute-force token buffers—with concrete engineering diagrams. The resulting atmosphere feels authoritative and clear-headed, demystifying long-term AI memory for enterprise practitioners without leaning into marketing hype.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=4s) Dan Bikel brings long-term memory and NLP expertise from leading conversational memory at Meta GenAI and co-developing semantic parsing for Google Assistant to his role as Head of AI at Writer. - [01:54](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=114s) Writer differentiates its agentic AI platform by strictly optimizing for enterprise workflows, powered by its proprietary Palmyra foundation model family. - [04:47](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=287s) System memory must be disambiguated from static weight memorization during training and long-term distributional adaptation over time. - [07:18](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=438s) Context windows cannot serve as a complete memory solution due to token overflow ('goldfish memory') and the quadratic O(N²) computational complexity of transformer self-attention. - [07:18](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=438s) Even large 1-million-token context windows remain tiny compared to the vast, fragmented datasets and multi-source APIs enterprise systems must orchestrate. - [11:34](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=694s) Memory update mechanisms span a spectrum between online, real-time ingestion during active conversations and asynchronous, offline batch processing. - [12:06](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=726s) LLM memory mirrors traditional computing hierarchies, treating the context window as fast cache memory backed by external non-parametric storage and parametric model weights. - [12:06](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=726s) Memory architectures require intentional choices between raw, sparse text representations and compressed, continuous latent vectors. - [13:44](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=824s) Memory systems must be categorized by their intended scope, distinguishing between immediate conversational coherence, user personalization, multi-user groups, agent identity, and task-level state tracking. - [15:28](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=928s) Implementing long-term conversational memory requires a decoupled collector-storage-retriever pipeline paired with base LLM fine-tuning on memory-injected training data. - [16:32](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=992s) Advanced memory architectures like MemWalker, Memory Layers, and Explicit Working Memory emulate human cognition by compressing context into navigable trees or trainable latent buffers. - [19:11](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=1151s) Writer's 'Reflect, Retry, and Reward' framework optimizes models using self-reflection preference pairs, calculating gradients strictly over reflection tokens to prevent overfitting. - [19:11](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=1151s) Memory in AI agents should be conceptualized not as a discrete feature, but as a continuous continuum connecting dynamic retrieval with parametric adaptation.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=4s) Introduction and Dan Bikel's Background
Dan Bikel introduces himself with a lighthearted comment about his speaker photo on the screen, joking that while it might look airbrushed, it is at least "realish" and not AI-generated. Bikel recently joined Writer as their Head of AI, having started on July 21st—roughly three weeks prior to the talk. To establish his technical background, he outlines his prior career path across major industry labs. Most recently, he spent three years at Meta within the Generative AI organization, where he led the effort to build long-term conversational memory architectures for social chatbots, creating the underlying template later adopted by Meta AI and related agent platforms.
Prior to Meta, Bikel spent over a decade at Google Research (spanning 2010 to 2022), punctuated by a two-and-a-quarter-year stint at LinkedIn where he founded and led the company's core Natural Language Processing (NLP) team. During his tenure at Google, Bikel collaborated with Jakob Uszkoreit and Percy Liang to build the semantic parser that originally powered Android Voice Actions. That system eventually evolved into Google Assistant and served as core infrastructure for parsing Google Search queries over the following decade.
- **Current Role**: Head of AI at Writer (started July 21, 2025). - **Meta GenAI (3 years)**: Led long-term conversational memory for Meta's social chatbots and Meta AI. - **Google Research (2010–2022)**: Co-built the semantic parser for Android Voice Actions and Google Search with Jakob Uszkoreit and Percy Liang. - **LinkedIn (2.25 years)**: Founded and led the enterprise NLP team.
---
[01:54](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=114s) Enterprise Focus and the Palmyra Model Family
Bikel transitions to introducing Writer, describing it as an agentic AI platform company dedicated to enterprise-grade solutions. He humorously catches himself adjusting his pronouns from third-person "Writer" to first-person "we" and "our" as he settles into his new leadership role. He highlights that Writer's primary competitive advantage—its "secret sauce"—is a relentless, exclusive focus on the enterprise customer. Rather than trying to build a generic tool for every consumer use case, Writer designs its entire stack specifically for enterprise workloads, directly informing training methodologies, dataset curation, and application workflows.
Writer operates an end-to-end platform powered by its proprietary family of foundation models, known as the Palmyra series. Founded in 2020, Writer has steadily advanced its internal model development alongside published research milestones. Bikel points out that Palmyra models compete directly with flagship models from major tech companies, placing squarely in the mix when evaluating standard evaluation suites like HELM (Holistic Evaluation of Language Models), where Palmyra models match the top five average benchmark scores.
```mermaid flowchart TD accTitle: Writer Enterprise AI Stack Architecture subgraph Foundation ["Foundational Layer"] A["Palmyra Model Family\n(Enterprise-Trained LLMs)"] end subgraph Platform ["Platform & Tooling Layer"] B["Writer Agentic AI Platform"] C["Integration APIs & Custom Data Pipelines"] end subgraph Solution ["Application Layer"] D["Enterprise Agentic Solutions"] E["Customer Workflows & Partnerships"] end A --> B C --> B B --> D B --> E ```
---
[04:47](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=287s) Defining Memory: Training, Memorization, and Dynamic Adaptation
Turning to the core topic of the presentation, Bikel addresses the inherent ambiguity surrounding the term "memory" in machine learning. Because machine learning models naturally generalize from and retain information seen during pre-training, people often conflate parameter memorization with functional system memory. To establish a more precise taxonomy, Bikel separates the broader concept into three distinct mechanisms:
1. **Training / Memorization**: The passive retention and statistical generalization of static patterns from training examples baked directly into weights. 2. **Memory (Store & Fetch)**: The dynamic or semi-dynamic storing and fetching of task-relevant information at inference time. 3. **Adaptation**: The capacity of an LLM or agent system to adjust over time as data distributions shift in the real world.
Bikel proposes a working definition for system memory: *"Memory describes when we can explicitly and dynamically store and fetch information as part of some larger LLM-based system that we are building."* However, he immediately critiques this definition as incomplete, noting that it focuses purely on external store-and-fetch systems while failing to capture newer architectures where LLMs are equipped with integrated, differentiable memory parameters.
---
[07:18](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=438s) The Fundamental Drivers: Context Limits, Quadratic Scaling, and Information Needs
Bikel examines the core engineering and cognitive reasons why external and parametric memory mechanisms are necessary in LLM systems:
```mermaid flowchart TD accTitle: Pressures Driving Memory Architectures in LLMs subgraph LLM_Limits ["Transformer Architectural Limits"] A["Finite Context Window\n(History overflows / Goldfish memory)"] B["Quadratic Attention Complexity\n(O(N²) pairwise token overhead)"] end subgraph RealWorld_Needs ["Operational Information Demands"] C["Dynamic Task Needs\n(Immediate relevant state)"] D["Vast Scale of Data\n(1M tokens is tiny vs. storage hardware)"] E["Disparate Data Sources\n(Multiple external APIs & silos)"] end LLM_Limits --> F["Explicit & Integrated Memory Systems"] RealWorld_Needs --> F ```
The first pressure is the finite length of the transformer context window. Regardless of whether an agent has access to thousands, tens of thousands, or a million tokens, appending raw conversational history eventually leads to overflow. Without dedicated memory, the agent suffers from "goldfish memory", forgetting critical facts established earlier in a session or across multi-week user relationships.
Beyond raw token bounds, Bikel identifies a deeper architectural inefficiency in transformer self-attention. Full attention matrices scale quadratically with sequence length, attempting to encode all pairwise token relationships regardless of relevance. Drawing an analogy to human cognition, Bikel emphasizes that human brains do not compute exhaustive pairwise associations across all historical inputs; instead, humans continually compress, abstract, and store key information as they go. Treating the context window as a brute-force memory buffer is scientifically unsatisfying and computationally inefficient.
Finally, real-world enterprise applications present dynamic, vast, and fragmented information needs: - **Dynamic Relevance**: Tasks demand specific data points fetched precisely when required. - **Massive Scale**: Even a 1-million-token window represents a tiny speck compared to the gigabytes of data readily stored on an ordinary thumb drive. - **Multi-Source Silos**: Enterprise agents must orchestrate data across multiple heterogeneous systems, APIs, and data sources on demand.
---
[11:34](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=694s) Dimensions of Memory: Online vs. Offline Updates
Bikel urges the audience to pay close attention to the conceptual framework of memory, framing it as the central takeaway of the session. He begins mapping out the multi-dimensional design space of memory systems, starting with the spectrum of **when and how updates occur**:
- **Online Updates**: Memory is written, indexed, or integrated in real time during the interaction as new tokens and facts stream in. - **Offline Updates**: Information is processed, condensed, indexed, or written asynchronously outside the critical path of the active conversation.
[12:06](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=726s) The Orthogonal Dimensions and Memory Hierarchy of LLMs
Memory in large language models spans several independent, orthogonal axes, starting with the frequency of updates. System updates can occur in periodic offline batches, in near real-time streams, or as immediate, real-time updates triggered during live user-agent interactions. Alongside update cadence is the question of storage mechanism and representation format. Memory may reside directly within parametric model weights, exist in external non-parametric storage subsystems, or sit directly within the active context window.
```mermaid flowchart TD accTitle: Memory Hierarchy in LLM Systems accDescription: Analogy between traditional computing memory hierarchies and LLM memory storage layers.
subgraph LLM_Hierarchy ["LLM Memory Hierarchy"] CW["Context Window<br/>(Analogous to CPU Cache / Fast Working Memory)"] Weights["Model Parameters<br/>(Parametric Long-Term Memory)"] ExtStore["External Subsystem<br/>(Non-Parametric Storage / Vector & Document Stores)"] end
subgraph Formats ["Representation Formats"] Raw["Raw / Sparse Representation<br/>(Text, Discrete Tokens)"] Dense["Continuous / Compressed Latents<br/>(Embeddings, Compressed Trees)"] end
ExtStore --> CW Weights --> CW Formats -.-> ExtStore ```
Drawing an analogy to the classical computing memory hierarchy, Dan Bikel likens the LLM's context window to cache memory—fast, immediate, but limited. Below that layer lie external storage modules and the frozen parameters of the neural network itself. Furthermore, the information held across these layers can take the form of raw, sparse representations (such as discrete text chunks) or continuous, compressed latent embeddings. Although these design choices frequently intersect in deployed architectures, they represent fundamentally distinct axes of system design.
- **Update Frequencies:** Batch updates, near real-time ingestion, and interactive real-time turn-by-turn updates. - **Storage Modalities:** Model parameters (parametric), external retrieval databases (non-parametric), and in-context buffers. - **Representation Types:** Raw sparse tokens versus compressed continuous latent vectors.
---
[13:44](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=824s) Categorizing the Beneficiaries and Purposes of Memory
Beyond how memory is implemented, system designers must evaluate who or what the memory is intended to serve. Memory can support the immediate conversational interaction, an area Bikel focused on during his time at Meta. Alternatively, memory can center on user personalization, preserve context across multi-user group interactions with an agent, maintain the continuity of the agent itself as an enduring entity over time, or track progress across long-horizon downstream tasks.
A vital conceptual distinction separates memory required for the immediate next conversational turn from task-level memory. Remembering details that must appear in the very next response is direct and immediate, whereas tracking state across a multi-step task operates "one step removed, one step meta." Structuring memory systems requires matching the architectural retention strategy to the specific entity and scope being served.
- **Conversation-Level:** Maintaining coherence across dialogue turns within an active session. - **User-Level:** Long-term personalization and individual user preference tracking. - **Group-Level:** Shared contextual state across multi-party user interactions. - **Agent-Level:** Preserving agent persona, state, and identity over long lifespans. - **Task-Level:** State management and memory over complex, multi-step workflows.
---
[15:28](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=928s) Architectures for Long-Term Conversational Memory
Implementing production-grade conversational memory requires a decoupled pipeline operating between the user and the language model. A memory collector—implemented either as a rule-based function or a dedicated auxiliary model—monitors the stream of dialogue turns and extracts salient facts into a persistent backend storage layer. During subsequent interactions, a retrieval module queries the storage layer to inject the most relevant historical context back into the context window, supplying the primary model with the background needed to craft the next optimal response.
```mermaid flowchart LR accTitle: Conversational Memory System Architecture accDescription: Architectural pipeline showing dialogue collection, backend retrieval, and memory-conditioned LLM generation.
subgraph Ingestion ["Ingestion Pipeline"] UserTurn["User Interaction"] --> Collector["Memory Collector<br/>(Function / Model)"] Collector --> Storage[("Backend Memory<br/>Storage")] end
subgraph Generation ["Retrieval & Generation"] Storage --> Retriever["Retrieval System"] Retriever --> Context["Context Window Injection"] Context --> LLM["Main LLM Generator"] TrainData["Memory-Specific<br/>Training Data"] -.-> LLM LLM --> Response["Next Best Response"] end ```
Crucially, standard pre-trained LLMs do not inherently excel at handling synthetic memory injections without specialized tuning. The architecture depends heavily on fine-tuning the core language model using memory-specific training data. Training the base model on examples that explicitly feature injected memories teaches the network how to seamlessly integrate retrieved background facts into natural, coherent responses.
---
[16:32](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=992s) Advanced Memory Approaches: MemWalker, Memory Layers, and Working Memory
Bikel highlights several foundational research efforts from former colleagues that push beyond naive context stuffing by emulating human-like cognitive compression:
```mermaid flowchart TD accTitle: Advanced Memory Architectures Comparison accDescription: Overview of MemWalker, Memory Layers, Explicit Working Memory, and MemAgent paradigms.
subgraph StructuralComp ["Structural & Latent Compression"] MW["MemWalker<br/>Hierarchical Tree of LLM-Compressed Nodes"] ML["Memory Layers<br/>Trainable Parametric Key-Value Parameters"] end
subgraph DynamicRefinement ["Active Monitoring & Policy Tuning"] EWM["Explicit Working Memory<br/>Latent Buffers with Active Generation Pauses"] MA["MemAgent & DAPO<br/>Recursive Multi-Turn Context Compression"] end
MW -.-> EWM ML -.-> MA ```
*MemWalker* (developed by Jason Weston, Oleksandr Sobal, Ramakanth Pasunuru, and colleagues at Meta AI) addresses long contexts by organizing text into a hierarchical tree of summary nodes. The model iteratively summarizes chunks and navigates this tree structure either dynamically or semi-statically, allowing it to explore large document sets repeatedly without re-reading raw tokens.
*Memory Layers* (by Barlas Oğuz, Scott Yih, Luke Zettlemoyer, and collaborators) introduces dedicated, trainable Key-Value parameter sets that expand the model's parametric capacity at scale rather than relying solely on ephemeral context activations.
*Explicit Working Memory* populates a dedicated working memory buffer with latent representations of retrieved passages. During text generation, the system actively tracks its own partial output, periodically pausing generation to refresh working memory and correct reasoning errors on the fly.
Similarly, *MemAgent* builds upon policy optimization techniques such as DAPO (Decoupled Clip and Dynamic Sampling Policy Optimization) to handle multi-conversation environments by repeatedly compressing dialogue histories into a shared latent space.
---
[19:11](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=1151s) WRITER's "Reflect, Retry, and Reward" and the Adaptation Continuum
Transitioning to recent research at WRITER, Bikel highlights the *Reflect, Retry, and Reward* framework. This approach leverages the LLM itself to generate high-quality preference pairs for reinforcement learning. The model reflects upon its own candidate outputs, critiques errors, and attempts a retry.
To avoid degenerate overfitting, the training objective computes gradients strictly over the tokens associated with the self-reflection steps rather than the specific factual details of the prompt. This self-supervised reflection mechanism yields strong performance gains across complex real-world benchmarks tailored to enterprise customers.
Bikel concludes by emphasizing that memory is not a single feature or isolated module, but a continuous spectrum running from explicit retrieval to parametric adaptation. Building fully autonomous and capable AI agents requires unifying these orthogonal dimensions—update cadences, storage tiers, representation formats, and target beneficiaries—into comprehensive, all-encompassing architectures.
## Notable quotes > The term "memory" is rightly ambiguous, especially in the context of LLMs. — Dan Bikel
> Even training itself is, in some sense, related to "memory" due to how well we can get LLMs to remember information from training examples. — Dan Bikel
> storing and fetching of task-relevant information — Dan Bikel
> [00:04](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=4s) realish — Dan Bikel
> [01:54](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=114s) secret sauce — Dan Bikel
> [04:47](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=287s) Memory describes when we can explicitly and dynamically store and fetch information as part of some larger LLM-based system that we are building. — Dan Bikel
> [07:18](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=438s) goldfish memory — Dan Bikel
> [13:44](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=824s) one step removed, one step meta — Dan Bikel
> [19:11](https://www.youtube.com/watch?v=i7L4Lc9wg2U&t=1151s) Reflect, Retry, and Reward — Dan Bikel
## Mentioned Dan Bikel, Writer, Meta, Meta AI, Google Research, Google Assistant, Google Search, Android Voice Actions, Jakob Uszkoreit, Percy Liang, LinkedIn, Palmyra, HELM (Holistic Evaluation of Language Models), MemWalker, Jason Weston, Oleksandr Sobal, Ramakanth Pasunuru, Memory Layers, Barlas Oğuz, Scott Yih, Luke Zettlemoyer, Explicit Working Memory, MemAgent, DAPO (Decoupled Clip and Dynamic Sampling Policy Optimization)
## Video description Dan Bikel, Head of AI, WRITER
Abstracts
The term "memory" is rightly ambiguous, especially in the context of LLMs. Even training itself is, in some sense, related to "memory" due to how well we can get LLMs to remember information from training examples. This talk will provide a clearer picture of what "memory" actually means for LLM-based systems, namely, that it is the storing and fetching of task-relevant information. Through this lens, we will explore recent advancements of how memory is implemented in LLMs, including aspects like context window usage, online vs. offline methods and trade-offs, memory-related training methods and explicit vs. implicit representations.
[Source](https://www.youtube.com/watch?v=i7L4Lc9wg2U)